It is currently Sat May 17, 2008 12:18 am

[under review] plugin-install.dtd needs update, problem with lang. file install

Moderators: dam-man, willebil, tcp, Development

[under review] plugin-install.dtd needs update, problem with lang. file install

Postby yvolk on Tue May 15, 2007 12:05 pm

Comparing DTD-s for component (component-install.dtd) and plugin (plugin-install.dtd) install, I found, that:

1. "folder" attribute of "files" element for plugin (but not for component!) has definition, that doesn't allow slashes, so:

- is illegal, but it works OK (as for component, where it is legal).

2. Description of "languages" element is strange:
there is NO way to describe differently language file for SITE and for ADMINISTRATOR (like for component). Currently language files are copied to administrator (backend) only  :(

3. And also I want to mention a BUG installing language files (it's both for plugins and components:
only first "languages" element is being processed, although DTD allows multiples languages elements (the same for installing components), so in my case, if I type this:

 
    en-GB.plg_content_yvcomment.ini
 

 
    ru-RU.plg_content_yvcomment.ini
 


- only first language file is installed.
By the way, in my Extension (yvComment) I'm using
this instead:


www/administrator/language/en-GB/en-GB.plg_content_yvcomment.ini
www/administrator/language/ru-RU/ru-RU.plg_content_yvcomment.ini

- but this is not consistent with "folder" attribute usage for files (that works!!!)
Last edited by RobInk on Tue Sep 11, 2007 5:38 pm, edited 1 time in total.
User avatar
yvolk
Joomla! Engineer
Joomla! Engineer
 
Posts: 320
Joined: Thu Jun 01, 2006 1:52 pm
Location: Moscow, Russia

Re: plugin-install.dtd needs to be updated + problems with language files instal

Postby Jinx on Wed May 16, 2007 2:15 pm

Moving to Q&T for feedback.
Johan Janssens - Joomla! Core Team Member/Lead developer
'Making good things happen'

http://www.nooku.org - content translation system for Joomla! 1.5
http://www.joomlatools.org - training, consulting and extension development
User avatar
Jinx
Joomla! Champion
Joomla! Champion
 
Posts: 6718
Joined: Fri Aug 12, 2005 12:47 am

Re: plugin-install.dtd needs to be updated + problems with language files instal

Postby RobInk on Tue Sep 11, 2007 5:37 pm

Q&T Note; marking as under review
Regards Robin - Sites & Infrastructure

Spilling the Beans on Open Source - Case studies, Reviews, Interviews and more @ http://robink.nl
What nature designs is amazing. Designing amazing is our business @ http://alvaana.com
User avatar
RobInk
Joomla! Master
Joomla! Master
 
Posts: 15026
Joined: Thu Aug 18, 2005 10:41 am
Location: The Netherlands


Return to Joomla! 1.5.x_Q&T

Who is online

Users browsing this forum: No registered users