| @@ -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. |