Hello everybody,
I've a problem in localizing my android app.
I have already translated strings.xml and the correct resource folder. For example values-mk for macedonian language support.
How can the user switch to the macedonian language if the android os on the device does not support the language?
Is it possible to add languages to an app which are not supported by the device?
br and thanks in advance
you can force localize in your app
Add android:configChanges="locale" to your activity manifest file
Code:
<activity android:name=".Main" android:configChanges="locale" android:label="@string/app_name" />
and use this code in onCreate (this will force your app to load values-mk strings-mk)
Code:
String languageToLoad = "mk";
Locale locale = new Locale(languageToLoad);
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
getBaseContext().getResources().updateConfiguration(config,
getBaseContext().getResources().getDisplayMetrics());
if you want multilanguage app i guess you could save a string e.g "en" and "mk" using Sharedpreferences, read it and set the locale accordingly onResume
You can set the emulator to any locale, even a made up one. Launch the emulator and launch the Custom Locale app that's built into it. To add a new locale that's not listed, select Add New Locale. To set a listed locale as the current locale, long-press it and choose Apply.
This app is a lot more convenient than using the settings menu in the emulator because it's always in English, and always easy to find.
Thanks for your answers!
I've now implemented the solution from nemoc. The only problem was the realtime language switching. Because the already loaded menues and activities where cached and so the language did'nt change. As solution to this problem I called the finish() method on all loaded activities and restarted the application.
That's the only way how the language selection and switching is possible in my app.
br
Roland
Related
If you have hw6915 localizet by mui files you can tray changing language by editing system registry.
1. Instal on your device some registry editor.
2. Make backup of whole registry before you change enytching .
3. Go to HKEY_LOCAL_MACHINE\MUI
4. Change dword of "Enable" from "1" to "0"
5. Soft reset your device.
I need help to develop this method by changing names of system folders (Start menu, Programs, My Documents etc.) and Start menu items to englisch by editing registry. It could by very easy method to change language to englisch witchout flasching roms.
What you lot think?
If you have hw6915 localizet by mui files you can tray changing language by editing system registry.
1. Instal on your device some registry editor.
2. Make backup of whole registry before you change enytching .
3. Go to HKEY_LOCAL_MACHINE\MUI
4. Change dword of "Enable" from "1" to "0"
5. Soft reset your device.
I need help to develop this method by changing names of system folders (Start menu, Programs, My Documents etc.) and Start menu items to englisch by editing registry. It could by very easy method to change language to englisch witchout flasching roms. It would be very helpful if somebody will upload copy of clean englisch registry (after hard reset).
What you lot think?
Regardless of your rom language you can always take English fonts from your home computer and dreg them into your pocket at windows/font dir
You can also assign them to the OS menus using 3prt app like sk-tools spb-tips& tricks … (any tweak app )
You can also assign manually if you lookup at this site for the specific location
I recommend using the trial period of any tweak app
Please backup your device before any attempts
enjoy
Im veryinterested in changing the languege of my hw6945, to spanish. And this method sounds way safer then a rom flash wich has being imposible for me, anytips?
Ha Ha
Solution not work.Start menu not competed.
MobilMan
TRY TO USE THE FONT +RASCO KEYBORD R
OR TRY THIS AT YOUR RISK [NOT RECOMENDED BUT AN OPTION]
http://h20000.www2.hp.com/bizsuppor...Id=1822499&swEnvOID=2067&taskId=135&swLang=35
EREZYAD said:
Regardless of your rom language you can always take English fonts from your home computer and dreg them into your pocket at windows/font dir
You can also assign them to the OS menus using 3prt app like sk-tools spb-tips& tricks … (any tweak app )
You can also assign manually if you lookup at this site for the specific location
I recommend using the trial period of any tweak app
Please backup your device before any attempts
enjoy
Click to expand...
Click to collapse
could u tell me how to tweak the registry to enable the GPS configuration for my device HP6915????
I've seen that many apps comes with AppName.0409.mui installed in the same folder of the app, usually \Windows.
For who don't have an english OS, usually miss app dialog box string.
I've seen that if u want to have back dialog box string u have to make a copy of AppName.0409.mui and reneme it into AppName.xxxx.mui where xxxx is your contry code (for me, italian, 0410).
But how to have dialog box string in native language?
I've tried with a recent app extracted from touch dual (Action Screen) which have a mui file with only one string. I've used Resource Hack, changed the string, compiled and saved. But... nothing.
In second instance i've changed not only the string but also the language code, compiled, saved and...
So can someone who is skilled make a tutorial for changing app strings?
Sorry for my bad english and thanks in advance for reply.
P.S.: i've read this http://forum.xda-developers.com/showthread.php?t=311078 and also this http://forum.xda-developers.com/showthread.php?t=307968 but talking about rom, not apps...
I do it like this:
1. Copy the program's executable file to pc.
2. Open the exe with Resource Tuner. I delete all other folders exept Menu, Dialog and String(in these are all the strings for translation) and save the file.
3. Then I open it with resource hacker and push action -> save all recources
4. I open the generated rc file with notepad and replace all the:
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US(or maybe this is another language)
lines to:
LANGUAGE LANG_GREEK, 0x1 (this is for greek language)
and save the file.
5. After that I open the rc file again, but now with resource builder and I push tools -> Create resource-only dll and I save the file as name_of_file.exe.0408.mui(for greek).
6. Finally I open this file with resource hacker and I translate it
I used to do it in this way cause I have all these three progrs(resource hacker, resource tuner and resource builder)
Maybe there are other progs or ways but this works fine for me until now. If someone knows easier and faster methods I also want to know.
First, thanks for reply.
I was trying to make an easier thing... but maybe i can try this way for my scope.
I've installed HTC Action Screen, you can found it at: http://forum.xda-developers.com/showthread.php?t=336587
It's a cool launcher, nothing more. After installation i can find in \Windows folder two files:
HTCActionScreen.exe
HTCActionScreen.exe.0409.mui
Well in the mui there's only one string that is the top of the launcher screen, that i don't see. I've renamed 0409 into 0410 and now i see the string, the original one in english (some like that "Dial phone number or select a task below:").
I'd like to change in italian, so, i've used resource hacker ONLY for translate the string (as in your 6.) but... i don't see anything once again!!!
Any suggestion?
Have i to start from exe as in your reply?
Thanks again.
This is happens because you cannot change the LANGUAGE line with resource hacker. For this I save the resources in a rc file and adit it with notepad. I had similar problems with some muis that cannot translated before use the method that I described above. You only need resource builder to recompile the rc file to mui again. I don't now in what must change the Language line for Italian, but I think you can find out if you open an italian mui file.
So, i describe my step:
1) open HTCActionScreen.exe.0409.mui with Resource Hacker and and push action -> save all recources
2) open the .rc just created with notepad and changed LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US into LANGUAGE LANG_ITALIAN, SUBLANG_ITALIAN
3) open this .rc with resource builder and push tools -> Create resource-only dll and I save the file as HTCActionScreen.exe.0410.mui
4) open this file with resource hacker and translate it
it doesn't work
Where's my fault?
Maybe have i to sign the file?
Hello,
I live in belgium and whe use AZERTY.
I wanna use the dutch dictionary with AZERTY.
how can i change this?
Is the problem that the language simply isn't available in the keyboard menu? or does it change to qwerty when you select dutch..?
if the language simply isn't available try this in the registry:
go to HKEY_LOCAL_MACHINE/Software/Tegic/eT9
click AvailableLanguages and add 0113 to the end of the value like:
0109,010C,0107,0110,010A,0113
then go to
HKEY_LOCAL_MACHINE/Software/Tegic/eT9/LdbFiles
and add a new String value named 0113 with a value of NLlsUN_xt9.ldb
then go to
HKEY_LOCAL_MACHINE\Software\Tegic\eT9\Sip\LanguageKeyBoardIDMapping
and add a new String value named 0113 with a value of 0913
(look if the excisting values also have 09 as the first two digits, if they have something else, use those two.. I'm not sure but the value could be different on a azerty device..)
reboot your device...
No registry entry for xt9 language
I live in SE-Asia and have the HD2 with rom 1.48.707.2 (71294) WWE. There are no registry entries for the xt9 languages (HKEY_LOCAL_MACHINE\Software\Tegic\eT9\) and none of the programs with respect to xt9 are found under the windows directory (eT9MyWords.exe or the language files). How can I get the Dutch language for the xt9?
When I select Dutch in the menu, the keyboard switches to qwerty. Is it possible to change this into azerty (like when you select French)?
I have a Dutch Rom on my phone.
Simple instructions:
Copy DroidSansFallBack.ttf to the \windows folder
Edit the registry
Reboot
[HKLM/Software/Microsoft/FontLink/SystemLink]
Tahoma = \windows\DroidSansFallback.ttf,Droid Sans Fallback
[HKLM\System\GDI\SYSFNT]
Nm =Tahoma (this is a string)
[HKLM/System/GDI]
FontLinkMethods = 1 (this is a dword)
Then it's clean and done, no need for ****ty software, working everywhere.
I use it for Korean and Japanese, works for all the languages supported by Android in standard.
The font is small, quite complete and nice.
Link to the font: http://uploaded.to/file/7i321y
I spent 2 days to get it working properly so I wanted to share
Is there a list of supported languages somewhere?
Don't know, I know that at least European languages and CJK are working.
Hi all,
When I open a site which is in my regional language (Indian language), I could only see squares in it.
Do I have to install Unicode fonts in to my Herald?
I have Aserg's ROM and tried to open http://kn.wikipedia.org in the IE.
Just now, I referred to the following tutorial given in wikipedia. And now I can see all the fonts in my regional language.
I can't read anything.
I can't even read the menu items. Nor the Registry keys. Nothing. I don't know what to change back.
Seems, I need to hard-reset. What a fool I am.
------------------------------------------
Unicode on Windows mobile 5.0
To Enable the fonts on Windows Mobile 5 & 6
Copy the unicode font to \Windows\Fonts folder
Download PHM registry from http://www.phm.lu/products/PocketPC/RegEdit/ (select the "Pocket PC 2002,2003 (ARM/PXA) from the dropdown)
copy registry editor cab file to device and install it.
Enable font linking by adding the below registries
Run PHM regidtry editor from programs
Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Select Microsoft, go to edit > New Key and add a new key FontLink below HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Select FontLink and add a new key SystemLink (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\FontLink\SystemLink )
Select SystemLink and add a string value.
Value name - Tahoma
Value data - \Windows\Fonts\Akshar.ttf,Akshar Unicode
Note: change the "Akshar.ttf,Akshar Unicode" as per the font you have copied to the Fonts folder.
Again go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ and add one more New Key "FontPath"
Select FontPath and add a string value as
Value name - FontPath
Value data - \Windows\Fonts
Soft reset your mobile
So, the method given above just changes the font of the device (while the language does not change).
I am going to hard-reset the device.