Menu

To rename the Dialogue title using i18n.

Harsha
2023-12-05
2023-12-12
  • Harsha

    Harsha - 2023-12-05

    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.

     
  • Bart Devos

    Bart Devos - 2023-12-05

    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.

     
  • Harsha

    Harsha - 2023-12-12

    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.