Sign up here and you can log into the forum!

How to mantain & test translation updated easily

Custom OSD translations, bugs in translations, and all localization issues

How to mantain & test translation updated easily   

Postby bovirus » Wed Oct 27, 2010 12:44 am

Edit / Check translation
Many times it's a big job check if our translation it's updated comparing number of strings and strings order.
I found a system that can we help to maintain the translation updated easily.
Using POEedit and master english language (empty) as template is possible to add automatically the new strings and remove the orphans (old) strings.

- use Notepad++ or POEdit or any other application compatible wityh UTF-8 text coding.
- Download the empty file (attached also to this post). Copy the empy.po file as empy.pot (template)
- Run the editor and open your translation
- Fill in the mpety string (using text editor the string are msgstr "" - please don't touch msgid string)

How to test translation
Copy your language as custom-language-01.po in the root of USB key with other file of WDLXTV firmware.
Unplug the WDTVLive power supply connector.
Connect the USB key with firmware file and your translation to one USB port of WDTVLive.
Connect the WDTVLive power supply connector to WDTVLive.
Go to Main menu - Setup - and select first japanese language.
Now you can see your custom language.
If you need some changes edit your custom-language-01.po file and reapply the procedure.

Before to switch off the WD and unplug the usb key (if you think to boot the WD without the USB key with custom-language-01.po) please goback to english language otherwise at next boot WD start with japanese language.

Firmware Languages & Template

WD TV Live - Language kit - Mod (b-rad) firmware

WDTV language kit - Contents (good for WDTVLIve / WDTVLive Plus /

\po folder
ar.po - Arabic
ca.po - Catalan
chs.po - Chinese Simplified
chs.po - Chinese Traditional
cz.po - Czech
da.po - Danish
du.po - Dutch
en.po - English
fr.po - French
ge.po - German
gr.po - Greek
he.po - Hebrew
hu.po - Hungarian
it.po - Italian
jp.po - Japanese
kr.po - Korean
nl.po - Netherlands
no.po - Norvegian
pl.po - Polish
pt_br.po - Portoguese (Braisilian)
pt_eu.po - Portoguese (European)
ru.po - Russian
sl.po - Slovenian
sk.po - Slovak
sp.po - Spanish
sr.po - Serbian
sw.po - Swedish
tr.po - Turkish

Note: in original WD firmware it's possible to select only languages atht already included in language selection
WD Firmware 1.04.xx and lower - CHS/CHT/EN/FR/GE/IT/JP/KR/PT_BR/PT_EU/RU/SP/TR
WD Firmware 1.05.xx and upper - AR/CHS/CHT/EN/FR/GE/HE/IT/JP/KR/PT_BR/PL/PT_EU/RU/SP/TR
In b-rad firmware is possible tos elect any additional language if the firmwar recognize it and if the language is included in the firmware or available in USB stick.

\mo folder
The same files of po folder but already compiled

\template folder
_empty.po - Empty language (for who start a new language)
_english.pot - master language template

Firmware recompiled
WD TV Live - b-rad firmware 1.02.21 0.4.5.3 - recompiled with all latest language (basic + additional) updates
WD TV Live - b-rad firmware 1.03.49 0.4.5.3 - recompiled with all latest language (basic + additional) updates

WD TV Live - Official WD Firmware 1.06.15 (WD) - recompiled with all latest language (basic) updates
WD TV Live - Official WD Firmware 1.05.04 (WD) - recompiled with all latest language (basic) updates
WD TV Live - Official WD Firmware 1.04.31 (WD) - recompiled with all latest language (basic) updates
WD TV Live - Official WD Firmware 1.04.22 (WD) - recompiled with all latest language (basic) updates
WD TV Live - Official WD Firmware 1.04.17 (WD) - recompiled with all latest language (basic) updates
WD TV Live - Official WD Firmware 1.03.49 (WD) - recompiled with all latest language (basic) updates
WD TV Live - Official WD Firmware 1.02.21 (WD) - recompiled with all latest language (basic) updates
bovirus
Global Moderator
 
Posts: 95
Joined: Thu Apr 22, 2010 11:42 pm

Re: How to mantain & test translation updated easily   

Postby marlosab » Thu Nov 11, 2010 10:34 pm

Hi, I am the translator for the Portuguese (Brazil) language. The following strings are present in my po file and missing in your template:

#~ msgid "An error has been detected in the file system of your USB device. Media Library support will be unavailable while the error exists. Please refer to the user manual on how to correct this error."

#~ msgid "Unable to recognize attached device at USB port"

#~ msgid "Warning: please safely eject your USB device before removing it"

#~ msgid "Portuguese EU"

#~ msgid "Portuguese Brazil"

#~ msgid "Western Europe (ISO) "

#~ msgid "Cyrillic"

#~ msgid "Version"

#~ msgid "FOLDER"

#~ msgid "Unknown"

#~ msgid "Create directory on USB2"

Please add them to your po and pot files.

Nice tutorial, congratulations!

Regards,

Marlos Alevy
Last edited by marlosab on Fri Nov 12, 2010 2:30 am, edited 1 time in total.
marlosab
n00b
 
Posts: 18
Joined: Fri Aug 20, 2010 5:38 am

Re: How to mantain & test translation updated easily   

Postby marlosab » Fri Nov 12, 2010 12:46 am

You can associate your translation file to any custom menu language, replacing the original with the custom. For example, to replace the original Italian translation, add the following line to your S00custom-options file:

mount -o bind /tmp/custom-language-01.mo /osd/mo/it.mo

Access the language settings and select Italiano.

This eliminates the inconvenience of having to choose an Asian language, since you can select the correct language in the menu.

Regards,

Marlos Alevy
marlosab
n00b
 
Posts: 18
Joined: Fri Aug 20, 2010 5:38 am

Re: How to mantain & test translation updated easily   

Postby bovirus » Fri Nov 12, 2010 12:57 am

Thanks for the reply.

I identified the way to unpack teh WDTVLive WD & b-rad firmware.
Now I'm able to check the po files in /osd/mo folder.

Another tricks.

You can get en.po file from /osd/mo fodler, rename it as en.pot an use as template (is not necessary to remove msgstr strings)

I will prepare all resource (like current languages and templates) for

- WDTVLive standard firmware (1.02.21 and beta 1.03.43)
- WDTVLive b-rad firnware
- PsycoTHC firmware

In this way we can upgrade all firmware (standard and mod) with right trasnaltions.
bovirus
Global Moderator
 
Posts: 95
Joined: Thu Apr 22, 2010 11:42 pm

Re: How to mantain & test translation updated easily   

Postby marlosab » Fri Nov 12, 2010 2:50 am

All text in the firmware is in on en.po file?

Another question, when selected "List mode" in the "Browser display", It shows in the brower the number of itens in the list, and the index of the selected item ("1 of 8"). I have not found a way to translate the word "of", as shown in "1 of 5". Simply adding msgid "of" to the po file does not work. I tried also with space: "of", "of" or "of" without success. How other translators have solved this problem?
marlosab
n00b
 
Posts: 18
Joined: Fri Aug 20, 2010 5:38 am

Re: How to mantain & test translation updated easily   

Postby bovirus » Fri Nov 12, 2010 4:56 am

Where did you get theese strings

#~ msgid "Unable to recognize attached device at USB port"
#~ msgid "Warning: please safely eject your USB device before removing it"
#~ msgid "Portuguese EU"
#~ msgid "Portuguese Brazil"
#~ msgid "Western Europe (ISO) "
#~ msgid "Cyrillic"
#~ msgid "Version"
#~ msgid "FOLDER"
#~ msgid "Unknown"
#~ msgid "Create directory on USB2"

I didn't find it in english and master languages of b-rad firmware.
bovirus
Global Moderator
 
Posts: 95
Joined: Thu Apr 22, 2010 11:42 pm

Re: How to mantain & test translation updated easily   

Postby marlosab » Fri Nov 12, 2010 1:28 pm

In everyday use of the wdtv, I found some words not translated, then added them to the po file. It worked.
If you want I can try to search the places where I found them.
I also found other words that I could not fix. I added them to the .po file and nothing happened. The word "of", for example.

Regards,

Marlos
Last edited by marlosab on Wed Nov 17, 2010 12:23 pm, edited 1 time in total.
marlosab
n00b
 
Posts: 18
Joined: Fri Aug 20, 2010 5:38 am

Re: How to mantain & test translation updated easily   

Postby bovirus » Fri Nov 12, 2010 11:34 pm

Many thanks for your important infos.
I used the same system to identify many not translated words in my language.
It's important that anyone found not translated words in WDTVLive menu and not present in the language report this info.

In this way we can populate the template file and the translator can update their tranlation.

Should be important also that developer report if and which strings are addede vs original WD firmware; in this way we can leave them ath the end of language file for a better maintenance.

To have the string tranalted tha are two things that have match:

- In the source code should be an external refernce to the string (with $$)
- the string (exactly with uppercase/lowercase and spaces) should be present in external language file.

Probably your problem about "of" is relative at first point.
If you are talking about "b-rad" fw please send a PVT to b-rad with all details to identify the place where "of" is present.
I did the same for other strinngs not translated and not present in language file about "WDLXTV" plug-ins.

Regarding you strings, monday morning I will update the template, and language file.
Thenm I will publish in this post the template for

- WDTVLive WD firmware 1.02.21
- WDTVLive WD firmware 1.03.43
- WDTVLive b-rad firmware 1.02.21
- WDTVLive OsychoTHC firmware 1.02.21

If you have any suggestions/request to ad or changes please don't hesitate to post.

Also if you like that you include your language in some of this build please provide them me and I rebuild teh firmware with your updates.

Many thanks for your help.

I hope that also other translator can partecipate at our discussion to align all languages.
bovirus
Global Moderator
 
Posts: 95
Joined: Thu Apr 22, 2010 11:42 pm

Re: How to mantain & test translation updated easily   

Postby marlosab » Wed Nov 17, 2010 7:40 pm

Hi, these strings are displayed in the WDTVExt Plugins option, I added them to my po file:

#~ msgid "Reload Plugins"

#~ msgid "Update Plugins"

#~ msgid "Download Plugins"

#~ msgid "Available Plugins"

#~ msgid "Rescan Plugins"

Please add them to the template file.
There are other strings in the plugins menu that could not be translated. Simply adding them to the file did not work.

Regards,

Marlos Alevy
marlosab
n00b
 
Posts: 18
Joined: Fri Aug 20, 2010 5:38 am

Re: How to mantain & test translation updated easily   

Postby bovirus » Wed Nov 17, 2010 10:26 pm

Thanks marloslab.

Please post here the list of strings that also added to language file remain in english.

Should be a start point for b-rad.cc to revised the firmware.
When teh language are rady b-rad.cc could release new b-rad fw based on WD 1.03.49.
bovirus
Global Moderator
 
Posts: 95
Joined: Thu Apr 22, 2010 11:42 pm

Next

Return to Localization

Who is online

Users browsing this forum: No registered users and 1 guest