Welcome, Guest
Username: Password: Remember me

TOPIC: Change gallery locale

Change gallery locale 10 years 2 weeks ago #521

Hi friend

I need to change the locale, the comments informations appear in English and my website is Brazilian Portuguese, my customers don't know english.
How can I change that?

Congratulations to you, the component is very nice!
Attachments:
The administrator has disabled public write access.

Change gallery locale 10 years 2 weeks ago #522

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hi Tony
Can you send me account FTP via contact form? So i can help you changed and check it
Best regards
Bach Pham
The administrator has disabled public write access.

Change gallery locale 10 years 2 weeks ago #531

Hello Friend
I appreciate your help but I will install the component on other sites and I would not bother you with it anymore.
I understand very well the PHP code, send to me how to do, and I do it by myself.

Tks a lot.
The administrator has disabled public write access.

Change gallery locale 10 years 2 weeks ago #532

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hi Tony
Yes. You are using joomla version? (2.5 or 3.x)
Best regards
Bach Pham
The administrator has disabled public write access.

Change gallery locale 10 years 1 week ago #556

Both
But now I need to configure 3.2.3
The administrator has disabled public write access.

Change gallery locale 10 years 1 week ago #557

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hi Tony
Change language for facebook comment
Find and open file component/com_jofacebookgallery/views/comments/commenturl.php go to line 25 change
en_GB to pt-BR
js.src = "//connect.facebook.net/pt-BR/all.js#xfbml=1&appId=<?php echo $fabook_app_id_settings;?>";

Change language for datetime
Find and open file component/com_jofacebookgallery/views/categories/tmpl/default.php
Find and open file component/com_jofacebookgallery/views/category/tmpl/default.php
Find and open file component/com_jofacebookgallery/views/albums/tmpl/default.php
Find and open file component/com_jofacebookgallery/views/photo/tmpl/default.php

Ex: albums/tmpl/default.php
find line 13 and add code below (below line defined('_JEXEC') or die('Restricted access');)
setlocale(LC_ALL, 'pt_BR');

And changed language datetime 52, 129
Ex:
echo date('F d, Y', strtotime($this->album_info[0]->created_time))
To
echo strftime("%A %e %B %Y", strtotime($this->album_info[0]->created_time))

and the same for joomla 2.5
Best regards
Bach Pham
Last Edit: 10 years 1 week ago by Super User.
The administrator has disabled public write access.
Time to create page: 0.077 seconds