Changes
Page history
Updated [Tutorial] Adding or updating a translation (markdown)
authored
Feb 02, 2015
by
Colin Duquesnoy
Show whitespace changes
Inline
Side-by-side
[Tutorial]-Adding-or-updating-a-translation.md
View page @
f2475b5d
...
@@ -15,23 +15,23 @@ If your language is not in the above list, you will first need to add a new tran
...
@@ -15,23 +15,23 @@ If your language is not in the above list, you will first need to add a new tran
2.
Open a terminal
2.
Open a terminal
!
[
Open a terminal
](
https://raw.githubusercontent.com/ColinDuquesnoy/MellowPlayer/master/doc
s
/_static/open-terminal.png
)
!
[
Open a terminal
](
https://raw.githubusercontent.com/ColinDuquesnoy/MellowPlayer/master/doc/_static/open-terminal.png
)
3.
Type
``python devhelper.py``
3.
Type
``python devhelper.py``
!
[
devhelper.py
](
https://raw.githubusercontent.com/ColinDuquesnoy/MellowPlayer/master/doc
s
/_static/devhelper-menu.png
)
!
[
devhelper.py
](
https://raw.githubusercontent.com/ColinDuquesnoy/MellowPlayer/master/doc/_static/devhelper-menu.png
)
4.
Select option number
**3**
4.
Select option number
**3**
!
[
devhelper.py
](
https://raw.githubusercontent.com/ColinDuquesnoy/MellowPlayer/master/doc
s
/_static/devhelper-translation-choice.png
)
!
[
devhelper.py
](
https://raw.githubusercontent.com/ColinDuquesnoy/MellowPlayer/master/doc/_static/devhelper-translation-choice.png
)
5.
Specify the language code for the translation to add
5.
Specify the language code for the translation to add
!
[
devhelper.py
](
https://raw.githubusercontent.com/ColinDuquesnoy/MellowPlayer/master/doc
s
/_static/devhelper-translation-code.png
)
!
[
devhelper.py
](
https://raw.githubusercontent.com/ColinDuquesnoy/MellowPlayer/master/doc/_static/devhelper-translation-code.png
)
6.
And voilà, the new translation file has been added to the project. You can now start translating the application!
6.
And voilà, the new translation file has been added to the project. You can now start translating the application!
!
[
devhelper.py
](
https://raw.githubusercontent.com/ColinDuquesnoy/MellowPlayer/master/doc
s
/_static/devhelper-translation-added.png
)
!
[
devhelper.py
](
https://raw.githubusercontent.com/ColinDuquesnoy/MellowPlayer/master/doc/_static/devhelper-translation-added.png
)
## Updating translations
## Updating translations
...
@@ -39,13 +39,13 @@ The process for updating a translation is quite simple:
...
@@ -39,13 +39,13 @@ The process for updating a translation is quite simple:
1.
open
``app/translations/mellowplayer_xx.ts``
in
**QtLinguist**
(where xx is the language code, e.g. fr, en,...)
1.
open
``app/translations/mellowplayer_xx.ts``
in
**QtLinguist**
(where xx is the language code, e.g. fr, en,...)
!
[
devhelper.py
](
https://raw.githubusercontent.com/ColinDuquesnoy/MellowPlayer/master/doc
s
/_static/linguist.png
)
!
[
devhelper.py
](
https://raw.githubusercontent.com/ColinDuquesnoy/MellowPlayer/master/doc/_static/linguist.png
)
On the left, you can see a list of the various string context. Each context contains a series
On the left, you can see a list of the various string context. Each context contains a series
of string that need to be translated. To translate a string, type some text in the translation
of string that need to be translated. To translate a string, type some text in the translation
text box and when you're done, mark the item as done (using the green mark)
text box and when you're done, mark the item as done (using the green mark)
!
[
devhelper.py
](
https://raw.githubusercontent.com/ColinDuquesnoy/MellowPlayer/master/doc
s
/_static/linguist-states.png
)
!
[
devhelper.py
](
https://raw.githubusercontent.com/ColinDuquesnoy/MellowPlayer/master/doc/_static/linguist-states.png
)
2.
translate every string, save your work and exit Qt Linguist
2.
translate every string, save your work and exit Qt Linguist
...
...
...
...