Skip to content

Commit 051b153

Browse files
Update i18n keys and error message formatting
Changed the i18n text domain in a comment for consistency and updated error message formatting in project-ai-create-form.vue to concatenate the status code outside the translation string.
1 parent f5544d4 commit 051b153

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

views/assets/src/components/project-discussions/discussions.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</div>
1515
</div>
1616

17-
<!-- {{ pm.i18n.__('Add List', 'cpm') }} -->
17+
<!-- {{ pm.i18n.__('Add List', 'wedevs-project-manager') }} -->
1818
<div class="pm-discussion pm-discussion-container" v-if="isFetchDiscussion">
1919
<div class="pm-blank-template discussion" v-if="blankTemplate">
2020
<div class="pm-content" >

views/assets/src/components/project-lists/project-ai-create-form.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
}
143143
// Fallback to status code
144144
else if (xhr.status) {
145-
errorMsg = sprintf(__( 'Request failed with status code: %d', 'wedevs-project-manager'), xhr.status);
145+
errorMsg = sprintf(__( 'Request failed with status code: ', 'wedevs-project-manager') + xhr.status);
146146
}
147147
148148
pm.Toastr.error(errorMsg);

0 commit comments

Comments
 (0)