Repository navigation
M17: language reach - #29
Merged
Merged
Conversation
…nt in every language - A test reads every text from the code and fails when a translation is missing, left over or loses a placeholder. It keeps Resources/SharedResource.resx, the English base file Weblate needs, up to date. - Counts in sentences use ICU MessageFormat plurals, with CLDR rules for each language, so that Polish can say 1 zdjęcie, 2 zdjęcia, 5 zdjęć. A translation must give every form its language needs. - Admins choose the language of the material. Dates are read in it, in the other languages chosen, and in the language of whoever types them. Month names come from .NET for any language, without accents. Archives that have not chosen read English and German as before; a frozen copy of the old reader in the tests checks that every date it accepted still means the same. - Item text carries the material's lang, on the page, in lists and in the feed. - The export README is translated, with an English copy when it is not in English. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Seb H. <138793908+SebHenn@users.noreply.github.com>
…ttings Only languages the interface offers must be complete, so Weblate can bring a new one in parts. An empty translation fails a test, because it would show nothing at all. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Seb H. <138793908+SebHenn@users.noreply.github.com>
The test for untranslated text now uses Russian and French, whose rules differ from English for 21 and 0. With Polish it could not fail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Seb H. <138793908+SebHenn@users.noreply.github.com>
… old form is sent The walk-through showed the main language offered again under "Dates can also be written in". In German, "Daten" can be read as "data", so these texts say "Datumsangaben". A test now checks that the English base file is not built into the application. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Seb H. <138793908+SebHenn@users.noreply.github.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.
What
M17 "Language reach" from the roadmap. A translator without Git can work in Weblate once it is set up, missing translations fail a test, counts follow each language's plural rules, item text carries its language, and dates follow the archive's languages without losing anything accepted before.
Translations
T[...],localizer[...],.Plural(...), attribute names and messages) and fails when a language the interface offers lacks one, or when a translation is left over, empty, loses a{0}or lacks a form of a count. It found five German texts nothing used any more, which are gone.Resources/SharedResource.resx, the English base file Weblate needs, since English is the key in the code. The file is not built into the app, so an untranslated text is still recognised as English. Translations of consent and privacy texts carry a note asking for a second translator.SupportedLanguages.cs.Counts
{0, plural, one {# day} other {# days}}. Weblate checks it with theicu-message-formatflag, and nothing else changes for ASP.NET.Plurals.csreads that part of ICU and has the CLDR rules for whole numbers in about 60 languages. A text nobody translated keeps English rules, so a Polish reader of English text never gets a missing form. docs/translating.md compares it with PO and JSON formats.Photos: {0}).Content language
lang, never the interface's words around it. "Several" marks nothing. Without a choice it is the archive's language.DateVocabularyper language, English and German so far. A month name with two meanings ("listopad") is read in the archive's language first.README.en.txtbeside it. The export has the two new settings.Please decide or look at
Signed-off-by: {{ author }}in the commit message, so its pull requests pass the sign-off check, and the license agreement translators accept. Weblate's docs do not say exactly how{{ author }}is written, so check the first pull request.ContentLanguageandOtherContentLanguagesto the settings, empty for existing archives.Checked
other. German translations that are missing, empty, left over, or lose a placeholder or a form, plus a new text without the base file, and the base file built into the app.lang: "several", the description, cards and the feed. Settings and the export.deand the words around it not. On the settings page there are 252 languages, at desktop and phone width and in German. After choosing Polish, "12 marca 1953" is a day, "listopad" is November, and the edit page reads "12 października 1953". A German reader is understood in German again. "Several" marks nothing, also in the feed.Not checked
🤖 Generated with Claude Code