Skip to content

Commit ae8ccb0

Browse files
author
php-schubser
committed
fix: don't copy data from existing language when installing module
1 parent 818fe07 commit ae8ccb0

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

new_files/admin/includes/modules/system/fs_serbian_language_package.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function install()
6363
'directory' => 'serbian'
6464
];
6565
$stdLanguageModule = new StdLanguageModule;
66-
$stdLanguageModule->init($serbianLanguageData, 2);
66+
$stdLanguageModule->init($serbianLanguageData, 0);
6767
parent::install();
6868
}
6969

new_files/lang/english/modules/system/fs_serbian_language_package.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
define('TEXT_LANGUAGE_STATUS_ADMIN', 'Language package status admin: %s');
55
define('TEXT_LANGUAGE_CONFIGURATION', 'You can change configuration for language <a href="languages.php"><strong>here</strong></a> .');
66
define('TEXT_LANGUAGE_DESRIPTION', 'Serbian language package for Modified from version 2.0.5.0.');
7-
define('TEXT_ACTIVE', '<strong style="color:green;">Enabled</strong>');
8-
define('TEXT_INACTIVE', '<strong style="color:red;">Disabled</strong>');
9-
7+
define('TEXT_ACTIVE', '<strong style="color:green;">Active</strong>');
8+
define('TEXT_INACTIVE', '<strong style="color:red;">Inactive</strong>');
9+
define('TEXT_LANGUAGE_INSTALLED_SUCCESSFULLY', 'Serbian language was successfully installed. If you want to copy content from other languages into this language, you can do so <a style="font-size:12px; color:green;" href="languages.php"><strong>here</strong></a>.');

new_files/lang/german/modules/system/fs_serbian_language_package.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
define('TEXT_LANGUAGE_CONFIGURATION', '<a href="languages.php"><strong>Hier</strong></a> k&ouml;nnen Sie die Sprachkonfiguration bearbeiten.');
66
define('TEXT_LANGUAGE_DESRIPTION', 'Serbisches Sprachpaket ab Modified 2.0.5.0');
77
define('TEXT_ACTIVE', '<strong style="color:green;">Aktiviert</strong>');
8-
define('TEXT_INACTIVE', '<strong style="color:red;">Behinderte</strong>');
8+
define('TEXT_INACTIVE', '<strong style="color:red;">Behinderte</strong>');
9+
define('TEXT_LANGUAGE_INSTALLED_SUCCESSFULLY', 'Sprache serbisch wurde erfolgreich installiert. Wenn Sie Inhalte aus anderen Sprachen in diese Sprache kopieren m&ouml;chten, k&ouml;nnen Sie dies <a style="font-size:12px; color:green;" href="languages.php"><strong>hier</strong></a> tun.');

new_files/lang/serbian/modules/system/fs_serbian_language_package.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
define('TEXT_LANGUAGE_CONFIGURATION', '<a href="languages.php"><strong>Ovde</strong></a> mo&#x17E;ete konfigurisati jezi&#x10D;ki paket.');
66
define('TEXT_LANGUAGE_DESRIPTION', 'Srpski jezi&#x10D;ki paket za Modified od 2.0.5.0');
77
define('TEXT_ACTIVE', '<strong style="color:green;">Uklju&#x10D;en</strong>');
8-
define('TEXT_INACTIVE', '<strong style="color:red;">Isklju&#x10D;en</strong>');
8+
define('TEXT_INACTIVE', '<strong style="color:red;">Isklju&#x10D;en</strong>');
9+
define('TEXT_LANGUAGE_INSTALLED_SUCCESSFULLY', 'Srpski jezik je uspe&#x161;no instaliran. Ako &#x17E;elite da kopirate podatke od drugog jezika, to mo&#x17E;ete uraditi <a style="font-size:12px; color:green;" href="languages.php"><strong>ovde</strong></a>.');

0 commit comments

Comments
 (0)