[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 Oct 1 12:23:24 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 tomaskavalek):

 Replying to [comment:1 ocean90]:
 > Hi @tomaskavalek, welcome to WordPress Trac!
 >
 > Thanks for the report. This was introduced in [48294]. The line is only
 intended to allow translators changing the order and/or adding something
 between the prefix and title.
 > The prefix itself is also available for translation just a few lines
 above, e.g. `$prefix = _x( 'Category:', 'category archive title prefix'
 );`.


 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.

 Did you test it? Thanks a lot.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51429#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list