I am using Language file with my plugin component. I have manually placed it in the language folder and named it en-GB.com_componentname.sys.ini and en-GB.com_componentname.ini but whenever my component runs the strings are never translated.
I have tried debugging the language file, at it shows ?? around the strings and publish them as it. COM_COMPONENTNAME_VIEW_TEST , and does not change them.
Is this a mix-up between plugin and component? Maybe you just confused the terms whilst asking the question.
My first suggestion would be that for a plugin the language file’s name would be en-GB.plg_pluginname.sys.ini – for the strings used during install, uninstall and upgrade, and discovery install.
For files used during standard execution of the plugin the filename would be en-GB.plg_pluginname.ini (note that there is no .sys. in this version.
The only other issue is whether you’ve got the files in the frontend versus the admin application (in the /administrator/ area of your site. Each has its independent /languages/ folder.
If you are talking about a component then the file has com_ in the middle rather than plg_ , and obviously substitute your component/plugin’s actual name in place of ‘pluginname’.