patchGNU Octave - Patches: patch #8640, Comments for translators

 
 

patch #8640: Comments for translators

Submitted by:  Felipe G. Nievinski <fgnievinski>
Submitted on:  Sun 05 Apr 2015 04:58:23 AM UTC  
 
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 05 Apr 2015 05:15:45 AM UTC, comment #1:

Explaining the syntax adopted.
tr()'s second input argument is now meant for string disambiguation:

<http://doc.qt.io/qt-5/i18n-source-translation.html#translator-comments>

> The recommended way to add comments is to annotate the tr() calls in
> your code with comments of the form:
>
> //: ...
>
> or
>
> /: ... /
>
> Examples:
>
> //: This name refers to a host name.
> hostNameLabel->setText(tr("Name:"));
> (...)
> You can [also] use the keyword TRANSLATOR for translator comments.


The .ui files are a little more complicated:

<https://code.launchpad.net/~dpm/intltool/add-qtdesigner-support/+merge/145112>
78 + ### For translatable Qt Designer XML files ###
79 + #
80 + # Specs:
81 + #
82 + # - http://qt-project.org/doc/qt-5.0/qtlinguist/linguist-ts-file-format.html
83 + # - http://qt-project.org/doc/qt-5.0/qtdesigner/designer-ui-file-format.html
84 + #
85 + # <string> tag attributes:
86 + #
87 + # notr="true" means the string is not translatable
88 + # extracomment maps to a developer comment in gettext
89 + # comment corresponds to "disambiguation" in the Qt Linguist API, and maps
90 + # to msgctxt in gettext

<http://tsdgeos.blogspot.com.br/2011/05/qt-designer-texts-disambiguation-vs.html>
Qt Designer has two fields regarding translations for text properties: "disambiguation" and "comment"; they confusely map respectively to XML attributes "comment" (for disambiguation) and "extracomment" (for developer/translator comment) in the .ui file) [quote edited for clarity]

Felipe G. Nievinski <fgnievinski>
Sun 05 Apr 2015 04:58:23 AM UTC, original submission:

Here's a few notes for fellow translators,
that I found necessary in revising translations.
Thx,
-F.

Felipe G. Nievinski <fgnievinski>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #33542:  mypatch.patch added by fgnievinski (4KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by fgnievinski (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 05 Apr 2015 04:58:23 AM UTCfgnievinskiAttached File-=>Added mypatch.patch, #33542

    Back to the top


    Powered by Savane 3.1-cleanup1