Re: msgmerge and the handling of obsolete entries (Re: Updating pofiles on make dist)



Karl Eichwalder schrieb:

>Bernd Groh <bgroh@redhat.com> writes:
>
>  
>
>>And while we're at it, could we have msgmerge please NOT change the
>>format of the po-entries, i.e. introducing new line-breaks?
>>    
>>
>
>It does not add '\n' on its own; C style rules apply.  If you don't want
>it to wrap lines, you can use the option --no-wrap .
>

I wasn't referring to \n's, I was simply referring to line-breaks in 
single-line entries.
--no-wrap will end up in the po-entry literally being in a single line, 
no matter how long the line is.

>    "foo bar"
>
>and
>
>    "foo " "bar"
>
>and
>
>    "foo "
>    "bar"
>
>are all the same;
>

I know, and that's the problem (not a general problem, simply an 
annoyance to me and a couple of other translators I know of). Sometimes 
I structure entries and group them into logical units, i.e. "foo foo1 
foo2 " "bar bar1 bar2" and msgmere then simply changes it into
"foo foo1 foo2 bar " "bar1 bar2" (e.g.). And while I know it's the same, 
it isn't for me, since it makes the next translation a step more 
inefficient for me, since everything isn't as I left it.
--no-wrap will simply end up in "foo foo1 foo2 bar bar1 bar2", which I 
don't want either.
I'd like msgmerge to please leave it as "foo foo1 foo2 " "bar bar1 
bar2". Does that clarify my way of thinking?

Also, if you should happen to forget the space at the end of the line 
(which, admittedly, I sometimes do -- though I *know* it's essential), 
and msgmerge is called on the file, I cannot revert it automatically, or 
at least semi-automatically, i.e. if I do the following:

"foo foo1 foo2" "bar bar1 bar2"

then I can later simply check for entries with no space at the end in 
the po-file self and fix them (if required), if I run this one through 
msgmerge, it might do the following though:

"foo foo1 foo2bar "
bar1 bar2"

and I can do nothing more but manually check my entries and find the 
problem. And --no-wrap doesn't help here either. Does that illustrate 
the other problem I am facing?

I know, the space-problem is easy to avoid on my side, but given that 
there is no advantage in reformatting the lines (or is there?) wouldn't 
it be better to simply leave the format of the po-files as is when doing 
a merge?

Regards,
Bernd

-- 
Disclaimer: http://apac.redhat.com/disclaimer





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]