[TIMOB-9815] Anvil: Add support for i18n folders
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-03-21T17:26:37.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Release 3.1.0 |
Components | Tooling |
Labels | core |
Reporter | Jeff English |
Assignee | Ingo Muschenetz |
Created | 2012-06-27T08:34:33.000+0000 |
Updated | 2017-03-09T00:01:05.000+0000 |
Description
Add the ability to use an i18n folder when running a test suite.
I need to be able to define an i18n folder that is used when running a test suite so that I can test certain functionality and failure cases in modules.
Test Case
This uses the "app" Anvil config just for convenience (so you don't need to setup a completely new config just to test this.)Create the strings.xml file
* Create the folder support/anvil/configSet/configs/app/i18n/en * Open support/anvil/configSet/configs/app/i18n/en/strings.xml in your favorite editor. * Add the following:Create a test
* Open support/anvil/configSet/Resources/suites/app.js. * Add this line to the test therein:Run the test
* Run the app config suites in Anvil (this assume you know how to run Anvil -- that's not covered here.) e.g.:* The tests therein should succeed.
Pull request has been submitted: https://github.com/appcelerator/titanium_mobile/pull/3977
Closing ticket as fixed.