Skip to content

Commit

Permalink
Pass --previous to msgmerge
Browse files Browse the repository at this point in the history
Always use the --previous flag when updating catalogs, to preserve the
msgid before msgmerge marked a translation as fuzzy. This is often
useful in identifying what changes need to be done.

A very small first step towards #230.
  • Loading branch information
vslavik committed Nov 4, 2016
1 parent 196b02e commit 71018ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/catalog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2301,7 +2301,7 @@ bool Catalog::Merge(const CatalogPtr& refcat)
refcat->DoSaveOnly(tmp1, wxTextFileType_Unix);
DoSaveOnly(tmp2, wxTextFileType_Unix);

wxString flags("-q --force-po");
wxString flags("-q --force-po --previous");
if (wxConfig::Get()->ReadBool("use_tm_when_updating", false) == false)
{
flags += " --no-fuzzy-matching";
Expand Down

0 comments on commit 71018ad

Please sign in to comment.