New Bulk action Translations

New Bulk action Translations

by Iban Cardona i Subiela -
Number of replies: 2
Hello,

I have created new case of buk actions (with new php class and more...)
I my moodle instance I have a lot of languages installed by Language->Language packs->Available language packs

I'd like to know how and where I should to put the "strings" of my new action and how to "call" them.

Thank you so much.
Average of ratings: -
In reply to Iban Cardona i Subiela

Re: New Bulk action Translations

by Robert Brenstein -
When you go into editing a language, you will see a list of various files that comprise the language pack. You need to find which file contains other bulk actions. Start with moodle.php (warning: it is a large file so it takes a moment to load).

Then, edit that file in each actively used language pack after selecting local mode. The latter creates a secondary file which is local to your installation and won't be overwritten when the main language pack is upgraded.

In terms of naming the string, see how other bulk actions are called and follow the suit.
Average of ratings: Useful (1)