M
M
Mikhail Voitenko2013-12-17 15:12:41
Java
Mikhail Voitenko, 2013-12-17 15:12:41

GWT i18n and MVP?

The essence of the problem - there is an application written in GWT and using MVP. Now I'm trying to add i18n chips (like a different language for different inscriptions), but something without success. I added it to the xml file of the project, created the UsersTestMessages interface and files with properties like UsersTestMessages.properties and UsersTestMessages_de.properties , and I get an error:<inherits name="com.google.gwt.i18n.I18N"/><extend-property name="locale" values="de" />

ERROR: Error while executing the JavaScript provider for property 'locale' com.google.gwt.core.client.JavaScriptException: (TypeError) __gwt_getProperty([string: 'locale']): Property 'locale' of object [object Array] is not a function

I tried to build the same thing in a test project without MVP - it works, but in mine it doesn't work. What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Timur, 2013-12-19
@timych

Hmm hard to say - if the project isn't so secret I might dig around and find the bug. But for now, I can only advise you to check that the encoding of the .properies files is utf-8. It is important.

M
Mikhail Voitenko, 2014-01-21
@Firehanded

The magic happened and everything worked.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question