Is the /language/ directory within a component/module the 'new' design
place for NLS support ?
BTW: I like the idea to have the language directory within the
component/module directory. This is a more consistant design. The
(root)/language directory should reserved for Joomla base or even
eliminated when all base components are modified to the new concept.
Regards,
Andrew Eddie
http://www.theartofjoomla.com - the art of becoming a Joomla developer
2009/12/24 Christophe Demko <chd...@gmail.com>:
> --
>
> 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.
>
>
>
One of the reasons we went for the approach of a unified language
folder is to make the life of translators easier by having one folder
they can examine and see how it works. For core extensions this isn't
a problem because a core language pack should include all of these
files. For reasons stated above this is sub-optimal for third party
extensions because it means their files either don't get copied or get
deleted. So for this reason, core extensions (e.g. those that ship
with the main distribution) should have their files located in a
common directory. Additionally should a translator want they can in
their language pack include translations of other extensions here as
well (not necessarily just for the extensions that ship with Joomla!).
In some respects this is a very powerful concept: a translation can be
vendor supplied (shipped with the extension) or supplied via a
language pack from a third party translator.
Discussion on removing the centralised language folder is perhaps
something for 1.7 but should be done in consultation with the primary
stakeholders of that location, the translators. Improved tooling would
make a switch for core extensions to retain their language files
easier for translators but for the time being, core extensions should
have a shared language file and third parties should be working
towards including a language folder within their normal directory
structure (also makes development and subversioning easier as well for
those files - especially on platforms like Windows that doesn't
support symlinks neatly). The issue with removing the centralised
language folder is that we're having a translator install a
translation for something that potentially doesn't exist as well (back
to muddy responsibilities) - the hybrid solution for me is what I feel
the best option even though it is a bit more complicated.
Additionally this also solves one of the problems plugins have had:
where should the language file go? With the plugin itself (now they've
got their own folders as well).
Sam Moffatt
http://pasamio.id.au
As explained by Sam, the use of extensions specific language folders
should be reserved to 3pds.
It is to be noted that any translation for a 3pd extension not
included by the 3pd dev can only be installed in the main languages
folders.
If, for any reason, 2 files of the same name for an extension are
present, one in the central language folder, the other in the
extension folder, the main language folder one has precedence.
On 24 Dec, 00:15, Andrew Eddie <mambob...@gmail.com> wrote:
> Shouldn't all the core extensions being in the main language folder?
> If not, doesn't it make it hard for people doing full language packs?
>
> Regards,
> Andrew Eddiehttp://www.theartofjoomla.com- the art of becoming a Joomla developer
>
> 2009/12/24 Christophe Demko <chde...@gmail.com>:
Erik
On Dec 24, 9:25 am, infograf768 <infograf...@gmail.com> wrote:
> It was indeed decided to keep all core language files in the central
> language folders and their name listed in their respective xml in
> order to ease the making of Core language packs for Translators.
> We discussed this matter when we started working on com_localise.
> I suggest therefore that the files listed above be moved to where they
> belong and to make sure when someone is committing any language ini
> that it is listed in the xml.
> Com_localise will ease the making of any type of pack, extension
> specific (one or multiple) or core.
>
> As explained by Sam, the use of extensions specific language folders
> should be reserved to 3pds.
> It is to be noted that any translation for a 3pd extension not
> included by the 3pd dev can only be installed in the main languages
> folders.
> If, for any reason, 2 files of the same name for an extension are
> present, one in the central language folder, the other in the
> extension folder, the main language folder one has precedence.
>
> On 24 Dec, 00:15, Andrew Eddie <mambob...@gmail.com> wrote:
>
> > Shouldn't all the core extensions being in the main language folder?
> > If not, doesn't it make it hard for people doing full language packs?
>
> > Regards,
> > Andrew Eddiehttp://www.theartofjoomla.com-the art of becoming a Joomla developer
> > > Andrew Eddiehttp://www.theartofjoomla.com-theart of becoming a Joomla developer