Excluding Links from rewriting

Popular automatic website translation tool

Excluding Links from rewriting

Postby 1stof8 » Sun Apr 03, 2011 8:15 pm

Hello

is it possible to exclude links in my page from the rewriting rule which rewrites all paths with the choosen language.

background is the following. We mixed a fixed translation in our website for english and german with the gtranslate module. When somebody chooses e.g. italian from the gtranlate select list.
and wants to go back to german the rewriting rule lets the page been translated.

We should exclude the links for the fixed translation in the rewriting rule.

You can see the problem in the following testpage
http://www.blattner-fewo.de/sprachentest.html

Can you help?

Best regards
Joachim
1stof8
 
Posts: 10
Joined: Sun Apr 03, 2011 8:09 pm

Re: Excluding Links from rewriting

Postby Edvard » Mon Apr 04, 2011 3:42 pm

You can add class="nturl" to the other 2 flags a tag (<a href="..." class="nturl"...) and it will not add the language code into the URL. Hope this is what you want.
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: 4186
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Excluding Links from rewriting

Postby 1stof8 » Wed Apr 06, 2011 10:36 am

Hi Edvard

for a short time it works, then came the problem with the 302 error pages.
This works again from today morning but the links became rewrited again.

This is the code from the translatet page and you see that the class nturl is inside the tags but the links are translated. what can i do?

Code: Select all
<div class="mod_changelanguage nturl block"><ul class="nturl"><li class="lang-de first nturl"> <a href="http://www.blattner-fewo.de/fr/" class="nturl" title="Allemande" target="_blank"><img src="system/modules/changelanguage/media/images/de.gif" alt="Allemande" height="11" width="16"></a> </li><li class="lang-en nofallback last nturl"> <a href="http://www.blattner-fewo.de/fr/english.html" class="nturl" title="En anglais" target="_blank"><img src="system/modules/changelanguage/media/images/en.gif" alt="En anglais" height="11" width="16"></a> </li></ul></div>
1stof8
 
Posts: 10
Joined: Sun Apr 03, 2011 8:09 pm

Re: Excluding Links from rewriting

Postby Edvard » Wed Apr 06, 2011 2:33 pm

I think you use the old version of GTranslate Pro. You need to upgrade to v3.141.
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: 4186
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


Re: Excluding Links from rewriting

Postby Edvard » Wed Apr 06, 2011 3:44 pm

It was sent to your corbinian [at] 1stof8.com.
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: 4186
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Excluding Links from rewriting

Postby 1stof8 » Thu Apr 07, 2011 5:59 pm

Hello

thanks for the new version.
Could it be that this is the official version. Can you send the contao/typolight custimised version to us? please use the info at 1stof8.com address.

best regards
Joachim
1stof8
 
Posts: 10
Joined: Sun Apr 03, 2011 8:09 pm

Re: Excluding Links from rewriting

Postby Edvard » Thu Apr 07, 2011 7:31 pm

The Pro version is the same for all.
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: 4186
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Excluding Links from rewriting

Postby 1stof8 » Thu Apr 07, 2011 7:49 pm

But what do i have to fill in the config.php

Code: Select all
define('USER', 'user');
define('PASS', 'pass');


I use the contao backend for configuration.

can i uncomment this?
1stof8
 
Posts: 10
Joined: Sun Apr 03, 2011 8:09 pm

Re: Excluding Links from rewriting

Postby Edvard » Thu Apr 07, 2011 7:51 pm

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: 4186
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Excluding Links from rewriting

Postby 1stof8 » Thu Apr 07, 2011 8:19 pm

Hi Edward

sorry for beeing stupid...

right now i did all what is mentioined in the readme file and the FAQS.

see http://www.blattner-fewo.de/sprachentest.html

but the site is not been translated

i also sitched the debugging on.

can you help further, please
1stof8
 
Posts: 10
Joined: Sun Apr 03, 2011 8:09 pm

Re: Excluding Links from rewriting

Postby Edvard » Thu Apr 07, 2011 8:36 pm

Hi,

You have an extra space before your API key, please read this: gtranslate/troubleshooting-gtranslate-pro-t368.html#5
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: 4186
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Excluding Links from rewriting

Postby 1stof8 » Thu Apr 07, 2011 8:51 pm

Hmm

i corrected this, but it still don´t work, sorry
1stof8
 
Posts: 10
Joined: Sun Apr 03, 2011 8:09 pm

Re: Excluding Links from rewriting

Postby Edvard » Thu Apr 07, 2011 9:57 pm

I can see this in English, so it works: http://www.blattner-fewo.de/en/sprachentest.html
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: 4186
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Excluding Links from rewriting

Postby 1stof8 » Sun Apr 10, 2011 7:15 pm

Hello

so i just did nothing and now it will translate half of the contents.
The navigation will be translated, the main texts are not translated
and also most of the links were excluded, even they that not have the ecxlunde class.

please just check www.blattner-fewo.de and see self.

We schould have right now a working version for our customer, because he has paid already the money for the pro version.

best regards
Joachim
1stof8
 
Posts: 10
Joined: Sun Apr 03, 2011 8:09 pm

Re: Excluding Links from rewriting

Postby Edvard » Mon Apr 11, 2011 8:10 pm

Hi,

I'm little bit confused. Do you have mixed German and English content?

What is the default language for your site? Do you have a language detection option enabled?

I have noticed that the links in your left menu have relative path in href attribute. Can you add real path to them? So instead of href="unser-service.html" it will be href="/unser-service.html".

When I go to http://www.blattner-fewo.de/en/ I can see everything is translated into English, do you see the same result?
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: 4186
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Excluding Links from rewriting

Postby 1stof8 » Wed Apr 20, 2011 5:13 am

Hi

sorry i was out of office.

If i open the link the site will be in english.

Also the translation will work right now in all languages.
but the links in the main menu have not rewrited link.
so the .../fr/... e.g. is missing and you will jump back to the german site.

before the update the links worked well, so it could be not a problem of the system i think.

Could there be anything with the rewriting?

best regards
1stof8
 
Posts: 10
Joined: Sun Apr 03, 2011 8:09 pm

Re: Excluding Links from rewriting

Postby Edvard » Wed Apr 20, 2011 2:44 pm

Probably you didn't notice that before. Please check my previous post and fix the URLs.
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: 4186
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
cron