[wp-trac] [WordPress Trac] #28537: Child Translations
WordPress Trac
noreply at wordpress.org
Sat Jun 14 12:51:23 UTC 2014
#28537: Child Translations
-------------------------+-----------------------------
Reporter: sooskriszta | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Every once in a while a website owner or administrator wants to change a
particular word to something else. The way to do it is to edit/create the
language files.
This is a workable but deeply unsatisfying solution. For one it takes a
LOT of work to find and rename each reference to the particular item
individually in POedit. More importantly, all the changes would be wiped
off upon updating WordPress. Further, if someone is using WordPress in a
non-English language, then they basically have to edit the language file
which faces the same overwriting issues.
So, what I propose is this:
A while ago WordPress implemented Child Themes. This has been an immensely
successful initiative. We could take inspiration from that and introduce
Child Translations.
Essentially, the site admin can create a language file containing ONLY the
strings that are different on his/her blog compared to standard version of
the translation. This file is placed in /wp-content/languages/child/ or
something to that effect. When WordPress loads translations, the ones in
the file in the child subfolder takes precedence over those in languages
folder....so strings present in the child subfolder mo are loaded from
that and the rest of the strings are loaded from the languages mo. When
translations are updated the languages mo is overwritten with a new
version, but it doesn't matter as the child mo still outranks it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28537>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list