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


<interface>
<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>
<child>
<object class="GtkLabel" id="help">
<property name="label" translatable="yes">help</property>
</object>
</child>
<child>
<object class="GtkLabel" id="user-help">
<property name="label" translatable="yes" context="user">help</property>
</object>
</child>
<child>
<object class="GtkLabel" id="developer-help">
<property name="label" translatable="yes" context="developer">help</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</interface>


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
  • -email is unavailable- added by haible (Updated the item)
  • -email is unavailable- added by ueno (Posted a comment)
  • -email is unavailable- added by m1gu3l (Updated the item)
  • -email is unavailable- added by bascelik (Submitted the item)
  •  

    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 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-27 haible CategoryNone => Glade
    2013-06-15 ueno StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2013-03-01 m1gu3l StatusIn Progress => Ready For Test
    2013-02-28 m1gu3l StatusNone => In Progress
        Assigned toNone => m1gu3l
    2013-01-25 m1gu3l Attached 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.3