Commit dc72eb99 authored by Philippe Mouchel's avatar Philippe Mouchel
Browse files

Provide languages in a variable in conf file

parent 354ba9fd
......@@ -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
......
......@@ -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, if 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): {}. If 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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment