Support » Plugin: bbPress Advanced Statistics » French translation?

Viewing 11 replies - 1 through 11 (of 11 total)
  • How to change the colors of the roles?
    How to change the names of the roles?
    Not find the function on the plugin


    I would like them to have different background colors by specific role, for example –

    Aministator – Red
    Moderator – Green
    Customer – Blue
    guest – Orange
    Blocked – Black

    Is it possible?

    Missing strings on the .pot file

    Error on our log file

    PHP Warning: Invalid argument supplied for foreach() in /home/dev/public_html/ on line 369

    Thank you


    For the colors of the users in the footer of the forum this is solved

    /* Style all roles, a.bbpas-user is a better way of doing this! */
    .admin a, .moderateur a, .bloque a, .invite a, .client a {
    /* Style Keymaster and Moderator roles */
    .admin a, .moderateur a, .bloque a, .invite a, .client a .keymaster, .moderator .blocked .participant .moderator {font-weight: bold;}
    .admin a{color:red;}.moderateur a{color:green;}.client a{color:blue;}.invite a{color:#9C27B0;}.bloque a{color:#000;}

    Always the error here, how to solve it?

    PHP Warning: Invalid argument supplied for foreach() in /home/dev/public_html/ on line 369

    How to have the five chains missing in the .pot file ?

    Thank you

    Plugin Author Jake Hall


    Hi kingteamdunet,

    I am unable to do anything at the moment as I am on holidayh and thus unable to push any updates out.

    I am aware of the PHP error you are facing. I need to investigate it further as, currently, I have been unable to replicate the issue you are facing. I have, however, spotted this on multiple websites using the plugin and I will put an update out to fix this.

    With regards to translations, the user roles are defined within WordPress, There is nothing for you to translate within this plugin, they are defined within WordPress. You will need to change the names of the roles within WordPress itself – you can do this by following an article such as this:

    Once you update the names within WordPress core, bbPress Advanced Statistics will pick it up and you can then style them accordingly within the stylesheet.

    I will pop a response in here once the php error has been fixed, would you mind providing me a link to the forum you are running the plugin on, and, would you also mind copying the debug info from the plugin settings (or send it to me via email on jake[at]thegeek[dot]info) as that will help with debugging.

    – Jake

    Salut kingteamdunet
    Sur ta capture je vois que tu as réussi à traduire le plugin. De mon côté il ne prends pas en compte mes toutes mes traductions faite dans le fichier .po et .mo.
    J’ai bien nommé le fichier “bbpress-advanced-statistics-fr_FR” et copié dans le dossier “wp-content/languages/bbpress-advanced-statistics” mais il ne prends pas mes traductions.

    Jake I also have the problem of colors I am admin site with sebr user but I am not in red on your plugin.
    Thank you

    • This reply was modified 2 years, 3 months ago by titis14.

    Hi titis14,

    We did the complete translation in French.
    We have send an email to the author with the file PO and MO, not received an answer.

    For the color on the roles
    You have to add a function to your “functions.php” file of the child template.

    add_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' );
    function ntwb_bbpress_custom_role_names() {
    	return array(
    		// Keymaster
    		bbp_get_keymaster_role() => array(
    			'name'         => 'Admin',
    			'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() )
    		// Modérateur
    		bbp_get_moderator_role() => array(
    			'name'         => 'Modérateur',
    			'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() )
    		// Participant
    		bbp_get_participant_role() => array(
    			'name'         => 'Client',
    			'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() )
    		// Spectateur
    		bbp_get_spectator_role() => array(
    			'name'         => 'Invité',
    			'capabilities' => bbp_get_caps_for_role( bbp_get_spectator_role() )
    		// Bloqué
    		bbp_get_blocked_role() => array(
    			'name'         => 'Bloqué',
    			'capabilities' => bbp_get_caps_for_role( bbp_get_blocked_role() )

    Have a good day

    A big thank you for sharing. I added the code in the function file of my child theme and your CSS but the legend has no color is normal?

    you’re welcome,
    on our test forum it works

    Test with the css here?

    .bbpas-key .keymaster { color: red; }
    .bbpas-key .moderator { color: green; }
    .bbpas-key .participant { color: blue; }
    .bbpas-key .spectator { color: #9C27B0; }
    .bbpas-key .blocked { color: black; }
    .bbpas-key .admin { color: red; }
    .bbpas-key .modérateur { color: green; }
    .bbpas-key .client { color: blue; }
    .bbpas-key .invité { color: #9C27B0; }
    .bbpas-key .bloqué { color: black; }

    Everything is ok with the addition of the second css code. Thank you

    Plugin Author Jake Hall


    Hi both,

    Translations for the user roles is not handled within the plugin, I can see you have managed to translate them within WordPress. If you are unhappy with that, you will need to fire an email off to WordPress support.

    I will provide an updated pot file when I get home from work, and I will be looking at correcting some of the issues people have faced with the most recent update.

    Thank you,

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘French translation?’ is closed to new replies.