WanHu's rom Froyo Translations Making

fjfalcon

Retired Recognized Developer
Jan 19, 2011
844
1,263
0
Schelkovo
Hi all.
So, i'm currently translating WanHu's rom to russian.
Here some problems that i get:

Settings.apk - signature failed, added translations with 7za -mx0
Contacts.apk, Phone.apk, TelephonyProvider - right now don't translated - translations get phone module to stop working.

For language settings:

in build.prop:
Code:
ro.product.locale.language=ru
ro.product.locale.region=RU
To change locale from terminal/add shell:
Code:
setprop persist.sys.language ru;
setprop persist.sys.country RU
 

fjfalcon

Retired Recognized Developer
Jan 19, 2011
844
1,263
0
Schelkovo
Translating kitchen

Hi all. I write that kit for translate apk and framework-res.apk to russian language.
You can use it for your own lang.
What you need to do:

Kit consist from folders:

apk - it's point where all apk's on foreigh language are kept.
apk-trans - it's point where kept language files with suck path: ApkName/res/values-ru(where ru - your lang)
frame-trans - it's point where kept translation to framework-res.apk.
framework - it's point where kept original framework-res.apk
newpatch - skel for new patch.
signed - points where "signed" apk are holds
tools - tools..
unsigned - points where "unsigned" apk not holds
kitchen.sh - main file.

How to use it:
Move your apps to apk folder.
Move your apps translations to apk-trans
Move your framework-res.apk to framework
move framework-res tranlation to frame-trans
Now good luck and type:
sh kitchen.sh
If there will be errors - then something goes wrong with:
a) tools
B) your translations

But errors doesn't mean something goes wrong(sometimes it is.. but...)
Good luck for everyone with that kit.
Hope it helps someone.

P.S. RusMod and RusMod 2.0(WanHu rom) are translated with that kitchen for 100% on russian.
 

hellmonger

Senior Member
Oct 9, 2010
778
263
0
Laval
Translating kitchen

Hi all. I write that kit for translate apk and framework-res.apk to russian language.
You can use it for your own lang.
What you need to do:

Kit consist from folders:

apk - it's point where all apk's on foreigh language are kept.
apk-trans - it's point where kept language files with suck path: ApkName/res/values-ru(where ru - your lang)
frame-trans - it's point where kept translation to framework-res.apk.
framework - it's point where kept original framework-res.apk
newpatch - skel for new patch.
signed - points where "signed" apk are holds
tools - tools..
unsigned - points where "unsigned" apk not holds
kitchen.sh - main file.

How to use it:
Move your apps to apk folder.
Move your apps translations to apk-trans
Move your framework-res.apk to framework
move framework-res tranlation to frame-trans
Now good luck and type:
sh kitchen.sh
If there will be errors - then something goes wrong with:
a) tools
B) your translations

But errors doesn't mean something goes wrong(sometimes it is.. but...)
Good luck for everyone with that kit.
Hope it helps someone.

P.S. RusMod and RusMod 2.0(WanHu rom) are translated with that kitchen for 100% on russian.
Very nice Fj, thanx for the kit :)
 

hellmonger

Senior Member
Oct 9, 2010
778
263
0
Laval
Translating kitchen

Hi all. I write that kit for translate apk and framework-res.apk to russian language.
You can use it for your own lang.
What you need to do:

Kit consist from folders:

apk - it's point where all apk's on foreigh language are kept.
apk-trans - it's point where kept language files with suck path: ApkName/res/values-ru(where ru - your lang)
frame-trans - it's point where kept translation to framework-res.apk.
framework - it's point where kept original framework-res.apk
newpatch - skel for new patch.
signed - points where "signed" apk are holds
tools - tools..
unsigned - points where "unsigned" apk not holds
kitchen.sh - main file.

How to use it:
Move your apps to apk folder.
Move your apps translations to apk-trans
Move your framework-res.apk to framework
move framework-res tranlation to frame-trans
Now good luck and type:
sh kitchen.sh
If there will be errors - then something goes wrong with:
a) tools
B) your translations

But errors doesn't mean something goes wrong(sometimes it is.. but...)
Good luck for everyone with that kit.
Hope it helps someone.

P.S. RusMod and RusMod 2.0(WanHu rom) are translated with that kitchen for 100% on russian.
What should the translation files look like xml right?
 

mediaon

Senior Member
Feb 27, 2011
109
40
0
Ruili
Last edited:

fjfalcon

Retired Recognized Developer
Jan 19, 2011
844
1,263
0
Schelkovo
Yes, you can translate it.
Ofcouse you will need to set Zawgyi fonts.
But that won't be a problem for translaiting.
But, this kitchen don't catch errors, it created to build patch.zip with all apks, that could be compiled.
So first - try to compile every app for yourself - if there will be no errors - that
you may create patch, after that - make nandroid - and here you rom with Myanmar language
 

hellmonger

Senior Member
Oct 9, 2010
778
263
0
Laval
About 1/2 way through Fr and Es....

http://www.megaupload.com/?d=GB61CDAV
Since your the going to do it your self type :p Thanks btw,

Will the patch add the lang or replace, i would like to eventually put out a complete ROM nandroid With Kor Ru En Fr Es Cn language toguether is that possible in one patch?
I think i know what to do...

But any way you da man!
 
Last edited:

fjfalcon

Retired Recognized Developer
Jan 19, 2011
844
1,263
0
Schelkovo
Will see, i may try to add all languages..
But it won't be selectable in settings.apk.
You will need or use commands from first post or use app like morelocale to change lanuage.
 
  • Like
Reactions: hellmonger

fjfalcon

Retired Recognized Developer
Jan 19, 2011
844
1,263
0
Schelkovo
updated fjKit with beta of apktool, cause get some errors with some apks.
http://xt720.ru/DexTrans - Translation files from Dexter 1.3.
Will use them for translating Wanhu.

>> you tried adding to build prop i'm sure i don't see what would be missing... yet

build.prop works only for one language.
So we should redist nandroids for every lang.
Or give people patch..
Or use morelocale2 - better...

To add lang as system locale(to get it in settings.apk) we should recompile framework from source...
 
Last edited:

gommers1978

Senior Member
Oct 26, 2006
640
252
0
updated fjKit with beta of apktool, cause get some errors with some apks.
http://xt720.ru/DexTrans - Translation files from Dexter 1.3.
Will use them for translating Wanhu.

>> you tried adding to build prop i'm sure i don't see what would be missing... yet

build.prop works only for one language.
So we should redist nandroids for every lang.
Or give people patch..
Or use morelocale2 - better...

To add lang as system locale(to get it in settings.apk) we should recompile framework from source...
Working on translations French, German and Dutch all choosable from the language menu. If you provide russian language files i can compile them 2 in the framework-res for you 2. Tested and working framework and settings.apk only had 2 remove Khals blue theme icons or else you get compilation errors have replaced them with the originals.
 
  • Like
Reactions: fjfalcon

fjfalcon

Retired Recognized Developer
Jan 19, 2011
844
1,263
0
Schelkovo
http://www.xt720.ru/Files/Translations/
That about russian.

Working on translations French, German and Dutch all choosable from the language menu. If you provide russian language files i can compile them 2 in the framework-res for you 2. Tested and working framework and settings.apk only had 2 remove Khals blue theme icons or else you get compilation errors have replaced them with the originals.
For WanHu rom there only Korean, English and Chinise... i think
 
Last edited:

gommers1978

Senior Member
Oct 26, 2006
640
252
0
Will see, i may try to add all languages..
But it won't be selectable in settings.apk.
You will need or use commands from first post or use app like morelocale to change lanuage.

you tried adding to build prop i'm sure i don't see what would be missing... yet
I will edit framework-res.apk then you can choose language from settings menu.
Allready tested and working. Will post framework-res.apk for you soon with languages added so you can test.
 
  • Like
Reactions: fjfalcon

fjfalcon

Retired Recognized Developer
Jan 19, 2011
844
1,263
0
Schelkovo
Ok, what have you changed in framework-res that languages becomes visible?
Cause i already study much time about it.
values-ru doesn't adds language to settings.apk.(also in framework-res)