| Server IP : 104.21.25.182 / Your IP : 216.73.217.54 Web Server : Apache System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : nobi37te ( 1003) PHP Version : 8.2.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/nobi37te/public_html/wp-content/plugins/buddyboss-platform/bp-forums/common/ |
Upload File : |
<?php
/**
* Forums Localization
*
* @package BuddyBoss\Localization
*/
// Exit if accessed directly
defined( 'ABSPATH' ) || exit;
/**
* 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.
*
* @see translate_user_role()
*
* @since BuddyPress 2.6.0 Forums
*
* @param string $name The role name.
* @return string Translated role name on success, original name on failure.
*/
function bbp_translate_user_role( $name ) {
return translate_with_gettext_context( before_last_bar( $name ), 'User role', 'buddyboss' );
}
/**
* Dummy gettext calls to get strings in the catalog.
*
* @since BuddyPress 2.6.0 Forums
*/
function bbp_dummy_role_names() {
/* translators: user role */
__( 'Organizer', 'buddyboss' );
/* translators: user role */
__( 'Moderator', 'buddyboss' );
/* translators: user role */
__( 'Participant', 'buddyboss' );
/* translators: user role */
__( 'Spectator', 'buddyboss' );
/* translators: user role */
__( 'Blocked', 'buddyboss' );
}