Hi there,

thank you for the module. Is there a chance that you could make this work for custom languages? At the moment it seems that it only works for valid ISO 3166 languages but in my case I am using the language module to create custom languages eg. en-us (US English), en-uk (UK English), en-au (Australian English).

Obviously it's nice to have the module check if the language code is a valid one, but I think this demonstrates a case where this is not desirable. Perhaps a checkbox to say 'allow custom languages'?

I got your module to work for me by commenting out line 159.

Comments

mrfelton’s picture

Status: Active » Fixed

I have committed a fix for this in CVS. You should be able to use custom language/country codes now.

ps. why did yo needed to comment out line 159 - that is related to storing the users calculated language code in the session object, to avoid the need to look it up on every page request. Was that related to to using custom languages? Or some other problem you were having?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mxt’s picture

Is this new feature present in beta-1 ?

Or I have to use DEV version?

Thank you very much

;-)