I came to conclusion, that the best way "to create language pack for Joomla! 1.5 extension" is the third way
to create "dummy plugin" package, which purpose is to give user ability:
- to install and uninstall language files for "real" (parent) extension, using Joomla! installer;
- to see, which languages of extension are installed (each language has it's own line in the list of plugins);
- to see the version of each language pack (version of language pack is version of extension, which language files were translated) - in the "Extension Manager->Plugins".
I had to make only one change in my extension: I've got rid of 'site' language files (I moved all localizable strings to 'administrator' language files), because plugin installer can't install 'site' language files
- but I've got another thing as a result: now I have only one
language pack file for each language
So, install.xml file is still very simple:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install SYSTEM "http://dev.joomla.org/xml/1.5/plugin-install.dtd">
<install type="plugin" group="content" version="1.5.0">
<authorEmail>Email -> Visit the website:</authorEmail>
<copyright>(c) 2007-2008 yvolk (Yuri Volkov), http://yurivolkov.com. All rights reserved.</copyright>
This is Danish language pack for yvComment extension.
Don't enable this plugin.
See yvComment's Homepage [url]http://yurivolkov.com/Joomla/yvComment/index_en.html[/url] for more information.
As you may see in the code above, I had to add only one (dummy) plugin file to the package: yvCommentLanguagePack_da-DK.php
-It is required by Joomla! installer.
So, maybe this is good solution for the time being (until Joomla! will have the same support for "language" package as it has for "plugin" package).
See full package attached.