Skip to content

Commit ebdbecb

Browse files
Add missing translation
1 parent ee7b1eb commit ebdbecb

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

po/fr.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: gorfector master\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2025-05-23 17:34-0400\n"
11-
"PO-Revision-Date: 2025-05-20 11:34-0400\n"
10+
"POT-Creation-Date: 2025-05-24 11:51-0400\n"
11+
"PO-Revision-Date: 2025-05-24 11:52-0400\n"
1212
"Last-Translator: Patrick Fournier <>\n"
1313
"Language-Team: French - Canada\n"
1414
"Language: fr_CA\n"
@@ -111,6 +111,10 @@ msgstr "Une application pour numériser des images."
111111
msgid "scan;scanner;"
112112
msgstr "numériser;numérisation;scanner"
113113

114+
#: ../po/../src/ZooLib/ErrorDialog.cpp:10
115+
msgid "Error"
116+
msgstr "Erreur"
117+
114118
#: ../po/../src/App.cpp:161 scanners/scanner_strings.h:40
115119
#: scanners/scanner_strings.h:41
116120
msgid "Preview"

po/gorfector.pot

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-05-23 17:34-0400\n"
11+
"POT-Creation-Date: 2025-05-24 11:51-0400\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -98,6 +98,10 @@ msgstr ""
9898
msgid "scan;scanner;"
9999
msgstr ""
100100

101+
#: ../po/../src/ZooLib/ErrorDialog.cpp:10
102+
msgid "Error"
103+
msgstr ""
104+
101105
#: ../po/../src/App.cpp:161 scanners/scanner_strings.h:40
102106
#: scanners/scanner_strings.h:41
103107
msgid "Preview"

src/ZooLib/ErrorDialog.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
#include "ErrorDialog.hpp"
2-
31
#include <string>
42

3+
#include "ErrorDialog.hpp"
4+
#include "Gettext.hpp"
5+
56
namespace ZooLib
67
{
78
void ShowUserError(AdwApplicationWindow *parentWindow, const std::string &message)
89
{
9-
auto dialog = adw_alert_dialog_new("Error", nullptr);
10+
auto dialog = adw_alert_dialog_new(_("Error"), nullptr);
1011
adw_alert_dialog_set_body(ADW_ALERT_DIALOG(dialog), message.c_str());
1112
adw_alert_dialog_add_response(ADW_ALERT_DIALOG(dialog), "ok", "OK");
1213
adw_alert_dialog_set_default_response(ADW_ALERT_DIALOG(dialog), "ok");

0 commit comments

Comments
 (0)