Hi,
I am new here. I asked this question here too:
http://forum.joomla.org/viewtopic.php?f=727&t=926911
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: Alles auswählen
<?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>
But it works too, if you copy them to the folder of the extension the way like this:
Code: Alles auswählen
<?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>
I prefer the second way. This works quite good for me. But I wonder if I miss something and I would better copy the files in the intended language folder.
Regards
Astrid