Opened 13 months ago
Closed 13 months ago
#20498 closed feature request (invalid)
Translation of $category->name in get_the_category_list() category-template.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | I18N | Version: | 3.3.1 |
| Severity: | trivial | Keywords: | |
| Cc: |
Description
I had a problem displaying the multilingual name of a category which I would like to have translated, while using the qTranslate plugin.
When using the_category() method it displays like this: [:en]word[:el]λέξη
I could easily solve this by replacing:
$category->name
with
__($category->name)
in wp-includes/category-template.php lines: 174, 177, 184, 197, 200, 207.
Would that be helpful to have in there?
Change History (1)
comment:1
SergeyBiryukov — 13 months ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

No, since dynamic strings cannot be extracted by gettext:
http://ottopress.com/2012/internationalization-youre-probably-doing-it-wrong/
It should be possible to hook into the_category filter to replace the names. Seems that qTranslate, however, intentionally leaves terms in default language. At this point, this is a support issue.
Please try the support forums: http://wordpress.org/support/