Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-8583: Implemented Ti.Locale module and L() #26

Merged
merged 6 commits into from Mar 19, 2013

Conversation

pec1985
Copy link
Contributor

@pec1985 pec1985 commented Mar 17, 2013

Using the sample tibbtest app with the i18n folder found inside the assets folder, test this code:

Ti.API.info('------------ Ti.Locale.getString() ---------------');
Ti.API.info('Should be "Welcome to BB10 Test app" is: ' + Ti.Locale.getString('welcome_message'));
Ti.API.info('Should be "No Found" is:                 ' + Ti.Locale.getString('welcome_message2', 'Not Found'));
Ti.API.info('Should be "welcome_message2" is:         ' + Ti.Locale.getString('welcome_message2'));
Ti.API.info('');
Ti.API.info('--------------------- L() ------------------------');
Ti.API.info('Should be "Welcome to BB10 Test app" is: ' + L('welcome_message'));
Ti.API.info('Should be "No Found" is:                 ' + L('welcome_message2', 'Not Found'));
Ti.API.info('Should be "welcome_message2" is:         ' + L('welcome_message2'));
Ti.API.info('');
Ti.API.info('-------------- Locale Properties -----------------');
Ti.API.info("Ti.Locale.currentLanguage should be en, was =  " + Ti.Locale.currentLanguage);
Ti.API.info("Ti.Locale.currentCountry should be US, was =   " + Ti.Locale.currentCountry);
Ti.API.info("Ti.Locale.currentLocale should be en_US, was = " + Ti.Locale.currentLocale);
Ti.API.info('');
Ti.API.info('--------------- Locale Methods ------------------');
Ti.API.info("Ti.Locale.getCurrentLanguage should be en, was =  " + Ti.Locale.getCurrentLanguage());
Ti.API.info("Ti.Locale.getCurrentCountry should be US, was =   " + Ti.Locale.getCurrentCountry());
Ti.API.info("Ti.Locale.getCurrentLocale should be en_US, was = " + Ti.Locale.getCurrentLocale());
Ti.API.info('');

@mtnlife999
Copy link
Contributor

Pedro - could you do a git pull and then add your changes back? There appears to have been some changes possibly with the -ldata lib.

…kberry into timob-8583

Conflicts:
	build_templates/blackberry/tibbapp/common.mk
	src/tibb/tibb.pro
	test/apps/native/tibbtest/common.mk
mtnlife999 pushed a commit that referenced this pull request Mar 19, 2013
TIMOB-8583: Implemented Ti.Locale module and L()
@mtnlife999 mtnlife999 merged commit 18b949d into appcelerator-archive:master Mar 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants