2017 © Pedro Peláez
 

silverstripe-module langed

Silverstripe 3 Language editor

image

idea_lt/langed

Silverstripe 3 Language editor

  • Thursday, January 16, 2014
  • by lizdeika
  • Repository
  • 0 Watchers
  • 0 Stars
  • 179 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SilverStripe 3 Language Editor Module

Maintainer Contacts

Requirements

  • SilverStripe 3.x
  • Translatable (module)

Installation Instructions

  1. Place this directory in the root of your SilverStripe installation.
  2. Visit project/dev/build to rebuild the database.

Usage Overview

List modules you need to translate in mysite/_config.php Ex. TranslationCollector::setCollectableModules(array('faq', 'news', 'themes/mytheme'));, (*1)

Add these lines into your Page.php file Page_Controller::init method

i18n::set_locale(Translatable::get_current_locale()); i18n::set_default_locale(Translatable::get_current_locale());, (*2)

Join all listed translations into one file

  1. Run http://project/dev/tasks/i18nTextCollectorTask?locale=en_US
  2. Now run collector task for langed module http://project/dev/tasks/i18nTextCollectorTask?locale=en_US&module=langed
  3. After this you have langed/lang/en_US.yml which has all the translations from the modules listed in mysite/_config.php
  4. You can translate it in admin. "Language Editor" tab.
  5. For other locales repeat 1-4 steps, just replace en_US with another locale.

Known Issues

Issue Tracker, (*3)

The Versions

16/01 2014

dev-master

9999999-dev https://bitbucket.org/idea_lt/langed

Silverstripe 3 Language editor

  Sources   Download

BSD-3-Clause

The Requires

 

language translation silverstripe i18n localization translate globalization