-
Bug
-
Resolution: Fixed
-
Minor
-
3.11.10, 4.0.4
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
Steps to reproduce:
- In your Moodle instance, customize some language strings of the english language pack within the language customization GUI.
- Open your terminal and run this command:
php admin/tool/customlang/cli/export.php --lang=en --target=/tmp/en_local
Expected result:
- In your terminal, you should see this output:
Starting to export lang files.
== Exporting language en ==
Zip created: /tmp/en_local.zip
- There should be a zip file at /tmp/en_local.zip
Actual result:
- In your terminal, you see this output:
Starting to export lang files.
== Exporting language en ==
Zip created: /tmp/en_local[[exportzipfilename]]
- There is a zip file at /tmp/en_local[[exportzipfilename]]
Analysis:
- The filename for the zip file is composed at https://github.com/moodle/moodle/blame/master/admin/tool/customlang/cli/export.php#L90
- This line contains a call to
get_string('exportzipfilename', 'tool_customlang', ['lang' => $lang])
- The string with the identifier 'exportzipfilename' should most probably contain the zip file suffix. However, there isn't a string with the 'exportzipfilename' identifier in the language pack.