By Majid Ebr on Friday, 11 September 2015
Posted in Technical Issues
Likes 0
Views 678
Votes 0
Hello there,

I've been translating EasySocial frontend language file and have encountered a few problems. The most important ones are as below:

First, for some reasons the translation does not work for various forms like registration, create event, create group and so on. As far as I can tell all of the strings exist in the language file and are translated, but they are not read when the page is generated. Perhaps they are read from the administrator language file?

Second, my joomla translation includes a non-gregorian calendar which works fine all over joomla with no special settings required. But unfortunately not in easysocial. Would you please let me know how can I fix this?

thank you in advance.
Hey Majid,

I am sorry that delay of this reply,

Yes, some of the custom field language string is look for backend.

Perhaps you can provide us with some screenshot which on-gregorian calendar you referring, Joomla backend and FTP access so we can better have a check?
·
Friday, 11 September 2015 19:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Thank you for the reply.

I'm using Jalali date provided with the official joomla Persian language pack:
http://community.joomla.org/translations/joomla-3-translations.html#prs-af

it works out of the box across joomla when Persian language is selected, without any hack.

best regards,
Majid
·
Friday, 11 September 2015 19:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Majid,

Are you referring to the event calendar? Currently the event calendar in EasySocial only works with gregorian calendar.
·
Sunday, 13 September 2015 14:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

I'm referring to all dates shown across easysocial, for photos, albums, posts, edits, ... and of course events calendar.
I really hope gregorian calendar is not the only option, otherwise the whole thing is pretty much useless for me.
·
Sunday, 13 September 2015 18:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Majid,

Sorry for the late reply. Did you mean this date: http://screencast.com/t/PEOHlwsyn ? I've tested the Persian language pack with the latest Easysocial 1.3.30.
·
Tuesday, 15 September 2015 12:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Nick,

Yes, for example that one. What is shown here is basically gregorian date, with the month name translated in Persian, and that's all. It does not use Jalali calendar which is included in hte language pack. I believe Persian month names (and week days name) comes even without a language pack, if page locale is set to fa-IR.

thanks for your help,
Majid
·
Tuesday, 15 September 2015 14:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Majid,

I am really sorry for the delay of this reply as it is actually a public day off for us here. Hm, we actually have our own translations for the date strings and they can actually be found in /language/en-GB/en-GB.com_easysocial.ini . As for the stream date that Nik posted, you can actually alter this in the theme settings located in Themes > [Theme that you use] > Stream
·
Wednesday, 16 September 2015 18:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi guys,

Happy new year!
Thank you for your replies and sorry that I couldn't answer back earlier.

Unfortunately, your answers don't solve my problem, I think there is a bit of misunderstanding here.
I'm not just looking for a translated representation of the Joomla Gregorian calendar based on the locale, which by the way works fine. I'd like to have Jalali calendar, which is included in the standard Persian translation package. If you look into "js" folder of the translation package, you would see the related scripts. As far as I understand, it doesn't change anything in the way the dates are stored in the database or things like this, it just converts the standard Gregorian date to Jalali date and displays it instead.
It is worth mentioning that it works fine out of the box across joomla, and 3rd party components like K2, without any hack required. Unfortunately EasySocial is the only component which doesn't work with this.
Having the dates displayed properly, specially for the events, is very important for us. I would greatly appreciate it if you could please advice on how to get this solved.
·
Monday, 04 January 2016 23:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

Hm, I am actually a little confused here. Are you referring to the forms or are you referring to the output of the date / time ? To be honest, I have not tried using Jalali calendars and have no idea how different it is compared with Gregorian calendar.

Any ideas how can I view the difference of both of these dates in terms of output?
·
Tuesday, 05 January 2016 12:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Thank you for your quick reply.

Well, it would be nice to have the Jalali calendar all over the place. What I was trying to explain is that the scripts which are included in the official translation package, convert the dates to Jalali and then display them, if the selected language i Persian. Otherwise, the normal Gregorian time is displayed. It's even possible to have English on the backend and Persian in frontend and they both work fine with their proper calendar.

Jalai or Iranian calendar is a totally different calendar than Gregorian,different month names and different year (it's 1394 ), something like Chinese calendar, if you wish. So the script does convert the date from Gregorian with some calculation, it's not just a matter of translating month names and so on.

If you have an installation of Joomla 3 with the official Persian package, you can set the front end language to Persian and keep the backend in English so you can work with it. Then, if you publish an article, for example, the date which is displayed in frontend is automatically displayed in Jalali. And as soon as you change the frontend language to English, then the normal default Gregorian date is displayed.

I guess something is different in the way the date function is implemented in easysocial than the rest of Joomla?

thank you for helping with this.
Majid
·
Tuesday, 05 January 2016 18:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

Sorry for the delays, I have been extremely occupied the past 2 days and I missed your thread. Anyway, I have been doing some research on this and here is my findings:

1. It seems like when JFactory::getDate() is called, it actually renders the respective locale method from the language's localize.php file.

2. Since EasySocial does not rely on JFactory::getDate(), this is where the issue kicks in. It never gets the correct localized version.

3. I just tried downloading the Persian language pack but I seem to be hitting this on my local site.

Fatal error: Call to undefined function gregoriantojd() in /easysocial.com/language/fa-IR/fa-IR.localise.php on line 86

Which languge pack are you using?
·
Friday, 08 January 2016 01:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Thank you for investigating the issue.
I'm using the language pack which is listed on official joomla website at:
http://community.joomla.org/translations/joomla-3-translations.html#fa-ir

This should be a link to download the installation file directly:
http://joomlacode.org/gf/project/jtranslation3_x/frs/?action=FrsReleaseBrowse&frs_package_id=6435
·
Friday, 08 January 2016 01:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, I will download and play around with this. Also, please set the domain for your license at http://stackideas.com/dashboard
·
Friday, 08 January 2016 12:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I just set the domain. Any news?
·
Wednesday, 13 January 2016 18:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Majid,

Your language pack isn't working as I still hit this error everywhere Fatal error: Call to undefined function gregoriantojd() in /wwwroot/easysocial.com/language/fa-IR/fa-IR.localise.php on line 86
·
Wednesday, 13 January 2016 23:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

It's very strange since this the official language pack and is used by many people. I have used it many times on many installations without a single problem. Is yours the latest joomla 3 installation? Maybe the language pack for the version that you are using has a bug? I Do you get this during installation or when you set it as default frontend language?
·
Thursday, 14 January 2016 00:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, my local site is running on the latest Joomla 3.x branch . After installing the pack, all my pages displays the error above.
·
Thursday, 14 January 2016 13:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I've asked around and nobody has encountered such a problem. Can't you just try it on a fresh installation? It's been quite a while and we really need to get this done.
Thanks.
·
Wednesday, 20 January 2016 20:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Just tried with a fresh Joomla installation and same issue here I am wondering if this is due to my locale on my PC? Does that have any effect?
·
Friday, 22 January 2016 22:20
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post