Language: Diagnostic: Message: adapting prefil message and translation related to make it more generic -refs BT#21042

pull/4982/head
NicoDucou 1 year ago
parent ec780e3dc1
commit affdd362ba
  1. 8
      assets/locales/en.json
  2. 6
      assets/vue/views/message/MessageCreate.vue
  3. 4
      public/main/search/load_search.php
  4. 12
      translations/main.pot
  5. 12
      translations/messages.en.po

@ -154,9 +154,9 @@
"Loading courses. Please wait.": "Loading courses. Please wait.",
"Loading sessions. Please wait.": "Loading sessions. Please wait.",
"There is no terms that matches the search: {searchTerm}": "There is no terms that matches the search: {searchTerm}",
"End of LearnPath": "End of LearnPath",
"OfajEndLPSubject": "OfajEndLPSubject",
"OfajEndLpDescription": "OfajEndLpDescription",
"Send diagnostic finalization message": "Send diagnostic finalization message",
"DiagnosticFinalizationMessageTitle": "Diagnostic finalization",
"DiagnosticFinalizationMessageContent": "Hi %s, I'm %s and I'm reviewing your diagnotic to define the course you will be folling.",
"Contact": "Contact",
"Registration": "Registration"
}
}

@ -232,11 +232,11 @@ if (route.query.send_to_user) {
if (route.query.prefill) {
const prefill = capitalize(route.query.prefill)
item.value.title = t(prefill + "EndLPSubject")
item.value.content = t(prefill + "EndLpDescription", [user.firstname, user.lastname])
item.value.title = t(prefill + "Title")
item.value.content = t(prefill + "Content", [user.firstname, user.lastname])
}
})
.catch((e) => notification.showErrorNotification(e))
.finally(() => (isLoadingUser.value = false))
}
</script>
</script>

@ -1158,9 +1158,9 @@ $button = '';
$userReportButton = '';
if ($userToLoad) {
$button = Display::url(
get_lang('End Of LearnPath'),
get_lang('Send diagnostic finalization message'),
api_get_path(WEB_PATH).'resources/messages/new?'
.http_build_query(['send_to_user' => $userToLoad, 'prefill' => 'ofaj']),
.http_build_query(['send_to_user' => $userToLoad, 'prefill' => 'diagnosticFinalizationMessage']),
['class' => 'btn btn--plain']
);
$button .= '<br /><br />';

@ -24110,11 +24110,11 @@ msgstr "Welcome, please go to diagnostic at %s."
msgid "Your session search diagnosis is saved"
msgstr "Your session search diagnosis is saved"
msgid "End of LearnPath"
msgstr "End of LearnPath"
msgid "Send diagnostic finalization message"
msgstr "Send diagnostic finalization message"
msgid "EndLPSubject"
msgstr "EndLPSubject"
msgid "DiagnosticFinalizationMessageTitle"
msgstr "Diagnostic finalization"
msgid "EndLpDescription"
msgstr "EndLpDescription"
msgid "DiagnosticFinalizationMessageContent"
msgstr "Hi %s, I'm %s and I'm reviewing your diagnotic to define the course you will be folling."

@ -24110,11 +24110,11 @@ msgstr "Welcome, please go to diagnostic at %s."
msgid "Your session search diagnosis is saved"
msgstr "Your session search diagnosis is saved"
msgid "End of LearnPath"
msgstr "End of LearnPath"
msgid "Send diagnostic finalization message"
msgstr "Send diagnostic finalization message"
msgid "EndLPSubject"
msgstr "EndLPSubject"
msgid "DiagnosticFinalizationMessageTitle"
msgstr "Diagnostic finalization"
msgid "EndLpDescription"
msgstr "EndLpDescription"
msgid "DiagnosticFinalizationMessageContent"
msgstr "Hi %s, I'm %s and I'm reviewing your diagnotic to define the course you will be folling."

Loading…
Cancel
Save