Text "all files" translate

Home Forums Legacy Support Support queries Translation issues Text "all files" translate

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #48382
    ITALIANJOB82
    Participant
    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!
    #48384
    ITALIANJOB82
    Participant
    Is it? # @ wplms_modern #: /Applications/MAMP/htdocs/wplms/wp-content/themes/wplms/includes/buddydrive.php:446
    #48385
    ITALIANJOB82
    Participant
    Sorry... # @ wplms_modern #: /Applications/MAMP/htdocs/wplms/wp-content/themes/wplms/includes/buddydrive.php:533 msgid "All Files" msgstr "Tutti i File"
    #48529
    Anshuman Sahu
    Keymaster
    To translate that you would have to edit the buddydrive plugin language files .
    #48584
    ITALIANJOB82
    Participant
    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 ...
    #48745
    Anshuman Sahu
    Keymaster
    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;   }
    #48788
    ITALIANJOB82
    Participant
    Perfect as always...thanks Alex!
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Text "all files" translate’ is closed to new replies.