Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CamiTK
Docs
Commits
a2a99e02
Commit
a2a99e02
authored
Nov 26, 2018
by
Jean-Loup Haberbusch
Browse files
ADDED Translation
parent
6c63de51
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/Highlighted Features/Translation_in_CamiTK.md
0 → 100644
View file @
a2a99e02
## How to make translation of CamiTK in other language ?
The language used in implementation code by camiTK is english. but if
you want to use an another language you can use QtLinguist
(Linguist.exe) to translate all the english character strings.
What is the step to install a new language translation ?
1.
in CamitkTranslate.cmake you must insert abreviation of new language
like
\_
en
\_
fr
\_
de for english, french and german.
2.
do cmake (the files translate
\_
en.ts, translate
\_
fr.ts ,
translate
\_
de.ts are created or updated for all extensions).
3.
use QtLinguist with your
\*
.ts files to translate character string
of
\*
.cpp,
\*
.ui,
\*
.h files.
4.
do cmake (the file translate
\_
en.qm, translate
\_
fr.qm ,
translate
\_
de.qm are create or update for all extensions).
5.
update the listLanguageAndFlag variable in changeLanguage.cpp to
insert for the new language his name, abreviation and flag (add
flag
\_
xx.png file in png format in
src
\\
sdk
\\
actions
\\
application
\\
resources
\\
flags
\\
16 directory)
6.
compile camitk. (then all translate
\_
xx.qrc file are
created).
## How to make translation of CamiTK in other language just for one extension ?
-
open the extension CMakeLists.txt and add
**EXTRA\_TRANSLATE\_LANGUAGE**
with language.
```
cmake
camitk_extension
(
ACTION_EXTENSION
DEFINES COMPILE_APPLICATION_ACTION_API
CEP_NAME SDK
DESCRIPTION
"Features actions used at application level (these actions are mandatory for any CamiTK application to work"
EXTRA_TRANSLATE_LANGUAGE de
)
```
-
do steps 2,3,4,5,6.
## How to select your language in camiTK applications ?
1.
start camiTK imp application.
2.
in the “Help menu” do “Change Language” and choose a new language.
3.
close camiTK imp application.
4.
CamiTKx.y.z.svn.ini file are modified and you can start your camiTK
application with this new language.
!!! tip
You can find used language, abreviation and flag information are in CamiTKx.y.z.svn.ini file for example :
*
`{.text} ... language=french languageAbreviation=fr flagFilename=:/flags/flags/16/flag_fr.png ...`
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment