Opened 15 years ago
Closed 15 years ago
#6875 closed patch (fixed)
Patches with updated Swedish translations and scripts to simplify XML translation
Reported by: | Owned by: | Janne Grunau | |
---|---|---|---|
Priority: | trivial | Milestone: | 0.22 |
Component: | Translations | Version: | head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
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
./lupdate.sh
linguist mythfrontend_sv.ts
./lrelease.pl -v sv
cd mythplugins
./lupdate.sh
linguist myth*/i18n/*_sv.ts
./lrelease.pl -v sv
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.
Attachments (3)
Change History (15)
Changed 15 years ago by
Attachment: | myth-translation-patch.tar.gz added |
---|
comment:1 Changed 15 years ago by
Hi Stefan, this is what the themestringtool in svn is for and I will be running it when changes to the themes have settled down in a week or two. It writes the strings to i18n/themestrings.h rather than cluttering up the xml.
comment:2 Changed 15 years ago by
Can you break out the changes into separate patches please. One patch for source changes,one for the translation updates and the scripts in a third?
comment:3 Changed 15 years ago by
Status: | new → infoneeded_new |
---|
comment:4 Changed 15 years ago by
Thanks for the info about themestringtool. I didn't realize that <value> tags were handled differently from <text> and <alttext>. It seems a good idea to avoid having the translations in XML, but to also change <text> and <alttext> to use the same scheme as <value>, I think the existing translations need be moved into the ts files.
I have updated the lupdate.sh script to use themestringtool, and lrelease.pl to only deposit <text> and <alttext> translations.
I have uploaded a new patch, with the changes split as per your request.
comment:5 Changed 15 years ago by
Status: | infoneeded_new → new |
---|
Changed 15 years ago by
Attachment: | mythbrowser-translations-090822.diff added |
---|
Additional patch for mythbrowser with some strings I missed before
comment:6 Changed 15 years ago by
Type: | enhancement → patch |
---|
comment:7 Changed 15 years ago by
Owner: | changed from Isaac Richards to Janne Grunau |
---|---|
Status: | new → accepted |
comment:9 Changed 15 years ago by
comment:10 Changed 15 years ago by
comment:11 Changed 15 years ago by
comment:12 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Translation patch for MythTV