mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #1488 from open-sausages/pulls/4.0/fix-add-i18n-javascript-locations
FIX add_i18n_javascript calls not being updated after JS move
This commit is contained in:
commit
740d2c60a3
@ -8,7 +8,7 @@ source_lang = en
|
||||
type = YML
|
||||
|
||||
[silverstripe-cms.master-js]
|
||||
file_filter = javascript/lang/src/<lang>.js
|
||||
source_file = javascript/lang/src/en.js
|
||||
file_filter = client/lang/src/<lang>.js
|
||||
source_file = client/lang/src/en.js
|
||||
source_lang = en
|
||||
type = KEYVALUEJSON
|
@ -66,7 +66,7 @@ class AssetAdmin extends LeftAndMain implements PermissionProvider{
|
||||
Versioned::set_stage(Versioned::DRAFT);
|
||||
|
||||
Requirements::javascript(CMS_DIR . "/client/dist/js/AssetAdmin.js");
|
||||
Requirements::add_i18n_javascript(CMS_DIR . '/client/src/lang', false, true);
|
||||
Requirements::add_i18n_javascript(CMS_DIR . '/client/lang', false, true);
|
||||
Requirements::css(CMS_DIR . '/client/dist/styles/bundle.css');
|
||||
CMSBatchActionHandler::register('delete', 'AssetAdmin_DeleteBatchAction', 'Folder');
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
|
||||
Requirements::css(CMS_DIR . '/client/dist/styles/bundle.css');
|
||||
Requirements::customCSS($this->generatePageIconsCss());
|
||||
Requirements::add_i18n_javascript(CMS_DIR . '/client/src/lang', false, true);
|
||||
Requirements::add_i18n_javascript(CMS_DIR . '/client/lang', false, true);
|
||||
Requirements::javascript(CMS_DIR . '/client/dist/js/bundle-legacy.js', [
|
||||
'provides' => [
|
||||
CMS_DIR . '/client/dist/js/CMSMain.AddForm.js',
|
||||
|
@ -38,7 +38,7 @@ class SiteTreeURLSegmentField extends TextField {
|
||||
|
||||
public function Field($properties = array()) {
|
||||
Requirements::javascript(CMS_DIR . '/client/dist/js/SiteTreeURLSegmentField.js');
|
||||
Requirements::add_i18n_javascript(CMS_DIR . '/client/src/lang', false, true);
|
||||
Requirements::add_i18n_javascript(CMS_DIR . '/client/lang', false, true);
|
||||
Requirements::css(FRAMEWORK_ADMIN_DIR . '/client/dist/styles/bundle.css');
|
||||
return parent::Field($properties);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user