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:26:44 UTC
svn commit: r629275 -
/incubator/xap/trunk/samples/WebContent/examples/widgets/internationalization.xal
Author: jmargaris
Date: Tue Feb 19 15:26:38 2008
New Revision: 629275
URL: http://svn.apache.org/viewvc?rev=629275&view=rev
Log:
i18n example
Added:
incubator/xap/trunk/samples/WebContent/examples/widgets/internationalization.xal
Added: incubator/xap/trunk/samples/WebContent/examples/widgets/internationalization.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/internationalization.xal?rev=629275&view=auto
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/internationalization.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/internationalization.xal Tue Feb 19 15:26:38 2008
@@ -0,0 +1,30 @@
+<!--
+ - 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.
+ -
+-->
+
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+ <mco xmlns="http://openxal.org/core/mco" id="i18n" class="Internationalization"
+ src="src-js/Internationalization.js"/>
+
+ <verticalBoxPane>
+ <button text="{mco:i18n.getString('string1')}"/>
+ <button text="{mco:i18n.getString('string2')}"/>
+ <button text="{mco:i18n.getString('string3')}"/>
+ </verticalBoxPane>
+</xal>