Skip to content

Commit

Permalink
Merge branch 'MDL-76222' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Feb 16, 2023
2 parents 5557480 + 6f4675e commit 3eed2c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/tool/customlang/cli/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
}

foreach ($langs as $lang) {
$filename = $options['target'] . get_string('exportzipfilename', 'tool_customlang', ['lang' => $lang]);
$filename = $options['target'] . "customlang_{$lang}.zip";
// If the file exists and we are not using the temp folder it requires an ovewrite.
if ($options['target'] != $dafaulttarget && file_exists($filename) && !$options['overwrite']) {
cli_problem(get_string('cliexportfileexists', 'tool_customlang', ['lang' => $lang]));
Expand Down
1 change: 1 addition & 0 deletions admin/tool/customlang/lang/en/deprecated.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exportzipfilename,tool_customlang
4 changes: 3 additions & 1 deletion admin/tool/customlang/lang/en/tool_customlang.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
$string['customlang:view'] = 'View local translation';
$string['export'] = 'Export custom strings';
$string['exportfilter'] = 'Select component(s) to export';
$string['exportzipfilename'] = 'customlang-export-{$a->lang}.zip';
$string['editlangpack'] = 'Edit language pack';
$string['filter'] = 'Filter strings';
$string['filtercomponent'] = 'Show strings of these components';
Expand Down Expand Up @@ -92,3 +91,6 @@
$string['savecheckin'] = 'Save changes to the language pack';
$string['savecontinue'] = 'Apply changes and continue editing';
$string['privacy:metadata'] = 'The Language customisation plugin does not store any personal data.';

// Deprecated since Moodle 4.2.
$string['exportzipfilename'] = 'customlang-export-{$a->lang}.zip';

0 comments on commit 3eed2c7

Please sign in to comment.