Skip to content

BALLView_translations

dstoeckel edited this page Feb 21, 2015 · 2 revisions

How to add a language to BALLView

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] or make 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.

Clone this wiki locally