Repository navigation
Replies: 3 comments
|
Hi Vetle, Thank you, both for the Norwegian translation (it's live in v1.280.0 as a beta language) and for this list. I checked all five against the code, and you're right on every one.
Pull requests for 2–5 are very welcome, one per point. Two practical notes: commits need a DCO sign-off ( Thanks again! |
|
Hi Johan, Thanks for checking all five, and for fixing the DELETE one yourself in #1691. Here's where the other four stand. One PR per point, as you asked, with new strings in
I've run all four in Docker as well as the test suites. One question on point 4: Norwegian normally writes the litre with a lowercase "l" ("1,5 l"), and I believe Swedish does too. Would you be open to making the units translatable keys, so Weblate can set "l" per language while English keeps "L"? I'd do it as a separate small PR on top of #1724, if you think it's worth it. Weblate is locked. The Frontend component has been locked since 25 October at 13:12 with "Could not merge the repository". Weblate fails to rebase its own Norwegian commits onto main and stops on a conflict in Once it's open again, I'll fill in SLETT for the Norwegian DELETE sentence and translate the new keys as they reach Weblate. Vetle |
|
Thank you — all four are merged: #1724, #1725, #1726 and #1727. They go out with the next release, together with the earlier DELETE fix that is already live. One small thing I noticed in #1727 and will take care of separately: the vintage bar chart translates NV but not Unknown, so an "Unknown" bar still shows the raw word. Older than your change, no action needed from you. The second vintage PR, accepting the translated words in the input, is welcome whenever you have it. |
Uh oh!
There was an error while loading. Please reload this page.
While translating Cellarion into Norwegian, I came across a few things in the code that affect every language and can't be fixed in Weblate. I'd like to talk them through before opening issues or pull requests:
1. DELETE when deleting an account
The danger zone asks the user to type
DELETE, and the check is hard-coded infrontend/src/pages/Settings.js, so the word can't be translated. In Norwegian the instruction reads "Skriv DELETE for å bekrefte:", with an English word in the middle of a Norwegian sentence. A Norwegian user would expect to type SLETT.Some options:
settings.danger.confirmWord(SLETT in Norwegian, RADERA in Swedish).DELETEand the translated word.2. NV and Unknown
CellarDetail.jsandWineListMenu.jswrite'NV'directly in the code, so a group header reads "Château X · NV · 3 flasker" in Norwegian. Many Norwegian users would know "Uten årgang" better. The vintage field also asks the user to type the codes in English: "f.eks. 2015, NV eller Unknown".One option is to keep
NVandUnknownas stored values, show them through translated strings (for examplecommon.nonVintageandcommon.unknownVintage), and offer a small select or checkbox next to the year field instead of typing the codes.3. betaNotice and safetyNotice
settings.aiConnect.betaNoticesays changes can be undone under "What your AI has changed", but the section in Settings is called "Recent AI activity". Users looking for the first name won't find it. The fix is a text change in the English locale only, after which translators can follow.4. formatVolume
formatVolumeinfrontend/src/config/bottleSizes.jsbuilds the volume withtoFixed, so it always uses a dot as decimal separator. Norwegian and Swedish users see "1.5 L (Magnum)" instead of "1,5 L (Magnum)".Intl.NumberFormatwith the user's chosen language would solve it, and German and French would benefit too.5. Plural forms in the registry connection
From the locale file,
settings.registryConnection.heldCopies("{{count}} wines copied from the registry") andremovedCopies("{{count}} no longer in the registry") take acountbut have no_oneand_otherforms. If I read it right, one copied wine would show "1 wines copied from the registry". I haven't tested it on a self-hosted install, so I may be missing something.I'd be happy to make pull requests for any of these. Which ones would you like, and do you have a preferred approach for the first two?
All reactions