In the "Drive" tab of the course, I can not translate the text "all files". After updating all, the only field "all files" is present in the .po files of the modern theme \languages folder...but even if I translate does not report the correct translation!
You have a line of code faster to solve?
Thanks for the attention!
Is it?
# @ wplms_modern
#: /Applications/MAMP/htdocs/wplms/wp-content/themes/wplms/includes/buddydrive.php:446
Sorry...
# @ wplms_modern
#: /Applications/MAMP/htdocs/wplms/wp-content/themes/wplms/includes/buddydrive.php:533
msgid "All Files"
msgstr "Tutti i File"
To translate that you would have to edit the buddydrive plugin language files .
Alex, I tried and tried but the problem remains the same!
I've also attached a picture so you can see that in the Buddydrive language file is not present "All Files", there are two distinct fields (circled in red) but even if I put the translation I have no results!
To me it's just a "visualization" problem, the last time you gave me a code to override a text:
add_filter('gettext','my_thing_translate',20,3);
function my_thing_translate($translated_text, $text, $domain){
if($translated_text == 'All Files' && bp_is_my_profile() ){
$translated_text = 'Tutte le Dispense';
}
elseif($translated_text == 'All Files' && get_post_type(get_the_ID())){
$translated_text= 'Tutte le Dispense';
}
return $translated_text;
}
I tried it for this text, but it does not work (white screen). Can you give me a line of code to simply define the panel?
Thank you so much ...
Well that would have been possible if you edit the buddydrive language files .
YOu can still add the given code to translate that string in your wplms-customizer.php file in wplms customizer plugin :
add_filter('gettext','my_thing_translate1234',20,3);
function my_thing_translate1234($translated_text, $text, $domain){
if($translated_text == 'All Files' ){
$translated_text = 'Tutte le Dispense';
}
return $translated_text;
}
Perfect as always...thanks Alex!