Multi-Language Content (v2)

This filter is a greatly simplified multi-language filter. It uses very simple non-HTML tags to mark multi-language blocks. Namely {mlang XX} {mlang} pairs, where XX is the Moodle short name for the language pack (i.e., en, fr, eu, es, es_mx, etc.) It uses the same tags as the filter_multilangsecond plugin (to be compatible with it), but there is one difference between the two. This filter allows standalone {mlang} tags that don't require adjoining alternative language tags. This makes the filter more flexible at the cost of potentially producing empty sets of tags.
Price option: Free

Supports Moodle 2.8-5.2 See all versions
Latest release: 4 months ago
Installations: 5688
Downloads (last 90 days): 3154

Frankenstyle name: filter_multilang2
Filters

Comments

Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.

Good morning, and thanks for the plugin!
Is it possible to have multilang titles as well? I tried to use lang tags, but of course they are ignored!
Moodle 3.10
Thanks again
davide
Hi @Naaman
I'm afraid that's not in our hands sad. The plugin can only translate (filter) content that is run through format_string() or format_text() functions. So it's up to the Tags code to use those functions to renderi the Tags on the page. You will need to open an issue in the Moodle Tracker for the Tags component and ask about it.
Saludos.
Iñaki.
Hi,
Is there any plans to enable translating the Tags using this plugin?
Regards,
Hi Tiago,
I am not the developer of the Multi-Language Content v2 plugin but I am a big fan and the developer of the FilterCodes plugin which works in a very similar way but for different purposes (like creating context aware dynamic menus).
Unfortunately Moodle does not yet include support for these types of {tags} in the custom menu. You have three options:
1) Fix your Moodle theme or get the developer who created it to add the fix.
2) Fix Moodle. The advantage of this approach is that it will not only fix it for your theme but almost any Moodle theme that you might use.
The instructions on how to do #1 and #2 above can be found at:
https://github.com/michael-milette/moodle-filter_filtercodes#filtercodes-in-a-custom-menu
And of course, if you fix it for Multi-language Content v2, the fix will also work for FilterCodes which might be useful for you too. I have been creating multi-language Moodle sites since many years using this plugin and these fixes work great. Just remember to re-apply the patch anytime you upgrade Moodle or your theme.
3) if you don't to modify Moodle or your theme, there is a way to do multi-language menus without any plugins or tags at all. You will find information on how to do this at:
https://docs.moodle.org/en/Theme_settings#Multilanguage_support
Tip: Depending on your version of Moodle, you may need to group your menu items by language in order for it to work. Example: all your English menu items followed by all your French ones.
Consider asking your questions in the Moodle discussion forums in the future. You will find many more people like me who love to help people with their Moodle questions. You might even discover that you can pay it forward and help others too.
Hope you found something useful in all of this.
Best regards,
Michael Milette
Dear Multilanguage plugin team,
First of all, thank you for this plugin, it simplified a lot my life, definitively.
But I'm having a problem, and I can't find a solution for it. When applying the language mark separator in menus with links, it turns out that it doesn't recognize the link, and this is crucial to make proper use of a multilanguage site (proper use of the menus). Can you give some hint of how to overcome this?
Anyway, thank you for your work. It continuos amazing
TF
Hi Raymond,
This plugin only require the call of the standard functions to apply the filters in Moodle, usually format_string or format_text.
Hello Iñaki, Iñigo and Kepa,
Your plugin is absolutely amazing. Thank you so much for this.
I am using it with the Edwiser RemUI theme and Edwiser's course formats. In some areas such as course description in the list of all courses, the {mlang} tags do not work. Instead you see the entire string unfiltered, i.e. {mlang en}Let's study together{mlang}{mlang ja}一緒に勉強しましょう{mlang}.
Reading the comments here it seems like it may be an issue with the Edwiser course formats and theme not calling specific functions or missing something in their code that can display your plugin. I would like to ask them about this and if they can fix it.
Can you please advise what your plugin requires in their code to properly display? I do not know how to describe it to them so they can see if it is something they can fix on their side.
Thank you in advance.
Unfortunately it is not easily possible to expand the course name field. It would require you to make and maintain at least two customizations in Moodle, one to increase the size of the field in the database and the other to modify the size of the field for the course name. Note that you may encounter similar limitations in other parts of Moodle.
For more information on this issue and some workarounds, see https://tracker.moodle.org/browse/MDL-70556
Hi!
I have a question about this plugin according to course names. I'm using this plugin to create a platform fully displayed in 9 different languages. How can I apply this to course names? I know that it is working - I checked based on 2-3 languages, but the field is too short to type all 9 languages. Is there any way of how I can overcome this issue? Maybe you have some tips for me how can I make it possible to apply all of the 9 languages?
Thank you for any advices and information in advance!
Hi Oktawia,
All the plugins of the plugin database (and this one too) are non-standard plugins, so you'll have to install them in addition to the Moodle core on every Moodle instance you want to use it.
Hi! I want to know whether this plugin is available by default in any of the version of Moodle or I need to install it separatelly every time I want to upgrade the Moodle version? I can not find this information (or I don't know where to search ;) ). Thank you for help in advance.
Hi @Valadis Kefalis
As suggested by Michael Milette, are you testing it with the Boost or Classic theme? Many non-core themes have issues with filters in general (not just multilang2, but any filter). So before digging further, can you confirm that it doesn't work in the course summary if you use the Boost or Classic theme?
Saludos.
Iñaki.
i have a problem with multi lang add on.
While it is working with books, pages, headings etc. it does not work with course summary.
Any suggestions?
FYI: I tested it and it seems to work well with Moodle 3.9.
Pro Tip: For anyone who is having trouble getting it working, please test in a page or a the content area of an HTML block first using the Boost or Classic theme. Until it is working in one of these two places with the Boost theme, it is not configured correctly or enabled. You can then switch to a 3rd party theme or other plugins. If the same page or block no longer works, you know the problem is with your theme or plugin and not Moodle or the Multi-Language Content (v2) plugin. Hope you find this tip helpful.