mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
8dd644d25d
Namespace all templates Move difflib and BBCodeParser2 to thirdparty Remove deprecated API marked for removal in 4.0
20 lines
420 B
PHP
20 lines
420 B
PHP
<?php
|
|
|
|
namespace SilverStripe\i18n;
|
|
|
|
use Translate_Adapter_RailsYaml;
|
|
|
|
require_once 'Zend/Translate.php';
|
|
require_once 'zend_translate_railsyaml/library/Translate/Adapter/RailsYAML.php';
|
|
|
|
class i18nRailsYamlAdapter extends Translate_Adapter_RailsYaml implements i18nTranslateAdapterInterface {
|
|
|
|
/**
|
|
* @param String
|
|
* @return String
|
|
*/
|
|
public function getFilenameForLocale($locale) {
|
|
return "$locale.yml";
|
|
}
|
|
}
|