Elxis CMS Forum

Extensions => Bots and plugins => Topic started by: MG01 on October 24, 2015, 13:37:07

Title: Joomla IOSR plugin?
Post by: MG01 on October 24, 2015, 13:37:07
Is there any Joomla site that have integrated IOS Reservation plugin, so i can see functionalities ?
And do this plugin have all the same functionalities as elxis reservation API?
Also i would like to see that API integrated on some web site?

Thanks and best regards,

MG
Title: Re: Joomla IOSR plugin?
Post by: datahell on October 24, 2015, 18:28:57
The pre-made joomla plugin looks and works exactly the same as the standalone api integration and also the same as the plugins for elxis and wordpress.
Title: Re: Joomla IOSR plugin?
Post by: MG01 on October 26, 2015, 19:29:13
Thanks!

I am only getting API reservation in english language, even i have put other languages under plugin settings!
It says "API server MUST SUPPORT THEM" for other languages, so i want to know where can i check that or find it for translation?

Also is it possible to have API Reservation search integrated under module or just under content/article?

Best regards,
MG
Title: Re: Joomla IOSR plugin?
Post by: datahell on October 26, 2015, 20:42:45
The API uses 2 language settings, one for the interface and one for the data (from the API server).

$client = new iosrApiClient($iosr_api_id, $gui_lang, $server_lang);

The pre-made plugin for joomla tries to detect current language and if it is available in server (see module parameters) defines that language as server's language.

Code: [Select]
$langtag = JFactory::getLanguage()->getTag();
$parts = explode('-', $langtag);
$curlang = strtolower($parts[0]);

If this does not work well I am sorry, I am not specialist in joomla and I don't wont to become one. The official support is only for Elxis CMS. You can tweak the code above if you want to test. The GUI (interface) language is always set to auto-detect from the user's browser.

The default plugin can be used only in articles and is visible ONLY in article details page.
Title: Re: Joomla IOSR plugin?
Post by: MG01 on October 26, 2015, 21:13:00
But i am speaking about Elxis version!
Title: Re: Joomla IOSR plugin?
Post by: datahell on October 26, 2015, 21:54:59
For Elxis multilingualism works perfect. If you see English text instead of the current language it is because the API is not available in that language. Currently available languages are: german (de), english (en), greek (el), spanish (es), italian (it) and russian (ru). You will find API languages in this folder:
components/com_content/plugins/reservation/iosrclient/language/

If you make a new translation please send me the file to include it in the official release.

If this does not solve the problem contact me via IOSR admin section for official support.
Title: Re: Joomla IOSR plugin?
Post by: MG01 on October 26, 2015, 22:38:56
Thanks!  ;)