Hi,
My 2 cents is that you should overwrite everything. At leat the pt-pt translation is still evolving and there are many old translation we updated through the time.
Of course, before, you should always tell the user about that. ;)
Regards,
Miguel Duarte
2007/5/22, translations-request@drupal.org translations-request@drupal.org:
Send translations mailing list submissions to translations@drupal.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.drupal.org/mailman/listinfo/translations or, via email, send a message with subject or body 'help' to translations-request@drupal.org
You can reach the person managing the list at translations-owner@drupal.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of translations digest..."
Today's Topics:
- updating translations: how valuable is user data after all? (Gabor Hojtsy)
Message: 1 Date: Tue, 22 May 2007 11:53:19 +0200 From: Gabor Hojtsy gabor@hojtsy.hu Subject: [translations] updating translations: how valuable is user data after all? To: development@drupal.org, A list for translators translations@drupal.org Message-ID: 4652BD8F.9000801@hojtsy.hu Content-Type: text/plain; charset=UTF-8; format=flowed
Hi guys,
Now Drupal 6.x-dev includes cool features to import PO files automatically at every logical step:
you can install Drupal in your foreign language, and have PO files for all enabled modules imported along automatically
when you add a new language, all translation files for enabled modules get imported automatically for that language
when you install new modules or enable themes, the translation files for these components get imported for all enabled languages
This is all great and automated, contrib modules already have their PO files at the right place, and we will update the packaging scripts for Drupal 6 to package core translations properly.
You might notice a pattern in the above features though: they IMPORT stuff into the database. Unfortunately we have no way in Drupal 6 to remove translations when you disable a theme or uninstall a module. We don't know what strings appeared in *only* that component, and not elsewhere in Drupal, so we can remove them without problems. For that, we would need the extractor script built into Drupal core to look through all source files of enabled components and identify the unused strings in the database. Fortunately this is doable in contrib, now that extractor has it's own Drupal module. (Of course it is doable in Drupal core my deleting all strings from the database and reimporting files for only the enabled components, but read on about the value of user data).
BTW Drupal 6 core still need upgrade support for translations. So when you update a module or Drupal itself, new and corrected translations get into your database. New translations are easy again, they are just importing new stuff, which we are very good at :) Updating translations already in the DB threatens user data though. In Drupal 5 and before, we have no information about what translations a user modified on the web interface, so we don't know what was imported from available PO files and what was user defined. We can reimport stuff from the files, but can easily loose/overwrite user defined/updated strings.
What can we do about not to loose user defined strings? We can easily introduce a 'modified' bit into the locale translations (target) table, just as it was in menu module in Drupal 5. That would help us from Drupal 6 onward, but it does not help us loosing user defined strings when a Drupal 5 to Drupal 6 upgrade happens. So how cautious should we be there?
- Do not overwrite any existing translation, risking that we leave
incorrect and fixed translations in the database.
- Do overwrite existing translations on an update, risking that
we overwrite user modified translations.
Note that an update will not *remove* anything from the DB because we don't know what we can remove as explained above. It can *overwrite* stuff though, and problems are around these overwrites.
So how should the update paths work for Drupal and for modules/themes?
Gabor
translations mailing list translations@drupal.org http://lists.drupal.org/mailman/listinfo/translations
End of translations Digest, Vol 19, Issue 5