官术网_书友最值得收藏!

String API

For a detailed explanation of the String API, visit https://docs.moodle.org/dev/String_API. The String API documentation reveals that the most effective method of having Moodle display two language strings on the screen at the same time is to author our own string manager, within which we have implemented a custom get_string() function. Luckily, the reporter of ticket MDL-49361 has already created an example, Moodle plugin moodle-local_stringman, and made it available through GitHub (refer to the preceding section, Source control discipline):

You will see that the README notes for the moodle-local_stringman plugin stress that the code provided should be used for illustration purposes only. So, we will need to download a copy of the source and create our own GitHub repository to work on:

That done, it's time to work on our solution.

主站蜘蛛池模板: 和田市| 五寨县| 如东县| 武胜县| 九龙城区| 商丘市| 拉萨市| 鄂州市| 阿巴嘎旗| 双桥区| 思南县| 东兰县| 宁南县| 噶尔县| 彭阳县| 无为县| 中山市| 合江县| 姚安县| 崇信县| 刚察县| 红河县| 西充县| 惠来县| 新巴尔虎右旗| 珠海市| 九龙城区| 雷波县| 天长市| 伊金霍洛旗| 沙雅县| 苍山县| 抚顺市| 仲巴县| 舟曲县| 谷城县| 西吉县| 顺义区| 肥东县| 仁寿县| 乐至县|