URL issues

Popular automatic website translation tool

URL issues

Postby [email protected] » Thu Feb 10, 2011 9:05 pm

Hi, I've upgraded to the Pro version and there are a number of issues I didn't experience with the free version. My site is at http://www.valleyandvalecommunityarts.co.uk/
1. Using the navigation bar on the individual language version of the site sometimes leads to blank pages except with the home pages e.g. http://www.valleyandvalecommunityarts.co.uk/cy/ go to this page and use the navigation bar.
2. The html of the pages has been altered with some links being stripped from the code - e.g. the three boxes on the bottom of the home page. This is crucial as all my category and tag pages are created using the same code as these e.g.http://www.valleyandvalecommunityarts.c ... animation/ the links are now missing.
3. Some of the links on my post pages are duplicated e.g. http://www.valleyandvalecommunityarts.c ... educators/ - the archives now have 2 year entries.
4. Embedded Vimeo videos don't work http://www.valleyandvalecommunityarts.c ... -day-film/ - the error message isn't on the English version of this page.
5. The Post Navigation at the bottom of each of my posts have double text.

Thanks, in advance, for your help.
[email protected]
 
Posts: 3
Joined: Thu Feb 10, 2011 7:39 pm

Re: URL issues

Postby Edvard » Fri Feb 11, 2011 4:02 pm

Hi,

Please find my answers below:

  • I can see that on .../cy/ page the link to About is .../cy/about on the main page the link is .../about/, so clearing the cache probably will solve the issue, since .../cy/about/ works. The difference is the slash in the end of the URL.
  • Didn't notice anything stripped, but I suspect that it is also connected with the cache.
  • It is because there are some empty span tags for styling purposes, the same effects can be achieved without that unnecessary tags, is it possible to make the code simpler? Or at least use div tags instead of span-s?
  • Seems that the player is embedded with the iframe tag, is it possible to use <script type="text/javascript">document.write('<iframe ...></iframe>');</script> ?
  • I tried to open a couple of translated posts, but didn't notice any navigation.

P.S. To clear the cache you need to delete the contents of gtranslate/cache folder.
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: 4179
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: URL issues

Postby [email protected] » Fri Feb 11, 2011 5:37 pm

Hi Edvard,
Thanks for the reply. Clearing the cache did solve the url issue but the others still remain. The most crucial of which is the stripping of the <a></a> tags on the News pages and others. I have pasted an example below:

English html (untranslated version):
<div class="featured">
<a href="http://www.valleyandvalecommunityarts.co.uk/2011/02/bridgend-home-educators/">
<div class="featured-meta">
<span class="date">February 9th 2011 <!-- by Kate --></span>
</div>
<div class="featured-lead-image">
<img width="300" height="200" title="Bridgend Home Educators" alt="Bridgend Home Educators" class="attachment-post-thumbnail wp-post-image" src="http://www.valleyandvalecommunityarts.co.uk/wp-content/uploads/2011/02/Home-Ed-pic-300x200.jpg">
</div>
<div class="featured-text">
<h2 class="featured-post">Bridgend Home Educators</h2>
<p>We have just begun a new series of workshops with a group of young people in Bridgend and the surrounding areas who are Home Educated.</p>
</div>
</a>
</div>

Welsh html (translated version):
<div class="featured"><div class="featured-meta"> <span class="date">9 Chwefror, 2011</span> <!-- by Kate --></div><div class="featured-lead-image"><img width="300" height="200" title="Addysgwyr Hafan bont ar Ogwr" alt="Bridgend Home Educators" class="attachment-post-thumbnail wp-post-image" src="http://www.valleyandvalecommunityarts.co.uk/wp-content/uploads/2011/02/Home-Ed-pic-300x200.jpg"></div><div class="featured-text"><h2 class="featured-post"> Addysgwyr Hafan bont ar Ogwr </h2><p> Rydym wedi dechrau newydd cyfres newydd o weithdai gyda grŵp o bobl ifanc yn bont ar Ogwr a'r ardaloedd cyfagos sy'n Addysgwyd Hafan. </p></div></div>

You can see that the <a></a> tag has been stripped out of the translated version. In the wordpress php file this tag holds the permalink: <a href="<?php the_permalink() ?>"> What is odd is that the link has gone but I still get the hand cursor when I roll over the bottom of the box below the image. Any ideas?

As a result of this you can't navigate to the translated posts except via the slider on the home page. This one's a deal-breaker as most of the site is designed this way.

To see the duplicated elements on a post have a look at this post http://www.valleyandvalecommunityarts.c ... ance-blog/ and you can see in the right sidebar, at the bottom, the years have been duplicated. Also, below the main body of the post the 'previous post' text is duplicated. This last is very odd as the 'next post' text isn't.

Regarding the video embedding, I use the Vimeo Quicktag plugin for Wordpress which embeds the video using quicktags.
[email protected]
 
Posts: 3
Joined: Thu Feb 10, 2011 7:39 pm


Re: URL issues

Postby Edvard » Mon Feb 14, 2011 12:59 pm

Hi,

It seems that you are using jQuery on Fly version and on .../cy/ page and it is cached, when you click on a flag it should redirect you to an appropriate language code .../en/. Make sure that you use Redirect translation method and clear the cache after that.

It is stripping the a tag because it is not valid HTML, you cannot have div tags inside a tag...

For the right part I have already suggested what to do in my previous post.

If you can give me FTP access, I can try to solve the issue for you.
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: 4179
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