Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
10af33ad
Commit
10af33ad
authored
Mar 12, 2014
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2205157
by jibran, rteijeiro | sun: Convert locale.admin.css into a library.
parent
6ec1493a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
8 deletions
+4
-8
core/modules/locale/lib/Drupal/locale/Form/TranslateEditForm.php
...dules/locale/lib/Drupal/locale/Form/TranslateEditForm.php
+0
-4
core/modules/locale/lib/Drupal/locale/Form/TranslateFilterForm.php
...les/locale/lib/Drupal/locale/Form/TranslateFilterForm.php
+1
-3
core/modules/locale/locale.libraries.yml
core/modules/locale/locale.libraries.yml
+3
-0
core/modules/locale/locale.pages.inc
core/modules/locale/locale.pages.inc
+0
-1
No files found.
core/modules/locale/lib/Drupal/locale/Form/TranslateEditForm.php
View file @
10af33ad
...
...
@@ -34,10 +34,6 @@ public function buildForm(array $form, array &$form_state) {
$langname
=
isset
(
$langcode
)
?
$languages
[
$langcode
]
->
name
:
"- None -"
;
$path
=
drupal_get_path
(
'module'
,
'locale'
);
$form
[
'#attached'
][
'css'
]
=
array
(
$path
.
'/css/locale.admin.css'
,
);
$form
[
'#attached'
][
'library'
][]
=
'locale/drupal.locale.admin'
;
$form
[
'langcode'
]
=
array
(
...
...
core/modules/locale/lib/Drupal/locale/Form/TranslateFilterForm.php
View file @
10af33ad
...
...
@@ -26,9 +26,7 @@ public function buildForm(array $form, array &$form_state) {
$filters
=
$this
->
translateFilters
();
$filter_values
=
$this
->
translateFilterValues
();
$form
[
'#attached'
][
'css'
]
=
array
(
drupal_get_path
(
'module'
,
'locale'
)
.
'/css/locale.admin.css'
,
);
$form
[
'#attached'
][
'library'
][]
=
'locale/drupal.locale.admin'
;
$form
[
'filters'
]
=
array
(
'#type'
=>
'details'
,
...
...
core/modules/locale/locale.libraries.yml
View file @
10af33ad
...
...
@@ -2,6 +2,9 @@ drupal.locale.admin:
version
:
VERSION
js
:
locale.admin.js
:
{}
css
:
component
:
css/locale.admin.css
:
{}
dependencies
:
-
core/jquery
-
core/drupal
...
...
core/modules/locale/locale.pages.inc
View file @
10af33ad
...
...
@@ -162,7 +162,6 @@ function locale_translation_status_form($form, &$form_state) {
);
$form
[
'#attached'
][
'library'
][]
=
'locale/drupal.locale.admin'
;
$form
[
'#attached'
][
'css'
]
=
array
(
drupal_get_path
(
'module'
,
'locale'
)
.
'/css/locale.admin.css'
);
$form
[
'actions'
]
=
array
(
'#type'
=>
'actions'
);
if
(
$languages_update
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment