[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/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

  bbp_translate_user_role()
  bbp_dummy_role_names()

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.

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

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

since: 2.6.0 bbPress



Generated: Mon Nov 30 01:01:26 2020 Cross-referenced by PHPXref 0.7.1