diff --git a/scripts/create_langindex_functions.sh b/scripts/create_langindex_functions.sh index bc6eb3c52..33f160842 100644 --- a/scripts/create_langindex_functions.sh +++ b/scripts/create_langindex_functions.sh @@ -5,6 +5,8 @@ SERVER_URL='https://packaging.moodle.org/' +LANGPACKS_PATH='/tmp/moodle-lang' + # Downloads a file and if it's a zip file, unzip it. function download_file { local url=$1 diff --git a/scripts/lang_functions.sh b/scripts/lang_functions.sh index 649f57c1a..6e794d66c 100644 --- a/scripts/lang_functions.sh +++ b/scripts/lang_functions.sh @@ -6,7 +6,6 @@ LANG_PATH='../src/assets/lang' SUFFIX='' # Determines suffix of the langpacks to be merged. Ie, using wp will include en.json and en_wp.json # (and the later will override the earlier). -LANGPACKS_PATH='/tmp/moodleapp-lang' # Get the version of the Moodle App to fetch latest languages. function get_app_version { diff --git a/scripts/update_lang_functions.sh b/scripts/update_lang_functions.sh index 1b9384297..a2605115e 100755 --- a/scripts/update_lang_functions.sh +++ b/scripts/update_lang_functions.sh @@ -8,6 +8,8 @@ APPMODULENAME='local_moodlemobileapp' TOTAL_STRINGS=0 LANGINDEX_STRINGS=0 +LANGPACKS_PATH='/tmp/moodleapp-lang' + function progressbar { let _progress=(${1}*100/100*100)/100 let _done=(${_progress}*4)/10