Excluding Links from rewriting
Apr 3, 2011 4:15 pm by 1stof8
Apr 3, 2011 4:15 pm by 1stof8
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
Re: Excluding Links from rewriting
Apr 4, 2011 11:42 am by Edvard
Apr 4, 2011 11:42 am by Edvard
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.
Re: Excluding Links from rewriting
Apr 6, 2011 6:36 am by 1stof8
Apr 6, 2011 6:36 am by 1stof8
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?
<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>
Re: Excluding Links from rewriting
Apr 6, 2011 10:33 am by Edvard
Apr 6, 2011 10:33 am by Edvard
I think you use the old version of GTranslate Pro. You need to upgrade to v3.141.
Re: Excluding Links from rewriting
Apr 6, 2011 11:40 am by 1stof8
Apr 6, 2011 11:40 am by 1stof8
Where can i download the latest version?
can you send it to [email protected]?
Re: Excluding Links from rewriting
Apr 6, 2011 11:44 am by Edvard
Apr 6, 2011 11:44 am by Edvard
It was sent to your corbinian [at] 1stof8.com.
Re: Excluding Links from rewriting
Apr 7, 2011 1:59 pm by 1stof8
Apr 7, 2011 1:59 pm by 1stof8
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
Re: Excluding Links from rewriting
Apr 7, 2011 3:31 pm by Edvard
Apr 7, 2011 3:31 pm by Edvard
The Pro version is the same for all.
Re: Excluding Links from rewriting
Apr 7, 2011 3:49 pm by 1stof8
Apr 7, 2011 3:49 pm by 1stof8
But what do i have to fill in the config.php
define('USER', 'user');
define('PASS', 'pass');
I use the contao backend for configuration.
can i uncomment this?
Re: Excluding Links from rewriting
Apr 7, 2011 3:51 pm by Edvard
Apr 7, 2011 3:51 pm by Edvard
Read this: redacted
Re: Excluding Links from rewriting
Apr 7, 2011 4:19 pm by 1stof8
Apr 7, 2011 4:19 pm by 1stof8
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
Re: Excluding Links from rewriting
Apr 7, 2011 4:36 pm by Edvard
Apr 7, 2011 4:36 pm by Edvard
Hi,
You have an extra space before your API key, please read this: gtranslate/troubleshooting-gtranslate-pro-t368.html#5
Re: Excluding Links from rewriting
Apr 7, 2011 4:51 pm by 1stof8
Apr 7, 2011 4:51 pm by 1stof8
Hmm
i corrected this, but it still donĀ“t work, sorry
Re: Excluding Links from rewriting
Apr 7, 2011 5:57 pm by Edvard
Apr 7, 2011 5:57 pm by Edvard
I can see this in English, so it works: http://www.blattner-fewo.de/en/sprachentest.html
Re: Excluding Links from rewriting
Apr 10, 2011 3:15 pm by 1stof8
Apr 10, 2011 3:15 pm by 1stof8
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
Re: Excluding Links from rewriting
Apr 11, 2011 4:10 pm by Edvard
Apr 11, 2011 4:10 pm by Edvard
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?
Re: Excluding Links from rewriting
Apr 20, 2011 1:13 am by 1stof8
Apr 20, 2011 1:13 am by 1stof8
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
Re: Excluding Links from rewriting
Apr 20, 2011 10:44 am by Edvard
Apr 20, 2011 10:44 am by Edvard
Probably you didn't notice that before. Please check my previous post and fix the URLs.
SIMILAR TOPICS
Add links to all translated posts on every Wordpress post | Jan 14, 2019 8:51 pm | Replies: 5 | Post by: ptsniper |
How to add rel="nofollow" to GTranslate links ? | Sep 19, 2018 10:10 am | Replies: 5 | Post by: agatti |
Changing Numbers and URL Links | Jun 19, 2018 4:05 pm | Replies: 1 | Post by: ryancomtek |
Clicking links lead back to original language | Sep 4, 2017 9:50 am | Replies: 1 | Post by: m2ecomm |
broken image links over flags on mobile? | Apr 25, 2016 7:35 am | Replies: 6 | Post by: bcorber |