Merge pull request #123 from Mark-M/patch-1

Fix Issue #122: Set default field value to current locale
This commit is contained in:
Ingo Schommer 2013-08-03 03:49:52 -07:00
commit b90e2294b5

View File

@ -4,9 +4,10 @@ class TranslatableEditorToolbarExtension extends DataExtension {
function updateLinkForm(&$form) {
$field = new LanguageDropdownField('Language', _t('CMSMain.LANGUAGEDROPDOWNLABEL', 'Language'));
$field->setValue(Translatable::get_current_locale());
$field->setForm($form);
$form->Fields()->insertBefore($field, 'internal');
Requirements::javascript('translatable/javascript/HtmlEditorField.Translatable.js');
}
}
}