[GUIDE] Rom Translation Tutorial, Translate Roms and Apps on your own! - Android Software Development

THIS GUIDE IS FOR PEOPLE THAT KNOW WHAT ARE DOING! DO NOT TELL ME THAT I BRICKED YOUR PHONE OR STUFF LIKE THAT, YOU ARE RESPONSIBLE OF WHAT HAPPENS TO YOUR PHONE, BE CAREFUL!
I wrote this guide studying the system of Motorola Droid 3, but it is good for nearly every phone, (or single application!!), maybe with advent of android 4.X this is becoming useless, because usually every rom has already all languages into it, but you could use this even for correcting translations, or translate yourself some application
If you want the Italian versions of Minimoto 1.7 and MavROM 4.5 go to this thread: http://forum.xda-developers.com/showthread.php?p=47857497#post47857497
Every Droid 3 owner out of the English/Spanish area knows that every D3 ROM comes out with only two languages preloaded in it, right? well...if you know well english (or spanish!) maybe i have something for you!
Ok, i hope this guide could be helpful to everyone like me that wanted to find a non-english, non-spanish Gingerbread ROM for Droid 3.
After some studies, and a lot of searching too, i've found the best (i think) way to translate roms. Oh and this guide is good for every android phone out there! Let's start!
Part 1 - Download all the stuff! (plays Monkey Island music )
Our needs are very few, what you need with this is a lot of patience, and knowing some english could help.
- A rooted Droid 3 (or any other phone)
- The ROM you want to translate
- WinRAR / 7-Zip
- Notepad / Notepad++ (Highly recommended!!!) http://notepad-plus-plus.org/
- Java Development Kit www.java.com
- APK Manager/APK Multi-Tool, since now i will call them APKM and APKMT ( i used APK Manager, but multi-tool should be fine anyway) http://apkmultitool.com/?q=node/5
- Google Translator Toolkit http://translate.google.com/toolkit/
- Safestrap (optional, but very, very recommended)
- MoreLocale2 or another language changing program
Note 1: If APK Manager/Multi-Tool bother you with something about java not found do this: http://wiki.answers.com/Q/How_do_you_stop_the_error_%27java%27_is_not_recognized_as_an_internal_or_external_command_operable_program_or_batch_file
Note 2: In APKMT, the commands are a little different from APKM, e.g. in APKM the "set project" command is listed as 22 and in APKMT is listed as 24....the functions we'll use are the same, just read the description if you're not sure and you'll be fine
Ok, let's take the stuff out of the box!
Part 2 - The extraction point
Open the .zip containing your ROM's files with WinRAR / 7-Zip and extract the folder "system" somewhere (i recommend to create a folder for your translation project) once the process is done, we can basically do two things: Decompile the apps or decompile the frameworks, the process is the same, but you have to go really really REALLY careful with framework apks, or once you flashed the ROM what you've got is a translated BOOTLOOP. So be careful. With apps you can mostly screw a functionality up, like SMS or Phone, but nothing too messy.
Anyway you can solve the problem with a new flash with the corrected ROM, or the original, untranslated ROM.
Ok let's start with the frameworks: we've usually got 3 differents frameworks and those are
framework-res.apk
blur-res.apk
moto-res.apk
Those apks contain mainly everything written all around the phone, like pop-up messages, status bar, app permissions and a lot of other stuff.
We'll use framework-res.apk.
If there isn't, create a folder in the same folder where you have installed APKM/APKMT, called "place-apk-here-for-modding" without quotes, then copy inside it the framework-res.apk.
Now you have to open the Script.bat file, and once you get into the main window, digit 22 (APKM) or 24 (APKMT) and press enter to select the current project, now digit the number corresponding to the desired apk (it should be 1 if you have only framework-res.apk) and press enter. now digit 9 (APKM/APKMT) and enter and you'll decompile the apk. Now you should have a folder, inside the "projects" folder of APKM/APKMT named just as the decompiled apk. Inside it, you'll find a folder called "res" open it and you'll be right into the core of the translation:
Note: if you get an error after decompiling, try with option 10 (APKM/APKMT), and drag and drop the necessary framework over the prompt when APKM/APKMT ask, press a key, and if you get another error try with another framework (D3 has 3 of them) until you get the job done. If nothing works, probably there's a problem with the apk you want to decompile.
Note 2: You could need to have frameworks installed into folder C:\Users\YourPCUSername\apktool\framework. You can do this either with apktool via cmd or manually copying the 3 frameworks into this folder (create it if needed) and renaming them this way:
- framework-res.apk => 1.apk
- moto-res.apk => 2.apk
- blur-res.apk => 3.apk
Then you should be able to decompile 99% of apks with option 9.
You'll find a bunch of folder, but we are interested in the "values" ones, if you have to translate the app, you'll see something like this:
- values
- values-es
- values-es-rUS
the first folder contains the english files, the second contains the spanish files, and the third contains some other files for spanish variants.
Open the "values" folder and inside it there are some .xml files, we will always use only 3 of those at most:
- strings.xml (the file containing mainly all the text strings of the apk, if you find this, then you have to translate it, if not, just pass over this apk, it doesn't contain text)
- arrays.xml (the file that contains some text data for drop lists, you'll not find this often, but if you find it, translate it)
- plurals.xml (the file that contains plural words, this is very rare to find, but if you want to make good translations, then, translate!!)
Now get back to "res" and create a folder called "values-xx" where xx is your language code, for example i made a values-it folder, but you'll write values-fr, values-de, values-idunno etc.
You'll put here, all the XMLs we're gonna translate now!
Part 3 - Bring out the dictionary!
The game is getting harder, now you have to use your better weapon: Google Translation Toolkit. But first, let's look into XML!
Open the "strings.xml" file with Notepad++, and look at the records structure:
<string name="aerr_application">The application %1$s (process %2$s) has stopped unexpectedly. Please try again.</string>
You have to change ONLY and i repeat ONLY the text between "<string name="aerr_application">" and "</string>"!
Now some rules:
- See that "%1$s" weirdness? that is a jolly word that Android replace with a variable data, in other words DO NOT TOUCH IT! just imagine that you'll see there something like "The application *Temple Run* (process XYZ) has stopped etc. etc.
- If you have to put an apostrophe or some other weird character, always put quotes at the beginning and at the end of the string just like in the translated string down there, it's good to always put them, And GTT (Google Translator Toolkit) does that.
- If the string you have to translate looks like code stuff, probably you should leave it untranslated, something like:
<item>@string/resolutionSummaryWideScreenTV</item>
<item>MOTOCAMSETTING_REVIEW_TIME_4_SEC</item>
see? DON'T TOUCH IT! BAD TRANSLATOR! BAD!
This is the resulting, translated string:
<string name="aerr_application">"L'applicazione %1$s (processo %2$s ) si è fermato in modo imprevisto. Si prega di riprovare."</string>
Ok, now we can translate without detonating the phone, but framework-res has something like 1300 rows of text!
WHOA! let's use GTT!! http://translate.google.com/toolkit/
Once you are on the main screen of the tool, click on the red "Upload" button on the upper left, then in the page you found after, click on "Browse..." and select your file inside your PC.
Set all the stuff down there, like the name, the language and everything else, and click "Upload for translation"...here comes the magic...
The XML is translated! sort of...
You now have to look if GTT has done the work well...let's look into this page:
- You can see that now the entries are divided in boxes, you can click onto the left panes' boxes and edit the content.
- Play a little with the interface, you have to get familiar with it if you want to translate a ROM!
- Look to spaces and returns, GTT mess them, and you should correct the format.
- Text is coloured: i'll tell you what those fancy colours ACTUALLY mean
- Orange: this means you've edited the text into the box
- Red: text coloured in red came right out of Google Translate, and 70% of times, it will be gibberish, so look carefully into it, this will be the work where you'll spend more time.
- Blue: this is a sneaky bastard, it says that he found a "100% matching" translation in his database, but it has a 30% chance to be total nonsense, be careful with it.
- Green: this colour is fine, you probably have translated this in past, or someone did it for you, anyway, it will be 99% correct, if the past translation was correct.
- Brown: this happens rarely, usually where it founds a colon (the symbol ":" ok?? :angel: ) and for some reason, it goes random, usually you need a very little effort to correct it.
- Purple: THIS is a funny one. when purple comes out (usually with a wildcard character like "%1$s") the translator often goes TOTALLY random and write some idiocy. rewrite the text from scratch.
Once you've managed to translate everything, and if you're sure to have completed everything, click (if you want) on "Complete" in the upper right corner of the page, and then we need to download our work, to do that, click on "File" (upper left) and then "Download". Save the .xml file in your values-xx folder, and check one last time with Notepad++ the number of lines, the spaces and the format in general, at this point we're ready for the final part!
Part 4 - Repack everything!
Now the situation is this: you have the "project" folder containing all the decompiled apks folders, with the "values-xx" directory in it, we now have to recompile everything and put apks into the ROM. Let's see how:
- Open APKM/APKMT and select the project you want to recompile
- digit 11(APKM/APKMT)
- Look if you got errors, if yes, look into the log 20(APKM) or 23(APKMT) and see what the problem is, if you look carefully you will identify where is your error log, probably it's a messed tag, or something easy to resolve, correct the issue, and go ahead, restarting from digiting 11 (Compile)
- Press Y and enter
- Press Y and enter (yes, 2 times)
- Now wait for APKM/APKMT to stop spitting lines out and it'll tell you something. Read it, but the substance is: go in the APKM/APKMT folder, look for a "keep" directory, delete the "resource.arsc" file, get back on the APKM/APKMT prompt window, and press a key.
- Once everything is completed, you now have a file called unsignedframework-res.apk (or unsigned*nameoftheapkyouhavecompiled*.apk)
- The next, is the point i still didn't get, but it works...maybe XDA guys can explain better this...anyway, we now have to sign apks...i saw that this shouldn't be necessary, but otherwise i've got a lot of errors and force closes and stuff like that...soooo, at least for D3, sign it!
- We have 2 choice for signing...if you have only a few apks to decompile, you can just select the project and digit 12(APKM) or 13(APKMT) and sign it but if you have translated a whole ROM and you want to sign all the apks at once, create, if not exists, a folder called "place-apk-here-for-signing" and put all the unsigned apks there...you now have to digit 16(APKM) or 18(APKMT) and the apks will all be signed automatically.
- Rename the apks removing the "signed" part from the name.
We're now ready to pack the ROM: i usually create a "system" folder somewhere else that i will put directly into the ROM's zip, but you can do it by hand (boring). I'll show you my method for now:
- create a "system" directory
- inside it, create a "framework" and an "app" folder
- put into the framework one, all the frameworks (easy, huh?) and into the app directory, put all the other apks.
- open the ROM zip and drag and drop the system folder into the ROM in order to overwrite the existing one.
Our freshly translated ROM is ready to be flashed and brick or burn your phone! (ok, no, this is not true...maybe...)
Anyway, download the zip on your phone and flash it with the recovery you want.
I RECOMMEND TO DO THE FIRST TEST ON A SAFESTRAP, AND ONLY IF YOU'RE SURE THE ROM IS SAFE, INSTALL IT ONTO YOUR MAIN SLOT! I'VE WARNED YOU!
Part 5 - Polish your creation!
When the ROM is installed, and if it boot correctly, First install MoreLocale2 or other similar apps, and add, your language, with the correct ISO codes and look around to see if something is untranslated...if yes, go back, to APKM/APKMT and find the apk you need to modify, translate, repack, flash the ROM and again until you've got a perfectly translated ROM!
The tutorial is ended, i hope you liked it, and if you want to correct, critic, ask, or anything, just tell me!
Tips: If you want to avoid the MoreLocale stuff, you can edit the build.prop, into the folder "system" of the ROM you'll find this file, open it with Notepad++ and look for these lines:
ro.product.locale.language=xx
ro.product.locale.region=YY
You have to put here your ISO language code, but i noticed that on D3 it doesn't always works...so, try but i don't guarantee success.
If i remember something, i'll integrate the post
Coming Soon:
Screenshots!
Corrections!

Test reply (i can't see the thread in the forum) It's fine now

Related

HELP Translating Apps Tutorial

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?

Dictionary doesn't remember added words

Hi!
I'm fed up with the dictionary on my Blackstone.
There are some words which are not contained in the dictionary, so I have to add them. But it's not that easy. Sometimes, I have to enter the new word twice until it's saved and almost always, my added words disappear after some time, so I have to add them again and again.
Is there any solution available or do I have to change any settings?
I hope someone can help me.
Thanks.
Olli
P.S.: This happens on ANY ROM, not on a special one.
Hi,
I've had the same experience.
My sollution:
On the latest Dutty ROM (WM6.5) there is an program named "eT9MyWords". It's a simple word list where you can insert directly all the words you frequently use.
I'm postive that you will be able to download this program if you don't have it already.
I hope that the following will solve your prob.
1) Copy files below, from windows directory to another location
eT9Rudb.Rdb
eT9AsDb.Adb
2) Change attributes from read only to archive
3) Overwrite files in windows folder (Now the files are not in rom)
4) If are still read only you have to change again in Archive (Now you can becouse files are not in rom)
Then, create the following folder inside windows directory
\ET9IMEDB\
(e.g. \Windows\ET9IMEDB\)
Copy files eT9Rudb.Rdb and eT9AsDb.Adb inside \ET9IMEDB directory.
Now, using eT9MyWords.exe or keyboard's 'add word', you can add your custom words which will be saved for ever.
Hey!
Thanks for your ideas. Wasn't looking here for a few days.
I will try your solutions and tell you, if they work.

HowTo: Modify Swype (new dictionaries; new keyboard layouts)

Hi,
a few people asked me to post a how-to for swype.
First of all: i am a noob, my first contact with android was just a few weeks ago and i saw my first apk from the "inside" a couple of days ago. So there is for sure a much easier way (push the files directly to the phone) and a better way. Anyway, this works for me 100% and maybe this guide helps a bit.
Second: Sorry for my english, i hope it is understandable
Here we go:
What you need first:
- the newest Swype beta (currently it is Ver. 1.25.16.5612.t100 i think, which is only available with english and spanish language). -> swype-new
- an old beta with the desired language or keyboard style (f.e. german dict, french dict..). -> swype-old
The bigger the swype file, the more likely it has your desired languag, a 2,2mb file has mostly only English and Espagnol
- Winzip (http://www.winzip.com/prod_down.htm)
- Java SDK for signing the new apk (f.e. http://www.chip.de/downloads/Java-SDK_12992754.html)
- this guide for signing an apk (http://www.anddev.org/viewtopic.php?p=11105) -> some "\" are missing in this guide, you'll see it..
1. Download Winzip, Java SDK and install it
2. Download the current and the old swype beta versions
3. rename both .apk files to .zip
4. open both zip files with winzip
5. go to the folder assets/files @ swype-old and search for your desired dicitionary, for example "German.zdb.le". Open swype-new and go to the same directory, delete for example the Spanish.zdb.le file. Now copy the German.zdb.le from swype-old the swype-new and rename it to Spanish.zdb.le.
6. got to assets/keyboards @ swype-old. Copy your keyboard layout (AZERTY, QWERTZ, Russian) to swype-new. If you don't know exactly which files you need, just copy all missing files from the old to the new one. There should be a bunch of files called for example Qwertz_PT_* and Qwertz_LS_*
7. Delete the META-INF folder from the swype-new version.
8. rename the swype-new.zip to swype-new.apk
9. Open a command prompt (cmd) and follow this guide:
http://www.anddev.org/viewtopic.php?p=11105
Obviously >DrogrammedevJavajdk1.6.0_07binkeytool -genkey -alias anddev.keystore -keyalg RSA -validity 20000 -keystore keys/anddev.keystore
should look like this:
D:\Programme\dev\Javajdk1.6.0_07\bin\keytool -genkey -alias anddev.keystore -keyalg RSA -validity 20000 -keystore keys/anddev.keystore
you need "keytool -genkey -alias anddev.keystore -keyalg RSA -validity 20000 -keystore keys/anddev.keystore" for the key and
"jarsigner -verbose -keystore keys/anddev.keystore -signedjar AndOpenStreetMap_signed.apk AndOpenStreetMap.apk anddev.keystore" for the signing process.
The apk should be signed now.
10. copy the swype-new-signed.apk to your sd
11. uninstall all previous swype versions and reboot.
12. install swype
13. activate swype via settings -> keyboard -> check swype
14. go into an EMPTY input field and do a long press -> input method -> swype
15. just to be 100% sure.. reboot
16. switch to Espagnol language (which has been replaced) by pressing the Q button
17. done
If you can not switch the language or if you have multitouch-problems, a reboot will fix this for sure (or 99.9% ..)
You can also edit your desired keyboard to the look you like, just open the corresponding *png and do what you want. The glow.png contains the color for the "highlight" when you press a button.
Do it at your own risk, this is really easy. As said: there are much easier ways to do this, but this works for me. There are some autosigning scripts for apk out there but for some reason they did not work for me (mainly cause i have no clue what i am doing here).
Here are some (veery simple examples):
edit: if anyone knows how to change the tracer color from blue to ??? please let me know, and how to edit the language dialog so we do not have to chose Espagnol to get the desire language
edit2: Tracer color: open the libSwypeCore.so with a hex editor, search for DDA25BFF, take your desired ARGB code and enter it there but reverse the pairs! so if you like FF00A5BF you have to enter BFA500FF.
I am interested in just changing the color of the Keyboard but your instructions here are not for a nob like moi.
HOW to Sign is really hard to understand, please a step by step maybe in english would be appreciated.
THX!
I have made an Italian dictionary Swype apk if you are interested contact me in pm.
Any1 know where i can get and copy of swype with Danish dictionery?
can you post the apks of the ones you modified already, I love the brown color, and the white too!
le3ky said:
can you post the apks of the ones you modified already, I love the brown color, and the white too!
Click to expand...
Click to collapse
yeah could u post sum edited apks please?
i can't even find swype in the app store ? was it removed ?
554321 said:
i can't even find swype in the app store ? was it removed ?
Click to expand...
Click to collapse
Swype still hasn't "officially" been released. We are using leaked versions from devices that ship with Swype.
please pm me, no links will be postet
@ signing guide:
this guide is in english, what is the problem?
http://www.anddev.org/viewtopic.php?p=11105
-download the java sdk
- create a folder c:\workspace
- create a folder c:\workspace\keytools
- create a folder c:\workspace\keytools\keys
- open a command (cmd) and change to folder workspace\keytools
- type in the following: C:\Program Files\Java\jdk1.6.0_20\bin\keytool -genkey -alias anddev.keystore -keyalg RSA -validity 20000 -keystore keys/anddev.keystore
- answer the questions
- copy your .apk to c:\workspace\keytools
- change again to workspace\keytools
- type in: c:\Program Filex\Java\jdk1.6.0_20\bin\jarsigner -verbose -keystore keys/anddev.keystore -signedjar yourapk_signed.apk yourapk.apk anddev.keystore
yourapk.apk = the filename
watercool said:
please pm me, no links will be postet
@ signing guide:
this guide is in english, what is the problem?
http://www.anddev.org/viewtopic.php?p=11105
-download the java sdk
- create a folder c:\workspace
- create a folder c:\workspace\keytools
- create a folder c:\workspace\keytools\keys
- open a command (cmd) and change to folder workspace\keytools
- type in the following: C:\Program Files\Java\jdk1.6.0_20\bin\keytool -genkey -alias anddev.keystore -keyalg RSA -validity 20000 -keystore keys/anddev.keystore
- answer the questions
- copy your .apk to c:\workspace\keytools
- change again to workspace\keytools
- type in: c:\Program Filex\Java\jdk1.6.0_20\bin\jarsigner -verbose -keystore keys/anddev.keystore -signedjar yourapk_signed.apk yourapk.apk anddev.keystore
yourapk.apk = the filename
Click to expand...
Click to collapse
wow... that is way more complicated than how I sign files. There are several easy tutorials on this process, and a program called autosign. search it and you will see several postings about it...
i know but autosign does not work for me, no idea why. Please read the first post, i have already said that there are much easier ways but this is the only way which works for me.
so if you do not like it, just leave this thread please.
This doesn't seem to wortk in the latest releases.
I tried upzipping without altering it, then remove metainf and resigning...but at runtime I get errors. Installing went ok though.
Any ideas?
Thanks
Could Anyone please comment if they succeeded or not?
thx
Drane said:
Could Anyone please comment if they succeeded or not?
thx
Click to expand...
Click to collapse
Didn't work for me. I used this method: http://forum.xda-developers.com/showthread.php?t=473580
But it still gives trouble after replacing the dictionary.
How did you find the location of the tracer line? I was looking through source code files, never would have figured that out! Thanks!
I've successfully changed the tracer color and resigned the apk, but after I install swype, I get the blue box around the keyboard problem and am unable to swype. Tapping works though.
A greek dictionary would be really appreciated
I tried this with the Sept. beta, signing and installing went fine. But it force-closes. I even tried to just re-sign the original IME from Swype with no other changes, and it still force closes. The keyboard appears for a brief few seconds before FCing.
Dang it.
also trying to mess with the new beta, color is changed or handeled different, the sting you state in your original post isnt found....
Any one figure out what it was changed to ?
scratch that, its there. It colors it a few shades darker than what you want, anyone changing it choose a color a few shades lighter, and odds are it will come close to what you need.

suggest word(s)

hi
I am sorry if this has been asked before (but I did search)
Is there any way to add suggest word(s) when typing in text, I have to type the same sentence over and over again every day and on my old phones/PDA this was not to bad as you could set the suggest word(s) to give you the next 4 works, I can't find this in the HD2 is there any way to add it
Thanks for any help
according to hint 19 in this thread:
19. Improve Suggested T9 Dictionary With Custom Words
The Leo has a very useful hidden application in the Windows directory. You need to unhide hidden system and Rom files in order to find it. Find the file "eT9MyWords.exe" in the Windows directory and add a shortcut to this file in your Windows/Start Menu folder.
When in the application, add the most common words you use when using the keypad such as names, locations, user names, email addresses and other words not common in the standard T9 dictionary. For example if you are based in London, UK you could add the following locations:
Leicester, Piccadilly, Tottenham, Soho, Charring, Euston, Trafalgar, Clapham,
and words such as BRB, DVD, coz, lol, xoxo, [email protected], ciao, etc.
Click to expand...
Click to collapse
I have read these tips and know about adding custom words.
What I want is for three to four words to come up to complete a sentence.
This has been in the input tap on old PDAs suggest word(s)
Hi
Is there no one Who can help with this?
Really with all the clever people on this site can no one help me
Please someone help me
Hi, i did a few tests and found...
et9mywords wont accept spaces, and although you can sneakily paste sentences into the input box, it wont save them, so that method is out.
Custom words are also found in HTCMDB.txt, and the good news is it works!
(See image)
The line 'this is a test' i hard coded into the file using my kitchen, then the 'this is a second test' i added as follows....
(I use resco explorer, i suspect the normal file manager wont do what is required, total commander probably will)
find /windows/HTCMDB.txt (it will be hidden, so show all files)
copy it to your sd card, and from there to your desktop.
(I tried editing it on the phone using windows mobile notepad, but it didnt work right)
On the PC, right click the file, properties, and untick 'read only', apply.
Open it and edit it as required.
Save it, and again right click, re apply 'read only'
Copy back to your sd card, and from teh phone use commander or resco to move it to /windows/
You will probably get a warning about rom files and what not, thats ok.
Reboot, and you should now be able to see your sentences.
PLease let me know how you get on.
EDIT - just for clarity, every entry inside HTCMDB.txt must be on its own line.
thanks for your help with this I have done as you posted and it works, it's a bit long winded but it works
thanks jason

[HOW TO] S-Note templates with custom backgrounds

I was looking for an easy way of having the "Note" and "Meeting" templates with white background, so it would print decently. So far it seems there's no easy way to create own templates apart from messing with the .apk file. The alternative of manually setting the background each time I create a note or add a page does not look appealing as well.
Until somebody comes with a better solution, here's what I managed to get:
Simple description:
Modify original '"Note" template
Download the "Wine" template form 'new snote' dialog window
Replace the "Wine.snb" with modified "Note.snb"
Detailed description
* Intro:
Templates are stored in *.snb files, which are plain zip files (just like .apk's), easy to open/change with e.g. 7-Zip.
We want to customize the Note template ('note.snb' file).
Root is necessary.
* How to modify note.snb backgrounds:
Copy the file '\system\app\Snote_wxga.apk' to your PC
On PC:
Open the 'Snote_wxga.apk' file and
Goto to '\assets\templates' folder
Open the 'Note.snb' file
Go to folder 'snote\media\':
- the two .png files located there are note backgrounds (for title page and normal ones) - edit or replace the files with your own
- the two .jpg files are thumbnails - edit or create your own, by e.g. resizing and converting the .png files from previous step
* How to get the modified template to the device:
Download new template from the web (in new note window dialog) - let's say it's "Wine"
Go to folder '/data/data/com.sec.android.app.snotebook/download/template', it should contain following files:
/T_001/template/thumb_l.png
/T_001/template/thumb_p.png
/T_001/template/wine.snb
/T_001/widget/widget_thumb.png
/template.list
Replace the file '/T_001/template/wine.snb' with your modified copy of 'note.snb' (remember to change the name from 'note.snb' to 'wine.snb')
All other .png files are thumbnails - edit, make your own or leave as it is
* How to change name of the new template from 'Wine' to something else:
Copy the 'template.list' file to PC
Open it with a decent text editor (e.g. Notepad++)
Find the string {"value":"Wine","lang":"en"} for your language, and change the 'Wine' label to one of your choosing
Copy the file 'template.list' back to folder '/data/data/com.sec.android.app.snotebook/download/template' on your device
The following procedure can be repeated - so far there are 3 downloadable templates provided by Samsung, each of those can be replaced the same way.
PS1. It works.
PS2. At least on my device.
Thanks for trying that out. I haven't got round to it yet, but I was planning to try something similar myself.
The other solution I had considered was a rather more radical hack of the snote apk, but a more flexible solution: If it was possible to hack the apk so that the downloaded templates are stored in the default external storage in /sdcard/Android/data/com.sec.android.app.snotebook/ rather than the internal storage you could get to that without root, and just edit the templates any time you wanted.
It would be easy enough to do with access to the java code, and while I'm sure it might be possible to do by hacking the smali files, it's more work than I can find the time for at the moment.
rmein said:
Thanks for trying that out. I haven't got round to it yet, but I was planning to try something similar myself.
The other solution I had considered was a rather more radical hack of the snote apk, but a more flexible solution: If it was possible to hack the apk so that the downloaded templates are stored in the default external storage in /sdcard/Android/data/com.sec.android.app.snotebook/ rather than the internal storage you could get to that without root, and just edit the templates any time you wanted.
It would be easy enough to do with access to the java code, and while I'm sure it might be possible to do by hacking the smali files, it's more work than I can find the time for at the moment.
Click to expand...
Click to collapse
Hopefully Samsung will discover the idea of custom templates some day. Also, judging from the structure of snb files, they must have some template editor (i don't believe they would edit all the xml's manually). Would be great if the editor was made public as well.
As for the solution - editing java lives far above my abilities, so I hope you'll find the time. I chose the described method, because the other solution, i.e. replacing the snb files directly inside the snote apk, would not survive the flashing, unless the new apk was installed to data, which I had no time to check if would work at all. Besides, having the ready-made template folder, I was able to repeat the process on my wife's Note within a minute.
One final remark - I did not bother with creating new backgrounds, any decent graphic editor enables to edit images palette colours, I used GIMP, to simply change background of 'Note' and 'Meeting' to white.
Sent from my GT-N5100 using xda premium
Thank you for finding and sharing this. I am still struggling with finding the Wine template. On the dialog "new note" in my Galaxy note 10.1 it just shows me the 10 templates available to choose. No template to download. Or do you mean another dialog? I don't understand that part really well.
Another question (I suppose I will know that when I can do it). Can I put templates (background images) of higher resolution? . That is the whole reason why I want to change the templates. I think the finest pen stroke looks pretty thick.
Thanks!!
Cristian
duguet said:
Thank you for finding and sharing this. I am still struggling with finding the Wine template. On the dialog "new note" in my Galaxy note 10.1 it just shows me the 10 templates available to choose. No template to download. Or do you mean another dialog? I don't understand that part really well.
Click to expand...
Click to collapse
Don't know how it works with Note 10, on the 8 the pressin the "+" for new note shows window as in attached screenshot - the 'download button' is marked
duguet said:
Another question (I suppose I will know that when I can do it). Can I put templates (background images) of higher resolution? . That is the whole reason why I want to change the templates. I think the finest pen stroke looks pretty thick.
Click to expand...
Click to collapse
I guess you could try, but it could require additional editing of one of xml files - I think template dimensions are stored there
Many thanks!!!
So now I know I don't have the same S-note version. I don't see that download option. Could somebody send me the Wine template file? thanks!
I'll let you know if I made it increasing the resolution.
BR,
Cristian
duguet said:
Many thanks!!!
So now I know I don't have the same S-note version. I don't see that download option. Could somebody send me the Wine template file? thanks!
I'll let you know if I made it increasing the resolution.
BR,
Cristian
Click to expand...
Click to collapse
I'm afraid this might not work for you - the whole template/background swapping works because additional templates are installed by SNote app itself. I doubt your version will be able to recognize template files if you just copy them.
anyway, I'll attach the templates after the weekend, so you can try for yourself
duguet said:
Could somebody send me the Wine template file? thanks!
Click to expand...
Click to collapse
As promised - modified templates with white background (names in template.list unchanged):
1. Note (replacement of Wine template)
2. Meeting (replacement of Movie template)
3. Memo (replacement of Weaning Food template)
p107r0 said:
I was looking for an easy way of having the "Note" and "Meeting" templates with white background, so it would print decently. So far it seems there's no easy way to create own templates apart from messing with the .apk file. The alternative of manually setting the background each time I create a note or add a page does not look appealing as well.
Until somebody comes with a better solution, here's what I managed to get:
Simple description:
Modify original '"Note" template
Download the "Wine" template form 'new snote' dialog window
Replace the "Wine.snb" with modified "Note.snb"
Detailed description
* Intro:
Templates are stored in *.snb files, which are plain zip files (just like .apk's), easy to open/change with e.g. 7-Zip.
We want to customize the Note template ('note.snb' file).
Root is necessary.
* How to modify note.snb backgrounds:
Copy the file '\system\app\Snote_wxga.apk' to your PC
On PC:
Open the 'Snote_wxga.apk' file and
Goto to '\assets\templates' folder
Open the 'Note.snb' file
Go to folder 'snote\media\':
- the two .png files located there are note backgrounds (for title page and normal ones) - edit or replace the files with your own
- the two .jpg files are thumbnails - edit or create your own, by e.g. resizing and converting the .png files from previous step
* How to get the modified template to the device:
Download new template from the web (in new note window dialog) - let's say it's "Wine"
Go to folder '/data/data/com.sec.android.app.snotebook/download/template', it should contain following files:
/T_001/template/thumb_l.png
/T_001/template/thumb_p.png
/T_001/template/wine.snb
/T_001/widget/widget_thumb.png
/template.list
Replace the file '/T_001/template/wine.snb' with your modified copy of 'note.snb' (remember to change the name from 'note.snb' to 'wine.snb')
All other .png files are thumbnails - edit, make your own or leave as it is
* How to change name of the new template from 'Wine' to something else:
Copy the 'template.list' file to PC
Open it with a decent text editor (e.g. Notepad++)
Find the string {"value":"Wine","lang":"en"} for your language, and change the 'Wine' label to one of your choosing
Copy the file 'template.list' back to folder '/data/data/com.sec.android.app.snotebook/download/template' on your device
The following procedure can be repeated - so far there are 3 downloadable templates provided by Samsung, each of those can be replaced the same way.
PS1. It works.
PS2. At least on my device.
Click to expand...
Click to collapse
Thanks!
S Note of Galaxy Note 3
Does anyone know how we can get large (A4) size templates for S Note? The default pages are like small (size) notes.
Can someone give me the S Note apk files for Galaxy Note 3? I want to install this on my Asus tablet as well so I can synchronize my work done on either of the two.
I have been using Asus Supernote earlier on my Asus Tablet and Galaxy S3 mobile, but the Supernote does not work on my new Galaxy Note 3.
Unless I missed it - is it possible to change the default save file name? I used the memo template to create my new one - copied over wine. When I hit save it defaults to Memo_date_time. If I can find where to change the Memo portion of the filename. Would make for a sweet setup then

Categories

Resources