Qt UI expert needed for bug #53526

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Qt UI expert needed for bug #53526

Rik-4
Could someone who understands Qt .ui definition files take a look at
https://savannah.gnu.org/bugs/?53526

The issue is that translators are seeing strings like "20" marked for
translation.  Pure numbers don't require translation.

If I take a look at settings-dialog.ui:2713 I find the following:

<widget class="QLineEdit" name="varedit_columnWidth">
 <property name="text">
  <string>20</string>
 </property>
</widget>

Because the GUI is using, essentially, a 1-line text editor Qt believes
that it needs to mark the string for translation.  Is there a GUI widget
element just for entering numbers?  After all, columnWidth is not going to
be a string like "Hello World".  It needs to be a number.

--Rik



Reply | Threaded
Open this post in threaded view
|

Re: Qt UI expert needed for bug #53526

JohnD
On 03/30/2018 10:47 PM, [hidden email] wrote:
Message: 2
Date: Fri, 30 Mar 2018 12:47:10 -0700
From: Rik [hidden email]
To: Octave-Maintainers [hidden email]
Subject: Qt UI expert needed for bug #53526
Message-ID: <MTAwMDAyMC5ub21hZA.1522439236@quikprotect>
Content-Type: text/plain; charset=utf-8

Could someone who understands Qt .ui definition files take a look at
https://savannah.gnu.org/bugs/?53526

The issue is that translators are seeing strings like "20" marked for
translation.? Pure numbers don't require translation.

If I take a look at settings-dialog.ui:2713 I find the following:

<widget class="QLineEdit" name="varedit_columnWidth">
?<property name="text">
? <string>20</string>
?</property>
</widget>

Because the GUI is using, essentially, a 1-line text editor Qt believes
that it needs to mark the string for translation.? Is there a GUI widget
element just for entering numbers?? After all, columnWidth is not going to
be a string like "Hello World".? It needs to be a number.

--Rik

How about something like:

<string notr="true">20</string>

which I believe will tell it that the string is not translateable