[damned-lies/develop] fix: update cryptic error message when po file has to be updated
- From: Guillaume Bernard <gbernard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies/develop] fix: update cryptic error message when po file has to be updated
- Date: Fri, 9 Sep 2022 07:34:52 +0000 (UTC)
commit e4999d08a3130819c44ff028c327e7121222d597
Author: Guillaume Bernard <associations guillaume-bernard fr>
Date: Fri Sep 9 09:33:46 2022 +0200
fix: update cryptic error message when po file has to be updated
Fixes #302
Closes #302
stats/models.py | 5 +++--
stats/tests/tests.py | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/stats/models.py b/stats/models.py
index c5af2309..5ae98d83 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -1708,8 +1708,9 @@ class Statistics(models.Model):
self.set_error(
"warn",
gettext_noop(
- "The currently committed file has less translated strings. "
- "You should probably commit this file."
+ "The original file with strings to translate (.pot) has been updated by the
software "
+ "developers, and the changes have to be merged to the translation file (.po).
Please "
+ "commit the translation file again in order to fix this problem."
),
)
try:
diff --git a/stats/tests/tests.py b/stats/tests/tests.py
index 6ee4b4f5..6a69dc00 100644
--- a/stats/tests/tests.py
+++ b/stats/tests/tests.py
@@ -215,7 +215,7 @@ class ModuleTestCase(TestCase):
self.assertEqual(de_po_stat.information_set.count(), 1)
self.assertTrue(
de_po_stat.information_set.first().description.startswith(
- "The currently committed file has less translated strings"
+ "The original file with strings to translate (.pot) has been"
)
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]