Repository navigation
i18n: translate hardcoded UI strings and complete Polish locale - #1782
Merged
Merged
Conversation
Wrap user-facing strings that were hardcoded in English so they can be translated: editor toolbar tooltips, the mention "No result" item, the cookies-required notice, the moderation indicator, the theme switcher label, the status field in the response modal, and error toasts shown for failed requests and failed account deletion. The image uploader size alert now reuses validation.custom.maximagesize. New keys were extracted with lingui into all client catalogs. Polish: translate all new keys, fill the strings added for threaded comments (reply, reply placeholder, deleted comment, title too short), add the missing server keys (invalid reply parent, feed titles) and use Polish plural forms in feed.post.footer.
- follow/following: "Obserwuj" / "Obserwujesz" instead of literal
machine translations
- fix wrong meaning in moderation help ("cannot be undone"), unauthorized
page text, "My activity" filter, "Read on last 30 days"
- imperative forms for "Sign up" and the sign-in code "Edit" link
- sign-in email now talks about the one-time code instead of a link
- post statuses in emails as adjectives, matching the client catalog
- gender-neutral validation messages ("Pole „{name}” jest wymagane.")
- typos and grammar (GIF, double "o", missing space, "zdecydujesz się",
"tę stronę")
- shorter moderation indicator and cookies notice, "Wspomnij użytkownika"
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…abel key Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue: #1781
Wraps the user-facing strings that were hardcoded in English in lingui calls, so they can be translated:
editor.toolbar.*)editor.mention.noresults)signin.cookiesrequired.*)moderation.indicator.waiting)action.toggletheme)label.status)error.http.*) and failed account deletion (mysettings.deleteaccount.failed)validation.custom.maximagesizeEnglish messages are unchanged, except three toolbar tooltips that used code-like names: "BulletList" → "Bulleted list", "OrderedList" → "Numbered list", "Code" → "Code block". New keys were added to every client catalog with
lingui extract. Admin pages are untouched (#1674).Polish: translated all new keys and the empty ones added for threaded comments (
action.reply,showpost.commentinput.replyplaceholder,showpost.comment.deleted,newpost.modal.title.tooshort), added the missing server keys (validation.custom.invalidreplyparent,feed.global.title,feed.post.title) and switchedfeed.post.footerto Polish plural forms (checked with theplmessageformat culture: 1 głos, 2 głosy, 5 głosów, 22 głosy).A second commit fixes existing Polish strings: literal machine translations of Follow / Following, a few wrong meanings (moderation help said the action "cannot be performed" instead of "cannot be undone", the unauthorized page text, the My activity filter), the sign-in email still describing a link instead of the one-time code, post statuses in emails, gender agreement in validation messages, and typos.
npx eslinton the changed files andnpx jest ./public(271 tests) pass. Running on a production instance (twojglos.geobid.pl) on top of v0.41.0.Checklist