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

 
 

patch #8640: Comments for translators

Submitter:  Felipe G. Nievinski <fgnievinski>
Submitted:  Sun 05 Apr 2015 04:58:23 AM UTC
   
 
Category:  Core : other Priority:  3 - Low
Status:  Wont Do Privacy:  Public
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 18 Jan 2020 11:28:09 AM UTC, comment #2: 

Review for Octave 6.

No interest for 5 years now. Thus I assume that these comments were maybe useful, but not too necessary.

Closing item.

Kai Torben Ohlhus <siko1056>
Group Member
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 Files:
   
   
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
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by fgnievinski (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-01-18 siko1056 CategoryNone Core : other
        Priority5 - Normal 3 - Low
        StatusNone Wont Do
        Open/ClosedOpen Closed
    2015-04-05 fgnievinski Attached File- Added mypatch.patch, #33542

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code