mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-76222 tool_customlang: non-translatable export CLI filename.
This matches the name used for manual (via UI) language export.
This commit is contained in:
parent
0780e87f06
commit
6f4675e043
3 changed files with 5 additions and 2 deletions
|
@ -88,7 +88,7 @@ if ($options['lang']) {
|
|||
}
|
||||
|
||||
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]));
|
||||
|
|
1
admin/tool/customlang/lang/en/deprecated.txt
Normal file
1
admin/tool/customlang/lang/en/deprecated.txt
Normal file
|
@ -0,0 +1 @@
|
|||
exportzipfilename,tool_customlang
|
|
@ -50,7 +50,6 @@ $string['customlang:export'] = 'Export local translation';
|
|||
$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';
|
||||
|
@ -92,3 +91,6 @@ $string['pluginname'] = 'Language customisation';
|
|||
$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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue