maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Request] modding app for n900.Make n900 absolutely different from any other device! (https://talk.maemo.org/showthread.php?t=69461)

thp 2011-02-07 13:19

Re: [Request] modding app for n900.Make n900 absolutely different from any other device!
 
Quote:

Originally Posted by nicholes (Post 938101)
if i break something (lost some .po or mo files) do i have to flash n900 or just restoring the device can bring it back?(from backup)

If you know which package the file belongs, you can just "apt-get install --reinstall <packagename>" the package, and it should restore the translation files (I think). It won't hurt to use the following command to create a backup of the files, though:
Code:

tar czvf /home/user/MyDocs/locale-backup.tar.gz /usr/share/locale
Of course, if you accidentally break something else, you might have to reflash, so backing up everything is always a good idea! ;) If .mo files are missing, your applications will still work, they will just have very weird texts in them.

thp 2011-02-07 13:35

Re: [Request] modding app for n900.Make n900 absolutely different from any other device!
 
I've created a small package for the scripts - you can get the package here: stringmodding-scripts_0.0.2_all.deb

stringmodding-search and stringmodding-replace is what you want to use. Call them without parameters to see the usage information. The package "stringmodding-scripts" has been uploaded to Extras-Devel.

You still need to copy the output file (saved in the current directory) into /usr/share/locale - for this you need root rights.

hathoda 2011-02-07 15:43

Re: [Request] modding app for n900.Make n900 absolutely different from any other device!
 
1 Attachment(s)
Quote:

Originally Posted by thp (Post 938117)
I've created a small package for the scripts - you can get the package here: stringmodding-scripts_0.0.2_all.deb

stringmodding-search and stringmodding-replace is what you want to use. Call them without parameters to see the usage information. The package "stringmodding-scripts" has been uploaded to Extras-Devel.

You still need to copy the output file (saved in the current directory) into /usr/share/locale - for this you need root rights.

i am a noob how ever i have chenged my sound file... thanks....

but looks like it is hard to change text for a person like me,there should be some app for this...and ya....

i could not install "stringmodding-scripts" (if it is opreted from xterminal i think it will be be almost imposible for me to use it)

Boemien 2011-02-07 17:20

Re: [Request] modding app for n900.Make n900 absolutely different from any other device!
 
Quote:

Originally Posted by hathoda (Post 938193)

i could not install "stringmodding-scripts" (if it is opreted from xterminal i think it will be be almost imposible for me to use it)

Try to copy the file from your computer to the root of the N900.
Then open the terminal and type this:

Code:

sudo gainroot
cd MyDocs
dpkg --force-depends-i stringmodding-scripts_0.0.2_all.deb

I hope it will help!!! :D

nicholes 2011-02-07 17:50

Re: [Request] modding app for n900.Make n900 absolutely different from any other device!
 
is anyone interested in making app for this feature???

Weedalot 2011-02-07 21:21

Re: [Request] modding app for n900.Make n900 absolutely different from any other device!
 
you can use filebox and just browse to the directory and use edit the file yourselves. either mc (midnight commander) or leafpad and do what thp said (dont forget to backup original files first)

kingoddball 2011-02-07 21:43

Re: [Request] modding app for n900.Make n900 absolutely different from any other device!
 
Does anyone have a pack of icons for application menu? (the 6 dots/2dots/squares)

I used to have bunnie rabbits (tux in rabbit costume).
I've seen cool one, but would like an entire pack! :D

nicholes 2011-02-08 03:16

Re: [Request] modding app for n900.Make n900 absolutely different from any other device!
 
Quote:

Originally Posted by thp (Post 938078)
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 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

somedude 2011-02-08 04:16

Re: [Request] modding app for n900.Make n900 absolutely different from any other device!
 
app similar to winterboard for iphone would be great, to include all the mods from thread "epic maemo mod thread”

nicholes 2011-02-08 15:08

Re: [Request] modding app for n900.Make n900 absolutely different from any other device!
 
Quote:

Originally Posted by thp (Post 938078)
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


All times are GMT. The time now is 10:21.

vBulletin® Version 3.8.8