i18n support

Deciphered - February 9, 2009 - 21:37
Project:Textimage
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

From #339174: Change image creation path and format handling by igor.stirbu:

I have an issue with redirecting the user with drupal_goto()
when used in conjunction with i18n module. So, if the generated
image has the path sites/default/files/textimage/1/1227654379.png
then the redirected URL will generate a 404:
http://www.example.com/en/sites/default/files/textimage/1/1227654379.png

#1

Deciphered - April 27, 2009 - 23:55
Status:active» closed

Appears to be a non-issue.

#2

krasmussen - July 23, 2009 - 23:52
Status:closed» active

This appears when language setting is path prefix or path prefix with language fallback and the user is visiting the site in a language that has a defined path prefix. The path prefix is then used on all URLs, including textimage src's, which renders a 404 when a URL like en/sites/default/files/textimage/1/1227654379.png is visited. I'm guessing the easy solution would be to simply strip any src's of the language path prefix when one is used.

#3

Deciphered - July 24, 2009 - 00:18

Thanks krasmussen,

Hopefully I can figure out the issue for you.

Note for self if I don't look into this straight away: I'm thinking that the issue may be related to the redirect from the old url based method to the actual file, which would explain why I was unable to reproduce the issue in the first place, was stuck in my 'do things the right way' behaviour.

 
 

Drupal is a registered trademark of Dries Buytaert.