Home arrow Support & FAQs arrow Forum arrow Extensionsarrow Archivearrow JCal Proarrow JCal Pro 2.0 & 2.1 (board locked)arrow SOLVED: language issue with JCal Pro version 2.1.15 (greekish language)
Pages: [1]
Print
Author Topic: SOLVED: language issue with JCal Pro version 2.1.15 (greekish language)  (Read 2292 times)
emel
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« 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
« Last Edit: March 21, 2010, 08:11:50 PM by V-man » Logged
MRJIT
Hero Member
*****

Karma: +454/-1
Posts: 4333


View Profile
« Reply #1 on: September 01, 2009, 07:25:47 AM »

i can't see any greek on your site
Logged
emel
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« Reply #2 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/
Logged
MRJIT
Hero Member
*****

Karma: +454/-1
Posts: 4333


View Profile
« Reply #3 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
Logged
yianniskarousos
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« Reply #4 on: September 07, 2009, 04:21:28 PM »

try enable the legacy plugin. it worked for me
Logged
hellekim
Newbie
*

Karma: +0/-0
Posts: 3


View Profile Email
« Reply #5 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.
Logged
MRJIT
Hero Member
*****

Karma: +454/-1
Posts: 4333


View Profile
« Reply #6 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
Logged
hellekim
Newbie
*

Karma: +0/-0
Posts: 3


View Profile Email
« Reply #7 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'
);
Logged
hellekim
Newbie
*

Karma: +0/-0
Posts: 3


View Profile Email
« Reply #8 on: October 09, 2009, 01:13:52 AM »

Anyone?
Logged
magh_samana
Newbie
*

Karma: +0/-0
Posts: 24


View Profile
« Reply #9 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.
« Last Edit: April 04, 2010, 05:23:42 AM by magh_samana » Logged
shumisha
Global Moderator
Hero Member
*****

Karma: +16/-1
Posts: 1481


View Profile Email
« Reply #10 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
Logged

*** Please read this post and the FAQs before posting in the forum. ***
*** Documentation links: JCal Pro | sh404SEF | Advanced Search | I'll Be There RSVP ***
*** Support questions via PM or e-mail will be ignored.
Pages: [1]
Print