[wp-trac] [WordPress Trac] #28197: Fallback Languages
WordPress Trac
noreply at wordpress.org
Fri May 16 19:24:43 UTC 2014
#28197: Fallback Languages
---------------------------+------------------------------
Reporter: downstairsdev | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by cvedovini):
Replying to [comment:14 downstairsdev]:
> '''@cvedovini''' I generally agree with the criticisms of a generic
language fallback. If the intention is to fallback to a specific locale
(es_ES > es_MX for example), there is no need to create an additional
language file or have translators change their workflow. WordPress would
just load the fallback locale automatically.
That solution (fallback to es.mo when es_MX.mo is not there) is simple and
just require that the chosen default locale file (say es_ES.mo) be
provided without a locale (es.mo) that's how it works in Java for example
and I guess many other platforms and I don't see an uprising. It doesn't
require complex calculations or configuration, it's straightforward.
Now, choosing a default locale is the responsibility of those who provide
the component, I get to choose what is the default Spanish in my plugins
or themes (more like I take what's given to me actually) and if the
Wordpress guys don't want to choose then they don't provide a default,
your problem.
> '''@vanillalounge''' This ticket is not aimed at solving a problem for
translators nor developers- it's looking to provide a better experience
for non-English speaking '''users'''.
exactly
> I appreciate all the discussion! I'm leaning towards closing the core
ticket and releasing this idea as a plugin instead.
I though about releasing a plugin already but that would be useless. To
have my plugins in the right language my users would need to install
another plugin. I am better off coding the hack in each and everyone of
them, like I do now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28197#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list