View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#9
Originally Posted by nicholes View Post
i have got an idea today from this app if any one of you can make an app by which we can edit as many text editing as possible on n900.for example we can change text for "one application successfully installed" or "Bluetooth set is on" or "backup complete" etc. i wonder if we can change text of our own choice

also if we could add custom sound to our device like "when i click" or "when app is installed" or "when backup is complete" or "when i unlock the device" or any warning sound etc. i wonder if we can change sound of our own choice

what do you think???
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.

Last edited by thp; 2011-02-07 at 13:01.
 

The Following 10 Users Say Thank You to thp For This Useful Post: