[wp-trac] [WordPress Trac] #51429: Translation not work in get_the_archive_title after changes with translation in context (_x())
WordPress Trac
noreply at wordpress.org
Thu Nov 5 11:35:40 UTC 2020
#51429: Translation not work in get_the_archive_title after changes with
translation in context (_x())
--------------------------+-------------------------
Reporter: tomaskavalek | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Themes | Version: 5.5
Severity: normal | Resolution: worksforme
Keywords: | Focuses: template
--------------------------+-------------------------
Comment (by SergeyBiryukov):
Replying to [comment:2 tomaskavalek]:
> Thanks for your fast reply. I tried lot of steps, but it doesn't work as
in previous version. I think that problem is in CONTEXT, which is required
in _x() and msgctxt is not included in translation files of WordPress
core.
If you download the
[https://i18n.trac.wordpress.org/browser/pot/tags/5.5.3/wordpress.pot
wordpress.pot] file, `msgctxt` is included there:
{{{
#. translators: 1: Title prefix. 2: Title.
#: wp-includes/general-template.php:1728
msgctxt "archive title"
msgid "%1$s %2$s"
msgstr ""
}}}
There are a lot of other instances of `_x()` in core. As far as I can see,
this one doesn't seem any different from them.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51429#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list