English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: Language detection?
#796
Language detection? 15 Years, 7 Months ago Karma: 0
hi

we are using JMS for a website with various subsites for different regions and languages.

Is it possible to implement an autmatic language detection with JMS?

For example:

english: mastersite
german: subsite 1
french: subsite 2

Thanks for any help / suggestions...

Regards
k.
komkat
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#797
Re:Language detection? 15 Years, 7 Months ago Karma: 54
If you are able to retreive the Geo Localisation of the surfer, you could develop a plugin and redirect the user (surfer) to another website based on the geo localisation.

This is not related to JMS as it recognze URL and does not manage the geo localisation.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#800
Re:Language detection? 15 Years, 7 Months ago Karma: 0
I would like to realize it with Multiviews (Apache).

climbtothestars.org/archives/2007/12/28/...ion-and-redirection/

A simpler solution [Added 29.12.2007]

For each language, create a file named index.php.lg where “lg” is the language code. For French, you would create index.php.fr with the following content:

<?php
header("Location: /fr");
?>

Repeat for each language available.

Do not put an index.php file in your root directory, just the index.php.lg files.

Add the two following lines to your .htaccess:

Options +Multiviews
ErrorDocument 406 /fr/

…assuming French is the default language you want your site to show up in if your visitor’s browser doesn’t accept any of the languages you provide your site in.


How can I use this with JMS?

Thanks, greetings
k.
komkat
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/05/05 10:58 By komkat.
The administrator has disabled public write access.
 
#801
Re:Language detection? 15 Years, 7 Months ago Karma: 54
Perhaps with few modification.
You can not remove the index.php file that is present in the root of Joomla directory as this is the entry point of the front-end.

Perhaps you could try using this method in using a specific main directory that will redirect to the children directory where Joomla will be present.

The main problem is to keep the index.php for Joomla and also use the multiviews to redirect in the correct URL.
I think you could image to use a sub-directory for Joomla to keep the index.php

<?php
header("Location: /joomla/fr" ) ;
?>
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2009/05/05 11:15 By edwin2win.
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla