1
0
mirror of https://github.com/silverstripe/silverstripe-translatable synced 2024-10-22 09:05:59 +00:00
Jeremy Thomerson 2da48dfd65 FIX: don't re-enable the locale filter if it wasn't enabled before
This breaks code that tries to get all instances of SiteConfig like:

```
Translatable::disable_locale_filter();
$all = SiteConfig::get();
Translatable::enable_locale_filter();
```

What was happening was that our populateSiteConfigDefaults method was
getting called before the actual data list the users uses above is
created, so it was re-enabling the locale filter before the
augmentDataQuery function was called on the data list created for the
user. Thus, they'd get a locale-augmented query and only get the
SiteConfig for the current locale, and not all as clearly intended.
2013-07-24 21:25:42 +00:00
2013-07-08 12:30:07 +02:00
2013-01-22 10:40:11 -08:00
2013-06-28 10:18:34 +02:00
2013-02-28 00:58:53 +01:00
2013-04-29 11:07:50 +02:00
2013-05-07 15:07:15 +03:00
2013-07-08 12:30:07 +02:00

Translatable module for SilverStripe CMS

Build Status

Introduction

Allows translation of DataObject and SiteTree records into multiple languages. Note: This module was originally part of the SilverStripe CMS 2.x codebase.

Usage

Setup and Usage Documentation

Requirements

  • SilverStripe Framework 3.1+ and CMS 3.1+
  • Note: For SilverStripe 2.3/2.4 support, please use the core built-in version (no module required)

Maintainers

  • Ingo Schommer

Contributing

Translations

Translations of the natural language strings are managed through a third party translation interface, transifex.com. Newly added strings will be periodically uploaded there for translation, and any new translations will be merged back to the project source code.

Please use https://www.transifex.com/projects/p/silverstripe-widgets/ to contribute translations, rather than sending pull requests with YAML files.

See the "i18n" topic on doc.silverstripe.org for more details.

Description
No description provided
Readme 2.7 MiB
Languages
PHP 97%
JavaScript 2.4%
CSS 0.6%