Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Drupal
drupalizer
Commits
dc72eb99
Commit
dc72eb99
authored
Aug 04, 2016
by
Philippe Mouchel
Browse files
Provide languages in a variable in conf file
parent
354ba9fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
default_vars.py
View file @
dc72eb99
...
...
@@ -27,6 +27,7 @@ env.site_hostname = ''
env
.
site_admin_user
=
'admin'
env
.
site_admin_pass
=
'admin'
env
.
site_subdir
=
'default'
env
.
site_languages
=
'fr'
# PatternLab
...
...
drush.py
View file @
dc72eb99
...
...
@@ -51,10 +51,10 @@ def make(action='install'):
h
.
update_profile
()
if
not
env
.
get
(
'interactive_mode'
,
True
):
drush_opts
+=
"--translations=
fr
"
elif
confirm
(
red
(
'Say [Y] to {} the site at {} with the
French
translation
, i
f you say [n] '
'the site will be installed in English only'
.
format
(
action
,
env
.
site_root
))):
drush_opts
+=
"--translations=
fr
"
drush_opts
+=
"--translations=
"
+
env
.
site_languages
+
"
"
elif
confirm
(
red
(
'Say [Y] to {} the site at {} with the
specified
translation
(s): {}. I
f you say [n] '
'the site will be installed in English only'
.
format
(
action
,
env
.
site_root
,
env
.
site_languages
))):
drush_opts
+=
"--translations=
"
+
env
.
site_languages
+
"
"
if
env
.
get
(
'interactive_mode'
,
True
):
drush_opts
+=
" --working-copy --no-gitinfofile"
...
...
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