fix(l10n): replace post(s)->reply(ies) in more places

This commit is contained in:
2025-12-08 23:51:33 +02:00
parent b2d7af73e0
commit 164c188617
11 changed files with 25 additions and 22 deletions

View File

@@ -51,7 +51,7 @@ export default defineComponent({
content: this.initialContent,
submitting: false,
strings: {
placeholder: t('forum', 'Edit your post …'),
placeholder: t('forum', 'Edit your reply …'),
cancel: t('forum', 'Cancel'),
save: t('forum', 'Save'),
confirmCancel: t('forum', 'Are you sure you want to discard your changes?'),

View File

@@ -72,7 +72,7 @@ export default defineComponent({
strings: {
placeholder: t('forum', 'Write your reply …'),
cancel: t('forum', 'Cancel'),
submit: t('forum', 'Post reply'),
submit: t('forum', 'Submit reply'),
confirmCancel: t('forum', 'Are you sure you want to discard your reply?'),
},
}

View File

@@ -23,7 +23,7 @@
</span>
<span class="meta-item">
<MessageIcon :size="16" />
{{ n('forum', '%n post', '%n posts', thread.postCount) }}
{{ n('forum', '%n reply', '%n replies', thread.postCount) }}
</span>
<span class="meta-item">
<EyeIcon :size="16" />

View File

@@ -84,7 +84,7 @@ export default defineComponent({
strings: {
titleLabel: t('forum', 'Title'),
titlePlaceholder: t('forum', 'Enter thread title …'),
contentPlaceholder: t('forum', 'Write your first post …'),
contentPlaceholder: t('forum', 'Write your thread content …'),
cancel: t('forum', 'Cancel'),
submit: t('forum', 'Create thread'),
confirmCancel: t('forum', 'Are you sure you want to discard this thread?'),

View File

@@ -207,7 +207,7 @@ export default defineComponent({
loading: t('forum', 'Loading …'),
errorTitle: t('forum', 'Error'),
retry: t('forum', 'Retry'),
firstPost: t('forum', 'First post'),
firstPost: t('forum', 'First activity'),
repliesLabel: (count: number) => t('forum', 'Replies'),
threadsLabel: (count: number) => t('forum', 'Threads'),
threadsTab: (count: number) => t('forum', 'Threads ({count})', { count }),
@@ -215,7 +215,7 @@ export default defineComponent({
noThreads: t('forum', 'No threads'),
noThreadsDesc: t('forum', 'This user has not created any threads yet'),
noPosts: t('forum', 'No replies'),
noPostsDesc: t('forum', 'This user has not posted any replies yet'),
noPostsDesc: t('forum', 'This user has not written any replies yet'),
inThread: t('forum', 'In thread'),
},
}

View File

@@ -182,7 +182,7 @@ export default defineComponent({
searchPlaceholder: t('forum', 'Enter search query …'),
search: t('forum', 'Search'),
searchThreads: t('forum', 'Search in threads'),
searchPosts: t('forum', 'Search in posts'),
searchPosts: t('forum', 'Search in replies'),
syntaxHelp: t('forum', 'Syntax help'),
searchSyntax: t('forum', 'Search syntax'),
helpExactPhrase: t('forum', 'Match exact phrase'),
@@ -194,11 +194,11 @@ export default defineComponent({
errorTitle: t('forum', 'Search Error'),
retry: t('forum', 'Retry'),
emptyTitle: t('forum', 'Enter a search query'),
emptyDesc: t('forum', 'Use the search box above to find threads and posts'),
emptyDesc: t('forum', 'Use the search box above to find threads and replies'),
noResultsTitle: t('forum', 'No results found'),
noResultsDesc: t('forum', 'Try different keywords or check your syntax'),
threadResults: (count: number) => n('forum', '%n thread found', '%n threads found', count),
postResults: (count: number) => n('forum', '%n post found', '%n posts found', count),
postResults: (count: number) => n('forum', '%n reply found', '%n replies found', count),
},
}
},

View File

@@ -406,14 +406,14 @@ export default defineComponent({
reply: t('forum', 'Reply'),
loading: t('forum', 'Loading …'),
errorTitle: t('forum', 'Error loading thread'),
emptyPostsTitle: t('forum', 'No posts yet'),
emptyPostsDesc: t('forum', 'Be the first to post in this thread.'),
emptyPostsTitle: t('forum', 'No replies yet'),
emptyPostsDesc: t('forum', 'Be the first to reply in this thread.'),
retry: t('forum', 'Retry'),
by: t('forum', 'by'),
views: (count: number) => n('forum', '%n view', '%n views', count),
pinned: t('forum', 'Pinned thread'),
locked: t('forum', 'Locked thread'),
lockedMessage: t('forum', 'This thread is locked. Only moderators can post replies.'),
lockedMessage: t('forum', 'This thread is locked. Only moderators can add replies.'),
guestMessage: t('forum', 'You must be signed in to reply to this thread.'),
signInToReply: t('forum', 'Sign in to reply'),
lockThread: t('forum', 'Lock thread'),
@@ -549,7 +549,7 @@ export default defineComponent({
}
} catch (e) {
console.error('Failed to fetch posts', e)
throw new Error(t('forum', 'Failed to load posts'))
throw new Error(t('forum', 'Failed to load replies'))
}
},
@@ -695,11 +695,11 @@ export default defineComponent({
postCard.finishEdit()
}
showSuccess(t('forum', 'Post updated'))
showSuccess(t('forum', 'Reply updated'))
}
} catch (e) {
console.error('Failed to update post', e)
showError(t('forum', 'Failed to update post'))
showError(t('forum', 'Failed to update reply'))
// Reset submitting state on error
if (postCard && typeof postCard.setEditSubmitting === 'function') {
@@ -738,11 +738,11 @@ export default defineComponent({
this.replies.splice(index, 1)
}
showSuccess(t('forum', 'Post deleted'))
showSuccess(t('forum', 'Reply deleted'))
}
} catch (e) {
console.error('Failed to delete post', e)
showError(t('forum', 'Failed to delete post'))
showError(t('forum', 'Failed to delete reply'))
}
},

View File

@@ -190,14 +190,17 @@ export default defineComponent({
uploadDirectoryLabel: t('forum', 'Upload directory'),
uploadDirectoryHint: t(
'forum',
'Files attached to posts will be uploaded to this directory in your Nextcloud files',
'Files attached to threads or replies will be uploaded to this directory in your Nextcloud files',
),
browse: t('forum', 'Browse'),
save: t('forum', 'Save'),
cancel: t('forum', 'Cancel'),
saveSuccess: t('forum', 'Preferences saved'),
signatureTitle: t('forum', 'Signature'),
signatureDesc: t('forum', 'Your signature appears at the bottom of your posts'),
signatureDesc: t(
'forum',
'Your signature appears at the bottom of your threads or replies',
),
signatureLabel: t('forum', 'Signature'),
signatureHint: t('forum', 'You can use BBCode formatting in your signature'),
signaturePlaceholder: t('forum', 'Enter your signature …'),

View File

@@ -333,7 +333,7 @@ export default defineComponent({
strings: {
title: t('forum', 'BBCode management'),
subtitle: t('forum', 'Manage custom BBCode tags for post formatting'),
subtitle: t('forum', 'Manage custom BBCode tags for formatting'),
help: t('forum', 'BBCode help'),
loading: t('forum', 'Loading …'),
errorTitle: t('forum', 'Error loading BBCodes'),

View File

@@ -432,7 +432,7 @@ export default defineComponent({
createHeader: t('forum', 'Create header'),
categoriesCount: (count: number) => n('forum', '%n category', '%n categories', count),
threadsCount: (count: number) => n('forum', '%n thread', '%n threads', count),
postsCount: (count: number) => n('forum', '%n post', '%n posts', count),
postsCount: (count: number) => n('forum', '%n reply', '%n replies', count),
deleteHeaderTitle: t('forum', 'Delete header'),
deleteHeaderMessage: (name: string) =>
t('forum', `Are you sure you want to delete the header "{name}"?`, { name }),

View File

@@ -250,7 +250,7 @@ export default defineComponent({
last7Days: t('forum', 'Last 7 days'),
allTime: t('forum', 'All time'),
threadsCount: (count: number) => n('forum', '%n thread', '%n threads', count),
postsCount: (count: number) => n('forum', '%n post', '%n posts', count),
postsCount: (count: number) => n('forum', '%n reply', '%n replies', count),
},
}
},