2017 © Pedro Peláez
 

silverstripe-module silverstripe-dynamictranslations

Dynamic translations for SilverStripe

image

cphcloud/silverstripe-dynamictranslations

Dynamic translations for SilverStripe

  • Wednesday, February 17, 2016
  • by cphcloud
  • Repository
  • 16 Watchers
  • 1 Stars
  • 757 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

silverstripe-dynamictranslations

Dynamic Translations module for SilverStripe., (*1)

How it works

Replace the strings you want to translate with the following syntax:, (*2)

$dt('SearchBar.Submit', 'Submit search')

The next time the template is loaded, the module will search for an entity in the database named SearchBar.Submit. If it can’t find one, it will create it (with the second argument as the default string) and save it. It will then store this data in a cache ready for the next request that uses this translation., (*3)

Translations can be added and edited in the CMS, as well as grouped into categories for easier management by CMS users. The list of categories can be managed in the CMS, and default categories can be created on dev/build by adding categories to your YAML configuration:, e.g.:, (*4)

DynamicTranslationCategory:
  default_categories:
    - Header
    - Footer
    - Search

Note that the default categories will only be created if no categories already exist in the database., (*5)

The Versions

17/02 2016

dev-master

9999999-dev https://github.com/cphcloud/silverstripe-dynamictranslations

Dynamic translations for SilverStripe

  Sources   Download

MIT

The Requires

 

translations silverstripe i18

29/06 2015

0.0.2

0.0.2.0 https://github.com/cphcloud/silverstripe-dynamictranslations

Dynamic translations for SilverStripe

  Sources   Download

MIT

The Requires

 

translations silverstripe i18

29/06 2015

0.0.1

0.0.1.0 https://github.com/cphcloud/silverstripe-dynamictranslations

Dynamic translations for SilverStripe

  Sources   Download

MIT

The Requires

 

translations silverstripe i18