How to localize a wordpress installation on ubuntu?

Asked by Rolf Leggewie

I wonder what is the proper way to localize wordpress for ubuntu or debian. I'd like one wordpress to be in German and another one in Japanese. http://codex.wordpress.org/WordPress_in_Your_Language has some information but that is basically for unpackaged, "straight from the tar" wordpress.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu wordpress Edit question
Assignee:
No assignee Edit question
Solved by:
Rolf Leggewie
Solved:
Last query:
Last reply:
Revision history for this message
Vojtěch Trefný (vojtech.trefny) said :
#1
Revision history for this message
Rolf Leggewie (r0lf) said :
#2

Vojtěch, thank you for your answer. I am not looking for a place to do translation for wordpress. I am more concerned about installing unpackaged software (the localization .mo files) with the packaged version of wordpress from ubuntu.

Revision history for this message
Bhavani Shankar (bhavi) said :
#3

Hello Rolf

go to https://translations.launchpad.net/wordpress/ and click on download translations and click on th format (MO Format) and click on request download.. A mail will be sent to your address from where you can download the MO Format files..

Hope it helps

Bhavani Shankar.

Revision history for this message
Rolf Leggewie (r0lf) said :
#4

Hi Bhavani,

thank you for your answer.

I guess I must have worded my question too ambiguously. I am not looking for a one-off solution (actually, I did that successfully), but a sustainable solution. My understanding is now that the localization files would probably need to be packaged (see the related bug I have filed on this in the meantime).

I have also been wondering why upstream wordpress does not include the localization files in the tar balls they release (no answer to that in #wordpress) which be the best option as far as I can see. And some other thing that struck me as odd is http://translations.launchpad.net/wordpress still being for version 2.1. I also fail to see the relation of translations.launchpad.net/wordpress to http://translations.wordpress.com. It looks a lot like double effort (Japanese in LP is 100% untranslated, basically, even in 2.1). Well, I guess these questions are not really so important, but fixing bug 195021 would be nice.

For references sake, the one-off solution for Japanese for example is "sudo mkdir -p /usr/share/wordpress/wp-content/languages; cd /usr/share/wordpress/wp-content/languages;wget http://svn.automattic.com/wordpress-i18n/ja/trunk/messages/ja.mo" and adding a line "define ('WPLANG', 'ja');" to the relevant blog config file /etc/wordpress/config-$blogurl.php. For other languages, replace "ja" with "fr_FR" or "de_DE", I guess.

I leave this question open so somebody can either confirm or refute that getting the localization stuff into a package is the best and most sustainable route.

Revision history for this message
Gabriel Ruiz (anakron) said :
#5

For this moment you cannot get it like a package, But you can tell it in Bug Report and tell them that it coul be in Wishlist, then Ubuntu People will think about it and could package it. For now, you must do it manually if you wanna get your language, sorry. The package could contain all languages that appear in Worpress Homepage and a plugin could enable a language that you wanna use.

Hurry! tell it to Ubuntu Bug Report People and it could be packaged.

See you

Revision history for this message
Rolf Leggewie (r0lf) said :
#6

bug 195021 was fixed in 2.8.3-2ubuntu1. Ever since then the localization files are available as a package. The .mo files are packaged separately since lucid, reducing installation size significantly for people who are not interested in multi-language support.