We'll create fresh WordPress site with Convert PT AO90 for GlotPress installed. You have 20 minutes to test the plugin after that site we'll be deleted.
This plugin for GlotPress customizes the default behavior of the Portuguese (Portugal) Locales, allowing you to automatically convert the approved/current strings in Portuguese (Portugal) to its variant of 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.
The strings that don’t need any conversion remain untranslated on the variant, falling back to the root Locale.
This plugin was heavily inspired by the Serbian Latin solution for transliteration of Serbian Cyrillic locale from translate.wordpress.org.
The language conversion uses the open source tool Convert PT AO90 to replace entire words from a prebuilt list.
pt
root and pt-ao90
variant translation sets.current
Portuguese (Portugal) root translations and add to the Portuguese (Portugal, AO90) variant translations.rejected
, fuzzy
, old
.current
variant translation if a new root translation (same original_id
) is added and doesn’t need conversion.gp_convert_pt_ao90_edit
to disable editing, approval and importing translations in the pt-ao90
variant.true
in the new filter gp_convert_pt_ao90_always_create_variant_translation
.gp_convert_pt_ao90_showdiff
to optionally disable the conversion diff highlight.GlotPress 4.0.0 without Variants support.
Translation set (root): Portuguese (Portugal)
pt
;default
;Translation set (variant): Portuguese (Portugal, AO90)
pt-ao90
;default
;