Skip to content
This repository

Silverstripe Module that forces one top-level-domain to show one locale.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 code
Octocat-spinner-32 tests
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 _config.php
Octocat-spinner-32 localhost-setup-readme
README
## Translatable-Domains

## Introduction

Allows developer to specify which what language a domain should use and will force urls to use the translated records whenever possible.
Also allows developer to register multiple virtualhosts to test multilingual domains locally.

## Requirements

 * SilverStripe 2.4 or newer, 


## Installation

 * Copy the `Translatable-Domains` directory into your main SilverStripe webroot
 * This should go in your `mysite/_config.php` or `Translatable-Domains/_config.php`.

	TranslatableDomains::addDomainHandler('tld','locale');

 * replace tld with the top level domain you wish to force to a specific locale (mysite.com, mysite.fr, anotheriste.co.uk, etc)
 * replace locale with the locale you wish the top level domain to use.
 * run /dev/build

## Testing multilingual sites on localhost:

testing multilingual sites on localhost is possible through setting up multiple virtual hosts.  for quick instructions, read localhost-setup-readme
Something went wrong with that request. Please try again.