an array with the related languages for each locale. This should be improved, with new locales, in the future. In this PR I have only added related languages for Galician and Spanish. You need to use the slug property from each GP_Locale from GlotPress or from the DotOrg environment.
a reorder method, to put on the top list the variants for this locale (e.g., if you are translating to Spanish (Colombia), you are going to have in the top list the other Spanish variants.
another reorder method, to use the previous array to put this related locales just after the language variants.
Translation to Spanish (Spain) with Spanish variants and related locales. Link.
Translation to Spanish (Colombia) with Spanish variants but without related locales. Link.
Translation to Spanish (Spain) with relate locales but without Spanish variants, because these variants doesn't have any translations for this original string. Link.
Translation to Italian without variants or related languages. Link.
Translation to Dutch with variants (Dutch formal and Dutch (Belgium)). Link.
Problem
In the "Improving Translation Suggestions [Other Languages]" P2 we proposed to add an improvement to put in the top place the translations from languages related with the current translation.
Solution
This PR adds:
slug
property from eachGP_Locale
from GlotPress or from the DotOrg environment.Some examples from translate.w.org
Translation to Spanish (Spain) with Spanish variants and related locales. Link.
Translation to Spanish (Colombia) with Spanish variants but without related locales. Link.
Translation to Spanish (Spain) with relate locales but without Spanish variants, because these variants doesn't have any translations for this original string. Link.
Translation to Italian without variants or related languages. Link.
Translation to Dutch with variants (Dutch formal and Dutch (Belgium)). Link.