Bug 681574 - intltool-extract extract only first line from glade files
Summary: intltool-extract extract only first line from glade files
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: intltool
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-02 16:05 UTC by Miroslav Suchý
Modified: 2012-08-16 14:43 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-16 14:23:51 UTC
Type: ---


Attachments (Terms of Use)

Description Miroslav Suchý 2011-03-02 16:05:58 UTC
Description of problem:
Lets have some glade file, e.g rh_register.glade

where is this lines of code:

------------cut here ---------------------
<property name="label" translatable="yes" context="yes">You won't be able to receive software updates, including security updates, for this system.

You may access the RHN registration tool by running &lt;b&gt;RHN Registration&lt;/b&gt; or &lt;b&gt;Red Hat Subscription Manager&lt;/b&gt; in the &lt;b&gt;System &gt; Administration&lt;/b&gt; menu.
You may access the software update tool by running &lt;b&gt;Software Update&lt;/b&gt; in the &lt;b&gt;System &gt; Administration&lt;/b&gt; menu.</property>
------------cut here ---------------------

Now if I run:
intltool-extract --type=gettext/glade rh_register.glade

I get this in rh_register.glade.h:

char *s = C_("yes", "You won't be able to receive software updates, including security updates, for this system.");

If I try it with some older version (0.35.0) I correctly get multiline:

char *s = N_("You won't be able to receive software updates, including security updates, for this system.\n"
             "\n"
             "You may access the RHN registration tool by running <b>RHN Registration</b> or <b>Red Hat Subscription Manager</b> in the <b>System > Administration</b> menu.\n"
             "You may access the software update tool by running <b>Software Update</b> in the <b>System > Administration</b> menu.");

Version-Release number of selected component (if applicable):
intltool-0.41.1-1.fc14.noarch

How reproducible:
deterministic

Steps to Reproduce:
1. have glade file with translatable multiline string
2. run intltool-extract on that file
  
Actual results:
only first lines are selected for translation

Expected results:
All lines are selected for translation

Comment 1 Miroslav Suchý 2011-03-02 16:07:30 UTC
rh_register.glade is here:
https://fedorahosted.org/spacewalk/browser/client/rhel/rhn-client-tools/data/rh_register.glade

Comment 2 Miroslav Suchý 2011-03-02 16:10:04 UTC
Strange thing is that with intltool-0.41.0-1.1.el6.noarch from RHEL6 it does not happend, so it may be bug in one of required modules/libraries.

Comment 3 Fedora End Of Life 2012-08-16 14:23:55 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Miroslav Suchý 2012-08-16 14:43:18 UTC
Yes, works fine in Fedora 17.


Note You need to log in before you can comment on or make changes to this bug.