MOBILE-3452 scripts: Fix minor warnings on scripts

main
Pau Ferrer Ocaña 2020-07-14 10:01:54 +02:00
parent 743aa6c7db
commit 32d51e2680
2 changed files with 1 additions and 4 deletions

View File

@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash
LANGPACKSFOLDER='../../moodle-langpacks' LANGPACKSFOLDER='../../moodle-langpacks'
stepnumber=$1
function check_success_exit { function check_success_exit {
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then

View File

@ -186,7 +186,7 @@ function build_lang($lang, $keys) {
$local = 0; $local = 0;
$langparts = explode('-', $lang, 2); $langparts = explode('-', $lang, 2);
$parentname = $langparts[0] ?? ""; $parentname = $langparts[0] ? $langparts[0] : "";
$parent = ""; $parent = "";
echo "Processing $lang"; echo "Processing $lang";
@ -307,8 +307,6 @@ function detect_lang($lang, $keys) {
$langname = $string['thislanguage']; $langname = $string['thislanguage'];
$title .= " ".$langname." -D"; $title .= " ".$langname." -D";
// Add the translation to the array. // Add the translation to the array.
foreach ($keys as $key => $value) { foreach ($keys as $key => $value) {
$string = get_translation_strings($langfoldername, $value->file); $string = get_translation_strings($langfoldername, $value->file);