[ Index ]

PHP Cross Reference of BBPress




/src/includes/common/ -> locale.php (summary)

bbPress Localization

File Size: 57 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions


Functions that are not part of a class:

bbp_translate_user_role( $name )   X-Ref
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.

since: 2.6.0 bbPress
return: string Translated role name on success, original name on failure.
param: string $name The role name.

bbp_dummy_role_names()   X-Ref
Dummy gettext calls to get strings in the catalog.

since: 2.6.0 bbPress

Generated: Tue Feb 27 01:00:56 2024 Cross-referenced by PHPXref 0.7.1