Author: jfthomps Date: Mon Apr 23 18:33:29 2012 New Revision: 1329364 URL: http://svn.apache.org/viewvc?rev=1329364&view=rev Log: VCL-485 Multilingualization of Web UI
js/nls/ja_JP/messages.js: added 'This must be a valid time that is greater than the start time' js/vcldojo/TimeTextBoxEnd.js: changed internationalization of invalidMessage string to get translation from VCL javascript translation file instead of doing it the dojo way so that new translations will not require recompiling dojo Modified: incubator/vcl/trunk/web/js/nls/ja_JP/messages.js incubator/vcl/trunk/web/js/vcldojo/TimeTextBoxEnd.js Modified: incubator/vcl/trunk/web/js/nls/ja_JP/messages.js URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/web/js/nls/ja_JP/messages.js?rev=1329364&r1=1329363&r2=1329364&view=diff ============================================================================== --- incubator/vcl/trunk/web/js/nls/ja_JP/messages.js (original) +++ incubator/vcl/trunk/web/js/nls/ja_JP/messages.js Mon Apr 23 18:33:29 2012 @@ -73,5 +73,6 @@ nlsmessages = { 'Wednesday': 'æ°´ææ¥', 'Thursday': 'æ¨ææ¥', 'Friday': 'éææ¥', -'Saturday': 'åææ¥' +'Saturday': 'åææ¥', +'This must be a valid time that is greater than the start time': 'ããã¯ãéå§æå»ããã大ããæå¹ãªæéã§ãªããã°ãªãã¾ãã' } Modified: incubator/vcl/trunk/web/js/vcldojo/TimeTextBoxEnd.js URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/web/js/vcldojo/TimeTextBoxEnd.js?rev=1329364&r1=1329363&r2=1329364&view=diff ============================================================================== --- incubator/vcl/trunk/web/js/vcldojo/TimeTextBoxEnd.js (original) +++ incubator/vcl/trunk/web/js/vcldojo/TimeTextBoxEnd.js Mon Apr 23 18:33:29 2012 @@ -16,8 +16,6 @@ */ dojo.provide("vcldojo.TimeTextBoxEnd"); dojo.require('dijit.form.TimeTextBox'); -dojo.require('dojo.i18n'); -dojo.requireLocalization("vcldojo", "TimeTextBoxEnd"); dojo.declare( "vcldojo.TimeTextBoxEnd", [dijit.form.TimeTextBox], @@ -33,8 +31,10 @@ dojo.declare( return this.inherited(arguments); }, postCreate: function() { - var ln = dojo.i18n.getLocalization("vcldojo", "TimeTextBoxEnd"); - this.invalidMessage = ln.invalidMessage; + if(usenls && 'This must be a valid time that is greater than the start time' in nlsmessages) + this.invalidMessage = nlsmessages['This must be a valid time that is greater than the start time']; + else + this.invalidMessage = 'This must be a valid time that is greater than the start time'; this.inherited(arguments); } }