VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: alin on December 21, 2014, 07:52:33 AM

Title: can't create language file for new plugin
Post by: alin on December 21, 2014, 07:52:33 AM
Hi,

I'm trying to create a soapclient plugin for a website. But the language file is not loaded on installation.

In the installation XML I have:

   
   <languages>
      <language tag="en-GB">en-GB.plg_soapclient.sys.ini</language>
   </languages>


The ini file is UTF8, BOM signaturedisabled, Unicode Normalization Form: C

The content of the ini file is only something like:

PLG_SOAPCLIENT_XML_DESCRIPTION="My own description"

Any tips?

Title: Re: can't create language file for new plugin
Post by: GJC Web Design on December 21, 2014, 13:46:27 PM
is it installed  (present in the administrator/language/en-GB folder?)
if so when u switch on Joomla language debug what does it say?

shouldn't for a straight lang var the file also be incl.  en-GB.plg_soapclient.ini  ?

<languages>
      <language tag="en-GB">en-GB.plg_soapclient.sys.ini</language>
<language tag="en-GB">en-GB.plg_soapclient.ini</language>
   </languages>

afaik .sys is just for the install/version info stuff
Title: Re: can't create language file for new plugin
Post by: alin on December 21, 2014, 14:11:22 PM
Hi,

Thanks for the reply.

I made tests with language file in root folder and in language folder and still didn't work.

I changed the name of the file to include also the group the plugin belongs to and now it works. There was also a confusion created by the cache.

It worked with "sys.ini" only. I think also with ".ini" would have worked.