KLatexFormula’s language can be selected in the settings dialog, under the “Interface” tab. The first time you run klatexformula, it will detect your current language settings.
KLatexFormula can be displayed in the following languages.
English (US)
French
Czech – Translation kindly provided and maintained by Pavel Fric.
Ukrainian – Translation kindly provided by Yuri Chornoivan
You are welcome to contribute a translation of KLatexFormula into your favorite language, to be included in future versions of klatexformula. Read on for more information.
KLatexFormula uses Qt5’s translation system. Please refer to Qt’s translator manual.
The translation process works the following way:
Download the latest version of the klatexformula sources. Enter the directory src/i18n
;
create or update the translation source file (TS file) by running ./i18nupdate.pl
klf_XX.ts
, where XX
is to be replaced with your 2-letter language code;
Edit the translation using Qt5’s linguist. Make sure you translate the text “English (US)” in the “QObject” context to the localized name of your language (e.g. “Ελληνικά”);
Translate the following data files, and create corresponding file names using your 2-letter language code as suffix:
src/data/about.html
→ about_XX.html
,
src/data/cmdl-help.html
→ cmdl-help_XX.html
,
src/data/whats-new-4.1.html
→
whats-new-4.1_XX.html
;
Test your translation. Compile a release file using Qt5 linguist → “File” → “Release”,
and place this file in the folder ~/.klatexformula/i18n/
. Place the translated data
files ..._XX.html
in ~/.klatexformula/data/
. (Create either directory if
nonexistent.)
Restart KLatexFormula. Your language should appear under Settings → “Interface” → “Application Language”;
Once everything looks good, that’s it! You are welcome to contribute your translated
files (klf_XX.ts
, about_XX.html
, cmdl-help_XX.html
and
whats-new-4.1.html
) for inclusion in the
next version of KLatexFormula.