CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #6673

useExternalUrl for Default Language

Added by Janine Schendel about 3 years ago. Updated over 2 years ago.

Status:New Start date:2010-03-03
Priority:Must have Due date:
Assignee:Stanislas Rolland % Done:

0%

Category:-
Target version:-
Votes: 0

Description

Hi,

i searched for a way to get an alternate Link for Language Selection.

Reason:

1. I use Language Selection one time as a global marker, that users can change the language at every page.
2. I'd liked to use Language Selection as Language Selection if a User e.g. have browser settings for EN, but his IP is located in DE.
useExternalUrl.de worked great, but the fact, that Language Selection as plugin set default Language in Scripts, it does not worked for useExternalUrl.en

I searched for this reason and found out, that u use "if ($this->languagesUids[$key]) " in line 167 (// Add configured external url's for missing overlay records.
)

Default Language is $this->languagesUids[$key] = 0 NOT 0 as FALSE and if u ask only for if ($this->languagesUids[$key]) result = 0 --> FALSE

I changed the script at this line to:
if (!is_null($this->languagesUids[$key])) {

to check if $this->languagesUids[$key] = 0 is available and it works for me now

or is there a reason, why default Language cannot be used with useExternalUrl?

Thanks
Janine

Also available in: Atom PDF