Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo SDK Support › Translations

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25660

    nks (baumemo)

    Hi Felgo Team,

    i have a small questions about predefined texts e.g. ok or cancel in message boxes. They are always on english.

    How can I translate them? The cmake scripts doesn’t detect them and I think it would be best they are translated automatically.

    I also found out that settings.language is on a fresh german device always set to english. I can force it to german while running using translation.useSystemLanguage.

    Why is it set to a wrong language even the device never was in english language?

    I tested all this on a mac build.

    Hope you can help

    Regards

    #25661

    Günther
    Felgo Team

    Hi,

    there are different NativeUtils APIs, for example displayTextInput and displayAlertDialog allow to customize the button text. With displayMessageBox this is not possible due to underlying native APIs used.

    For the system language: Even if you do a fresh build on Desktop the configured translation of the application persists. The stored setting is related to the executable name/identifier. If you e.g. rename the project in the CMakeLists and change the config.json identifier, you should see the actual default behavior. Otherwise a previous language setting might be loaded already.

    I tested on macOS and german language was successfully used as the default when it was actually a completely new project/identifier without any previous language change.

    Best,
    Günther

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded