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

Re: Line wraps significant in po files?

On Tuesday 22 May 2007, Helge Kreutzmann wrote:
> Hello,
> sorry if I post an obvious question, but during a recent translation
> the maintainer of the package asked me to keep "long lines" (i.e. each
> msgstr in one line) because he wanted to control the line breaks in
> the programm and not by the translation (i.e. breaking at white
> spaces).
> My question: Do line breaks in the msgstr influence the display? 

no they don't, in fact you can rewrap them however you like with the 
msgattrib tool from the gettext package:
'msgattrib <something>.po' -> wraps at default witdth for gettext tools,
                              (which is 79 IIRC)
'msgattrib --width=<width> <something>.po' -> wraps at <width>
'msgattrib --nowrap <something>.po' -> the 'long lines' above

Cheers, cobaco (aka Bart Cornelis)

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply to: