News:

--

Main Menu

Translation question

Started by jinformatique, December 15, 2016, 11:31:17 AM

Previous topic - Next topic

jinformatique

Hello,

I'd like to participate. What does these types mean?

<translation type="vanished">
<translation type="obsolete">

Does it have to be updated and then we can put it like this ?
<translation>

Thanks,
Best regards.

eumagga0x2a

Just ignore and don't touch all strings marked as "vanished" and "obsolet". Please pay attention to preserve markup and think about keyboard accessibility, including keyboard accellerators (&amp;) where appropriate, avoiding conflicts. Thanks!

jinformatique

Ok. Are not keyboard accellerators in the source tag and represented with an underscore like this:
<source>L_uma threshold:</source>

eumagga0x2a

#3
Underscores are the GTK way to define keyboard accelerators. I reported a possible issue with them today, you better use strictly the Qt way to define accels in your translations for now (Avidemux GUI is a Qt application):

&amp;

By the way, into which language are you going to translate?

edit: Of course, you never modify anything within the source tags. Just use &amp; in your translations where an accelerator is appropriate.

jinformatique

Thanks for your help. I'm doing French translation.

So another question. I got this:

<source>Ca_rtoon mode</source>
<translation type="unfinished"></translation>


If I understand correctly, I keep the source, but where do I put the &amp; in the translation? How do I choose?

<source>Ca_rtoon mode</source>
<translation type="unfinished">Mode dessin animé</translation>


But I could also change the source like this, why not?
<source>Ca&amp;rtoon mode</source>

eumagga0x2a

Quote from: jinformatique on December 15, 2016, 03:34:36 PM
Thanks for your help. I'm doing French translation.

Fine, but please take into account that Mean, the author of Avidemux, is French, and the current translation is his work, you should be careful to avoid conflicts.

QuoteI got this:

<source>Ca_rtoon mode</source>
<translation type="unfinished"></translation>

Just because you picked this spot, I think the code in question is unused. When Xvid is available, the plugin (avidemux_plugins/ADM_videoEncoder/xvid4) is used instead, its translation begins at line 12036 of avidemux_fr.ts.

QuoteIf I understand correctly, I keep the source, but where do I put the &amp; in the translation? How do I choose?

Common sense. If possible, keep the same key as in the English original, if not, choose another one. The first letter is preferable, but if this leads to a conflict with another accel in the same window, choose a different one.

Quote<source>Ca_rtoon mode</source>
<translation type="unfinished">Mode dessin animé</translation>

E.g.

<source>Ca_rtoon mode</source>
<translation>Mode &amp;dessin animé</translation>


This will set Alt+D as keyboard shortcut to directly access the checkbox labeled with "Mode dessin animé".

QuoteBut I could also change the source like this, why not?
<source>Ca&amp;rtoon mode</source>

Never ever touch the source because it a) will break the translation which won't be matched to the respective string in the code anymore and b) it will be discarded next time the .ts files get regenerated (which happens mostly shortly before a release if new strings have been added).

jinformatique

So if the author of Avidemux, is French why is not all the code translated?

eumagga0x2a

Other priorities, which makes sense. Who else would actually develop the application? This said, I'm sure your future contributions will be welcome, just be careful not to modify existing translations imprudently. If you are unsure about a particular piece of code your are going to translate, don't hesitate to ask. Generally, I assume that you are able to read C++ source to understand the real meaning of the strings you translate. If not, I'd encourage you to learn it, this is immensly helpful for translation work.

If you don't have a build environment for Avidemux yet, I would recommend that you set up such an environment to test your changes and to generate easily applicable patches. You might want to read the topic http://avidemux.org/smif/index.php/topic,17299.0.html in this case.

scootergrisen

You can use Qt Linguist to translate TS files.

jinformatique


Raniere

Quote from: scootergrisen on December 15, 2016, 09:01:57 PMYou can use Qt Linguist to translate TS files.

Can anyone tell me if there is a number limit of entries in qt linguist's Phrase Books?
I'm trying to create a Phrase Books in qt linguist but I'm having trouble opening the Phrase Books when it has a lot of entries, so this question came to me: is there a limit?