bugGNU gettext - Bugs: bug #35189, Add support for Vala

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #35189: Add support for Vala

Submitter:  None
Submitted:  Wed 28 Dec 2011 08:29:57 PM UTC
   
 
Category:  Vala Severity:  3 - Normal
Item Group:  None Status:  Fix Released
Privacy:  Public Assigned to:  ueno
Open/Closed:  Closed

Wed 12 Jun 2013 01:38:35 AM UTC, comment #1: 

Should be fixed with the next release.

Daiki Ueno <ueno>
Group administrator
Wed 28 Dec 2011 08:29:57 PM UTC, original submission:  

Vala is a language which compiles to generate C code (see: https://live.gnome.org/Vala). It’s currently possible to extract most translatable strings from Vala by telling gettext to treat it as C code. However, not all strings are extractable this way.

Specifically, it’s not possible to extract string literals which are split over multiple lines using concatenation. For example:

  _("my " +
    "string " +
    "literal")

will result in just “my ” being extracted by gettext.

Similarly, Vala’s verbatim strings aren’t extracted properly. For example:

  _("""my verbatim
 string literal""")

will result in just “my verbatim” being extracted.

It looks like gettext needs to grow native support for Vala. A reference to the string syntax understood by Vala is here: https://live.gnome.org/Vala/Tutorial#Strings. Vala source files have a ‘.vala’ extension, and the strings are UTF-8 encoded.

Anonymous

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Updated the item)
  • -email is unavailable- added by ueno (Posted a comment)
  • -email is unavailable- added by drbob (Forgot to log in before submitting the bug report)
  •  

    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.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-04 haible StatusFixed Fix Released
    2016-11-27 haible CategoryNone Vala
    2013-06-12 ueno StatusNone Fixed
        Assigned toNone ueno
        Open/ClosedOpen Closed
    2011-12-28 drbob Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code