maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Is there a way to translate application/games? (https://talk.maemo.org/showthread.php?t=51471)

Chrome 2010-04-30 13:07

Re: Is there a way to translate application/games?
 
Quote:

Originally Posted by benny1967 (Post 634951)
OK, this one's probably easy - I think... ;)

http://repository.maemo.org/extras/p...ing_1.0.tar.gz
is the source package.

It contains a ./po directory. Within this directory, you'll find:
en_GB.po
fi_FI.po
pl_PL.po

to start with.

Leave the other files alone. The package maintainer should adapt them if necessary. I'd take the English en_GB.po as a template, translate it (I speak german, so I'd save it as de_DE.po then) and ask the package maintainer if he wants it.

Thanks Benny that did the trick :D

Can i upload the source to the autobuilder after i've finished translating? will i get a .deb package out of it?

jlu 2010-04-30 13:19

Re: Is there a way to translate application/games?
 
Quote:

Originally Posted by Chrome (Post 634985)
Thanks Benny that did the trick :D

Can i upload the source to the autobuilder after i've finished translating? will i get a .deb package out of it?

Autobuilder is not just a build tool. It is closely related to extras repositories. You can't just take someone's package and send it to autobuilder.

Chrome 2010-04-30 13:30

Re: Is there a way to translate application/games?
 
i Finished translating it to my language and added a "ar_SA.po" file into the source.

is there anyway to get it working with my language without sending it to the maintainer?

benny1967 2010-04-30 16:08

Re: Is there a way to translate application/games?
 
OK - where did my message go? Have to type again ;)

Well:
Of course you *should* send the file to the maintainer. That's the whole point of free software, right? ;)

ar_SA is arabic, isn't it? We might run into problems there... but just try.

I don't have my N900 with me ATM, so I'll have to do some guesswork, but it might be helpful.
On you N900, change to /usr/share/locale/en_GB/LC_MESSAGES (or something similar ... maybe it's in /usr/share/locale/en/LC_MESSAGES?) and try to find a file that ends in *.mo and starts with something that sounds like the name of the application. Maybe its callforwarding.mo? Don't know. Why do you need to do this? Because you want to find out the correct name for *your* file. It will not be ar_SA.po in the end.

Once you found what you were looking for, rename your file to exactly the same name and put it into
/usr/share/locale/ar/LC_MESSAGES/
or
/usr/share/locale/ar_SA/LC_MESSAGES/
depending on which is available.

Now here's the thing I don't know:
Is there an ar-locale you can choose on the N900 at all? Probly, you built a translation for it, but how far is it supported through the system? No idea. Also, I don't know if it makes a difference if you put it in the ../ar/ or ../ar_SA/ directory. What I believe is that the ../ar/-directory is safe enough... But I'm not sure.

What should happen now is:
You set your country/language settings to Arabic.
Verify that the language is really set to Arabic by typing
echo $LC_MESSAGES
in the terminal. The output shout be "ar" or "ar_SA".
If you start the application now, it will look up the current locale, go into the corresponding directory under /usr/share/locale, and fetch "its" file from there. (This is why it is important that the file has the right name. Otherwise the application wouldn't know which file to choose.)

Sounds more complicated than it is. The only thing I don't know is if you can set your locale to Arabic at all on the N900, but that you know better than I do ;)

Chrome 2010-04-30 16:52

Re: Is there a way to translate application/games?
 
Quote:

Originally Posted by benny1967 (Post 635156)
OK - where did my message go? Have to type again ;)

Well:
Of course you *should* send the file to the maintainer. That's the whole point of free software, right? ;)

ar_SA is arabic, isn't it? We might run into problems there... but just try.

I don't have my N900 with me ATM, so I'll have to do some guesswork, but it might be helpful.
On you N900, change to /usr/share/locale/en_GB/LC_MESSAGES (or something similar ... maybe it's in /usr/share/locale/en/LC_MESSAGES?) and try to find a file that ends in *.mo and starts with something that sounds like the name of the application. Maybe its callforwarding.mo? Don't know. Why do you need to do this? Because you want to find out the correct name for *your* file. It will not be ar_SA.po in the end.

Once you found what you were looking for, rename your file to exactly the same name and put it into
/usr/share/locale/ar/LC_MESSAGES/
or
/usr/share/locale/ar_SA/LC_MESSAGES/
depending on which is available.

Now here's the thing I don't know:
Is there an ar-locale you can choose on the N900 at all? Probly, you built a translation for it, but how far is it supported through the system? No idea. Also, I don't know if it makes a difference if you put it in the ../ar/ or ../ar_SA/ directory. What I believe is that the ../ar/-directory is safe enough... But I'm not sure.

What should happen now is:
You set your country/language settings to Arabic.
Verify that the language is really set to Arabic by typing
echo $LC_MESSAGES
in the terminal. The output shout be "ar" or "ar_SA".
If you start the application now, it will look up the current locale, go into the corresponding directory under /usr/share/locale, and fetch "its" file from there. (This is why it is important that the file has the right name. Otherwise the application wouldn't know which file to choose.)

Sounds more complicated than it is. The only thing I don't know is if you can set your locale to Arabic at all on the N900, but that you know better than I do ;)

Hey benny, I can't thank you enough for your help!

ar_SA is arabic yes, i added it to the system myself ( you can see the package "Arabic Localization" in devel repo.

Its _SA because all languages are like eng_gb, pl_po ... etc. AR alone simply didn't work and wasn't added to the system languages.

Its completely supported through the system, translated every .po file in usr/share/locale. i did verify and the output was ar_SA.

i thought about putting the .mo files in /usr/share/locale/ar/LC_MESSAGES/ before, but whats the point? I'm the only one who will see it translated.

Maybe you did get the point of my whole post :confused: :

I used to be part of a team in another forum that translates Symbian apps into arabic, now that i moved to Maemo (thankfully i did) I'm trying to do the same with Maemo apps, and after its translated i share it with fellow arab forum members...

I heard that i can turn the translated source into a .deb package using scratch box environment in Maemo SDK, so i'm downloading the SDK at the moment, hopefully i will learn how to make a package.

Thanks again. :)

benny1967 2010-04-30 17:14

Re: Is there a way to translate application/games?
 
so you want to distribute it as a deb, but not as part of the original application package? i'm not sure if this makes sense at all or is good practice. what will you do if the original application gets upgraded? how would you ensure that people who use the app even know that the translation exists? i'm sceptical. technically it shouldn't be too difficult though.

Chrome 2010-04-30 17:31

Re: Is there a way to translate application/games?
 
I get the following error when trying to install Maemo SDK:

Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!

Any idea whats that?

Chrome 2010-04-30 17:52

Re: Is there a way to translate application/games?
 
When i write the command:

sudo chmod +x ./maemo-sdk-install_5.0.sh

./maemo-sdk-install_5.0.sh


i get:

DISPLAY already set.
Installation environment already set.
Added debconf frontend setting in scratchbox.
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!

any solution :S


Edit: fixed it using: sysctl abi.vsyscall32=0


All times are GMT. The time now is 08:12.

vBulletin® Version 3.8.8