Translation of tags into Russian

Started by IWTA, June 28, 2019, 09:37:04 AM

Previous topic - Next topic

Jom

#45
Quote from: Phil Harvey on July 18, 2019, 10:54:25 AM
This is described in the -lang option documentation.

- Phil
Thanks. But there is no about how to give you notes for translation. What is the best way to do this?

Jom

I reading this topic and understand that the mechanism of internalization is very inflexible.
When I was making a WordPress theme I discovered gettext.
Phil, can gettext be useful for ExifTool?
https://en.wikipedia.org/wiki/Gettext

Phil Harvey

I don't think gettext would be useful.  ExifTool is Perl only.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Jom

I create ru.pm but it is always different for
exiftool -listx -exif:all > out.xml
and
exiftool -listx -iptc:all > out.xml

How to create ru.pm for all tags?
What is in it initially, if its size is almost no different from the ones created by me?

Or do I misunderstand the system?

Phil Harvey

The script should add the tags you import from the xml file to the existing ru.pm.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Jom

What is inside ru.pm originally?

How can I get all tags at once to check the translation?

Phil Harvey

You can build ru.pm from scratch by importing the XML of all tags.  You generate the full XML like this:

exiftool -listx > out.xml

But you need the .pm files in place to export the XML.  So I'm not sure I understand what you are asking.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Jom

QuoteBut there is no about how to give you notes for translation. What is the best way to do this?
Please answer this question.

Phil Harvey

I don't understand the question.  What do you mean by "notes", and what would I do with these notes?

If you mean the "Notes" column in the tag name documentation, then these don't have translations.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Jom

#54
Probably, it would be correct to say not "notes", but "comments" next to the translated string.
Can I make comments for translations? How to do them correctly? On screnshot it is corectly?


Phil Harvey

I understand, thanks.

Comments in this file are lost when the file is generated.  Currently there is no mechanism to maintain these.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Jom

Quote from: Phil Harvey on July 23, 2019, 07:12:36 AM
Comments in this file are lost when the file is generated.  Currently there is no mechanism to maintain these.
The ability to save comments to the translation will significantly reduce the number of renewable errors when updating the translation. The fact is that some strings can be translated in different ways. and not all options will be right in context .

Phil Harvey

Sorry, but the Perl parser just ignores comments, so there is no easy way to preserve these.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Jom

What this version means?


Phil Harvey

It is just a number that I increment when a change is made so that I can tell which version of a file someone has.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).