bugGNU gettext - Bugs: bug #34506, xgettext -L glade doesn't extract...


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

bug #34506: xgettext -L glade doesn't extract context from gtkbuilder files

Submitted by:  Данило Шеган <bascelik>
Submitted on:  Sat 08 Oct 2011 03:49:50 PM UTC  
Category: GladeSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Miguel Ángel Arruga Vivas <m1gu3l>
Open/Closed: Closed

Sat 15 Jun 2013 07:55:41 AM UTC, comment #2:

It should be fixed with the latest git master.

Daiki Ueno <ueno>
Project Administrator
Fri 01 Mar 2013 08:10:45 PM UTC, comment #1:

It can be tested at https://github.com/644rosen/gettext_gtkbuilder_support.git

Miguel Ángel Arruga Vivas <m1gu3l>
Project MemberIn charge of this item.
Sat 08 Oct 2011 03:49:50 PM UTC, original submission:

I am trying to replace intltool's hacky glade/gtkbuilder support with GNU xgettext support, however, other than bug 29216 (https://savannah.gnu.org/bugs/index.php?29216), I also noticed that xgettext doesn't extract "context" attribute into msgctxt as expected.

Example gtkbuilder .ui file below.

<object class="GtkDialog" id="dialog1">
<child internal-child="vbox">
<object class="GtkVBox" id="vbox1">
<property name="border-width">10</property>
<child internal-child="action_area">
<object class="GtkHBox" id="hbox1">
<property name="border-width">20</property>
<object class="GtkLabel" id="help">
<property name="label" translatable="yes">help</property>
<object class="GtkLabel" id="user-help">
<property name="label" translatable="yes" context="user">help</property>
<object class="GtkLabel" id="developer-help">
<property name="label" translatable="yes" context="developer">help</property>

Relevant intltool bug (with branch attached that starts depending on GNU gettext glade support): https://bugs.launchpad.net/intltool/+bug/705420

Данило Шеган <bascelik>


Attached Files
file #27329:  bug34506.patch added by m1gu3l (3KiB - text/x-patch - This patch adds the context in the message.The uploaded .ui has generated the .pot.)
file #27330:  test1.ui added by m1gu3l (15KiB - application/x-designer - This patch adds the context in the message.The uploaded .ui has generated the .pot.)
file #27331:  test1.pot added by m1gu3l (3KiB - application/vnd.ms-powerpoint - This patch adds the context in the message.The uploaded .ui has generated the .pot.)


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 m1gu3l (Updated the item)
  • -unavailable- added by bascelik (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):



    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Nov 2016 01:14:34 AM UTChaibleCategoryNone=>Glade
    Sat 15 Jun 2013 07:55:41 AM UTCuenoStatusReady For Test=>Fixed
    Fri 01 Mar 2013 08:10:45 PM UTCm1gu3lStatusIn Progress=>Ready For Test
    Thu 28 Feb 2013 09:55:45 AM UTCm1gu3lStatusNone=>In Progress
      Assigned toNone=>m1gu3l
    Fri 25 Jan 2013 08:06:49 PM UTCm1gu3lAttached File-=>Added bug34506.patch, #27329
      Attached File-=>Added test1.ui, #27330
      Attached File-=>Added test1.pot, #27331

    Back to the top

    Powered by Savane 3.1-cleanup1