]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong uses of DI::l10n() in Core\Update
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 21 Jan 2021 15:36:52 +0000 (10:36 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 21 Jan 2021 15:36:52 +0000 (10:36 -0500)
- Fix typos in version number in translated messages

src/Core/Update.php

index 2758b6f49e7afad21084920f640d4f9c55ad0ce3..96d2f0a8b119065f17ed4e06f5474e1d43e64b50 100644 (file)
@@ -63,7 +63,7 @@ class Update
 
                // We don't support upgrading from very old versions anymore
                if ($build < NEW_TABLE_STRUCTURE_VERSION) {
-                       $error = DI::l10n('Updates from version %s are not supported. Please update at least to version 2021,01 and wait until the postupdate finished version 1383.', $build);
+                       $error = DI::l10n()->t('Updates from version %s are not supported. Please update at least to version 2021.01 and wait until the postupdate finished version 1383.', $build);
                        if (DI::mode()->getExecutor() == Mode::INDEX) {
                                die($error);
                        } else {
@@ -74,7 +74,7 @@ class Update
                // The postupdate has to completed version 1281 for the new post views to take over
                $postupdate = DI::config()->get("system", "post_update_version");
                if ($postupdate < NEW_TABLE_STRUCTURE_VERSION) {
-                       $error = DI::l10n('Updates from postupdate version %s are not supported. Please update at least to version 2021,01 and wait until the postupdate finished version 1383.', $postupdate);
+                       $error = DI::l10n()->t('Updates from postupdate version %s are not supported. Please update at least to version 2021.01 and wait until the postupdate finished version 1383.', $postupdate);
                        if (DI::mode()->getExecutor() == Mode::INDEX) {
                                die($error);
                        } else {