FORUMS
Remove All Ads from XDA
Honor 7x
Win an Honor 7X!

[GUIDE] Translate/Add Language To Custom Roms..

652 posts
Thanks Meter: 971
 
Post Reply Email Thread
Translate/Add Language To Custom Roms


TOOLS NEEDED


ApkTool
Notepad++



SO LET'S START


• PREPARE APKS

1. In this example, we will modify Settings.apk and translate it to Spanish language.


2. Take Settings.apk from stock ROM that supports Spanish and rename it to Settings-ES.
If your language is not Spanish, then of course you need to take Settings.apk
from stock rom for you region which support your language.


3. Take Settings.apk from the rom which you want to translate.
You don't need to rename it. Leave it as it is.



• DECOMPILE APKS

1. Decompile both the apks using apktool.



• TRANSLATE/ADD ADDITIONAL LANGUAGE TO APK


1. After decompiling apk, look for the "values"
folder inside the decompiled APK


2. You should do the same for Settings-ES and open it in
another folder so you can view both folders side-by-side


3. You can simply take "values-es" folder from
Settings.apk and copy it to Settings\res


4. After copying folder, open Settings\res\strings and add the values
present in Settings.apk's res\values\strings.xml to "values-es" folder.


5. After that, compile your APK and now
you have a translated version of APK.


6. Do this for every app
you want to be translated.


NOTE:

Only strings.xml and arrays.xml values needs translation.
You only need to translate values inside


Code:
<string name="alert_mesage_recipients">Alert message recipients</string>
<string name="text_you_should_not_translate">Text you should translate</string>

Example:

<string name="alert_mesage_recipients">Alert message recipients</string>

You will translate "Alert message recipients"
You should NOT translate "alert_mesage_recipients"


Translated example:

<string name="alert_mesage_recipients">Alerta destinatarios del mensaje</string>



CREDITS:

CarlDeanCatabay



Please point out the faults in the guide if there is any..
The Following 15 Users Say Thank You to MuSaddiq For This Useful Post: [ View ] Gift MuSaddiq Ad-Free
 
 
1st September 2014, 03:01 AM |#2  
Junior Member
Thanks Meter: 0
 
More
Unhappy Help to add language
Hi I need help. I have buy Xiaocai X800 and the is no Polish language. I searched in web and all custom roms (I fleshed) do not suport Polish. I need to have Polish everywhere (system, aps etc) because the phone is for my kid . If that help I have original rom from Sp Flesh Tool
27th January 2015, 05:40 PM |#3  
yshalsager's Avatar
Recognized Developer
Flag Cairo
Thanks Meter: 1,384
 
Donate to Me
More
Lightbulb
Quote:
Originally Posted by alahander

Hi I need help. I have buy Xiaocai X800 and the is no Polish language. I searched in web and all custom roms (I fleshed) do not suport Polish. I need to have Polish everywhere (system, aps etc) because the phone is for my kid . If that help I have original rom from Sp Flesh Tool

Are you have Stock rom?
You can Extract it and get System/app folder
6th February 2015, 03:09 AM |#4  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by YSH ALSAGER

Are you have Stock rom?
You can Extract it and get System/app folder

Yes I have original ROM but I don't know that to change in it to insert polish language
6th February 2015, 01:12 PM |#5  
yshalsager's Avatar
Recognized Developer
Flag Cairo
Thanks Meter: 1,384
 
Donate to Me
More
Lightbulb Try this guide
Quote:
Originally Posted by alahander

Yes I have original ROM but I don't know that to change in it to insert polish language

http://forum.xda-developers.com/show....php?t=2294909
26th October 2015, 08:27 PM |#6  
ROBERT CM's Avatar
Senior Member
Flag Lima
Thanks Meter: 900
 
Donate to Me
More
how to translate all completely rom
as adding new languages in a stock natively
or is necessary translated apk by apk as in the example that is in this guide
thanks and good job..!!
The Following User Says Thank You to ROBERT CM For This Useful Post: [ View ] Gift ROBERT CM Ad-Free
27th August 2016, 01:17 PM |#7  
Junior Member
Thanks Meter: 1
 
More
hey i want to tranlate settings.apk to polish but i don't know how can I add new launguage. I created new folder i values and named values-pl but when i put my new Settings.apk I can't se Polish in my laungugage settings can you help me? hey i want to tranlate settings.apk to polish but i don't know how can I add new launguage. I created new folder i values and named values-pl but when i put my new Settings.apk I can't see Polish in my laungugage settings list can you help me?
21st February 2017, 08:04 PM |#8  
Junior Member
Thanks Meter: 4
 
More
is there any batch tool for this?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes