[wp-trac] [WordPress Trac] #52438: Theme translations in WP_LANG_DIR are loaded twice, no (logical) way to override from a (child) theme.
WordPress Trac
noreply at wordpress.org
Thu Nov 28 10:40:36 UTC 2024
#52438: Theme translations in WP_LANG_DIR are loaded twice, no (logical) way to
override from a (child) theme.
---------------------------------------+-------------------------
Reporter: captain.crash | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: I18N | Version: 5.6
Severity: minor | Resolution: worksforme
Keywords: needs-patch needs-testing | Focuses:
---------------------------------------+-------------------------
Comment (by captain.crash):
Thanks for the code. This would work of course, but again...
I have a fully translated theme either by the author or the community and
only need to change some wording to better fit a project's voice and tone.
I can not just load my divergent parent theme translations anyhow?
(Or rather let that happen automatically?)
The correct way would be - because my parent theme translation overrides
would wipe out all parent theme translations - to make sure I load these
as well, really?
If `load_theme_textdomain()` and the likes are becoming obsolete and
loading happens automatically, why is it not looking up and loading
translations in this order:
- wp-content/themes/child-theme/languages/
- wp-content/themes/parent-theme/languages/
- wp-content/languages/themes/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52438#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list