Skip to content

Commit f8d21df

Browse files
author
Saket Hatwar
committed
fix
1 parent 7dd1a77 commit f8d21df

File tree

6 files changed

+17
-4
lines changed

6 files changed

+17
-4
lines changed

locale/hi/LC_MESSAGES/loris.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ msgstr "हाँ"
117117
msgid "No"
118118
msgstr "नहीं"
119119

120+
msgid "Close"
121+
msgstr "बंद करें"
122+
120123
# Common candidate terms
121124
msgid "PSCID"
122125
msgstr "पीएससीआईडी"

locale/loris.pot

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ msgstr ""
116116
msgid "No"
117117
msgstr ""
118118

119+
msgid "Close"
120+
msgstr ""
121+
119122
# Common candidate terms
120123
msgid "PSCID"
121124
msgstr ""

modules/help_editor/jsx/helpEditorForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const HelpEditorForm = (props) => {
7676
title: t('Content update successful!',
7777
{ns: 'help_editor'}),
7878
type: 'success',
79-
confirmButtonText: t('Close', {ns: 'help_editor'}),
79+
confirmButtonText: t('Close', {ns: 'loris'}),
8080
});
8181
}).catch((error) => {
8282
console.error(error);

modules/help_editor/locale/help_editor.pot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ msgstr ""
2121
msgid "Help Editor"
2222
msgstr ""
2323

24+
msgid "Edit Help Content"
25+
msgstr ""
26+
2427
msgid "Help ID"
2528
msgstr ""
2629

@@ -39,9 +42,6 @@ msgstr ""
3942
msgid "Content update successful!"
4043
msgstr ""
4144

42-
msgid "Close"
43-
msgstr ""
44-
4545
msgid "Content update unsuccessful."
4646
msgstr ""
4747

modules/help_editor/locale/hi/LC_MESSAGES/help_editor.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ msgstr ""
2121
msgid "Help Editor"
2222
msgstr "सहायता संपादक"
2323

24+
msgid "Edit Help Content"
25+
msgstr "सहायता सामग्री संपादित करें"
26+
2427
msgid "Help ID"
2528
msgstr "सहायता आईडी"
2629

modules/help_editor/php/edit_help_content.class.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ class Edit_Help_Content extends \NDB_Form
144144
}
145145
}
146146

147+
$data['edit_help_text'] = dgettext('help_editor', 'Edit Help Content');
148+
$data['display_title'] = !empty($data['title']) ? $data['title'] :
149+
$data['edit_help_text'];
150+
147151
$this->tpl_data = $data;
148152
return (new \LORIS\Http\Response())
149153
->withBody(new \LORIS\Http\StringStream($this->display() ?? ""));

0 commit comments

Comments
 (0)