Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

Download ROM source and add Language


  • Please log in to reply
2 replies to this topic

#1 aitorTheRed

aitorTheRed
  • Members
  • 5 posts
  • LocationMadrid, Spain
  • Country:es
  • Device Model:Geeksphone ONE
  • MOD Version:CM 7.0
  • Recovery Image:ClockworkMod

Posted 26 March 2011 - 10:59 AM

Hello to everyone:
I was hoping if you can help me. I was hopping to add other languages to the CM Roms of geeksphone ONE, and the future ZERO, but up to know, I have never modify a ROM :) Can you help me here? I'm searching on google, but all I found is change locale from the settings, and I want to add a new locale to the rom (I guess, download source rom, add a locale, and rebuild).
Can anyone share some links to where I might start looking for a kind of tutorial? I'm looking also on xda-developers, but up to now, I found nothing :(
Thanks in advance!

#2 aitorTheRed

aitorTheRed
  • Members
  • 5 posts
  • LocationMadrid, Spain
  • Country:es
  • Device Model:Geeksphone ONE
  • MOD Version:CM 7.0
  • Recovery Image:ClockworkMod

Posted 26 March 2011 - 12:48 PM

View PostaitorTheRed, on 26 March 2011 - 10:59 AM, said:

Hello to everyone:
I was hoping if you can help me. I was hopping to add other languages to the CM Roms of geeksphone ONE, and the future ZERO, but up to know, I have never modify a ROM :) Can you help me here? I'm searching on google, but all I found is change locale from the settings, and I want to add a new locale to the rom (I guess, download source rom, add a locale, and rebuild).
Can anyone share some links to where I might start looking for a kind of tutorial? I'm looking also on xda-developers, but up to now, I found nothing :(
Thanks in advance!
Hi to everyone :)
I have found the source for the ONE:
https://github.com/r...geeksphone_zero
https://github.com/C...geeksphone_zero

So, if anyone could point me as to where are the locales in order to modify them an add some more languages, I will gladly appreciate it :) Thanks in advance!

#3 ciwrl

ciwrl

    Whose bright idea was it to put me in charge?

  • Administrators
  • 1605 posts
  • Twitter:ciwrl
  • Country:us
  • Device Model:DS|N1|G2|SGS|SGN|N4
  • MOD Version:[Latest]
  • Recovery Image:ClockworkMod

Posted 30 March 2011 - 02:48 AM

Adding a language is not device specific (meaning your two links are incorrect/looking in the wrong spot).

Locales are controlled by arrays.xml and strings.xml in framework and individual higher level packages (example: cmparts.apk)

Using CMparts.apk as an example once more: https://github.com/C.../tree/froyo/res

In that folder, you will note 'values-xy', where xy = the locale specified. 'xy' follows ISO standards, http://en.wikipedia....ISO_639-1_codes

If your language exists (I will use es/Spanish for this) then, https://github.com/C...-es/strings.xml is the file you would specifically alter.

If your language does NOT already exist, copy the US language folder 'values-en', rename it according to ISO standards to 'values-xy' where xy = your country/language, then proceed to translate the strings.xml and necessary components of arrays.xml

You would continue this process (theoretically) for every strings.xml in the CM source.

Once done, submissions should go to gerrit http://wiki.cyanogen...e=Howto:_Gerrit