Using Joomla Language Files / How to set Joomla language

Popular automatic website translation tool

Using Joomla Language Files / How to set Joomla language

Postby ingmardevos » Sat May 10, 2014 2:29 am

Hi there,

Out website / webstore has quite a lot of Ajax / JSON - popups and responses that don't get translated. Even some buttons and countdown timers. Next to that we would like to see order emails translated. In my opinion it would improve the Gtranslate system greatly if we could add a functionality to also set the Joomla language along with the Gtranslate language selection. Why let all those professional translations go to waste? And this way we can easily send out emails in the right language as well.

There are simply TOO much scripts in Virtuemart 2 and extensions that use JSON and AJAX responses. There is no way that we can change the source code in all those spots, keep the functionality and be able to update the extensions without doing the work all over again.

Is there any know solution or code that you guys have for this? There has to be a way.
If not with setting a cookie or Joomla session parameter maybe with the GT lang server value?

Thanks in advance,
Ingmar
ingmardevos
 
Posts: 29
Joined: Tue Dec 06, 2011 5:37 pm

Re: Using Joomla Language Files / How to set Joomla languag

Postby Edvard » Sat May 10, 2014 2:46 am

Hi,

You may use _SERVER['HTTP_X_GT_LANG'] variable as described in our documentation: https://gtranslate.io/docs/58-gtranslat ... umentation

You can set Joomla internal language by detecting the selected language, but think twice when you do that to not make the system try to translate already translated parts. You can try to do that only for ajax requests which do not get translated.

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Using Joomla Language Files / How to set Joomla languag

Postby ingmardevos » Sat May 10, 2014 3:19 am

A while ago by email you said to be willing to help us implement this code somewhere to show. Can you still do this? I have no idea how to implement this variable into actual code.
ingmardevos
 
Posts: 29
Joined: Tue Dec 06, 2011 5:37 pm

Re: Using Joomla Language Files / How to set Joomla languag

Postby Edvard » Sat May 10, 2014 3:26 am

Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Using Joomla Language Files / How to set Joomla languag

Postby ingmardevos » Tue May 13, 2014 12:32 am

Thanks Edvard,

Can you give me a code example on how to implement this using the Gtranslate language selector?
ingmardevos
 
Posts: 29
Joined: Tue Dec 06, 2011 5:37 pm

Re: Using Joomla Language Files / How to set Joomla languag

Postby Edvard » Tue May 13, 2014 1:09 am

I have already sent you a code example. As I understood you are a webmaster and want to implement it yourself and do not want to make additional payments.

Let me know.
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux