elkuku / EasyCreator

EasyCreator helps creating extensions for the Joomla! CMS
http://extensions.joomla.org/extensions/miscellaneous/development/5908
50 stars 23 forks source link

Missing language tags in manifest file #5

Open machadoug opened 12 years ago

machadoug commented 12 years ago

Dear Nikolai,

I don't use all EasyCretor features, I basically use only the option to create packages, but I'm happy to help you test it.

I have started testing using a fresh Joomla 2.5 installation and so far i only found one problem. When i create a package for a component or plugin the tags are not added to the xml manifest file. For example, when I've creat a package for com_contactenhanced I should get the code below in the XML file:

da-DK/da-DK.com_contactenhanced.ini de-DE/de-DE.com_contactenhanced.ini en-GB/en-GB.com_contactenhanced.ini es-ES/es-ES.com_contactenhanced.ini fr-FR/fr-FR.com_contactenhanced.ini fa-IR/fa-IR.com_contactenhanced.ini nl-NL/nl-NL.com_contactenhanced.ini pt-PT/pt-PT.com_contactenhanced.ini pt-BR/pt-BR.com_contactenhanced.ini sv-SE/sv-SE.com_contactenhanced.ini

and in the :

bg-BG/bg-BG.com_contactenhanced.sys.ini bg-BG/bg-BG.com_contactenhanced.menu.ini da-DK/da-DK.com_contactenhanced.ini da-DK/da-DK.com_contactenhanced.menu.ini da-DK/da-DK.com_contactenhanced.sys.ini de-DE/de-DE.com_contactenhanced.ini de-DE/de-DE.com_contactenhanced.menu.ini de-DE/de-DE.com_contactenhanced.sys.ini en-GB/en-GB.com_contactenhanced.ini en-GB/en-GB.com_contactenhanced.menu.ini en-GB/en-GB.com_contactenhanced.sys.ini es-ES/es-ES.com_contactenhanced.ini es-ES/es-ES.com_contactenhanced.menu.ini es-ES/es-ES.com_contactenhanced.sys.ini sv-SE/sv-SE.com_contactenhanced.ini sv-SE/sv-SE.com_contactenhanced.menu.ini sv-SE/sv-SE.com_contactenhanced.sys.ini

Also, I just have a couple suggestions:

Since Joomla 1.5 will reach End of Life soon, i would make the default "Joomla! version" "1.6 1.7 2.5" when you register a Project;
When you create or Register a project, get the default Compression type that is set in the Configuration options;

PS: Is there a way to upgrade from previous versions without loosing all data? Can I just override all files?

Best regards,

elkuku commented 12 years ago

Hello Douglas, sorry for the late reply ;)

From the end..

So instead of placing the language file in

you should place them in

This way you don't need to include them in the xml manifest, the user may install additional core languages afterward and is given the ability to override the extension files.

So EasyCreator deliberately uses this feature when the Joomla! Compatibility is set to 1.6+

Does that help a bit ?

Thanks again for your testing, Nikolai

machadoug commented 12 years ago

Dear Nikolai,

Many thanks for your reply. Better late than never! ;-)

Another question: When I create a package the plugin and modules .sys.ini and the component's .menu.ini language files are not packed. Can you include those language files as well?

I mainly use EasyCreator to build the packages and I'd appreciate if you could fix that.

Many thanks for your help.

Where can I find a PayPal donation button or link?

Kind regards,

Douglas Machado

machadoug commented 11 years ago

Dear Nicolai,

I'd appreciate if you could add the language strings to the manifest file, which will move the language files back to default Joomla way;

Unfortunately this has cost me a one star review, and I'd appreciate if you could change it: http://extensions.joomla.org/extensions/contacts-and-feedback/contact-forms/6343#rev-128746

Thanks in advanced,

Douglas

elkuku commented 11 years ago

Hi Douglas, first, forgive me my dumbness - I really can not quite understand the problem...

Let me explain my point of view: I believe, that the "default Joomla! way" is to put the language files inside the extension directory. This gives the end users the ability to override the files by placing a copy into the root language directory. This is a save way to make permanent language changes that would be deleted on an extension update otherwise. So if you put your extension language files into the root language directory on installation, you would take away this nice feature from your end user.

The second way to provide an alternative translation is the use of the language/overrides/xx-XX.override.ini file. There is a slick editor right in the Joomla! backend in administrator/index.php?option=com_languages&view=overrides

And, guess what - This one picks up also the language files from the extension directories...

I am sorry about your bad rating. The point here was that the missing T extension is not able to find the language files from the extension/language directories, right ? I think it should be updated ;)

Please, tell me if there is any other point I am missing here.

machadoug commented 11 years ago

Dear Nikolai,

You are far from dumb! ;-) I consider you a very smart man. You have developed a great extension and I'm very grateful to you for your continued effort; It is an overkill, considering that I only use it to build packages. ;-)

The problem is that most users believe that the default language directory is the /root/language/ directory because all Joomla core extensions are in this directory; You are right. You leave like that and I'll deal with the users ;-)

I've talked with the MissingT extension developer and he says that will probably no longer update his extension because he is using Transifex now for all his projects;

Thanks again for your help and I'm sorry for the inconvenience;

All the best,