2017 © Pedro Peláez
 

silverstripe-module silverstripe-languageprefix

Extends silverstripe-translatable to allow for (custom) language prefixes on multilingual sites.

image

martimiz/silverstripe-languageprefix

Extends silverstripe-translatable to allow for (custom) language prefixes on multilingual sites.

  • Thursday, May 19, 2016
  • by martimiz
  • Repository
  • 3 Watchers
  • 20 Stars
  • 5,407 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 1 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

LanguagePrefix module for SilverStripe CMS

  • Supports SilverStripe 3.1.x +
  • For SilverStripe 3.0.x use version 1.0

Introduction

The Language Prefix module allows you to create links with a language prefix for multilingual websites using SilverStripe Translatable. Example:, (*1)

www.mydomain.com/en/
www.mydomain.com/nl/

You can easily define your own prefix format. By default the locale (en_US, nl_NL, ...) is used. Optionally you can leave out the prefix for the default language, (*2)

Changes in this version

This is a rewrite of version 2.0. The Prefix is no longer a separate url param, but is extracted from the URLSegment instead. This allows for greater flexibility - you can now optionally use urls without prefix for the default language., (*3)

  • $Prefix segment is stripped from the url rule (routes.yml)
  • PrefixModelAsController::handleRequest() now handles extracting the prefix from the url, and shifts the url and other params if need be
  • Optionally set disable_prefix_for_default_lang to remove the prefix from the default language

Note: this version should be backwards compatible with version 2.0. Please create an issue if you find any problems, (*4)

Usage

Setup and usage documentation: docs/en/index.md, (*5)

Requirements

  • SilverStripe Framework 3.1+ and CMS 3.1+
  • SilverStripe Translatable module

Maintainers

  • Martine Bloem (martimiz at gmail dot com)

The Versions

19/05 2016

dev-master

9999999-dev https://github.com/Martimiz/silverstripe-languageprefix

Extends silverstripe-translatable to allow for (custom) language prefixes on multilingual sites.

  Sources   Download

BSD-3-Clause

The Requires

 

by Martine Bloem (Martimiz)

cms silverstripe i18n translatable localization multilingual globalization languageprefix

19/05 2016

v3.0.0

3.0.0.0 https://github.com/Martimiz/silverstripe-languageprefix

Extends silverstripe-translatable to allow for (custom) language prefixes on multilingual sites.

  Sources   Download

BSD-3-Clause

The Requires

 

by Martine Bloem (Martimiz)

cms silverstripe i18n translatable localization multilingual globalization languageprefix

06/04 2016

2.0.x-dev

2.0.9999999.9999999-dev https://github.com/Martimiz/silverstripe-languageprefix

Extends silverstripe-translatable to allow for (custom) language prefixes on multilingual sites.

  Sources   Download

BSD-3-Clause

The Requires

 

by Martine Bloem (Martimiz)

cms silverstripe i18n translatable localization multilingual globalization languageprefix

06/04 2016

v2.0.0

2.0.0.0 https://github.com/Martimiz/silverstripe-languageprefix

Extends silverstripe-translatable to allow for (custom) language prefixes on multilingual sites.

  Sources   Download

BSD-3-Clause

The Requires

 

by Martine Bloem (Martimiz)

cms silverstripe i18n translatable localization multilingual globalization languageprefix

02/06 2014

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/Martimiz/silverstripe-languageprefix

Extends silverstripe-translatable to allow for (custom) language prefixes on multilingual sites

  Sources   Download

BSD-3-Clause

The Requires

 

by Martine Bloem (Martimiz)

cms silverstripe i18n translatable localization multilingual globalization languageprefix