I imported the general.pot from cvs in a po catalog file using poEdit, I translated 166 (of the 202) terms, left 36 untranslated, and imported my po file, selecting "Strings in the uploaded file replace existing ones, new ones are added")
The translation was successfully imported. There are 169 newly created translated strings and 0 strings were updated.
So far so good. It worked. The number 169 (instead of 166) was probably because of the plurals.
Then I edited 1 of the 166 translated terms in poEdit and imported the po file again. Now import tells me:
The translation was successfully imported. There are 36 newly created translated strings and 0 strings were updated.
Drupal still uses the old unedited translated term.
I think it adds the untranslated terms and ignores the edited translated terms.
Except if my procedure is not the right way to do it. Please someone verify.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | locale_mode_0.patch | 2.79 KB | kkaefer |
| #4 | locale_mode.patch | 2.79 KB | kkaefer |
| #2 | el.po | 34.95 KB | cog.rusty |
Comments
Comment #1
steph commentedCan you attach the po file you are using with the 166 translations?
It would be nice, thanks.
Comment #2
cog.rusty commentedHere it is.
Comment #3
kkaefer commentedI am able to reproduce this error, even with different translation files. Obviously it is not just the one file that causes the error.
Comment #4
kkaefer commentedFigured out that the patch http://drupal.org/node/47610 broke this. The $mode parameter is not passed to the function _locale_import_one_string() but this value is used in the function (and if it's undefined/empty, the overwrite mode is not handled correctly). The attached patch adds the $mode parameter to all function calls and to the function itself. Of course, this patch works for me ;-).
Comment #5
kkaefer commentedComment #6
kkaefer commentedMixed the two parameters up in one line. Fixed patch attached.
Comment #7
dopry commented+.02 ... since I didn't actually test it.
Don't use locale but the code style looks good. A quick over look of Goba's patch and this patch, makes it seem like we keep the speedups, and locale should be working right.
Comment #8
chx commentedgood job.
Comment #9
killes@www.drop.org commentedapplied
Comment #10
(not verified) commented