|
|
Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » Export and import .tr files in other languages than english<-->LANG
Export and import .tr files in other languages than english<-->LANG [message #34172] |
Thu, 27 October 2011 19:51 |
mdelfede
Messages: 1307 Registered: September 2007
|
Ultimate Contributor |
|
|
Hi,
I'd like to give a friend my app text to translate in German... but he can't speak english, so the best would be to give him some ITALIAN<-->GERMAN list, which is not actually possible with .tr files.
Another option would be to give him all .t files from upp project (that one would be my preferred solution....), but then most special chars are converted to \xxx codes, which makes transaltion almost impossible from outside theide.
So, the best would be, imho, to add an "export/import .t translations", which could gather all .t files and produce a single .t file with all languages and with \xxx codes converted to readable chars.
Would it be possible to add it ?
Max
|
|
|
Re: Export and import .tr files in other languages than english<-->LANG [message #34173 is a reply to message #34172] |
Thu, 27 October 2011 21:23 |
|
Hi Max
What about temporarily switching the content of corresponding T_() and itIT() macros? Then Italian would became the default language and it would be simple to do the it -> de translation using the .tr files. It should be quite simple to write a script or few lines of U++ to do the switching... Of course it is just a workaround
Best regards,
Honza
|
|
|
|
Re: Export and import .tr files in other languages than english<-->LANG [message #34175 is a reply to message #34172] |
Thu, 27 October 2011 22:10 |
|
forlano
Messages: 1182 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
mdelfede wrote on Thu, 27 October 2011 19:51 |
Another option would be to give him all .t files from upp project (that one would be my preferred solution....), but then most special chars are converted to \xxx codes, which makes transaltion almost impossible from outside theide.
|
If he uses a utf8 editor he will be able to see the characters correctly (I assume utf8 is your default). Under linux it is very easy to found such a editor.
Another possibility is to send him the whole theide with the tyranslation.t. Theide will be used as editor.
Ciao,
Luigi
[Updated on: Thu, 27 October 2011 22:11] Report message to a moderator
|
|
|
|
Re: Export and import .tr files in other languages than english<-->LANG [message #34177 is a reply to message #34172] |
Fri, 28 October 2011 01:10 |
|
Actually it is quite simple to add this functionality To any application, this is not related to theide, just to Core. See the attached patch. It allows to add comments in desired language into the .tr file. Usage is "myapp --export-tr deDE itIT", where both of the parameters are optional.
It is just quickly stiched together, but since it is mostly copy-paste of existing code, it should work
Honza
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Thu Mar 28 09:49:10 CET 2024
Total time taken to generate the page: 0.01612 seconds
|
|
|