|
Title: SOLVED: language issue with JCal Pro version 2.1.15 (greekish language) Post by: emel on September 01, 2009, 07:16:00 AM hi there
please take a look here: www.student-life.eu i am happy about the calendar, no doubts here. Except, when i switch to the greekish language, the site goes into error. When i de-activate the calendar, everythings fine, so it must be the calendar... please help... regards mel Title: Re: language issue with JCal Pro version 2.1.15 (greekish language) Post by: MRJIT on September 01, 2009, 07:25:47 AM i can't see any greek on your site
Title: Re: language issue with JCal Pro version 2.1.15 (greekish language) Post by: emel on September 02, 2009, 12:07:03 AM there is now...
(i de-listed it from the website, but its there again, last flag on the right) http://www.student-life.eu/ Title: Re: language issue with JCal Pro version 2.1.15 (greekish language) Post by: MRJIT on September 02, 2009, 02:40:23 AM I get Direct Access to this location is not allowed.
Pretty sure that is nothing to do with jcal but is related to joomfish as i noticed that everything from that link gives the same error. Sorry but I'm not familiar with joomfish I suggest checking at their site Title: Re: language issue with JCal Pro version 2.1.15 (greekish language) Post by: yianniskarousos on September 07, 2009, 04:21:28 PM try enable the legacy plugin. it worked for me
Title: Re: language issue with JCal Pro version 2.1.15 (greekish language) Post by: hellekim on September 30, 2009, 01:35:09 PM I have the same problem - I created a Finnish language file and after uploading it, I had the "Direct Access to this location is not allowed." error.
When I turned legacy on, which I don't want to do, the site worked again. Title: Re: language issue with JCal Pro version 2.1.15 (greekish language) Post by: MRJIT on October 01, 2009, 03:04:51 AM I doubt very much that this is anything to do with "legacy mode" and more likely to be an error in your language file.
See http://dev.anything-digital.com/FAQs/JCal-Pro-for-Joomla-1.5/How-do-I-make-or-update-a-translation-for-JCal-Pro-2.html The most important thing is to make sure that your editor saves the language file in UTF8 no bom Title: Re: language issue with JCal Pro version 2.1.15 (greekish language) Post by: hellekim on October 02, 2009, 12:32:28 PM It might not have anything to do with Legacy mode, but turning it on/off make the calender work/not work.
It is now in UTF-8 no BOM, but it didn't make a difference. Earlier it was just UTF-8 - by the way, maybe this no BOM part would be good to add to the instructions as well. This is the beginning part I've got - as I believe the problem might be there but I just don't get it: Code: $lang_info = array ( 'name' => 'Finnish' ,'nativename' => 'Suomi' // Language name in native language. E.g: 'Français' for 'French' ,'locale' => array('fi','Finnish','fi_FI','fi_FI.UTF-8') // Standard locale alternatives for a specific language. For reference, go to: http://www.php.net/manual/en/function.setlocale.php ,'charset' => 'UTF-8' // For reference, go to : http://www.w3.org/International/O-charset-lang.html ,'direction' => 'ltr' // 'ltr' for Left to Right. 'rtl' for Right to Left languages such as Arabic. ,'author' => 'Mohamed Moujami (Simo), käännös Markku Viitasalo, lisäykset/korjaukset Markku Suominen, Eikka, Kimmo Helle' ,'author_email' => 'simoami@hotmail.com' ,'author_url' => 'http://www.joomlaportal.fi' ,'transdate' => '30.9.2009' ); Title: Re: language issue with JCal Pro version 2.1.15 (greekish language) Post by: hellekim on October 09, 2009, 01:13:52 AM Anyone?
Title: Re: language issue with JCal Pro version 2.1.15 (greekish language) Post by: magh_samana on October 09, 2009, 08:27:04 PM Regarding greek language, same problem has been addressed before, in these forums.
Solution: 1. Fist, make the following code corrections to the greek index.php file: Code: /** ensure this file is being included by a parent file */ defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); // New language structure $lang_info = array ( 'name' => 'Greek' ,'nativename' => 'Ελληνικά' // Language name in native language. E.g: 'Franηais' for 'French' ,'locale' => array('el','greek') // Standard locale alternatives for a specific language. For reference, go to: http://www.php.net/manual/en/function.setlocale.php 2. After this, change the include/functions.inc.php Look for and change this function: Code: function jcTSToFormat( $ts, $format) { // return utf8_encode( strftime( $format, $ts)); return strftime( $format, $ts); } --------------------------------------------- Hi, I can't post a new reply, only edit this message: This solution does work for sure in version 2.2.1.191 but after I upgraded to 2.2.3.289 it didn't work any longer. I applied those corrections and still got the 'direct access' etc. error, so I had to remove it and go back to last working version. Maybe replication of this error would help solve it? In any case please check it, cause personally I can't take the decision to upgrade in any other Jcal pro version unless I am certain that it will function well with utf-8 characters (greek and finnish languages) and present no problems. Title: Re: language issue with JCal Pro version 2.1.15 (greekish language) Post by: shumisha on March 02, 2010, 11:43:27 AM Hi
The first issue ("direct access to this location..." is indeed a bug - a leftover from Joomla 1.0.x, that exists in both Greek and SLovak language files. You need to replace defined( '_VALID_MOS' ) with defined( '_JEXEC' ) near the top of the file index.php of each language. That'll be included in next release ofc. As for fix #2 suggested above, it does not apply, as this part of the code has been changed anyway some time ago Rgds
Powered by SMF |
SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com |