Skip to Content
avatar image
Former Member

Problem with Internationalization

Hi, I hope can you help me. Internationalization are only given in the controls page, but not the menu of my control sap.ui.uinified.Shell.

I'm working with manifest.json to specify the model i18n.

...
},
  "models": {
    "i18n": {
              "type": "sap.ui.model.resource.ResourceModel",
              "settings": {
	      "bundleName": "adois.ui.i18n.i18n"
	    }
    }
}
...

This way i18n Bind

var oToolbarShell = new sap.m.OverflowToolbar("idToolbarShell", {
	content : [
		new sap.m.Text("idTitleShell",{
		text: "{i18n>TitleShell}",
		}),
		new sap.m.ToolbarSpacer(),
                ...

in i18n.properties

TitleShell=IM TITLLE SHELL

Nota:The shell toolbar code is in controller of controlId especific in routing.

I attach an image.

sin-titulo.png (10.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 30, 2017 at 12:03 AM

    what language you are using to run ui5 app? what property file you have prepared? do you have any idea about i18n(generally, not ui5's)?

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 04, 2017 at 01:15 PM

    seems es file is not found, just keep these two files:

    1. i18n_en.properties or i18n.properties
    2. i18n_es.properties

    and run your application in English or Spanis

    Add comment
    10|10000 characters needed characters exceeded