Language Override

61 views
Skip to first unread message

Thomas PAPIN

unread,
Aug 28, 2011, 7:24:37 PM8/28/11
to joomla-dev...@googlegroups.com
Hello,

I was looking to a way to allow people updating the languages files of my components without modification in core languages files.

I finally found 3 ways:
- 1.6, 1.7, this can be done with languages/overrides/en-GB.override.ini. But this is not working with 1.5.
  
Anyway a simple "plugin" could be developped to make this compatible with 1.5 and this plugin could be published on the JED

-
There is also, this plugin: http://extensions.joomla.org/extensions/languages/language-edition/13147
  Which this one, you can create new translation files in template directory like html override.

- The last one is this solution: http://www.yireo.com/tutorials/joomla/joomla-programming/721-load-a-custom-language-file-in-your-joomla-template
  which do in fact, what is doing the previous plugin.

I read somewhere that now, it's possible to put the languages files into the component directory. But in this case, is the "ovveride" working directly ?

Thomas


JM Simonet

unread,
Aug 29, 2011, 1:52:27 AM8/29/11
to joomla-dev...@googlegroups.com
In 1.7 (1.6 is now obsolete) any string in an override.ini will load last and override ANY string loaded beforehand, wherever it is.
It is also good to know that a specific component ini file xx-XX.com_mycomponent.ini (as well as xx-XX.com_mycomponent.sys.ini) present in the core folders will override a similar ini file placed in the component language/xx-XX/ folder

Thomas
--
You received this message because you are subscribed to the Google Groups "Joomla! Framework Development" group.
To post to this group, send an email to joomla-dev...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-frame...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-framework?hl=en-GB.


-- 
Please keep the Subject wording in your answers
This e-mail and any attachments may be confidential. You must not disclose or use the information contained in this e-mail if you are not the
intended recipient. If you have received this e-mail in error, please notify us immediately and delete the e-mail and all copies.
-----------------------------------------------------------
Jean-Marie Simonet  /  infograf768
Joomla Leadership Team - Production Working group
Joomla! Translation Coordination Team 

Thomas PAPIN

unread,
Aug 29, 2011, 3:27:07 AM8/29/11
to joomla-dev...@googlegroups.com
Hello,

Ok so in this case, my idea to create a plugin for 1.5 that will allow the usage of a override.ini file could be great. Will check on JED that this plugin is not already available

The problem for third party developers is that we need to support customer on 1.5 1.6 1.7 so we always needs solution that works on all latest version.
So even if 1.6 is obsolete we still need to provide support.

Thomas


2011/8/29 JM Simonet <infog...@gmail.com>
In 1.7 (1.6 is now obsolete) any string in an override.ini will load last and override ANY string loaded beforehand, wherever it is.
It is also good to know that a specific component ini file xx-XX.com_mycomponent.ini (as well as xx-XX.com_mycomponent.sys.ini) present in the core folders will override a similar ini file placed in the component language/xx-XX/ folder

Thomas
--
You received this message because you are subscribed to the Google Groups "Joomla! Framework Development" group.
To post to this group, send an email to joomla-dev...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-frame...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-framework?hl=en-GB.


-- 
Please keep the Subject wording in your answers
This e-mail and any attachments may be confidential. You must not disclose or use the information contained in this e-mail if you are not the
intended recipient. If you have received this e-mail in error, please notify us immediately and delete the e-mail and all copies.
-----------------------------------------------------------
Jean-Marie Simonet  /  infograf768
Joomla Leadership Team - Production Working group
Joomla! Translation Coordination Team 

JM Simonet

unread,
Aug 29, 2011, 4:28:23 AM8/29/11
to joomla-dev...@googlegroups.com
Hello,

Ok so in this case, my idea to create a plugin for 1.5 that will allow the usage of a override.ini file could be great. Will check on JED that this plugin is not already available

The problem for third party developers is that we need to support customer on 1.5 1.6 1.7 so we always needs solution that works on all latest version.
So even if 1.6 is obsolete we still need to provide support.

This aspect (the override.ini) has not changed., as most aspects of 1.7 vs 1.6.
It is not a good idea to release at this point any extension that would be 1.6 specific (i.e. with specific calls to version #), as we are not supporting anymore 1.6...
1.5 is another story as it is a LTR until next year.

JM

brian teeman

unread,
Aug 29, 2011, 4:47:48 AM8/29/11
to joomla-dev...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages