[wp-meta] [Making WordPress.org] #1765: GlotPress import: Avoid overwriting current translations

Making WordPress.org noreply at wordpress.org
Fri Jun 10 00:25:48 UTC 2016


#1765: GlotPress import: Avoid overwriting current translations
--------------------------------------+-------------------------
 Reporter:  Nao                       |      Owner:
     Type:  enhancement               |     Status:  new
 Priority:  normal                    |  Milestone:
Component:  Translate Site & Plugins  |   Keywords:  needs-patch
--------------------------------------+-------------------------
 (moved from the [https://github.com/GlotPress/GlotPress-WP/issues/465
 GlotPress plugin repo issue] since this is specific to the GTE/PTE roles
 on wordpress.org)

 Current GlotPress import feature only lets GTEs/PTEs import translated PO
 file as a whole, overwriting existing translations.
 A new option to import without overwriting can be useful for cases like
 the following:

 * For the [https://make.wordpress.org/polyglots/2016/05/27/cross-locale-
 pte-trial/ cross-locale PTE trial], to make sure community translations
 are not reversed by the third-party work
 * Import a PO file from an old version of the plugin/theme (use new
 translations as current, do not import obsolete translations if the
 glossary or style guide is changed)

 On the import screen, add one of these:

 * A checkbox that says "Do not overwrite existing translations"
 * Two radio buttons: 1) "Overwrite existing translations" 2) "Only import
 new translations"

 @ocean90 suggested a custom plugin with the
 `gp_translation_set_import_over_existing` filter and a custom template for
 the import screen (and possibly an added action to the import template).

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1765>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list