Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
1f7a18d3
Commit
1f7a18d3
authored
15 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#638260
by dev.cmswebsites: remove fieldset on language template export screen.
parent
4592b617
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/locale/locale.admin.inc
+7
-9
7 additions, 9 deletions
modules/locale/locale.admin.inc
with
7 additions
and
9 deletions
modules/locale/locale.admin.inc
+
7
−
9
View file @
1f7a18d3
...
...
@@ -1037,21 +1037,20 @@ function locale_translate_export_screen() {
* An associate array with localized language names
*/
function
locale_translate_export_po_form
(
$form
,
&
$form_state
,
$names
)
{
$form
[
'export'
]
=
array
(
'#type'
=>
'
fieldset
'
,
$form
[
'export
_title
'
]
=
array
(
'#type'
=>
'
item
'
,
'#title'
=>
t
(
'Export translation'
),
'#collapsible'
=>
TRUE
,
);
$form
[
'
export'
][
'
langcode'
]
=
array
(
'#type'
=>
'select'
,
$form
[
'langcode'
]
=
array
(
'#type'
=>
'select'
,
'#title'
=>
t
(
'Language name'
),
'#options'
=>
$names
,
'#description'
=>
t
(
'Select the language to export in Gettext Portable Object (<em>.po</em>) format.'
),
);
$form
[
'
export'
][
'
group'
]
=
array
(
'#type'
=>
'radios'
,
$form
[
'group'
]
=
array
(
'#type'
=>
'radios'
,
'#title'
=>
t
(
'Text group'
),
'#default_value'
=>
'default'
,
'#options'
=>
module_invoke_all
(
'locale'
,
'groups'
),
);
$form
[
'
export'
][
'
submit'
]
=
array
(
'#type'
=>
'submit'
,
'#value'
=>
t
(
'Export'
));
$form
[
'submit'
]
=
array
(
'#type'
=>
'submit'
,
'#value'
=>
t
(
'Export'
));
return
$form
;
}
...
...
@@ -1060,17 +1059,16 @@ function locale_translate_export_po_form($form, &$form_state, $names) {
*/
function
locale_translate_export_pot_form
()
{
// Complete template export of the strings
$form
[
'export'
]
=
array
(
'#type'
=>
'
fieldset
'
,
$form
[
'export
_title
'
]
=
array
(
'#type'
=>
'
item
'
,
'#title'
=>
t
(
'Export template'
),
'#collapsible'
=>
TRUE
,
'#description'
=>
t
(
'Generate a Gettext Portable Object Template (<em>.pot</em>) file with all strings from the Drupal locale database.'
),
);
$form
[
'
export'
][
'
group'
]
=
array
(
'#type'
=>
'radios'
,
$form
[
'group'
]
=
array
(
'#type'
=>
'radios'
,
'#title'
=>
t
(
'Text group'
),
'#default_value'
=>
'default'
,
'#options'
=>
module_invoke_all
(
'locale'
,
'groups'
),
);
$form
[
'
export'
][
'
submit'
]
=
array
(
'#type'
=>
'submit'
,
'#value'
=>
t
(
'Export'
));
$form
[
'submit'
]
=
array
(
'#type'
=>
'submit'
,
'#value'
=>
t
(
'Export'
));
// Reuse PO export submission callback.
$form
[
'#submit'
][]
=
'locale_translate_export_po_form_submit'
;
return
$form
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment