Page 1 of 1

Urdu translation testing

Posted: 19 Feb 2007 06:24
by huda
Hi,
I received a .po file for Urdu a few days ago from the vlc-devel list, but I cannot figure out how to test it.

I'm using poEdit on Windows XP.

This is what I've done:

I saved the .po file and poEdit generated a .mo file. I renamed it to vlc.mo, made a folder named 'ur' in VideoLAN\VLC\locale where I have VLC player 0.8.6a installed and tried to see if Urdu had come up as an option in Settings->Preferences->Interface->Language, and it hadn't.

My questions are:

Am I testing it with the wrong version?

Do I need to compile the source along with the .mo file to enable VLC player to recognize my language? If yes, then do I need to rebuild it every time I update the .po and .mo file? If I need to rebuild it every time then I should figure out how to do it myself, I found instructions here: http://wiki.videolan.org/Win32CompileCygwin

What is the recommended way to do this? I would like to have a VLC installer which has Urdu as a language option when the translations are complete. I tried to look for localization guidelines but this was all I could find: http://www.videolan.org/developers/i18n/vlc-howto.html

I posted this to the list as well but have not received a reply yet, can someone please let me know how I can use an .mo file.

Huda.

Posted: 15 May 2007 09:50
by alanro
As I know, you need update the .po and .mo file, you can rebuild the .mo files, then update.

good luck.

Posted: 23 May 2007 21:22
by ipkiss
The list of available translations is harcoded in a sourcce file (src/libvlc-module.c), so to test your translation you need to change this file and rebuild VLC.

If i were you, I wouldn't try dealing with the installer: generating an installer is not easy, and you don't need it to change the language (just change it in the preferences, and restart VLC). After you have sent your translations (and if there is a "reasonable amount" of translated strings), developers will take care of adding Urdu in the official builds, including the installer.

Posted: 25 May 2007 20:04
by xtophe
The easiest is that you send me your translations (or put it somewhere online) so i can put it in svn and so the nightly build (nightlies.videolan.org) will have your translations

Posted: 25 May 2007 22:34
by secarica
so to test your translation you need to change this file and rebuild VLC.
Just for testing purpose, you can build the .mo file with poEdit (for example) and if your language is not (yet) listed in the program preferences you can replace the .mo file of an unused language, then switch to that language.

Cristi