How can I interfase with core's customlang plugin

How can I interfase with core's customlang plugin

by Howard Ablat -
အကြောင်းပြန်မှု အရေအတွက်: 2

Hi guys, Is there a way to interface with core's custom lang plugin on my custom plugin. I need to replace certain strings to reflect the changes made by the plugin. For example the invalid login message, I want to change it when custom module is installed. What are the functions I need to know to do this programmatically. Thanks.

ပျှမ်းမျှအဆင့်သတ်မှတ်ချက်များ: -
Howard Ablat ထံသို့ အကြောင်းပြန်ရာတွင်

Re: How can I interfase with core's customlang plugin

by Renaat Debleu -
Core developers ၏ ရုပ်ပုံ Particularly helpful Moodlers ၏ ရုပ်ပုံ Plugin developers ၏ ရုပ်ပုံ

The string API does not provide tools to do this, but during installation of the plugin, one can add some records to the tool_customlang table, and when the plugin is removed the original values can be restored. Of course the person who installs this plugin should be notified about these changes.

Renaat Debleu ထံသို့ အကြောင်းပြန်ရာတွင်

Re: How can I interfase with core's customlang plugin

by Howard Ablat -

Thank you, that is exactly what I had to do. Also had to call

tool_customlang_utils::checkin($lang)
after for the database changes to take effect. Just clearing cache didn't seem to work.