Updated Translate Manuskript (markdown)

PGB 2018-08-01 14:25:05 -03:00
parent d989a4eade
commit 0752ca5968

@ -103,4 +103,127 @@ We will check it, compile it, add it to the settings window in manuskript and if
Your pull request must include at least the `.ts` file (of course), but you can also include the `.qm` file, and/or the modification in `manuskript/settingsWindow.py` (if you don't to the last one, please tell us the name of your language in your language — for example "French" is "Français").
# F. Be glad you made the world a better place
# F. Be glad you made the world a better place
_________________________________________________________
# G. Additional Comments for Windows Users (08/01/2018)
1) Make the translation through: https://hosted.weblate.org/projects/manuskript/translations/
2) If the translation for your language is already available then review it.
3) Once you have finished and reviewed your translation, download QTlinguist on your device at https://github.com/thurask/Qt-Linguist/releases.
Download the .zip file, we have available at the moment: linguist_5.11.1.zip (https://github.com/thurask/Qt-Linguist/releases/download/20180620/linguist_5.11.1.zip)
4) After downloading, unzip the linguist_5.11.1.zip.
5) Go back to the translation site, item 1 above, and download the .ts files of your translation.
On the page, please click on "File" and then click "Download Original Translation File (Linguist QT Translation File)"
So by downloading the file with the name of your language type to "manuskript-translations-en_BR.ts" (manuskript-translations-your_language.ts)
6) Move the downloaded file ("manuskript-translations-en_BR.ts") to the inside of the folder unpacked in item 4, (linguist_5.11.1).
7) Then to convert the .ts file to the .qm format, we will use the "lconvert.exe" executable that is inside the "linguist_5.11.1" folder, via "shell" or "cmd".
8) Hold shift and right click and select open powershell (cmd) here. This will open a new window, the powershell or cmd.
9) In the window type:
lconvert.exe -i "infile" -o "outputfile"
In my case the command will be:
lconvert.exe -i. \ manuskript-translations-en_US.ts -o. \ manuskript-translations-en
BR.qm
10) Do not forget to rename the file properly:
Original Files:
manuskript-translations-en.BR
manuskript-translations-en_BR.ts
Renamed File:
manuskript_en.qm
manuskript_en.br
11) Copy these renamed files into the "manuskript \ i18n" folder
12) Follow the steps "D. Test your translation (optional but recommended)" in:
https://github.com/olivierkes/manuskript/wiki/Translate-Manuskript
Here they are:
Open manuskript / settingsWindow.py and after line 64 (or around there, search for tr ["Deutsch"] = "manuskript_de.qm") add: tr ["NAME-OF-YOUR-LANGUAGE"] = "manuskript_XX.qm" . Be careful to respect code indentation (the number of spaces before tr [...], or manuskript will crash.
This will tell manuskript to look for your translation file. (In the future, this could / should be automatic)
Run manuskript, and in the settings window (F8), chose your language.
________________________________________________________________________________________________
In portuguese language:
Comentários Adicionais para usuários do Windows (01/08/2018)
1) Faça a tradução através do: https://hosted.weblate.org/projects/manuskript/translations/
2) Se a tradução para a sua linguem já estiver disponível faça uma revisão então.
3 ) Depois de terminada e revisda a sua tradução, baixe no seu equipamento o QTlinguist em https://github.com/thurask/Qt-Linguist/releases.
Baixe o arquivo .zip, neste momento temos disponível: linguist_5.11.1.zip (https://github.com/thurask/Qt-Linguist/releases/download/20180620/linguist_5.11.1.zip)
4) Após baixar, descompacte o linguist_5.11.1.zip.
5) Volte ao site da tradução,item 1 acima, e baixe o arquivos .ts da sua tradução.
Na pagina, clique em "Arquivo" e depois clique em "Baixar Arquivo de Tradução Original(Arquivo de tradução QT Linguist)"
Assim baixando o arquivo com o nome de sua lingua tipo a "manuskript-translations-pt_BR.ts"( manuskript-translations-your_language.ts)
6) Mova o arquivo baixado ("manuskript-translations-pt_BR.ts") para a dentro da pasta descompactada no item 4, ( linguist_5.11.1).
7) Então para convertter o arquivo .ts para o formato .qm, iremos usar o executável "lconvert.exe" que esta dentro da pasta " linguist_5.11.1", via "shell" ou "cmd".
8) Segure shift e clique com o botão direito do mouse e selecione abrir o powershell(cmd) aqui. Assim abrirá uma nova janela, o powershell ou cmd.
9) Na janela digite:
lconvert.exe -i "infile" -o "outputfile"
No meu caso ficará assim o comando:
lconvert.exe -i .\manuskript-translations-pt_BR.ts -o .\manuskript-translations-pt_
BR.qm
10) Nao esqueça de renomear o arquivo adequadamente:
Arquivos Originais:
manuskript-translations-pt_BR.qm
manuskript-translations-pt_BR.ts
Arquivo Renomeado:
manuskript_pt_BR.qm
manuskript_pt_BR.ts
11) Copie estes arquivos renomeados para dentro da pasta "manuskript\i18n"
12) Sigua os passos "D. Test your translation (optional but recommended)" em :
https://github.com/olivierkes/manuskript/wiki/Translate-Manuskript
Aqui estão eles:
Abra o arquivo "manuskript/settingsWindow.py" e depois da linha 64 ( ou próximo daqui, procure por tr["Deutsch"] = "manuskript_de.qm") adicione: tr["NAME-OF-YOUR-LANGUAGE"] = "manuskript_XX.qm". Tenha cuidada, respeite o a identação do código, (os números de espaços antes de "tr[..."), ou o manuskript vai travar.
Assim diga ao manuskript para abrir o seu arquivo de tradução. (No futuro isto pode/será automático)
Execute o manuskript, e em configurações (F8), escolha a sua linguagem.