Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Issue 62: CPO support for previous messages

Can't Edit
Can't Publish+Mail
Start Review
Created:
1 year, 4 months ago by georgeyk
Modified:
1 year, 4 months ago
Reviewers:
dwaynebailey, friedel
SVN Base:
https://translate.svn.sourceforge.net/svnroot/translate/src/trunk/

Description

From the original bug (in bugzilla #257):

Gettext 0.16 introduces into PO a concept of previous messages.  Very much like
XLIFF alt-trans tags these store the previous msgid.

Patch Set 1

Patch Set 2 : Updated accessors, tests and added base.py & test_base.py

Total comments: 11

Patch Set 3 : Fixed minor issues

Raw unified diffs Stats Side-by-side diffs with inline comments Delta from patch set
translate/storage/base.py 1 chunk 39 lines 0 comments 2
translate/storage/cpo.py 2 chunks 87 lines 0 comments 1 2
translate/storage/test_cpo.py 1 chunk 88 lines 0 comments 1 2

Messages

Total messages: 4
dwaynebailey
All looks good to me. A strange thought in my mind was that we should ...
1 year, 4 months ago
georgeyk
http://zuza.appspot.com/62/diff/21/5 File translate/storage/base.py (right): http://zuza.appspot.com/62/diff/21/5#newcode305 Line 305: return self.prev_source On 2008/07/17 12:59:27, dwaynebailey wrote: > ...
1 year, 4 months ago
georgeyk
http://zuza.appspot.com/62/diff/21/8 File translate/storage/test_cpo.py (right): http://zuza.appspot.com/62/diff/21/8#newcode93 Line 93: assert isinstance(unit.prev_source, multistring) On 2008/07/17 12:59:27, dwaynebailey wrote: ...
1 year, 4 months ago
georgeyk
1 year, 4 months ago
On 2008/07/17 12:59:27, dwaynebailey wrote:
> All looks good to me.  A strange thought in my mind was that we should have a
> global state in which we can state if we preserve previous messages and then
> simply setting a new source or context causes the old ones to be preserved. 
To
> be honest I find set_as_previous() a strange construct.  But this is just a
> thought.  I'm happy with the patch as it is and recommend that it be applied.
> 

Yes. I think the unit-state will be very nice, but what do you think about we do
this inside a context ? (where there will have a use case of that)
The set_as_previous is just a sugar and came from when I was coding pot2po.py.
Maybe we should also remove it from this patch ?
Sign in to reply to this message.

Powered by Google App Engine
This is Rietveld r159