MOBILE-3452 scripts: Fix minor warnings on scripts
parent
743aa6c7db
commit
32d51e2680
|
@ -1,7 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
LANGPACKSFOLDER='../../moodle-langpacks'
|
||||
stepnumber=$1
|
||||
|
||||
function check_success_exit {
|
||||
if [ $? -ne 0 ]; then
|
||||
|
|
|
@ -186,7 +186,7 @@ function build_lang($lang, $keys) {
|
|||
$local = 0;
|
||||
|
||||
$langparts = explode('-', $lang, 2);
|
||||
$parentname = $langparts[0] ?? "";
|
||||
$parentname = $langparts[0] ? $langparts[0] : "";
|
||||
$parent = "";
|
||||
|
||||
echo "Processing $lang";
|
||||
|
@ -307,8 +307,6 @@ function detect_lang($lang, $keys) {
|
|||
$langname = $string['thislanguage'];
|
||||
$title .= " ".$langname." -D";
|
||||
|
||||
|
||||
|
||||
// Add the translation to the array.
|
||||
foreach ($keys as $key => $value) {
|
||||
$string = get_translation_strings($langfoldername, $value->file);
|
||||
|
|
Loading…
Reference in New Issue