PluginProbe
bbPress / 2.6.17
bbPress v2.6.17
2.6.17 trunk 2.0 2.0-beta-1 2.0-beta-2b 2.0-beta-3 2.0-beta-3b 2.0-rc-2 2.0-rc-3 2.0-rc-4 2.0-rc-5 2.0.1 2.0.2 2.0.3 2.1 2.1-beta-1 2.1-rc1 2.1-rc2 2.1-rc3 2.1-rc4 2.1.1 2.1.2 2.1.3 2.2 2.2.1 All 72 releases
← All changes | includes/common/locale.php +2 -4 trunk2.6.17 View file →
@@ -1,8 +1,8 @@
1 1 <?php
2 2
3 3 /**
4 - * bbPress Localization.
4 + * bbPress Localization
5 5 *
6 6 * @package bbPress
7 7 * @subpackage Localization
8 8 */
@@ -29,11 +29,9 @@
29 29 * @param string $name The role name.
30 30 * @return string Translated role name on success, original name on failure.
31 31 */
32 32 function bbp_translate_user_role( $name ) {
33 - // WordPress.WP.I18n.NoEmptyStrings
34 - // -- empty string is intentional here as actual content comes from database
35 - return _x( before_last_bar( $name ), 'User role', 'bbpress' ); // phpcs:ignore
33 + return translate_with_gettext_context( before_last_bar( $name ), 'User role', 'bbpress' ); // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText
36 34 }
37 35
38 36 /**
39 37 * Dummy gettext calls to get strings in the catalog.