Created
August 10, 2014 15:04
-
-
Save mitsuruog/2d212e729f45542717f8 to your computer and use it in GitHub Desktop.
Revisions
-
mitsuruog created this gist
Aug 10, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ sap.ui.controller "com.mitsuruog.sapui5.showroom.view.Locale", onInit: -> i18nModel = new sap.ui.model.resource.ResourceModel bundleUrl : "i18n/messageBundle.properties" @getView().setModel i18nModel, "i18n" This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ sap.ui.jsview "com.mitsuruog.sapui5.showroom.view.Locale", getControllerName: -> "com.mitsuruog.sapui5.showroom.view.Locale" createContent: (oController) -> @page = new sap.m.Page title: "{i18n>title}" subHeader: new sap.m.Bar contentRight: [ new sap.m.Text text: "{i18n>changeLocale}" ] content: [ new sap.m.Text text: "{i18n>text}" ] footer: new sap.m.Bar contentRight: [ new sap.m.Button type: "Accept" text: "{i18n>button}" ] @page This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ title = ロケール text = 吾輩は猫である。名前はまだ無い。 changeLocale = ロケール変更: button = これはボタンのテキスト