View Single Post
nicholes's Avatar
Posts: 1,103 | Thanked: 368 times | Joined on Oct 2010 @ india, indore
#20
Originally Posted by thp View Post
You can do this already. You have to do a custom "translation" of the UIs in question. If you want to do it the quick'n'dirty way, grab the .mo files for the app you want to edit from
Code:
/usr/share/locale/en_US/LC_MESSAGES
(where en_US is replaced with the locale you have set up - for me, it's English (United States), it might be different for you). As an example, use the hildon-fm.mo file (the file manager texts). Now, copy that file from the device to your computer, and use
Code:
msgunfmt hildon-fm.mo > hildon-fm.po
to convert it to a plaintext gettext file. You can then open and edit this using e.g. poedit. After you are done editing, save it, and use
Code:
msgfmt hildon-fm.po -o hildon-fm.mo
to compile the message catalog again. Now, copy the updated catalog to your device in the same folder as the old file (/usr/share/locale/en_US/LC_MESSAGES) and make sure the permissions are correct.

You might need root permissions for replacing the files on the device. Be careful!

Sounds are replaced by simply replacing the sound files in
Code:
/usr/share/sounds
or
Code:
/usr/share/sounds/maemo/stereo
Have fun, but if you break something, you got to keep the pieces

Update: It seems like the "gettext" package is even available in Extras. With an "apt-get install gettext", you can have msgfmt and msgunfmt directly on your N900, and do everything from the X Terminal.
i have successfully changed the sound but could not understand how change text!! i have grab the file named "hildon-fm.mo" now how and what to edit in that file??(i have installed poeditor also on my pc)what do you mean by


Code:
msgunfmt hildon-fm.mo > hildon-fm.po where is hildon-fm.po file? plz xplane