Translating your component

As we saw when building our module, translating your component to another language is quite easy to do, as all of the text is displayed using JText. Assuming you wanted to translate your component to Dutch, you would just need to create the following files:

  • /administrator/components/com_folio/language/nl-NL/nl-NL.com_folio.ini
  • /administrator/components/com_folio/language/nl-NL/nl-NL.com_folio.sys.ini
  • /components/com_folio/language/nl-NL/nl-NL.com_folio.ini

You could just copy the en-GB files, and then translate the right-hand side of each language string. You'd then just need to adjust your installation XML file at /administrator/components/com_folio/folio.xml to add the new language:

<languages folder="admin"> <language ...

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.