Translating your module

At the moment, all the text used in our module is hardcoded, so like we did with our plugin, we are going to add a language file which will allow users to easily translate your module into their native language. English speakers will not need to translate, but may want to override your text and show some custom text that they feel is more appropriate, and we don't want them having to edit source code.

We are going to use the administrator version of our module, not the frontend "site" version, but the same changes could be made to the frontend module.

Edit your mod_latestextensions.xml file and make the changes that are highlighted as follows:

<?xml version="1.0" encoding="utf-8"?> <extension type="module" version="2.5.5" ...

Get Learning Joomla! 3 Extension Development - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.