Don't save translated role names to the DB. Instead, translate them on the fly. fixes #3442 #5537

git-svn-id: https://develop.svn.wordpress.org/trunk@6916 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-02-19 20:28:54 +00:00
parent 761397a148
commit b96affbfd5
4 changed files with 48 additions and 15 deletions

View File

@@ -263,6 +263,7 @@ foreach ( $wp_roles->get_names() as $role => $name ) {
if ( $role == $_GET['role'] )
$class = ' class="current"';
$name = translate_with_context($name);
$name = sprintf(_c('%1$s (%2$s)|user role with count'), $name, $avail_roles[$role]);
$role_links[] = "<li><a href=\"users.php?role=$role\"$class>" . $name . '</a>';
}