Translating Filmulator

@CarVac we have a weblate instance now, if you’re interested in getting filmulator setup there to do translation.

How do I make use of weblate?

I can setup filmulator as a project, point it to the strings files, then people can translate, and it will make a PR with the updated files against your repo.

Do I need to manually make separate files for every language?

I think weblate will create the files as necessary. I’m not an expect (yet).

@CarVac Attached reworked translation and shortened some things.
filmulator_german.zip (23.3 KB)

Looks good so far. Will you provide different languge builds or include an option in the program to choose language?

The language is automatically selected if it matches your locale.

I think I may be able to make an override, though. The easiest thing will be an English/Not English toggle, but I suppose I should do it the right way and list the languages.

I’ve made an override that for now just forces the program into English.

New .ts file including that new setting: https://github.com/CarVac/filmulator-gui/blob/testbuild/filmulator-gui/qml/filmulator-gui/i18n/qml_de.ts

You have PN :wink:

Hi all. i’m a brazilian photographer, see www.julianoserra.com Liked very much this software and could do a portuguese translation, please verify if it’s ok to use. Thanks tradPortugues2.txt (63.3 KB)

1 Like

Thanks so much, Juliano.

I needed to add a few newlines to match the original layout, and I removed the spaces between the slashes in the directory structure examples.

I’ll have more stuff for you to translate soon…

Thanks once more!

@Juliano_Serra

I’ve got a new version of the .ts file for translation!

CarVac Are you having issues with encondig? the text appears here with all &'s, and I have to use zzunescape to convert, then edit and save as UTF-8.filmulator_pt_BR_3.txt (68.7 KB)

Are you using a text editor?

I was using Qt Linguist.

Ok, better, I’m installing QT…

Please help, what components must select to install Linguist?

You should only need to install the normal “desktop gcc 64-bit”.

Then you’ll find it in the Qt/[version]/gcc_64/bin directory.

Ok, much easier with linguist, hope I’ve done right. To upload here I had to change to txt file. qml_pt_BR.txt (69.8 KB)

Thanks!

I discovered a fun Qt bug.

The lens selection button’s tooltip contains a backslash ("\") exactly as seen here.

In the code it’s escaped properly, "...(\"\\\")..." as a string.

However, this breaks the translation lookup function and it was never displaying the translation.

Now here’s the fun part: if I remove the backslash from it "...(\"\")...", it actually works and displays the translation, even if the translation has a backslash.

I guess I need to split up the string into two…

1 Like