Remember last used translation?

Popular automatic website translation tool

Remember last used translation?

Postby segaodma » Sat May 21, 2011 12:48 am

How can I make the code to remember last used translation?
segaodma
 
Posts: 6
Joined: Sat May 21, 2011 12:46 am

Re: Remember last used translation?

Postby Edvard » Sat May 21, 2011 6:50 pm

If you are using On Fly translation method, then it will save the selected language in the cookie.
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: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Remember last used translation?

Postby segaodma » Tue May 24, 2011 8:12 pm

Why was my post deleted?
segaodma
 
Posts: 6
Joined: Sat May 21, 2011 12:46 am

Re: Remember last used translation?

Postby segaodma » Wed May 25, 2011 1:38 am

Instead of giving me a solution, you deleted my post... I said that the cookie does not remember the last used language on OnFly translation. It keeps the language only until you close the brorwser.
segaodma
 
Posts: 6
Joined: Sat May 21, 2011 12:46 am

Re: Remember last used translation?

Postby Edvard » Wed May 25, 2011 2:07 pm

I did not delete your post. And don't understand why you are attacking me. May be I'm signed to provide you a free support and I don't do that?
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: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Remember last used translation?

Postby segaodma » Wed May 25, 2011 7:23 pm

I'm sorry for the misunderstanding. My post was like "Instead of giving me a solution, you deleted my post", you did try to help me and so it excludes you... right? ;)
segaodma
 
Posts: 6
Joined: Sat May 21, 2011 12:46 am

Re: Remember last used translation?

Postby segaodma » Sat May 28, 2011 1:55 am

So, we changed the theme in another direction. Is there a solution for this?
segaodma
 
Posts: 6
Joined: Sat May 21, 2011 12:46 am

Re: Remember last used translation?

Postby Edvard » Tue May 31, 2011 12:04 pm

Hi,

I think that I've already answered to your question. If you use On Fly translation method it will save the selected language in the cookie.

You can try to set a longer cookie time by modifying the code.
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: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


Re: Remember last used translation?

Postby Edvard » Fri Jun 10, 2011 5:08 pm

The cookie name is glang, you can get it with PHP by using $_COOKIE['glang'].
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: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


Re: Remember last used translation?

Postby Edvard » Sat Jun 11, 2011 1:39 pm

Good. Just a note: cookie works only in On Fly translation method.
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: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Remember last used translation?

Postby tiekubd » Wed Mar 18, 2015 12:44 am

Does this still work, i.e. language is remembered?
tiekubd
 
Posts: 3
Joined: Wed Mar 11, 2015 12:10 am

Re: Remember last used translation?

Postby Yana » Thu Mar 19, 2015 2:11 pm

Hi,
Yes. Please note that with the Pro or Enterprise version you should use redirect translation method.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron