Line return in exported PO

Bug #29247 reported by Olivier Le Thanh Duong
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Won't Fix
Low
Unassigned

Bug Description

In exported PO, Rosetta automatically use a new line when the current one get too long as does IntlTool.
The trouble is that they don't seem to use the same length for line, so they get cutted in different place.
It's a real PITA when you want to diff the two files to merge them cause it report difference even though the translation are the same.

For exemple :

Rosetta PO :
-"RECONNECT [<hôte>] [<port>] [<motdepasse>], peut être appellé juste avec /"
-"RECONNECT pour se reconnecter au serveur courant ou avec /RECONNECT ALL pour "
-"se reconnecter à tous les serveurs ouverts"

Intltool PO :
+"RECONNECT [<hôte>] [<port>] [<motdepasse>], peut être appellé juste avec "
+"/RECONNECT pour se reconnecter au serveur courant ou avec /RECONNECT ALL "
+"pour se reconnecter à tous les serveurs ouverts"

Revision history for this message
Dafydd Harries (daf) wrote :

My feeling is that we should imitate gettext's behaviour to make things like diffing easier.

Changed in rosetta:
status: Unconfirmed → Confirmed
Changed in rosetta:
assignee: nobody → carlos
Revision history for this message
Carlos Perelló Marín (carlos) wrote :

Well, we try to do it, but there are still some situations where seems like we are not handling correctly, like this one.

Revision history for this message
Данило Шеган (danilo) wrote :

Our parser does have a +1 wrap width, and that's a long standing bug (noticed while fixing #46156, basically due to usage of <= instead of <).

However, if someone wants to diff PO files, I'd advise them to msgcat them anyway.

Changed in rosetta:
importance: Medium → Low
Changed in rosetta:
assignee: carlos → nobody
Revision history for this message
Данило Шеган (danilo) wrote :

Not worth bothering with this, people can easily use msgcat to reformat PO files before diff-ing them.

Changed in rosetta:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.