-
Notifications
You must be signed in to change notification settings - Fork 36
BALLView_translations
dstoeckel edited this page Feb 21, 2015
·
2 revisions
Note: Translation support in BALLView is far from perfect. If you find issues in the GUI that hinder translation we would be more than grateful to accept patches and/or suggestions.
We use QtLinguist to create and update different languages for BALLView.
To collect the strings to translate (e.g. german) call
make translation_[language_COUNTRY]
this last call is equivalent to:
lupdate -extensions C,ui,c,c++,cc,cpp,cxx,ch,h,h++,hh,hpp,hxx -source-language en_US -target-language de_DE source/ include/ -ts data/BALLView/translations/BALLView.de_DE.ts
While building BALLView, cmake will automatically generate the .qm files.
To add a translation you have to
- change into your build-directory
- add your language to the file
cmake/BALLViewTranslations.cmake - reconfigure (call
cmake ..) - call
make translation_[language_COUNTRY]ormake update translations - translate the texts using
linguist BALLView.ab_AB.ts
- send us the
.ts-file or commit the.ts-file into our repository
Contributions to the translations - in particular, new langues - are always welcome!
Switching between languages in BALLView can be done via Menu->Edit->Preferences->General->Language Preferences.