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