i18n无法在sapui5中运行。 (WP8)

时间:2016-09-21 13:03:15

标签: internationalization windows-phone-8.1 sapui5

我的i18n无法正常工作,我不知道有什么问题,在我的清单下面.json:

   {
"_version": "1.1.0",
"sap.app": {
    "_version": "1.1.0",
    "id": "de.pensware.ui5StocksApp",
    "type": "application",
    "i18n": "i18n/i18n.properties"

},

"sap.ui": {
    "technology": "UI5",
    "icons": {
        "icon": "",
        "favIcon": "",
        "phone": "",
        "phone@2": "",
        "tablet": "",
        "tablet@2": ""
    },
    "deviceTypes": {
        "desktop": true,
        "tablet": true,
        "phone": true
    },
    "supportedThemes": [
        "sap_bluecrystal"
    ]
},

"sap.ui5": {
    "_version": "1.1.0",
    "rootView": {
        "viewName": "de.pensware.ui5StocksApp.view.App",
        "type": "XML"
    },

    "dependencies": {
        "minUI5Version": "1.30.0",
        "libs": {
            "sap.ui.core": {},
            "sap.m": {},
            "sap.ui.layout": {}
        }
    },
    "contentDensities": {
        "compact": true,
        "cozy": true
    },
        "models": {
        "i18n": {
            "type": "sap.ui.model.resource.ResourceModel",
            "settings": {
                "bundleName": "de.pensware.ui5StocksApp.i18n.i18n"
            }
        }
    },
    "routing": {
        "config": {
            "routerClass": "sap.m.routing.Router",
            "viewType": "XML",
            "viewPath": "de.pensware.ui5StocksApp.view",
            "controlId": "app",
            "controlAggregation": "pages",
            "transition": "slide"
        },

        "routes": [{
            "name": "login",
            "pattern": "",
            "target": "login"
        }],
        "targets": {
            "login": {
                "viewName": "Login",
                "viewId": "Login"

            }
        }
    }
}

}

在我的应用程序中,我有一个名为i18n的文件夹和i18n.properties文件。

在我看来,我有:

   <Page title="{i18n>appTitle}">

但是当我在移动Windows手机中执行该应用程序时,它没有显示相应的文本转换,它只显示“appTitle”值。

0 个答案:

没有答案