yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] adskankster:
Automating the translation would be difficult as I think google and babelfish try to make it so - or their servers would get massively hit.

However with some time it would be possible to knock up two sed/awk (or similar) scripts to (a) extract the settings titles into a list and (b) replace them with manually added translations.

So it could be possible to extract the settings, someone go through the text file and add the translations, then submit the file to generate the new files.

I might be able to do this, but I'm a bit busy at the moment. There's a reasonable chance that someone's done this already, so it's worth a look but otherwise I should get some time next week to give it a go.

I'm assuming you just need the locale resource files generating?
[Desire Android Development] oudbrood:
I don't know how to make the list but I can help you with dutch translation
[Desire Android Development] danarama:
The thing is the strings.xml alone is 1100 lines per language and that's just one file. Even copy paste would take ages.

It's probably easier to edit the existing redux ones but there must be an easier way
[Desire Android Development] mattmanwrx:
Did you read my pm to you? I have a theory, which is a start....
[Desire Android Development] adskankster:
No copy and paste needed. The script would produce a list like this:

Airplane mode#
Wi-fi#
Wi-Fi settings#
Network notification#
Bluetooth#
...
...
etc.

A translator goes through it to turn it into something like this:

locale=nl
Airplane mode#vliegtuigmodus
Wi-Fi#Wi-fi
Wi-Fi settings#Wi-Fi-instellingen
Network notification#Netwerk kennisgeving
Bluetooth#Bluetooth
...
...etc.

The second script would then generate the new resource file.

The first file would only need to be run once per ROM version, and the second any time you want to generate a locale.
[Desire Android Development] danarama:
Sorry, I'll look now.
[Desire Android Development] adskankster:
Actually, to use the Redux ones, it might be possible to write a script to go through the dGB default res files and look up each title in the relevant Redux locale settings files. It would fail for every setting title that's been changed though it would fail - but it could be a good start.

EDIT - actually, would it be msgid that we'd have to look up?

I'll have a think over the next few days - if you haven't found a different solution by the weekend, assuming that I have some time I'll give it a go.
[Desire Android Development] danarama:
That sounds great. Since I am not modifying settings.apk, the output files will just sit in my repository (assuming we use xml as the input) so shouldn't need re running often...

I need to ascertain how many and which files need to be done though

Edit... its worth mentioning that I have all the translations already. I really just need to match the line of code between 2 files. If it matches, change the values and save the output.

I could probably do that in vba but its a bit messy
[Desire Android Development] adskankster:
If you mean between Redux and dGB equivalent files, then as long as we know the key (msgid?) then it should actually be relatively easy. It's a shame I have absolutely no time this evening...I might try and knock a first draft up in work time tomorrow - as long as nothing else comes up.

My sed/awk skills are a little rusty so it'll take longer than it should do - or would have done last year, but it's just the sort of job they were designed for.

Do you have Linux? If not I'll build it to run under the win32 versions.

EDIT: I could probably do it in C# using the xml libraries too.
[Desire Android Development] danarama:
Yeah theres msgid's in there.

My Settings.apk is derived directly from Redux's. Basically we are in this situation as I edited the English xml files to change the layout of the settings.apk (as I did not want some of the functionality it offered). Not being bothered about the other languages at the time (and given there was an issue with the German files) I decided to simply remove them all.

So every msgid in the English files that remains is the same as the Redux ones (its just the Redux ones has some more not on dGB).

I have uploaded all the files that need translating (see xml, values and values-nokeys) and the files to be translated to using French as an example (xml-fr, values-fr, values-fr-nokeys)

http://www.mattman.org/rootsu/rootSU/languages.zip

As you can see in the French Files, XML is just timezones.xml, values is just arrays.xml and strings.xml and nokeys doesn't even need doing as its simply the words "Manage applications" which I have in every language anyway.

So in summary, its 3 .xml files per language, which doesn't seem such a tall order really.

If you can find an easy way to run a match on msgid and output these 3 files for whatever language, that would be amazing.

So in that case, many thanks in advance.

Yeah I use Linux, can't compile AOSP source on Windows. Ubuntu 11.04 :)
[Desire Android Development] oudbrood:
If those three files are translate then you get the option in the setupwizard to choose your language?

And are then my problems with the keyboard (see earlier reply's) gone?

Great work guys
[Desire Android Development] danarama:
Setup wizard, Possibly. I cannot be 100% sure as I haven't really looked at languages having never needed to. I would have to test it to see if more is required, but other than the settings languages and the tts languages, I didn't remove anything else from the source so would assume so.

Keyboard, that could also be part of the fact we're using a massively cut down version of the keyboard. Again, we will need to test this to be sure.
[Desire Android Development] oudbrood:
Send me a message if you need my help.

Can I translate those 3 files manually as test?
[Desire Android Development] oudbrood:
It's not the massively cut down version because I had replace the keyboard in the zipfile for the normal one (4 mb) and stills has the problem
[Desire Android Development] danarama:
I still need to compile the source, you can't use those files on your device as it needs to be built in to the apk on linux.

But if we go ahead with this, I will create a dutch settings.apk first for you to test, if you like?
[Desire Android Development] oudbrood:
Sure I like that.......
[Desire Android Development] danarama:
ok I'll PM you when.
[Desire Android Development] rtb35:
SUroot a question for you please,

I notice that the point of this rom is that it is No2ext so my question is what advantage is there to not using a ext partition and having all your data on the internal memory?
[Desire Android Development] danarama:
Well, I did this for 3 main reasons:

1) No apps on sd-ext. This means that if your SD card breaks, you can still boot your phone / many apps will work. You can still use the traditional "move to SD" method, but of course those apps are subject to the same issues.

2) Using "move to SD" methods, you only waste the space needed for whatever apps you move. eg. If you move the apps, the sum of the space of these 3 apps is used on SD. With an EXT you have to make a partition of 512/1024 etc etc. So to move those same 3 apps, you have wasted just under 512/1024 of space. This way you only take what you need and the rest you can use for Music (This is a personal ROM remember :) )

3) I hate to say speed increase as it is so miniscule, but I'll say it all the same.
[Desire Android Development] rtb35:
ok thank you for your quick response.
[Desire Android Development] adskankster:
Okay, thanks. That all makes sense.

I'll find some time to have a look tomorrow.
[Desire Android Development] adskankster:
I've made some progress today - for one language it will now generate the body of the XML files, but it needs the following two things added:

1) Add the headers and closure tags. This should be relatively trivial.

2) Do this for multiple languages.

It's a .Net app that uses the latest .Net version. If your Windows are up to date it should be fine. I should get a chance to add those two tomorrow.
[Desire Android Development] danarama:
Awesome thanks. I don't use windows and haven't got a valid license key to ensure it would be up to date.
[Desire Android Development] adskankster:
Ah, bugger. I had made the wrong assumption that you used windows based purely on one of your FAQs. A silly thing to do of course.

If you can't run it, I can run it and give you the results.
[Desire Android Development] danarama:
Might I be able to run it via wine somehow?

But either or really, whatever is easiest please. Dont want to put you to too much trouble.

I work in IT and will be building a windows 8 vm shortly, so it should work on that, if windows 8 works.

I have a win 7 media PC, but thats awkward.

I only want to do a few languages anyway.

Im thinking:

Spanish/portuguese

German/dutch

polish/romainian

french/itallian

for now...
[Desire Android Development] danarama:
I just downloaded the repos through github in the usual way. One from Google, one from cm and one from redux. All merging was done locally by "hand"
[Desire Android Development] Droidzone:
How much space did the google repo use on your hdd?
[Desire Android Development] danarama:
I'll let you know when I get home. Once a build has been made its lots of GBs
[Desire Android Development] danarama:
2.8GB
[Desire Android Development] charliebigpot:
I really like the rom, there are just 2 minor issues:

- FC on settings (as you already pointed out)

- WIFI is not working (3g is)

thx for your effort!

C
[Desire Android Development] ihlades:
Nice to finally see your work posted here. Finally someone who actually did profit from having a "clean, stripped-down ROM". Great idea, great job!
[Desire Android Development] danarama:
WiFi working fine here. Do you get an error? What happens? Have you tried another RIL?

Try this one http://db.tt/apLH2dP
[Desire Android Development] danarama:
Thanks matey. Couldn't have done it without you ;)
[Desire Android Development] Charles Collins:
okay, so took the plunge and installed this ROM. I found the install instructions straight forward enough and it loaded on quickly. It looks stable and fast. The phone is running well and I haven't encountered any problems with any of the apps which I have installed.

I did encounter one problem in that it didn't read the mtd file and show the correct system storage data but that was due to me leaving the the 10apps2sd file on the phone which once removed sorted that out.

Also I tried to flash my UOT Kitchen file and got into a boot loop but I am not sure why.

Overall impression is very good and will keep it on the phone to see how it gets on. Thanks Dan for your time and effort it getting this ROM out to us.
[Desire Android Development] Droidzone:
Cheers..

..........
[Desire Android Development] danarama:
Was it an old UOT kitchen theme? You were on Redux previously, but although this ROM uses many Redux commits, the framework is different. You would need to make a new theme.
[Desire Android Development] Rastaman-FB:
how did you have 10apps2sd on there? did you flash this without wiping the device?

it shouldnt be there as if you wiped data is formatted
[Desire Android Development] danarama:
Yeah he did. I put an extra step to wipe data as format alone doesn't always do the job, especially where .android_secure is concerned.
[Desire Android Development] Rastaman-FB:
hmm does with amonra 2.0.1

odd that the 10apps2sd was still there then :/ confuzzled
[Desire Android Development] danarama:
Wouldn't worry about that. TBH Clarlie has a history with that file just appearing back in his init.d. Honestly not sure why. Seems to be no rhyme nor reason.
[Desire Android Development] Rastaman-FB:
:0 we know him?
[Desire Android Development] danarama:
Madhatter1689 on AF and he was in our Google+ huddle for a while (until a few days ago).
[Desire Android Development] Blair H:
Installed this last night, and other than the force closes on settings every so often, I've not noticed any issues!

Only thing I really miss from CM7 is the ability to take away the overscroll glow.

Very good rom, thanks!
[Desire Android Development] danarama:
Thanks, glad you like it. Looking into force close issue. Just haven't had chance yet.
[Desire Android Development] oudbrood:
Off topic question:

@RootSu How have you learn to do this? Is there a basic something with info how to start? (Which system/programs you need, location to put files ect, first steps to edit files)
[Desire Android Development] danarama:
Most of what you say I have had to learn myself. I found googling it quite tricky to get the right answers. I asked a couple of questions to developers (Richard Trip and Ihlades)

I downloaded the CM7, Redux and google AOSP repositories locally and started playing.

The initial documentation I used is here:

http://source.android.com/source/index.html

See the links at the top left hand side.

It took me about 4 months I think from starting to learn to actually getting to dGBv1.0

It may take some people less time and some people more time. You have to use Linux. Although I am a wintel system engineer, I was a linux n00b
[Desire Android Development] adskankster:
Okay, here's the French files - can you check them and see if there's any obvious errors or omissions? I did it as an intersection between the elements in both redux and dGB - that is, the string (etc.) had to be in both files. There's no easy way for me to see if that means that some dGB strings are missing.

If this is okay, I'll change it to run for multiple, specified languages, run it for the list above and then post them, plus the application up here.

Using .net meant I was able to test some ideas that will be useful for work, so I was able to do it in work hours. It would be possible in awk etc. but would take me a lot longer to get done. This app is a bit throw-away, but it should take most of the hard work from translations.

Anyway, let me know....
[Desire Android Development] danarama:
Thanks Very much, I'll add it to the source and compile Settings.apk and flash it, then let you know (when I get home)

AFAIK, I didn't add any strings, just took away.
[Desire Android Development] danarama:
Update on languages:

The French files worked. There was a slight issue in the strings.xml and arrays.xml in that row 21 had duplicated part of row 20. Once removed, Settings.apk compiled fine with the French language.

Unfortunately this is not enough, it also requires a recompile of framework-res.apk, which needs no translation work (which is a bonus).

Both the framework-res.apk and settings.apk increase by 100k, so if like me, you have less than 200k spare, you need to sacrifice something. Really the only thing is talk.apk, or flash the dGBrSU 65 hboot, which still leaves oodles of space.

Obviously, since we are replacing the framework-res.apk, any themes will need to be recreated.

But thanks to adskankster, this is all possible now.

So whats the next step? Settings.apk is not likely to change for a while, but it may do and I don't want to have to come to you everytime as it is unfair on you.

I thought we could also do:

German

Dutch

Spanish

Portuguese

Italian

Polish

as a starter for 10. What does everyone else think?

I only want to do major languages for now.
[Desire Android Development] adskankster:
Nice one.

I'll happily knock out those other files for now to get things going.

I'll post the application up here, and you can try it. If it doesn't run, I should be able to move it to an earlier version. I don't know how how far back I can go as it uses LINQ, but we may be able to get it running on your machine. I very much doubt it'll run on Wine, but you could try.

It's all on my work machine though. I may get a chance tomorrow evening, otherwise it'll be Monday morning.

Long term I'll look to see if I can do a Linux app. It's an interesting problem - you might need to nudge me t hough.
[Desire Android Development] danarama:
Brilliant, thank you very much (again)

http://www.mattman.org/rootsu/rootSU/langs/Langs.zip
[Desire Android Development] danarama:
Added French Language to change log and created Extras section in post 1
[Desire Android Development] adskankster:
Sorry, I didn't get a chance to get it today. I'll sort it on Monday.

BTW I have 384k left in system (unthemed). If this adds 100k+ to the size, that will leave me 200ish left. What sort of size is a theme (roughly)? I haven't had a chance yet to get round to building one.
[Desire Android Development] danarama:
No problem, thanks

This will add 200k or there abouts. A theme is hard to quantify in size. It depends what you add really.

Will you be adding a language?
[Desire Android Development] adskankster:
Not if you build an extra language free version. If you add these to all future versions, then at some point I guess I will... :)

I don't have a problem with that, I have loads of app space.

I'll see how it all pans out and play it by ear then.
[Desire Android Development] danarama:
Happy 500th download ;)
[Desire Android Development] MatDrOiD:
Hey rootSU,

just flashed your rom today. :) Wanted to stick with oxygen, but could not get lower than 70 mb on system. And after long time with ext I want to see how it goes without, which is why I need as much /data as possbile. There we come to your rom! First impression: works very nice and smooth.

Flashed evoillet manu kernel SVS-AXI-CFS and use it with setcpu in addition.

Any bugs and / or strange things will be reported.

At the close of this post I congratulate you on this wonderful rom. :)

Best regards,

MatDrOID
[Desire Android Development] adskankster:
Just re-read the first post and my reply suddenly makes less sense. I won't be adding a language if you keep them optional, which is a nice touch.
[Desire Android Development] danarama:
Thanks Mat

ads, yeah it made no sense ;)
[Desire Android Development] MatDrOiD:
First "issue" noticed, namely in "In About Phone>Battery use". The time showed under display seems to show not whole time the display is on, but only the time the display is on minus the time for applications. I hope that's understandable.

RootSU, did you want this? Are could wiping battery stats help? If yes to second possibility, will report back when I am back on 90% after full charge (which can some time, because I always fully discharge my phone and with this rom it's not so easy :D) and wiping battery stats afterwards.
[Desire Android Development] danarama:
Should display the whole time it is on. The battery usage is 100% stock from google?
[Desire Android Development] adskankster:
The zip file seems to be missing?
[Desire Android Development] danarama:
Sorry thought you already had it. I removed it as people were just downloading it all the time. Cant get it back until tonight now...
[Desire Android Development] adskankster:
I should have downloaded before. I'll get it when you repost and let you know.
[Desire Android Development] k3lcior:
I'm jumping in when you add Languages. :D
[Desire Android Development] danarama:
Should all be complete this week, with any luck.
[Desire Android Development] MatDrOiD:
Just wiped battey stats and problem was solved.

TouchPaled from dGB with Transparent XDA App
[Desire Android Development] danarama:
Good news!
[Desire Android Development] danarama:
Lang.zip attached for adskankster.

Sorry about that
[Desire Android Development] adskankster:
Got it thanks.

Here's the whole lot done. I've had a quick look at a few random files and it all looks okay. Let me know of any issues. It takes about 30 seconds to run (inc. selecting the folders and typing in the languages).

I've re-done the French ones, but save your current ones before you've tested this.

I'll start getting the app ready to upload.
[Desire Android Development] adskankster:
Here's the app.

Hopefully it'll run on your machine, if not let me know and I'll try and compile it for an older version of .Net.

To use, run it:

Source Dir is the folder with the Redux files in it.

Target Dir is the folder with the dGB settings xml files in it. The generated files will be placed in here. Back it up first.

Locales is a comma delimited list of locale two letter codes - the same codes as used in the folder names.

Error checking is rudimentary, and just pops up a message box. I would suggest running again if you get one as it's just exception handling so something is likely to have been missed. Let me know if it's persistent and not a data error.

:)

EDIT:

Just a quick extra - the Processing Complete message is for each language. I forgot to change it when I added multiple language support. It'll be more informative next version. :o
[Desire Android Development] danarama:
Many thanks. Maybe I can run it at work and email them back to myself...
[Desire Android Development] ShirazSuleman:
Hey rootSU,

Is there any chance you could provide FMRadio as an extra flashable .zip or atleast tell me what I need to do to add it into the ROM?

Regards

Shiraz
[Desire Android Development] oudbrood:
Before flashing the rom put a fm.apk (rip from a other rom) into the zip file (system/app).
[Desire Android Development] adskankster:
You could also try this one: https://market.android.com/details?id=com.mikersmicros.fm

I've not tried it yet, so can't say if it's any good. There may also be others.
[Desire Android Development] danarama:
I don't like fm. On earlier builds I removed all supporting frameworks. Can't remember for sure, but I think I continued to do this

Edit.. yep removed all fm references so no fm will work.

If you want fm, this Rom is not for you
[Desire Android Development] danarama:
Totally missed this post, so sorry for not thanking you sooner. I'll get compiling tonight / tomorrow. Only saw the app post (oops)
[Desire Android Development] adskankster:
No worries, I probably should have flagged it. I just wasn't sure how long it would take to get the app up here, so thought I should get the xml up first. In the end it didn't take long.
[Desire Android Development] danarama:
You're a star, thank you. Hope you noticed the credit I put for you in post #1 ;)
[Desire Android Development] k3lcior:
@rootSU do you need help with Polish translation?
[Desire Android Development] danarama:
No thanks. Translation has been done by adskankster. I gave him the english files from my settings.apk and he wrote a script / app to compare them with the original Redux settings.apk files, so all that is left is to recompile the settings.apk and framework-res.apk for each of the languages in post 2. Should be finished in a couple of days.
[Desire Android Development] adskankster:
Yes thanks. It's no problem - I've been on custom ROMs for a little while now, and it's the first time I've been able to give something back, so I'm glad to have finally been able to find a way to do so. :)
[Desire Android Development] :
I'm very very happy with this rom! Like the internal memory! I can finally install all my apps without partitioning my sd! Keep up the good work and looking forward to dutch language!
[Desire Android Development] danarama:
Excellent. Thanks.
[Desire Android Development] danarama:
This will be in the next full compile by default. I'm just about to test NL language which was already compiled before I added this.

If you really want it quickly, the next language after NL will have this in. You can flash it and it will be English unless you change it to the other langauge.
[Desire Android Development] danarama:
Added Nederlands

http://www.mattman.org/rootsu/rootSU/langs/Nederlands.zip
[Desire Android Development] oudbrood:
Yeahhhh is this the flashable zip over excesting 1.4 rom, or must the setting.apk replaced?
[Desire Android Development] danarama:
The zip replaces both Settings.apk and framework-res.apk. You need a little bit more space if you're on the dGBrSU60 Hboot, so downgrade to dGBrSU65 or remove Talk.apk before flashing.
[Desire Android Development] oudbrood:
Ok going to flash it tonight
[Desire Android Development] oudbrood:
Good job guys! Flashing was going well. Most items are translate in settings but not everything (see screenshots). Did you know that?

Format of the date is allright now.

Only keyboard is still not complete.