Hi, i'm having a scenerio, that I set title name in my code using getView().setTitle(""); for a Dialogue. This title I need to change in i18n.
You mean that you want to load the i18n strings dynamically? If so XavaResources.getString("test_i18n_label")
then in <your_application>-labels_en.properties: test_i18n_label=My English title</your_application>
<your_application>-labels_nl.properties: test_i18n_label=Mijn Nederlandse titel</your_application>
Is that what you need? Hope this helps. Bart.
Thank you, getView().setTitleId("test_label_id");
labels_en.properties: test_label_id =Test label id
labels_es.properties: test_label_id =ID de etiqueta de prueba
I tried this too and it is working, XavaResources.getString("test_i18n_label");
Log in to post a comment.
Hi,
i'm having a scenerio, that I set title name in my code using getView().setTitle(""); for a Dialogue.
This title I need to change in i18n.
You mean that you want to load the i18n strings dynamically? If so
XavaResources.getString("test_i18n_label")
then in
<your_application>-labels_en.properties:
test_i18n_label=My English title</your_application>
<your_application>-labels_nl.properties:
test_i18n_label=Mijn Nederlandse titel</your_application>
Is that what you need?
Hope this helps.
Bart.
Thank you,
getView().setTitleId("test_label_id");
labels_en.properties:
test_label_id =Test label id
labels_es.properties:
test_label_id =ID de etiqueta de prueba
I tried this too and it is working, XavaResources.getString("test_i18n_label");