[wp-trac] [WordPress Trac] #6614: String disambiguation for slugs
(in upgrade.php)
WordPress Trac
wp-trac at lists.automattic.com
Sun Apr 6 12:19:50 GMT 2008
#6614: String disambiguation for slugs (in upgrade.php)
-------------------------------+--------------------------------------------
Reporter: RanYanivHartstein | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5.1
Component: i18n | Version:
Severity: normal | Keywords:
-------------------------------+--------------------------------------------
The localized strings for the default slugs for categories and link
categories can clash with their names when localizing to a language that
can't be used in URLs.
For e.g., when localizing to Hebrew, the default category name would be
localized to the Hebrew equivalent of "Uncategorized", but the default
slug should remain "uncategorized", since Hebrew can't be properly used in
URLs. Therefor, I recommend adding comments to the slug strings, so they
can have different localizations:
{{{
$cat_slug = sanitize_title(_c('Uncategorized|Slug for default category'));
}}}
and
{{{
$cat_slug = sanitize_title(_c('Blogroll|Slug for default link category'));
}}}
(in wp-admin/includes/upgrade.php)
--
Ticket URL: <http://trac.wordpress.org/ticket/6614>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list