How do I translate the “Add User Moderation Flag” text?
-
The french translation says “Ajouter Un Utilisateur À La Modération Drapeau” which is pretty bad and way too long.
But I can’t this string anywhere in the plugin *.php or *.js.Can anyone help me identify what string this is to propose another translation for it?
-
This line comes from the the bbp styling pack plugin.
https://translate.wordpress.org/projects/wp-plugins/bbp-style-pack/stable/Hi,
I am the author of bbp-style-pack.
This part of the code is from a moderation plugin that I rescued from being closed, and i did enough to get it working in my plugin, so I do not have full knowledge of every feature.
Can you tell me exactly where and when you see this text?
This text appears when you visit the forum and read a thread/topic. Inside .bbp-reply-author ul.moderationlinks
Under the Avatar, Pseudonyme, (Ip address) there is then Block User and in english: “Add User Moderation Flag”Thanks, found it now, let me take a look
As I said, I did not write that particular plugin element, I just incorporated it into my plugin to help those using it, and I agree the actual wording does not mean a lot, it took me a while to work it out!!
But after a bit of testing, essentially it sets a switch for a user to be either an approved user or an unapproved user. Then if in:
dashboard>forums>Moderation Options>hold for moderation you have set custom, then you can set ‘unapproved users posting’, ‘Unapproved users posting links’ and ‘Unapproved users posting below the English character threshold’ so that unapproved users posting in those categories get held for moderation.
so make a user ‘unapproved’ you set the ‘add user moderation flag’ and then all posts by that user come under the settings above.
I agree the wording is terrible, but now I have described what it does, you should be able to come up with some better words.
I would also agree if you said that those words should not appear unless you have set the custom above, but that is beyond my current plans to do.
to change the wording go to
dashboard>settings>bbp style pack>transaltions and activate the translation option
then put the original working in the left hand column and your desired in the right.If you want to hide it completely, then add this to the custom css tab of my style pack plugin
.moderationlinks-flag { display: none ; }Thanks a bunch for taking the time to detail all that.
About translations I am trying to contribute to the official community translations for the plugin in French. I found the culprit strings and added translations for them. https://translate.wordpress.org/projects/wp-plugins/bbp-style-pack/stable/fr/default/?filters%5Bterm%5D=Moderation+Flag&filters%5Bterm_scope%5D=scope_any&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filters%5Buser_login%5D=&filter=Apply+Filters&sort%5Bby%5D=priority&sort%5Bhow%5D=desc
Then of course it will only merge when 90+% is translated (and validated), is that correct?I struggled to find it in the codebase at first because I thought it was in bbpress, my bad. It was then helpful to use the translation website. For further reference it was at the time of writing at modtools/bbpress.php#L215 (in bbp style pack plugin of course)
The most frustrating thing with plugins like bbpress/Buddypress ecosystem is undocumented features/hooks and config parameters and the difficulty it puts on users wanting to work with it or even contribute to understand everything and how each piece comes together with the rest of wordpress in a 15 year old codebase… but thanks to people like you we can go further is making those better 👍
Thanks again for the quick answers
Hey thanks for helping translate my plugin, I really appreciate it.
If you need further help, do come back 🙂
- You must be logged in to reply to this topic.