in a Swedish install a reinstall of 'gtk+2.0' changed some more menu entries to Swedish, so I will add gtk+2.0 to the next version of addlocale.
The following is only for those guys who want to get more than addlocale can achieve...
Another useful information to get even more applications showing in the new locale: any application-specific language file containing most of the translation for that application is located under: /usr/share/locale/
XX/LC_MESSAGES/
application.mo
The following should work for any application and any locale, let's take the example of Synaptic in Swedish:
addlocale will reinstall Synaptic to make Synaptic show up in German, French, Italian, etc. This works fine for these languages but it does not work for Swedish simply because there is no Swedish translation in the PCLOS Synaptic package, e.g., do a:
rpm -qlp /var/cache/apt/archives/synaptic-0.57.2-17pclos2007.i586.rpm | grep synaptic.mo Yet, we can still get Synaptic into Swedish. You can either
- go to a PC where you know that Synaptic is in Swedish (Ubuntu), then copy the file /usr/share/locale/sv/LC_MESSAGES/synaptic.mo from that PC to your PCLOS installation in the right place (/usr/share/locale/sv/LC_MESSAGES/), start Synaptic and it will be now be in Swedish
- go to
https://translations.launchpad.net/ubuntu/jaunty/+translations, click your locale, search for and click on the application you need, then on the new page click the button
Download, on the new page choose mo-format, and let Launchpad email the file to you (you need to be registered with launchpad for this to work). For this example, the file will be called 'sv_LC_MESSAGES_synaptic.mo', rename that to 'synaptic.mo' and copy it in the right place
- do a Google search for the required file (don't forget to include the country code): sv/LC_MESSAGES/synaptic.mo
* If you find the file directly, just copy it to the right place: /usr/share/locale/sv/LC_MESSAGES/
* If it is inside of a rpm package, then download the rpm, place the rpm into a new empty directory, and extract the files of the rpm in this directory using the command
rpm2cpio mynewrpm.rpm | cpio -idmv, then find and copy the Swedish synaptic.mo file to the right place
* if it is inside a deb-package, do the same as with the rpm and extract the deb using the command
ar xv mynewdeb.deb, then find and copy the Swedish synaptic.mo file to the right place
* if it is in a source tar ball, download and extract it into an empty directory, then find and copy the Swedish synaptic.mo file to the right place.
* if you do not find the synaptic.mo file but instead a file called 'synaptic.po' or in the extracted application directory a file 'sv.po' then this file can be converted into a required mo-file using:
msgfmt synaptic.po -o synaptic.mo, then copy the new synaptic.mo to the right place.
I checked Mandriva, Fedora, and others but it seems that only Ubuntu provides an archive of po-files for download. Then I wrote a script which converts all po-files into mo-files, resulting in a mo-files database of ~ 800MB. So, instead of downloading individual mo-files you could browse this database for missing language specific application mo-files on your system. Let me know if this could be of interest.
-pinoc