/    Sign up×
Community /Pin to ProfileBookmark

german web user needed to test IP detection code

I am looking for someone based In Germany to test something for me. I have tested this as much as I can on my local machine, but would really like to check it with someone ACTUALLY connected to the Internet in Germany.

I’ll probably widen it out to Austria as well.

If you go to [url]http://www.ayrshireminis.com/[/url] you should be automatically forwarded to the German version of the website, (the /DE dir).

There should also be a PHP Session set to keep this setting throughout your browsing, so that if you move between page the content will still be in German. You should also be able to override the IP detection code by selecting ‘English’ from the drop down or clicking the British flag.

If someone could try it I would be very grateful.

Oh, and also if you spot any German spelling/grammar mistakes let me know. My german is basic and alot of the translation was done with Google Translator πŸ™‚

Cheers,
Picco
?

to post a comment
PHP

8 Comments(s) ↴

Copy linkTweet thisAlerts:
@bokehNov 18.2007 β€”Β Selecting language based on geographical location is a crap idea. Just because I live in Spain doesn't mean I speak a word of the native language. You should be using the the Accept-Language header to decide this. [code=php]echo language(array('en','de'));

function language($supported_languages, $default_language = 'en')
{
if(empty($_SERVER['HTTP_ACCEPT_LANGUAGE']))
{
return $default_language;
}
$supported_languages = array_map('preg_quote', $supported_languages);
if(preg_match('/'.implode('|', $supported_languages).'/', $_SERVER['HTTP_ACCEPT_LANGUAGE'], $matches))
{
return $matches['0'];
}
return $default_language;
}[/code]
Copy linkTweet thisAlerts:
@crmpiccoauthorNov 19.2007 β€”Β you're probably right, I probably shouldn't ASSUME that people in Germany would want to view the site in German. But I thought it may be a nice feature for some? There is the ability to change over to English (UK) if you wish though.

You're not anywhere close to Cabo Roig are you? You're location says 'Alicante', is it actually Alicante you are in or the surrounding district?

Oh, you don't know any German web user do you? Maybe you could have passed the URL on?

Picco
Copy linkTweet thisAlerts:
@bokehNov 19.2007 β€”Β I thought it may be a nice feature for some[/QUOTE]It makes no sense to me. If someone has set up there browser to request English as the default language why would you send them German? Take this country for example, there are 5 major languages and several minor ones.

Another annoying thing is people using flags to represent languages.You're not anywhere close to Cabo Roig are you? You're location says 'Alicante', is it actually Alicante you are in or the surrounding district?[/QUOTE]No, I'm in Alicante. Cabo Roig is a holiday town along with all the problems that brings; not the sort of place that you'd want to live.
Copy linkTweet thisAlerts:
@crmpiccoauthorNov 20.2007 β€”Β I've been advised that using a German proxy may work here? Do you know where I can get a (working) German proxy IP? Tried a few different sites, they either have no German ones listed or they have one that doesn't work :-)

Do you find it insulting that flags are used to represent languages? The thinking behind it is that it is easily recognisable to people and is fairly obvious as to what it does.

Picco
Copy linkTweet thisAlerts:
@bokehNov 20.2007 β€”Β Do you find it insulting that flags are used to represent languages?[/QUOTE]Yes! Taking German as an example, it is the first language of 5 countries, and widely spoken as a mother tongue by a large minority in 20 other countries. How many of these people identify with the German flag? Castellano (Spanish) is the first language of 400 million people, only 40 million of which are Spanish nationals. Should the other 360 million have to click on the national flag of another country? Even worse is representing English with the Stars and Stripes so English people have to click on the flag of a foreign power to be able to read a site in their own language.
Copy linkTweet thisAlerts:
@NanscombeNov 21.2007 β€”Β Hi Picco,

Taking Google as an example, [URL]http://www.google.co.uk/language_tools?hl=en[/URL] .

They use a list (in english) for languages, making the assumption that people know what their language looks like in english I suppose, for the Site.

They also have the national flags, but use this to represent a national portal with language options available as text.

Regards

Nigel
Copy linkTweet thisAlerts:
@TheRaveNov 21.2007 β€”Β In my opinion it is better to display the name of the language in that language. People are definetely going to recognise a language they know if its written in that language.
Copy linkTweet thisAlerts:
@glassgiftMay 25.2009 β€”Β I didn't know the code. But I learn german. And I can [url=http://www.fastgermantranslation.com/]german translation[/url]. Hoped that I can do something for you.
Γ—

Success!

Help @crmpicco spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 β€” BETA 6.18,
whats_new: community page,
up_next: more Davinciβ€’003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinciβ€’003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...