2011-11-26 14:34:11 +01:00
|
|
|
<?php
|
2016-08-19 00:51:35 +02:00
|
|
|
|
|
|
|
namespace SilverStripe\i18n;
|
|
|
|
|
|
|
|
use Translate_Adapter_RailsYaml;
|
|
|
|
|
2011-11-26 14:34:11 +01:00
|
|
|
require_once 'Zend/Translate.php';
|
2012-04-16 04:04:41 +02:00
|
|
|
require_once 'zend_translate_railsyaml/library/Translate/Adapter/RailsYAML.php';
|
2011-11-26 14:34:11 +01:00
|
|
|
|
|
|
|
class i18nRailsYamlAdapter extends Translate_Adapter_RailsYaml implements i18nTranslateAdapterInterface {
|
2014-08-15 08:53:05 +02:00
|
|
|
|
2011-11-26 14:34:11 +01:00
|
|
|
/**
|
|
|
|
* @param String
|
|
|
|
* @return String
|
|
|
|
*/
|
|
|
|
public function getFilenameForLocale($locale) {
|
|
|
|
return "$locale.yml";
|
|
|
|
}
|
2012-04-16 04:04:41 +02:00
|
|
|
}
|