translate_user_role [ WordPress Function ]
| Defined at: |
|
Translates role name. Since the role names are in the database and not in the source there are dummy gettext calls to get them into the POT file and this function properly translates them back.
The before_last_bar() call is needed, because older installs keep the roles using the old context format: 'Role name|User role' and just skipping the content after the last bar is easier than fixing them in the DB. New installs won't suffer from that problem.
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- PHPXRef 0.7 : WordPress : Function Reference: translate_user_role()
Function and Method Cross Reference. translate_user_role(). Defined at: /wp- includes/l10n.php -> line 516. Referenced 5 times: ...
phpxref.ftwr.co.uk - translate_user_role - Function Reference - PHP Cross Reference ...
Jun 1, 2011 ... Function and Method Cross Reference. translate_user_role(). Defined at: /wp- includes/l10n.php -> line 503. Referenced 5 times: ...
xref.yoast.com - WordPress › Support » Tags — translate_user_role
Forums. Username or Email Address Password (forgot?) Register · WordPress › Support » translate_user_role. Tag: translate_user_role Add New » · Developer ...
wordpress.org - l10n.php
May 7, 2010 ... translate_user_role(), Translates role name. translate_with_gettext_context(). unload_textdomain(), Unloads translations for a domain ...
www.tig12.net