[mythtv-commits] Ticket #6875: Patches with updated Swedish translations and scripts to simplify XML translation

MythTV mythtv at cvs.mythtv.org
Thu Aug 20 18:46:24 UTC 2009


#6875: Patches with updated Swedish translations and scripts to simplify XML
translation
-----------------------------------------------------------+----------------
 Reporter:  Stefan Asserhäll <stefan.asserhall at comhem.se>  |       Owner:  ijr 
     Type:  enhancement                                    |      Status:  new 
 Priority:  trivial                                        |   Milestone:  0.22
Component:  Translations                                   |     Version:  head
 Severity:  low                                            |     Mlocked:  0   
-----------------------------------------------------------+----------------
 Here are two patches with updated Swedish translations, including four
 generic scripts to simplify XML translation. I did this because I found
 that a lot of strings were not translated in the GUI. It seems that no
 translation has ever been done for <value> tags in the XML files.

 The script "lupdate.sh" extracts strings for translation from all XML
 files and runs lupdate, and "lrelease.pl" deposits the translated strings
 back into the XML files after the translation and runs lrelease. The
 second script has a verbose flag (-v) and can take one or more languages
 as parameters.

 The workflow becomes (with Swedish as example language):
   cd mythtv/i18n[[BR]]
   ./lupdate.sh[[BR]]
   linguist mythfrontend_sv.ts[[BR]]
   ./lrelease.pl -v sv[[BR]]

   cd mythplugins[[BR]]
   ./lupdate.sh[[BR]]
   linguist myth*/i18n/*_sv.ts[[BR]]
   ./lrelease.pl -v sv[[BR]]

 The patch also includes i18n directories for some mythplugins that didn't
 have them, and fixes som missing tr() in the source code.

 I hope this can be useful for other translators, as well. I could add this
 information to the wiki, if you'd like.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/6875>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list