If you would like to help translate Swidget to other languages besides English, this page is for you. I would like to thank you for your contribution to help improve this app, it is very appreciated. =) Android allows for much more than just language translations as images and layouts can also be localized for a better fit into any market. If you would like to change not only the language being used, but also the layout and/or images, that is an option we can discuss.
Besides the obvious requirement to understand both English and the language you will be translating into, it requires an editor capable of the languages in question or anything that can save in the UTF-8 format. Microsoft Word 2007+ can be used to translate the xml files, but you will need the XML Data View transformation file in order to accomplish the task. Without the XSLT file, you will only see half the information stored in the XML and it makes translations a bit harder.
MS Word will require an XSL file in order to properly translate the strings stored in XML. You can read up on why over here. android_resource_strings.xsl is the “XML Data View” file you will need to use in conjunction with editing the strings_en.xml with MS Word. Once you have opened the “strings_en.xml”, you will need to choose a data view (XSLT) to appy. Browse to this file and choose it. Once you do that, the view should change dramatically and show you two columns. One for “String ID” and one for “String Value”. The column you would translate is the “String Value” and the String ID should give you a good idea of where in the app it will be used (along with the English string currently being used). Once you save the file as “strings_translated.xml”, the translation will be complete and ready to be placed into the next version of the app.
Download link: android_string_resources.xsl (zipped)
Android Market description and promotional text
The Market description text is limited in size to 4000 characters (so much more than the 325 it used to be!).
Current English Android Market text:
1 Swidget is a compact toggle switch widget for your Home screen. 6 switches in 1 tiny widget!Easily toggle your Bluetooth, Wi-Fi, Sound, GPS, the Security Pattern, and Airplane Mode. Android 2.2 users get the option to toggle Hotspot Mode.
The Promotional text is a short ad for the app. The size limit on this text is 80 characters.
Current English Android Market Promotional text:
1 6 switches in 1 tiny widget!
strings_en.xml contains the majority of what needs to be translated inside the app. You can edit it directly with your favorite editor, but if you are going to use MS Word, please read this.
There’s a few technical quirks with the translations, but I will handle all that on my end so you don’t have to worry about it (like the backslashes before single and double quotes). A few of the
strings have wildcards in them like “%1$s”. Those wildcards will need to be in the translated string as well, but will be filled in by the appropriate data where applicable. e.g. “Version %1$s” will become “Version 2.0” when the app is running.
- You do not have to translate every string. Partial translations are acceptable as well as using English where it is better suited.
Please email all questions and submissions.
A quick list of links:
I hope it’s fairly straightforward to translate. It’s a heck of a lot simpler to translate an Android app than some of the commercial programs I’ve worked on in the past. If you have any questions, don’t
hesitate to ask. =)
Again, thank you so much for your generosity!