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:  Vala Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned 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 " +
"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

 

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

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

    Only logged-in users can vote.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    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.3