Skip to content

Commit

Permalink
fix(locales): resolve locales management warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Sep 25, 2023
1 parent 6287f1b commit d5db374
Show file tree
Hide file tree
Showing 6 changed files with 402 additions and 336 deletions.
2 changes: 1 addition & 1 deletion inc/form_language.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public function showTranslations($options = []) {
$header = '<tr>';
$header.= '<th>' . Html::getCheckAllAsCheckbox("translation_list$rand", $rand) . '</th>';
$header.= '<th>' . __('Original string', 'formcreator') . '</th>';
$header.= '<th>' . __('Translation', 'Translations', 1, 'formcreator') . '</th>';
$header.= '<th>' . _n('Translation', 'Translations', 1, 'formcreator') . '</th>';
$header.= '</tr>';
echo $header;
echo '</thead>';
Expand Down
4 changes: 2 additions & 2 deletions inc/notificationtargetformanswer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ public function addDataForTemplate($event, $options = []) {

$this->data['##lang.formcreator.form_id##'] = __('Form ID', 'formcreator');
$this->data['##lang.formcreator.form_name##'] = __('Form name', 'formcreator');
$this->data['##lang.formcreator.form_requester##'] = __('Requester', 'formcreator');
$this->data['##lang.formcreator.form_validator##'] = __('Validator', 'formcreator');
$this->data['##lang.formcreator.form_requester##'] = _n('Requester', 'Requesters', 1);
$this->data['##lang.formcreator.form_validator##'] = PluginFormcreatorForm_Validator::getTypeName(1);
$this->data['##lang.formcreator.form_creation_date##'] = __('Creation date', 'formcreator');
$this->data['##lang.formcreator.form_full_answers##'] = __('Full form answers', 'formcreator');
$this->data['##lang.formcreator.validation_comment##'] = __('Validation comment', 'formcreator');
Expand Down
Loading

0 comments on commit d5db374

Please sign in to comment.