Forums

OverviewV-Play 1 Support › Translation problems on android

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #5108

    Heini

    Hi,

    now i translated all the strings in my game and named the qm-files like described in the documentation. Running the game on windows and iOS, everything works fine and the strings are displayed in the required system language. But on Android the strings are still displayed in the standart language (in my case english) and are not getting translated.

     

    Heini

    #5109

    Alex
    V-Play Team

    Hi Heini,

    on which device and which Android version are you testing?
    Cheers, Alex

    #5111

    Heini

    Hi Alex,

    i am using a Galaxy Ace with Android 2.3.x. (2.3.2 i think)

     

    Greetings

    Heini

    #5112

    Alex
    V-Play Team

    Hi Heini,

    thanks for bringing this up, we found (and fixed 😉 ) a bug where the system locale was not set correctly on some Android versions. Translation on Android should work again with the upcoming V-Play version 1.4, shipping at the beginning of next week.

    Cheers,

    Alex

    #5123

    Heini

    Hi Alexes 😉

    now i realized, that even on iOS something is not going round:  now on iOS always the german qm-file is getting loaded, no matter what language is selected in the OS settings.

     

    Greetings

    Heini

    #5124

    Alex
    V-Play Team

    Hi Heini,

    the translation system is currently designed to use the system language only as initial language for the first app start. For future runs the initial language is saved in the game’s settings (settings.language) and can for example be overridden in your own language selection scene.

    For your test you have to deinstall and then install the app again after changing the device’s language. We can however add a flag somewhere in our items if you find it useful to always use the current system language instead of saving the selection for later usage.

    Cheers,

    Alex

    #5191

    Heini

    Hi Alex,

    reinstalling the game worked.

    For the moment my game is in english only and I plan to publish an update with german and italian language support. So after updating the game to new version with multilanguage support, for my users the game will start in their current system language? I mean, because the settings database will not be overwritten by installing an update. So at the first gamestart after apdating, the settings.language will be read from database and because it will be “undefined” it will be set to the current system language, is that correct?

     

    Greetings

    Heini

    #5192

    Alex
    V-Play Team

    Absolutely correct! 😉 As already stated our translation module is currently designed to provide a dedicated language selection dialog in your game but we can surely add a flag to always use the system language if this option is more convenient, thanks for your input.

    Cheers,

    Alex

    #5481

    David

    Hi Heini,
    As requested again today again (https://v-play.net/developers/forums/t/translating-your-app/#post-5480) we managed finally to add the new flag so the system language is loaded properly and it can be called somewhere in the Component.complete of the main window/scene:
    translation.useSystemLanguage = true

    If the app was installed before with the old system the user needs to restart the app once to clean the settings memory. With a clean installation it will work properly from the first time using the new flag.

    The new flag will be shipped with the next daily update!

     

    Cheers,

    David

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

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support