Error parsing .po files

Bug #491365 reported by Albert Cervera i Areny - http://www.NaN-tic.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

OpenERP is not able of loading .po files created by some applications such as lokalize. In some cases the application puts comments in a single line instead of two:

For example, does:

#: field:sale.order,amount_invoiced:0 field:sale.order.line,amount_invoiced:0

Instead of what OpenERP expects:

#: field:sale.order,amount_invoiced:0
#: field:sale.order.line,amount_invoiced:0

Related branches

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

Here's a sample .po file.

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

The module of the sample is nan_partner_risk, but another one can be easily created as explained above.

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

The attached patch fixes the problem for me.

Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Hello,

I have applied your patch in stable 5.0 server its working fine. Please update your code

revision-id: <email address hidden>
branch-nick: stable_5.0_server
revno: 1898

Thanks for your patch.

Changed in openobject-server:
status: New → Fix Released
Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote : Re: [Bug 491365] Re: Error parsing .po files

Thanks a lot for being so fast!

A Dijous, 3 de desembre de 2009, mra (Open ERP) va escriure:
> Hello,
>
> I have applied your patch in stable 5.0 server its working fine. Please
> update your code
>
> revision-id: <email address hidden>
> branch-nick: stable_5.0_server
> revno: 1898
>
> Thanks for your patch.
>
> ** Changed in: openobject-server
> Status: New => Fix Released
>

--
Albert Cervera i Areny
http://www.NaN-tic.com
Mòbil: +34 669 40 40 18

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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