with installing l10n_update (dev-version) and performing the update all former individual translations were gone.

In this case i could handle this, but want to leave this issue as a hint for others and I had not the time to investigate, if individual translations imported through a file are overwritten too.

Comments

sutharsan’s picture

This problem only occurs when Localization Update is installed on an existing site with existing translation and locally modified translation strings. Since Drupal core does not store any state of locally modified translation strings, the is no way to distinguish when L10n Update gets installed.

Localization Update has two Update modes:
* Translation updates replace existing ones, new ones are added
* Edited translations are kept, only default ones (previously imported) are overwritten and new translations are added
The latter is the default.

We could add a third option to only add new translations and not overwrite existing translations. This would be in line with the core Import option:
* Existing strings are kept, only new strings are added.

Thomas_Zahreddin’s picture

sounds good to me.

sutharsan’s picture

Status: Active » Needs review
StatusFileSize
new3.48 KB

This patch does adds an option: "All existing translations are kept, only new translations are added." Which is equal to the Locale option "Existing strings are kept, only new strings are added." and is the new default.

podarok’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Issue tags: +D7 porting
StatusFileSize
new2.58 KB
new10.59 KB

#3 works for me
Yes, we do not need overwrite individual translations without user permission

ported to 7.x

gábor hojtsy’s picture

How did you make this the new default? Maybe I'm not seeing something there?

sutharsan’s picture

StatusFileSize
new2.02 KB

Git patch for 7.x with minor text change in the option.

@Gábor Hojtsy: maybe something went wrong with applying the cvs patch. The option is found at the usual (two) places.

sutharsan’s picture

Status: Needs review » Fixed
Issue tags: -D7 porting

Committed to 7.x-1.x-dev.
Backported to 6.x-1.x-dev too.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.