Editing QT *.ui files

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Editing QT *.ui files

octatone
Hey guys,

I wanted to contribute to the project and I thought I could go through and clean up some of the UI elements' text, as they are not very uniform (some things capitalized, some things not).  I can build from source and checkout via svn and just wanted some info on how the different resources are pulled together at build time.

If I want to edit interface labels, can I simply edit the <strings/> in the corresponding QT *.ui XML files? Or is there a different preferred method of going about this?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Editing QT *.ui files

Thomas Bonte
Administrator
I don't want to temper your enthusiasm, but as David pointed out recently in a comment I don't find anymore, it might be better to delay this effort until 0.9.5 is released. Otherwise, there will be quite some extra translation work to be done which will take quite some time.

octatone wrote
Hey guys,

I wanted to contribute to the project and I thought I could go through and clean up some of the UI elements' text, as they are not very uniform (some things capitalized, some things not).  I can build from source and checkout via svn and just wanted some info on how the different resources are pulled together at build time.

If I want to edit interface labels, can I simply edit the <strings/> in the corresponding QT *.ui XML files? Or is there a different preferred method of going about this?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Editing QT *.ui files

Toby Smithe-2
In reply to this post by octatone
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

2009/7/12 octatone :
> If I want to edit interface labels, can I simply edit the  in the
> corresponding QT *.ui XML files? Or is there a different preferred method of
> going about this?

I'm not a Qt developer (I'm just the Debian maintainer), but in the
process of adding some Debian-related information to the about box
(aboutbox.ui), I use the Qt Designer. On Debian systems, this is
available in the `qt4-designer` package, but on other platforms, I
wouldn't be able to say where to get it. There seems to be some
information at [1].

[1] http://www.qtsoftware.com/products/developer-tools

Regards

- --
Toby Smithe :: http://fulltinreality.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.6)

iQQcBAEBCAAGBQJKWkb3AAoJELgZxdA5OevuPR4f+wanORYM0Ej830hC6cD2Rk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bTXptzqa2KddtK7HVZs7AH
2L06RvMP/qfWPfzIqbaqev2nxdUasUvRf+j7Yej7514xs1H2TE6Ux2+nZIV5Hcfg
XGlyFu5X22eAiH2PC3vuSxCpIKXgan5cBfrBD9tLwpgJ5B82fBBvGtBG5TE/JhaZ
M17zcNoqJDODGrqf0xMCi2Q2zk1bdkT3Dej1nbHtxxFz5YdNzoc98K/NqV61JM7s
ap0NwLr56JZACD7xfL25WWb/fSaorvIUJ5F7RgdJBqZ9gt1g0at14l9F9t3ClxU=
=9Reu
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Editing QT *.ui files

octatone
Yeah, I figured out to just open up the main QT *.pro file in QT and edit through that.

Can someone give me a better explanation as to why we need/should hold off cleaning up the UI label formatting inconsistencies?  I'm guessing it might have something do with the dialogs not being finalized in terms of what is going to be in them in the final 0.9.5 release?


Toby Smithe-2 wrote
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

2009/7/12 octatone :
> If I want to edit interface labels, can I simply edit the  in the
> corresponding QT *.ui XML files? Or is there a different preferred method of
> going about this?

I'm not a Qt developer (I'm just the Debian maintainer), but in the
process of adding some Debian-related information to the about box
(aboutbox.ui), I use the Qt Designer. On Debian systems, this is
available in the `qt4-designer` package, but on other platforms, I
wouldn't be able to say where to get it. There seems to be some
information at [1].

[1] http://www.qtsoftware.com/products/developer-tools

Regards

- --
Toby Smithe :: http://fulltinreality.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.6)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DXC206zppvUBl+jND0ZHB21
zhxccWZLDYkGNHXDmOImPjAp1TCcDYxew1yILjQbBGbTXptzqa2KddtK7HVZs7AH
2L06RvMP/qfWPfzIqbaqev2nxdUasUvRf+j7Yej7514xs1H2TE6Ux2+nZIV5Hcfg
XGlyFu5X22eAiH2PC3vuSxCpIKXgan5cBfrBD9tLwpgJ5B82fBBvGtBG5TE/JhaZ
M17zcNoqJDODGrqf0xMCi2Q2zk1bdkT3Dej1nbHtxxFz5YdNzoc98K/NqV61JM7s
ap0NwLr56JZACD7xfL25WWb/fSaorvIUJ5F7RgdJBqZ9gt1g0at14l9F9t3ClxU=
=9Reu
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Mscore-developer mailing list
Mscore-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Editing QT *.ui files

David Bolton-2
Octatone,

The thread referred to by Thomas is here:
http://musescore.org/en/node/1548#comment-3175

If you change the capitalization of a language other than English then
there is not a problem although I would recommend talking to the person
who is currently maintaining the localization before making any major
changes.

If you make even a small change (such as capitalization) to the English
UI then all 19 other localizations have to manually retranslated that
word again. Due to the way Qt works, if a localization team fails to
retranslate the new word then it displays in English. Obviously this is
not a good idea right before a release and not fair to the localizers.

David



octatone wrote:

> Yeah, I figured out to just open up the main QT *.pro file in QT and edit
> through that.
>
> Can someone give me a better explanation as to why we need/should hold off
> cleaning up the UI label formatting inconsistencies?  I'm guessing it might
> have something do with the dialogs not being finalized in terms of what is
> going to be in them in the final 0.9.5 release?
>
>
>
> Toby Smithe-2 wrote:
>  
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>> 2009/7/12 octatone :
>>    
>>> If I want to edit interface labels, can I simply edit the  in the
>>> corresponding QT *.ui XML files? Or is there a different preferred method
>>> of
>>> going about this?
>>>      
>> I'm not a Qt developer (I'm just the Debian maintainer), but in the
>> process of adding some Debian-related information to the about box
>> (aboutbox.ui), I use the Qt Designer. On Debian systems, this is
>> available in the `qt4-designer` package, but on other platforms, I
>> wouldn't be able to say where to get it. There seems to be some
>> information at [1].
>>
>> [1] http://www.qtsoftware.com/products/developer-tools
>>
>> Regards
>>
>> - --
>> Toby Smithe :: http://fulltinreality.com
>>
>>    

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Editing QT *.ui files

octatone
But aren't we digging a deeper and deeper hole by not taking care of this earlier rather than late?  Telling people to do localizations on an inconsistent English UI?

Why are the localizations reliant on the UI strings and not the QT element names e.g. "label14", etc.?
(I imagine this is a QT limitation, but surely we can figure out a workaround?)

I'm not talking about modifying the strings other than capitolizations, so can't we write a script to modify localizations to match the current English strings at any given time? (I would be willing to take a stab at this)

I'm new to QT, can you show me the steps to create your _ts files?

[sorry for all the questions]

David Bolton-2 wrote
Octatone,

The thread referred to by Thomas is here:
http://musescore.org/en/node/1548#comment-3175

If you change the capitalization of a language other than English then
there is not a problem although I would recommend talking to the person
who is currently maintaining the localization before making any major
changes.

If you make even a small change (such as capitalization) to the English
UI then all 19 other localizations have to manually retranslated that
word again. Due to the way Qt works, if a localization team fails to
retranslate the new word then it displays in English. Obviously this is
not a good idea right before a release and not fair to the localizers.

David



octatone wrote:
> Yeah, I figured out to just open up the main QT *.pro file in QT and edit
> through that.
>
> Can someone give me a better explanation as to why we need/should hold off
> cleaning up the UI label formatting inconsistencies?  I'm guessing it might
> have something do with the dialogs not being finalized in terms of what is
> going to be in them in the final 0.9.5 release?
>
>
>
> Toby Smithe-2 wrote:
>  
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>> 2009/7/12 octatone :
>>    
>>> If I want to edit interface labels, can I simply edit the  in the
>>> corresponding QT *.ui XML files? Or is there a different preferred method
>>> of
>>> going about this?
>>>      
>> I'm not a Qt developer (I'm just the Debian maintainer), but in the
>> process of adding some Debian-related information to the about box
>> (aboutbox.ui), I use the Qt Designer. On Debian systems, this is
>> available in the `qt4-designer` package, but on other platforms, I
>> wouldn't be able to say where to get it. There seems to be some
>> information at [1].
>>
>> [1] http://www.qtsoftware.com/products/developer-tools
>>
>> Regards
>>
>> - --
>> Toby Smithe :: http://fulltinreality.com
>>
>>    

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Mscore-developer mailing list
Mscore-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Editing QT *.ui files

wschweer
Administrator
There is a way to change the english strings without touching the
translations. Simple create an american english translation. This would hide
the internal strings.
Later on they could be integrated(removed) by changing the strings in the
program source and in every translation file. For cosmetic changes this could
be done without changing the translations itself.
 
Am Montag, 13. Juli 2009 06:38:43 schrieb octatone:

> But aren't we digging a deeper and deeper hole by not taking care of this
> earlier rather than late?  Telling people to do localizations on an
> inconsistent English UI?
>
> Why are the localizations reliant on the UI strings and not the QT element
> names e.g. "label14", etc.?
> (I imagine this is a QT limitation, but surely we can figure out a
> workaround?)
>
> I'm not talking about modifying the strings other than capitolizations, so
> can't we write a script to modify localizations to match the current
> English strings at any given time? (I would be willing to take a stab at
> this)
>
> I'm new to QT, can you show me the steps to create your _ts files?
>
> [sorry for all the questions]
>
> David Bolton-2 wrote:
> > Octatone,
> >
> > The thread referred to by Thomas is here:
> > http://musescore.org/en/node/1548#comment-3175
> >
> > If you change the capitalization of a language other than English then
> > there is not a problem although I would recommend talking to the person
> > who is currently maintaining the localization before making any major
> > changes.
> >
> > If you make even a small change (such as capitalization) to the English
> > UI then all 19 other localizations have to manually retranslated that
> > word again. Due to the way Qt works, if a localization team fails to
> > retranslate the new word then it displays in English. Obviously this is
> > not a good idea right before a release and not fair to the localizers.
> >
> > David
> >
> > octatone wrote:
> >> Yeah, I figured out to just open up the main QT *.pro file in QT and
> >> edit through that.
> >>
> >> Can someone give me a better explanation as to why we need/should hold
> >> off
> >> cleaning up the UI label formatting inconsistencies?  I'm guessing it
> >> might
> >> have something do with the dialogs not being finalized in terms of what
> >> is
> >> going to be in them in the final 0.9.5 release?
> >>
> >> Toby Smithe-2 wrote:
> >>> -----BEGIN PGP SIGNED MESSAGE-----
> >>> Hash: SHA256
> >>>
> >>> 2009/7/12 octatone :
> >>>> If I want to edit interface labels, can I simply edit the  in the
> >>>> corresponding QT *.ui XML files? Or is there a different preferred
> >>>> method
> >>>> of
> >>>> going about this?
> >>>
> >>> I'm not a Qt developer (I'm just the Debian maintainer), but in the
> >>> process of adding some Debian-related information to the about box
> >>> (aboutbox.ui), I use the Qt Designer. On Debian systems, this is
> >>> available in the `qt4-designer` package, but on other platforms, I
> >>> wouldn't be able to say where to get it. There seems to be some
> >>> information at [1].
> >>>
> >>> [1] http://www.qtsoftware.com/products/developer-tools
> >>>
> >>> Regards
> >>>
> >>> - --
> >>> Toby Smithe :: http://fulltinreality.com
> >
> > -------------------------------------------------------------------------
> >----- Enter the BlackBerry Developer Challenge
> > This is your chance to win up to $100,000 in prizes! For a limited time,
> > vendors submitting new applications to BlackBerry App World(TM) will have
> > the opportunity to enter the BlackBerry Developer Challenge. See full
> > prize
> > details at: http://p.sf.net/sfu/Challenge
> > _______________________________________________
> > Mscore-developer mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Editing QT *.ui files

octatone
David,

Can you create a en_US and en_GB to match the ts files you have been providing to translators so we may clean up the English inconsistencies?

wschweer wrote
There is a way to change the english strings without touching the
translations. Simple create an american english translation. This would hide
the internal strings.
Later on they could be integrated(removed) by changing the strings in the
program source and in every translation file. For cosmetic changes this could
be done without changing the translations itself.
 
Am Montag, 13. Juli 2009 06:38:43 schrieb octatone:
> But aren't we digging a deeper and deeper hole by not taking care of this
> earlier rather than late?  Telling people to do localizations on an
> inconsistent English UI?
>
> Why are the localizations reliant on the UI strings and not the QT element
> names e.g. "label14", etc.?
> (I imagine this is a QT limitation, but surely we can figure out a
> workaround?)
>
> I'm not talking about modifying the strings other than capitolizations, so
> can't we write a script to modify localizations to match the current
> English strings at any given time? (I would be willing to take a stab at
> this)
>
> I'm new to QT, can you show me the steps to create your _ts files?
>
> [sorry for all the questions]
>
> David Bolton-2 wrote:
> > Octatone,
> >
> > The thread referred to by Thomas is here:
> > http://musescore.org/en/node/1548#comment-3175
> >
> > If you change the capitalization of a language other than English then
> > there is not a problem although I would recommend talking to the person
> > who is currently maintaining the localization before making any major
> > changes.
> >
> > If you make even a small change (such as capitalization) to the English
> > UI then all 19 other localizations have to manually retranslated that
> > word again. Due to the way Qt works, if a localization team fails to
> > retranslate the new word then it displays in English. Obviously this is
> > not a good idea right before a release and not fair to the localizers.
> >
> > David
> >
> > octatone wrote:
> >> Yeah, I figured out to just open up the main QT *.pro file in QT and
> >> edit through that.
> >>
> >> Can someone give me a better explanation as to why we need/should hold
> >> off
> >> cleaning up the UI label formatting inconsistencies?  I'm guessing it
> >> might
> >> have something do with the dialogs not being finalized in terms of what
> >> is
> >> going to be in them in the final 0.9.5 release?
> >>
> >> Toby Smithe-2 wrote:
> >>> -----BEGIN PGP SIGNED MESSAGE-----
> >>> Hash: SHA256
> >>>
> >>> 2009/7/12 octatone :
> >>>> If I want to edit interface labels, can I simply edit the  in the
> >>>> corresponding QT *.ui XML files? Or is there a different preferred
> >>>> method
> >>>> of
> >>>> going about this?
> >>>
> >>> I'm not a Qt developer (I'm just the Debian maintainer), but in the
> >>> process of adding some Debian-related information to the about box
> >>> (aboutbox.ui), I use the Qt Designer. On Debian systems, this is
> >>> available in the `qt4-designer` package, but on other platforms, I
> >>> wouldn't be able to say where to get it. There seems to be some
> >>> information at [1].
> >>>
> >>> [1] http://www.qtsoftware.com/products/developer-tools
> >>>
> >>> Regards
> >>>
> >>> - --
> >>> Toby Smithe :: http://fulltinreality.com
> >
> > -------------------------------------------------------------------------
> >----- Enter the BlackBerry Developer Challenge
> > This is your chance to win up to $100,000 in prizes! For a limited time,
> > vendors submitting new applications to BlackBerry App World(TM) will have
> > the opportunity to enter the BlackBerry Developer Challenge. See full
> > prize
> > details at: http://p.sf.net/sfu/Challenge
> > _______________________________________________
> > Mscore-developer mailing list
> > Mscore-developer@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Mscore-developer mailing list
Mscore-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Loading...