Language suport


Mar 17, 2013
65
5
20
#1
Hi,
I`m proud owner of mi2,
but there is no latvian suport.
I have a idea to start translating .
I`ve done some research to speed up translation.
there are couple ways..... with APK edit can easy add LV string , thenas use XmlContentTranslator witch has google translate suport and in this case need just to make small corections. then use jBART to recompile add files and compile.
anyway wich files are the ones that I should start and how to add Latvian language option to rom
Is it like if I choose Latvian in rom it uses general english and if there are LV string it uses LV for aplications, wich files are responsable for all the settings ?
or take EN translation and rename it to LV and bit by bit translate and test


Thanx
 

ingbrzy

Xiaomi.eu Multilang leader
Staff member
Feb 11, 2012
8,612
19,294
322
#2
Hi,
I`m proud owner of mi2,
but there is no latvian suport.
I have a idea to start translating .
I`ve done some research to speed up translation.
there are couple ways..... with APK edit can easy add LV string , thenas use XmlContentTranslator witch has google translate suport and in this case need just to make small corections. then use jBART to recompile add files and compile.
anyway wich files are the ones that I should start and how to add Latvian language option to rom
Is it like if I choose Latvian in rom it uses general english and if there are LV string it uses LV for aplications, wich files are responsable for all the settings ?
or take EN translation and rename it to LV and bit by bit translate and test


Thanx
Here is our multilang version http://miuiandroid.com/community/threads/miui-v5-multi-lang-3-3-15.19847/

If you want start to translate, follow our translation guide..
 
Mar 17, 2013
65
5
20
#3
thanx,
I got it !
but if its not secret how to add Latvian language choice in rom?
I would like to to some testing and its stupid every time install language enabler app to get latvian. and it also swiches phone other apps that has lv strings, like google programs.
is it like if I change in build.prop file

ro.product.locale.language=lv
ro.product.locale.region=lv

will have it as default
thanx
 

ingbrzy

Xiaomi.eu Multilang leader
Staff member
Feb 11, 2012
8,612
19,294
322
#4
thanx,
I got it !
but if its not secret how to add Latvian language choice in rom?
I would like to to some testing and its stupid every time install language enabler app to get latvian. and it also swiches phone other apps that has lv strings, like google programs.
is it like if I change in build.prop file

ro.product.locale.language=lv
ro.product.locale.region=lv

will have it as default
thanx
Use Morelocale2 app from Play store...
 

Finn

Members
Nov 15, 2010
303
6
40
#5
thanx,
I got it !
but if its not secret how to add Latvian language choice in rom?
I would like to to some testing and its stupid every time install language enabler app to get latvian. and it also swiches phone other apps that has lv strings, like google programs.
is it like if I change in build.prop file

ro.product.locale.language=lv
ro.product.locale.region=lv

will have it as default
thanx
If inside the framework-res/res/ exists a folder called values-lv-rLV (or whatever is the 2 letter code for Latvian) then you ll be able to see Latvian option under settings

On the road using my HOX
 
Mar 17, 2013
65
5
20
#7
OK
I tested
If I add in miui framework rLV I get lattvian in menu and like it says in manual... adding string files from JB wich is translated it takes lines.And missing lines adds from source.
So roughly transalation can be added from JB and only have to translate missind lines
 
Mar 17, 2013
65
5
20
#8
Please, in wich apk livs Messaging strings and where is hiding Phones "Keypad" text
Thanx
I`m slowly with some help translating to latvian. not a big market, but I love miui and dont know haw I could use stock
 
Mar 17, 2013
65
5
20
#10
Hi,
I got problem.
when in messaging I choose new message and want select recipient in right top corner I get this
In wich file have I made mistake ?


java.util.UnknownFormatConversionException: Conversion: D
at java.util.Formatter$FormatToken.unknownFormatConversionException(Formatter.java:1397)
at java.util.Formatter$FormatToken.checkFlags(Formatter.java:1334)
at java.util.Formatter.transform(Formatter.java:1440)
at java.util.Formatter.doFormat(Formatter.java:1079)
at java.util.Formatter.format(Formatter.java:1040)
at java.util.Formatter.format(Formatter.java:1009)
at java.lang.String.format(String.java:1998)
at android.content.res.Resources.getString(Resources.java:361)
at android.app.Fragment.getString(Fragment.java:779)
at com.android.contacts.list.ContactEntryListFragment.a(ContactEntryListFragment.java:552)
at com.android.contacts.list.PhoneNumberPickerFragment.a(PhoneNumberPickerFragment.java:237)
at com.android.contacts.list.PhoneNumberPickerFragment.onLoadFinished(PhoneNumberPickerFragment.java:40)
at android.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:482)
at android.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManager.java:450)
at android.content.Loader.deliverResult(Loader.java:143)
at android.content.CursorLoader.deliverResult(CursorLoader.java:113)
at android.content.CursorLoader.deliverResult(CursorLoader.java:43)
at android.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:254)
at android.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:91)
at android.os.AsyncTask.finish(AsyncTask.java:631)
at android.os.AsyncTask.access$600(AsyncTask.java:177)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4797)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:804)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:571)
at dalvik.system.NativeStart.main(Native Method)
 

ingbrzy

Xiaomi.eu Multilang leader
Staff member
Feb 11, 2012
8,612
19,294
322
#11
Hi,
I got problem.
when in messaging I choose new message and want select recipient in right top corner I get this
In wich file have I made mistake ?


java.util.UnknownFormatConversionException: Conversion: D
at java.util.Formatter$FormatToken.unknownFormatConversionException(Formatter.java:1397)
at java.util.Formatter$FormatToken.checkFlags(Formatter.java:1334)
at java.util.Formatter.transform(Formatter.java:1440)
at java.util.Formatter.doFormat(Formatter.java:1079)
at java.util.Formatter.format(Formatter.java:1040)
at java.util.Formatter.format(Formatter.java:1009)
at java.lang.String.format(String.java:1998)
at android.content.res.Resources.getString(Resources.java:361)
at android.app.Fragment.getString(Fragment.java:779)
at com.android.contacts.list.ContactEntryListFragment.a(ContactEntryListFragment.java:552)
at com.android.contacts.list.PhoneNumberPickerFragment.a(PhoneNumberPickerFragment.java:237)
at com.android.contacts.list.PhoneNumberPickerFragment.onLoadFinished(PhoneNumberPickerFragment.java:40)
at android.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:482)
at android.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManager.java:450)
at android.content.Loader.deliverResult(Loader.java:143)
at android.content.CursorLoader.deliverResult(CursorLoader.java:113)
at android.content.CursorLoader.deliverResult(CursorLoader.java:43)
at android.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:254)
at android.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:91)
at android.os.AsyncTask.finish(AsyncTask.java:631)
at android.os.AsyncTask.access$600(AsyncTask.java:177)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4797)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:804)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:571)
at dalvik.system.NativeStart.main(Native Method)
Check Contacts.apk or MMS.apk strings.xml... You have there invalid variable...
 
Mar 17, 2013
65
5
20
#12
invalid variable...
can not figur out wich
whot can be wrong
messaging and phone work with translated files just thet link worryes me. can add manualy and pops up contact, but icon with person dose not link to contacts

and ewery translation language has differernt content os string files ?!?!?!
 

ingbrzy

Xiaomi.eu Multilang leader
Staff member
Feb 11, 2012
8,612
19,294
322
#13