I wonder what way is the best to use language files of an extension.
The common way is to load the files to the language folders like this:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<extension
version="3.0"
type="plugin"
group="content"
method="upgrade">
<name>plg_content_coordstomap</name>
<creationDate>Mai 2016</creationDate>
<license> http://www.gnu.org/licenses/gpl-3.0.html</license>
<version>1.2.0</version>
<description>PLG_CONTENT_COORDSTOMAP_XML_DESCRIPTION</description>
<files>
<filename plugin="coordstomap">coordstomap.php</filename>
</files>
[b] <languages>
<language tag="en-GB">language/en-GB/en-GB.plg_content_coordstomap.ini</language>
<language tag="en-GB">language/en-GB/en-GB.plg_content_coordstomap.sys.ini</language>
<language tag="de-DE">language/de-DE/de-DE.plg_content_coordstomap.ini</language>
<language tag="de-DE">language/de-DE/de-DE.plg_content_coordstomap.sys.ini</language>
</languages>[/b]
</extension>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
-<extension method="upgrade" group="content" type="plugin" version="3.0">
<name>plg_content_coordstomap</name>
<creationDate>Mai 2016</creationDate>
<license> http://www.gnu.org/licenses/gpl-3.0.html</license>
<version>1.2.0</version>
<description>PLG_CONTENT_COORDSTOMAP_XML_DESCRIPTION</description>
<files>
<filename plugin="coordstomap">coordstomap.php</filename>
[b]<folder>language</folder>[/b]
</files>
</extension>
Regards
Astrid