<span style='font-family:Verdana'><span style='font-size:12px'>Thank you very much for you answer Kevin, even if you're not an expert in this!<br />
<br />
Is there anybody else, who knows a little more?<br />
<br />
Thx!<br />
<br />
<p style="margin:0px; padding:0px;" >
</p>
<blockquote style="border-left: 1px solid #CCC; padding-left: 5px; margin-left: 5px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px;" type="cite">
<p style="margin:0px; padding:0px;" >
<span style="font-family:Verdana"><span style="font-size:12px">----- Original Message -----</span></span></p>
<p style="margin:0px; padding:0px;" >
<span style="font-family:Verdana"><span style="font-size:12px">From: kpneal@pobox.com</span></span></p>
<p style="margin:0px; padding:0px;" >
<span style="font-family:Verdana"><span style="font-size:12px">Sent: 08/23/12 06:56 AM</span></span></p>
<p style="margin:0px; padding:0px;" >
<span style="font-family:Verdana"><span style="font-size:12px">To: Tóth Ádám</span></span></p>
<p style="margin:0px; padding:0px;" >
<span style="font-family:Verdana"><span style="font-size:12px">Subject: Re: [Owncloud] REDIRECT - depending on domain name</span></span></p>
<br />
<div>
<div>
<pre style="white-space: pre-wrap; word-wrap: break-word; font-size:11;pre">
On Thu, Aug 23, 2012 at 01:58:22AM +0200, "Tóth Ádám" wrote:
> Hi,
> I need a genius:)
> I want to set the language of ownCloud depending on the domain name.
> Let's say I have a www.cloud.com, and it's in English language. But I
> want to make the same site accessible with e.g. www.cloudhu.com in
> Hungarian language.
It would be cheaper to go with a naming scheme similar to the one used by
wikipedia.org, with a subdomain for each language. Using your example
it would be en.cloud.com, hu.cloud.com, and so on.
> 1. Do I have to install another instance of ownCloud to handle this? In
> this case, can ownCloud's language be forced?
> 2. Or can I redirect it INVISIBLE, and query the domain name from
> ownCloud / apache somehow? (INVISIBLE = domain name remains
> www.cloudhu.com in the browser, but it displays www.cloud.com)
There is a header sent by the browser with an ordered list of preferred
languages. It seems like that should be what triggers serving up different
languages. Doing it that way gives you a single point of entry which may
make it easier to write documentation, advertising, do branding, whatever.
The common fallback is of course to rely on cookies. I do understand that
either of these requires support in ownCloud which may make it difficult
for you to implement before, say, dinnertime today. It's just an option.
It looks like Firefox 3 (yes, I'm backlevel a bit) still has language
selection in the preferences. But I don't see it (on first blush) in an
almost current Safari. Maybe I just don't know where the setting is located.
I don't know if this language feature is still common or not. If it isn't
then it doesn't really help you. It seems weird that Netscape/Mozilla/Firefox
would keep it in the preferences pane for a decade if it wasn't being used,
though. Hmmmm.
I don't think your #2 above is going to work. No idea on #1, though.
Rereading the above it looks like I don't know much. Sorry about that.
Last time I ran a web server full time was 12 years ago.
Oh, and I believe this is my first post to the list. "Hullo!" *wave*
--
Kevin P. Neal http://www.pobox.com/~kpn/
"I like being on the Daily Show." - Kermit the Frog, Feb 13 2001</pre>
</div>
</div>
</blockquote>
<p style="margin:0px; padding:0px;" >
</p>
</span></span>