Documentation maintenance

kproth
Posts: 76
Joined: Sun Jan 01, 2023 2:31 pm
Real Name: Kevin Roth

Question about the current state of documentation. I'm hoping to submit a Pull Request with some tweaks to VC Buttons and Cuelists related to external input, which I've mentioned a few times lately in the user forums. It includes a new option on the associated widget properties. I have already updated vcbutton.html and vccuelist.html accordingly in the source code, which appears to be included with v4 builds and accessed via the Question Mark icon in the toolbar. But I see there's a separate qlcplus-docs repository for the online documentation (https://github.com/mcallegari/qlcplus-docs/tree/main).

Is it correct to include changes to (for example) "resources/docs/html_en_EN/vcbutton.html" with my code change PR, and then queue up a second change for the qlcplus-docs repo if/when the main PR is accepted?
User avatar
mcallegari
Posts: 4482
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Internal documentation will be removed.
Official docs will be either online (https://docs.qlcplus.org/v4) or in a released PDF.
All change requests should be submitted to GitHub:
https://github.com/mcallegari/qlcplus-docs
User avatar
sbenejam
Posts: 550
Joined: Sun Apr 12, 2015 6:28 pm
Real Name: Santiago Benejam Torres
Contact:

Massimo, Is the new documentation system ready to translate it into other languages?.
User avatar
mcallegari
Posts: 4482
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

sbenejam wrote: Thu Dec 28, 2023 3:45 pm Massimo, Is the new documentation system ready to translate it into other languages?.
Hi, I think so. I did experiment with v4 vs v5 docs and it is possible. In theory I could setup all combinations between languages and QLC+ versions.
Would you volounteer to make the Spanish version? That would be huge!
User avatar
sbenejam
Posts: 550
Joined: Sun Apr 12, 2015 6:28 pm
Real Name: Santiago Benejam Torres
Contact:

I have done some tests with OmegaT and it seems that the implementation to translate markdown files is good, and machine translation helps a lot and I just have to review some words and sentences. I think I could try to make the versions in Catalan and Spanish. But let me make some tests before.
User avatar
GGGss
Posts: 2732
Joined: Mon Sep 12, 2016 7:15 pm
Location: Belgium
Real Name: Fredje Gallon

Keep us posted with your results. I can take care of the Dutch translation.
All electric machines work on smoke... when the smoke escapes... they don't work anymore
User avatar
mcallegari
Posts: 4482
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Thanks guys!
User avatar
sbenejam
Posts: 550
Joined: Sun Apr 12, 2015 6:28 pm
Real Name: Santiago Benejam Torres
Contact:

Fredje, The programs I have installed in my laptop running Ubuntu 22.04 to translate the documentation are these:
OmegaT translation memory tool: http://omegat.org/download
Neural Machine Translation tools from Softcatala.org: https://github.com/Softcatala/nmt-softcatala
I'm used too some resources from Softcatala such as Translation Memories, Terminology, etc. https://www.softcatala.org
In the OmegaT I have activated in Automatic Translations "MyMemory" and "Apertium". In the Apertium section I pointed the URL to the nmt-softcatala service running on my laptop. http://localhost:8700
User avatar
sbenejam
Posts: 550
Joined: Sun Apr 12, 2015 6:28 pm
Real Name: Santiago Benejam Torres
Contact:

Massimo, I created a new branch called "cat" in my qlcplus-docs fork. There are some translations already made from the first chapters. It seems that the files translated and exported from OmegaT will work without the need to edit them later.
I'm looking if I can do some tests on a local web server. To be able to compare it with the QLC+ documentation of the web.
In case you want to review it.
https://github.com/sbenejam/qlcplus-docs/tree/cat
User avatar
mcallegari
Posts: 4482
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Hi Santiago, happy new year!
i think the right way to translate MD docs is this:
- fork the current qlcplus-doc repo
- duplicate all *.md files and name them .XX.md where XX is QLC+ version and country code. Example: v4_ca, v4_de, etc
- submit a pull request

In this way picture resources are shared between translations, unless you need a translated picture then you should upload a duplicate file ending in v4_XX.png

If you want we can make a test to see if the above works. Please send a pull request of a single page of your choice and I'll setup the language and include the page online.
Thanks!
User avatar
sbenejam
Posts: 550
Joined: Sun Apr 12, 2015 6:28 pm
Real Name: Santiago Benejam Torres
Contact:

Hi Massimo, happy new year. I'll try to send a pull request after rename the translated files as you explained.
User avatar
sbenejam
Posts: 550
Joined: Sun Apr 12, 2015 6:28 pm
Real Name: Santiago Benejam Torres
Contact:

Hi Massimo, I'm looking how to duplicate and rename the .md files in the pages folder. I see that there are files with the following names:
chapter.md -> chapter.v4_ca.md
chapter.v4.md -> chapter.v4.v4_ca.md
chapter.v5.md -> not renaming now
docs.md -> docs.v4_ca.md
default.v4.md -> default.v4.v4_ca.md
Is this correct?. Or Would you like to add "_ca" or "_es" to those who already have .v4 as part of their name?
User avatar
mcallegari
Posts: 4482
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Those with v4 already in the name should be renamed just adding the language code:
chapter.v4.md -> chapter.v4_ca.md
DavidGrc
Posts: 59
Joined: Thu Oct 15, 2020 8:28 am
Location: France
Real Name: David Gouronc

Hi, and happy new year. I don't know how , but maybe i would be able to take care of french translation, if it can help.
Yestalgia
Posts: 371
Joined: Thu Jun 17, 2021 9:31 am
Location: Australia
Real Name:
Contact:

DavidGrc wrote: Thu Jan 04, 2024 8:17 pm Hi, and happy new year. I don't know how , but maybe i would be able to take care of french translation, if it can help.
Maybe just hold off until the first pull request gets closed. I think we're going to learn a lot from sbenejam's work.
User avatar
sbenejam
Posts: 550
Joined: Sun Apr 12, 2015 6:28 pm
Real Name: Santiago Benejam Torres
Contact:

Yestalgia wrote: Tue Jan 09, 2024 10:50 pm
DavidGrc wrote: Thu Jan 04, 2024 8:17 pm Hi, and happy new year. I don't know how , but maybe i would be able to take care of french translation, if it can help.
Maybe just hold off until the first pull request gets closed. I think we're going to learn a lot from sbenejam's work.
I finished translating 6 - Simple Desk chapter a while ago, tomorrow I will start chapter 7 - Virtual Console.
The truth is that automatic translation with OmegaT saves you a lot of work of typing, you just have to check small syntax and translation errors.
Once the translation has been completed, I will have to review the tables and other markers that with OmegaT are sometimes not equal to the original.
User avatar
mcallegari
Posts: 4482
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Thanks Santiago.
Can you please translate also Main Window?
https://docs.qlcplus.org/v4_ca/main-window
User avatar
sbenejam
Posts: 550
Joined: Sun Apr 12, 2015 6:28 pm
Real Name: Santiago Benejam Torres
Contact:

Hi Massimo, I've already translated it. I have not yet sent it to my Git repository. I hadn't translated it yet when I uploaded the first translations.
User avatar
sbenejam
Posts: 550
Joined: Sun Apr 12, 2015 6:28 pm
Real Name: Santiago Benejam Torres
Contact:

Hi Massimo,
I have completed the translation of all QLC+ documentation into Catalan. I need to review links to other pages and sections of the same page. I'll edit them directly in my git repository and check that the links are the right ones.
When I have checked, I'll send a pull request.
Afterwards I'll start the translation into Spanish from the Catalan version. I think it will be faster than from the English version.
User avatar
mcallegari
Posts: 4482
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Awesome, thanks!
Post Reply