I’m novice at Calabash testing and faced an obstacle while trying to make a multi-language app.
Here is my test scenario:
- I select a textfield.
- Enter a string with one language and then enter some text with another.
And here occurs the obstacle: when I try to switch the language through the tests - it fails. I mean the application tries to find a symbol for the next language and loops endlessly because current keyboard layout doesn’t contain it.
The only solution I found yet is to switch a layout manually but thats not an option actually for real testing.
How could I fix it?
There are two steps:
Use Calabash command line tools to change the language and locale of the simulator.
Launch the app with arguments to set the preferred language and locale.
The complete reference can be found on this Calabash iOS wiki page: Change Locale and Language
# Set the simulator language to Swiss German and locale to Swiss French
$ calabash-ios sim locale de-CH fr_CH
# In your Before hook, tell Calabash to launch the app in the locale and language.
options = {
# Launch with Swiss German as the primary language and Swiss French as the locale.
:args => ["-AppleLanguages", "(de-CH)",
"-AppleLocale", "fr_CH"]
}
launcher.relaunch(options)
Related
How do I set Android Studio project to use English translation for all locales other than the default language? If I have values/ and values-en/ directories, I want all locales other than the default to use the English translation.
I think you should a bit change your mind and think that all locales should use English translation but in one case (let's say for Spanish) should be no-English. Set values as your English directory and values-xxx for this as you said default case.
If a guy would have a phone with this default locale, he would have no-English translation, otherwise it would be translated to English.
Hope it will help
If the device chooses French as the language, will the locale automatically set to French as well? Or does it depend on user's current location?
For iOS, language and region are separate settings while in Android, seems like we only get to choose Language but not the region.
Comparison:
Android - Chooses French language, locale becomes fr-FR
iOS - Chooses English language, French region, locale becomes en-FR
For Android is there any other way to retrieve device's region?
I have been Googling around but couldn't find a good source of information on this topic yet.
In Android you can select Portuguese (Portugal) or Portuguese (Brasil) which translates to pt-PT and pt-BR. In this case there are two different languages, which I personally find it redundant, because the better way of handling this would be to separate languages and regions.
However you can programmatically change the language and region, by setting:
new Locale("pt", "PT");
You can read more about programmatically changing the language here:
http://gunhansancar.com/change-language-programmatically-in-android/
http://www.sureshjoshi.com/mobile/changing-android-locale-programmatically/
or anywhere on Stackoverflow :) there are lots of articles written about it
By default we get English and French. I would like to get Spanish. Can someone tell me where to change the second language from French to Spanish?
First you have to install Spanish and then you can remove French.
You can find the instructions here: Installing new languages
Though there are instructions to remove an existing language (at the end of the page) I have found more practical to just leave the files for the default languages (English and French) because they are going to reappear when you update jHipster version. If you don't want them in the menu, just delete the value in the file src/main/webapp/components/language/language.service.js:
.constant('LANGUAGES', [
'en', /* 'fr', */
//JHipster will add new languages here
'es'
]
I want to use the Atom Text Editor to manage my feature files defined in Gherkin, I saw that there exist on the one hand the language-gherkin-plugin which works very well with syntax coloring in different colors. I'm more interested to use the second language-gherkin-i18n-plugin to define feature files in different languages. The problem is that the syntax coloring doesnt work as expected and shown in the preview on GitHub. Has anyone used the plugin in Atom and was able to run it as expected? Or can someone try it out and give feedback if it works?
My setup is Windows 10 64 Bit and Atom 1.2.3, the plugin will be installed through the package manager!
EDIT: I fixed the package together with the developer, the problem lied in the autodetection of the language with CRLF line ending files. Should work now.
BR
I downloaded a Poseidon for UML 8 - Installer (Community Edition 8.0.0).
When I do exit operation or some other operations, I got code Garbled Dialog as:
It looks like you are running Windows is in a language (eg. Chinese) that is not supported by the software. Some dialogs like Yes/No dialogs and file open dialogs have translations for other languages but the font used in the software does not display the characters correctly so you just see empty boxes.
It should be easy to guess on most dialogs what they should say, in your example the buttons probably say Yes, No, Cancel.
You can change the language in Windows to English and it should work.