Val Vachaev

Blog  •  May 27, 2015  •  By Val Vachaev  •  Qt QML  •  Qt, C++, localization, internationalization
In this blog post, we will show an example of how to support dynamic language selection in an application using Qt. By "dynamic", I mean that the application can change the displayed language from within the application at run-time, rather than picking it up from the locale once on startup. Text or ID-Based Translations? In this example we will be using the text identifier translation mechanism, which may not be familiar to you if you have only used Qt's more common string-based translation method using the tr() method. The ID-based method (1) is described as an "industrial...