Forum Archive - Resource URL change by translation

Resource URL change by translation
Sep 10, 2013 10:02 am by Michael_H
Hi We have created several tables to hold resources for four different languages. The natural language is English and when the web pages are viewed in one of the other languages the url to the resources changes to one specific to that language, resulting in a resource not dound error. For example this page viewed in English has the following URL for one of the resources: http://www.barefoottrainer.org/sites/de ... inalCC.htm When viewed in dutch it has the following URL: http://www.barefoottrainer.org/nl/sites ... inalCC.htm I do not want to have to upload the same resources into multiple different sub folders, as this would lead to a maintenance problem. Could someone advise on a solution for this? Many thanks Michael
Re: Resource URL change by translation
Sep 10, 2013 1:33 pm by Yana
Hi, GTranslate doesn't translate swf files . You will need to create swf for each language , detect the current language code and load appropriate file. If you don't want to create files for each language you can create redirect rules and redirect the translated versions to the default .
Re: Resource URL change by translation
Sep 10, 2013 3:30 pm by Michael_H
Hi Yana We are not trying to translate the .swf files using Gtranslate, as these translations have already been done I just need Gtranslate to stop changing the URL. I take that you are talking about using .htaccess files for the redirects? Michael
Re: Resource URL change by translation
Sep 11, 2013 8:03 am by Yana
Hi, Yes, you can create redirection rules in your .htaccess and redirect it to the original language. Here is an example : RewriteRule ^([a-z]{2})/sites/default/files/Files/(.*) /sites/default/files/Files/$2 [R=301,L]

SIMILAR TOPICS

German translation changes the centuryDec 31, 2018 3:06 pmReplies: 1Post by: adrievdl
Graphic translation for every language is missingDec 19, 2018 7:54 amReplies: 1Post by: Daryl Dixon
Problem of translation in my websiteDec 8, 2018 12:15 pmReplies: 1Post by: Ibrahim
Change language automaticallyNov 26, 2018 9:29 pmReplies: 3Post by: Antilb
translation works only with ctrl + f5 in browser help pleaseNov 15, 2018 1:10 pmReplies: 1Post by: milangomes

Try GTranslate with a free 15 day trial