Convert PT AO90 for GlotPress
Cette extension pour GlotPress personnalise le comportement par défaut de la locale Portuguese (Portugal), vous permettant de convertir automatiquement les chaines approved/current en Portuguese (Portugal) vers sa variante Portuguese (Portugal, AO90).
It keeps the Portuguese (Portugal) root translations automatically converted and synced with its Portuguese (Portugal, AO90) variant translations within your GlotPress install.
Optionally it’s possible to disable the Portuguese (Portugal, AO90) variant translations editing, approval and importing, making it read-only.
The only translations added to the Portuguese (Portugal, AO90) variant translation set are those which are different from the Portuguese (Portugal) root translation.
Les chaines qui n‘ont pas besoin d‘être converties ne sont pas traduites dans la variante et utilisent la Locale root.
Cette extension a été fortement inspirée par la solution pour le Latin serbe pour la translittération de la locale cyrillique serbe de translate.wordpress.org.
La conversion linguistique utilise l‘outil open source Convert PT AO90 pour remplacer des mots entiers à partir d‘une liste préconstruite.
Fonctionnalités
- Vérification si GlotPress est activé.
- Vérification de l‘existence de l‘ensemble de traduction
ptet de la variantept-ao90. - Conversion des traductions
currentdu portugais (Portugal) et ajout des traductions variantes du portugais (Portugal, AO90). - Suppression des variantes de la traduction non utilisées au lieu de les garder comme
rejected,fuzzy,old. - Suppression des variantes de la traduction
currentsi une nouvelle traduction root (mêmeoriginal_id) est ajoutée et ne nécessite pas de conversion. - Sync button for GlotPress administrators to force convert the complete translation from root set to variant set.
- Highlight the differences in the automatically converted texts.
- Read-only mode: Use the filter
gp_convert_pt_ao90_editto disable editing, approval and importing translations in thept-ao90variant. - Optionally you can always save the translations to the Variant, this overrides the fallback to the root Locale. Return
truein the new filtergp_convert_pt_ao90_always_create_variant_translation. - Conversion highlight: Use the filter
gp_convert_pt_ao90_showdiffto optionally disable the conversion diff highlight. - Supports GlotPress 3.0.0-alpha.4, with the real variants and fallback feature.
- Supports GlotPress 4.0.0 (current development), without the real variants and fallback feature.
- Supports Traduttore for also schedule the language-pack build for the converted variant.
Prérequis
- GlotPress 3.0.0-alpha.4 with Variants support.
-
GlotPress 4.0.0 without Variants support.
-
Jeu de traduction (root) :
Portuguese (Portugal)- Locale =
pt; - Slug =
default;
- Locale =
-
Jeu de traduction (variant) :
Portuguese (Portugal, AO90)- Locale =
pt-ao90; - Slug =
default;
- Locale =
