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

Submitted by:  None
Submitted on:  Wed 28 Dec 2011 08:29:57 PM UTC  
Category: ValaSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Daiki Ueno <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>
Project AdministratorIn charge of this item.
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 " +

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.



No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    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):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Nov 2016 01:17:13 AM UTChaibleCategoryNone=>Vala
    Wed 12 Jun 2013 01:38:35 AM UTCuenoStatusNone=>Fixed
      Assigned toNone=>ueno
    Wed 28 Dec 2011 08:34:40 PM UTCdrbobCarbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup1