Difference between revisions of "Localyzer Resource File Comments"

From Lingoport Wiki
Jump to: navigation, search
(Localyzer Retranslation Tag)
(.json file example)
Line 45: Line 45:
   
 
== .json file example ==
 
== .json file example ==
  +
<pre>
  +
{
  +
"_LRM_PKTAG636": "NetEntRawClipped_5_97 - CHANGES-ONLY",
  +
"_LRM_INCONTEXT778": " https://fs-incontext.lingoport.io/incontext-server/lookup?token=4h2384Rh5JLWhn7tS12UJauH71XV7J6R&key=3015_41",
  +
"delivered": "Delivered",
  +
"_LRM_INCONTEXT555": " https://fs-incontext.lingoport.io/incontext-server/lookup?token=4h2384Rh5JLWhn7tS12UJauH71XV7J6R&key=3125_45",
  +
"Sphyrna": "Sphyrna corvette",
  +
"_LRM_RESEND998": " LQA-||joe.reviewer@trials.com||Note a Romantic Date||Jour",
  +
"_LRM_INCONTEXT12": " https://ts-incontext.lingoport.io/incontext-server/lookup?token=4h2384Rh5JLWhn7tS12UJauH71XV7J6R&key=3200_45",
  +
"date": "Date"
  +
  +
}
  +
</pre>
   
 
== .properties file example ==
 
== .properties file example ==

Revision as of 19:41, 30 June 2021

Localyzer Comments Overview

Localyzer uses a set of comments, either in the repository files for retranslation requests, or to resource files when sending them for translation. The three types of comments are:

  • A Localyzer Project tag at the top of the file
  • A Localyzer Context tag above a key value pair
  • A Localyzer Retranslation tag above a key value pair

Localyzer Project Tag

A project tag is created as a comment and added when sending a file for translation. It indicates if the file is a full file or a delta, the Localyzer project, the target locale, and the kit number. This tag must not be modified when returning the translated file. The translation validation process uses the tag for some of its internal checks.

Example of the project tag, here in a .json file:

   "_LRM_PKTAG636": "RawClipped_5_97 - CHANGES-ONLY"
  • _LRM_PKTAG636: Indicates an Localyzer tag.
  • RawClipped: The name of the Localyzer project.
  • 5: the kit version, here the 5th time files for the RawClipped project are sent to translation
  • 97: the internal language identifier, here Japanese/Japan

Localyzer Context Tag

When Localyzer is configured to work with InContext Translation, the system creates a tag as a comment above each resource key/value pair when sending the file to translation. The tag includes a URL pointing to a context held by the Lingoport Context server. In the TMS or CAT tool, that may appear as a note to the translator, allowing them to see the context for the text to be translated.

Example of a Context tag, here for a .resx file:

    <!--LRM_INCONTEXT https://fs-incontext.lingoport.io/incontext-server/lookup?token=4h23984Rh5JLWhn79tS12UJauH71XV7J9R&key=3015_41-->
    <data name="DELIVERED" xml:space="preserve"><value>Delivered</value></data>
  • LRM_INCONTEXT: Indicates the context URL for the key / value pair below, here the text to be translated is 'Delivered'

Localyzer Retranslation Tag

When Localyzer processes LocalyzerQA post-edit requests, it adds a comment in the repository to the translated file just above the key/value pair which requires re-translation. When sending the source file to translation, the translated file comment is then added to the source file only for that locale. In the TMS or the CAT, that comment may appear to the translator as a suggestion to retranslate the text. The translated file can also be edited by hand to add that re-translation tag.

Example of a retranslation tag, here for a .properties file:

   #LRM_RESEND LQA-||joe.reviewer@lingoport.com||This is not a romantic date||RDV
   rebels.date=Date
  • LRM_RESEND : the directive to the translator/TMS/CAT tool to indicate the retranslation request
  • joe.reviewer@lingoport.com: the email of the person requesting the retranslation, in case more communication is necessary
  • This is not a romantic date: optionally, an explanation of why the original translation was imprecise or wrong
  • RDV: the suggested retranslation by the reviewer.

Example of files with the tags

.json file example

{
  "_LRM_PKTAG636": "NetEntRawClipped_5_97 - CHANGES-ONLY",
  "_LRM_INCONTEXT778": " https://fs-incontext.lingoport.io/incontext-server/lookup?token=4h2384Rh5JLWhn7tS12UJauH71XV7J6R&key=3015_41",
  "delivered": "Delivered",
  "_LRM_INCONTEXT555": " https://fs-incontext.lingoport.io/incontext-server/lookup?token=4h2384Rh5JLWhn7tS12UJauH71XV7J6R&key=3125_45",
  "Sphyrna": "Sphyrna corvette",
  "_LRM_RESEND998": " LQA-||joe.reviewer@trials.com||Note a Romantic Date||Jour",
  "_LRM_INCONTEXT12": " https://ts-incontext.lingoport.io/incontext-server/lookup?token=4h2384Rh5JLWhn7tS12UJauH71XV7J6R&key=3200_45",
  "date": "Date"

}

.properties file example

.resx file example

.strings file example