Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2219

Language - Joomla! 5.x • correct linking to language files

$
0
0
When looking at J5 extensions and how they handle language file linking, I find different approaches:

In Akeeba Backup, for example, I find:

Code:

<files folder="frontend"><folder>language</folder><folder>src</folder></files><languages folder="frontend"><language tag="en-GB">language/en-GB/com_akeebabackup.ini</language></languages>
in Joomla 6alpha:

Code:

<languages><language tag="en-GB">language/en-GB/plg_finder_content.ini</language><language tag="en-GB">language/en-GB/plg_finder_content.sys.ini</language></languages>
Regularlabs:

Code:

<languages folder="language"><language tag="en-GB">en-GB/en-GB.pkg_regularlabs.sys.ini</language></languages>
My questions are:

1) What is the best practice for linking language files?
  • <folder>language</folder>
  • <language tag="en-GB">language/en-GB/plg_finder_content.ini</language>
  • or both ways above
2) How should the INI files be named - with or without the language code?
  • en-GB.pkg_extension.ini
  • pkg_extension.ini
I also need to consider language overrides to ensure they continue working.

Statistics: Posted by hekla — Fri Oct 25, 2024 2:04 pm



Viewing all articles
Browse latest Browse all 2219

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>