[wp-trac] [WordPress Trac] #6797: Link to comments in default i18n
theme are not fully localizable
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 21 20:12:53 GMT 2008
#6797: Link to comments in default i18n theme are not fully localizable
-------------------------------+--------------------------------------------
Reporter: RanYanivHartstein | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5.1
Component: i18n | Version:
Severity: normal | Keywords: has-patch
-------------------------------+--------------------------------------------
The i18n theme in the polyglot repos does not support translation of the
string "Comments Closed" in comment links.
The comment link function looks like this:
{{{
<?php comments_popup_link(__('No Comments »', 'kubrick'),
__('1 Comment »', 'kubrick'),
__('% Comments »', 'kubrick')); ?>
}}}
To allow localization of the "Comments Closed" string, it should look (for
e.g.) like
this:
{{{
<?php comments_popup_link(__('No Comments »', 'kubrick'),
__('1 Comment »', 'kubrick'),
__('% Comments »', 'kubrick'),
_c('comments-link|HTML class for comments link', 'kubrick'),
__('Comments Closed', 'kubrick') ); ?>
}}}
These functions appear in index.php, archive.php and search.php. More
information about the comments_popup_link function is available in the
codex:
http://codex.wordpress.org/Template_Tags/comments_popup_link
I included a patch to fix the comments links in the above files. Patch
also adds an HTML class for the comments link, but this is not required
and not related to the issue mentioned above.
--
Ticket URL: <http://trac.wordpress.org/ticket/6797>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list