You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2008/02/19 23:24:41 UTC
svn commit: r629272 -
/incubator/xap/trunk/samples/WebContent/examples/widgets/src-js/Internationalization.js
Author: jmargaris
Date: Tue Feb 19 15:24:37 2008
New Revision: 629272
URL: http://svn.apache.org/viewvc?rev=629272&view=rev
Log:
internationalization example
Added:
incubator/xap/trunk/samples/WebContent/examples/widgets/src-js/Internationalization.js (with props)
Added: incubator/xap/trunk/samples/WebContent/examples/widgets/src-js/Internationalization.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/src-js/Internationalization.js?rev=629272&view=auto
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/src-js/Internationalization.js (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/src-js/Internationalization.js Tue Feb 19 15:24:37 2008
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+Xap.require("dojo.i18n.common");
+dojo.requireLocalization("widgets.i18n", "strings",null,"en,ROOT");
+
+
+Internationalization = function(){
+}
+
+
+//Makes the scrollpane take up the remainder of the screen
+//Some issues with IE and FF differences
+Internationalization.prototype.getString = function( stringName ){
+ //TODO make this use dojo i18n stuff
+ return dojo.i18n.getLocalization("widgets.i18n", "strings")[stringName];
+}
+
Propchange: incubator/xap/trunk/samples/WebContent/examples/widgets/src-js/Internationalization.js
------------------------------------------------------------------------------
svn:eol-style = native