From 6f34126bee633a58ff6212370cf61a354bd1bdb0 Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Tue, 10 Sep 2024 21:59:49 +0500 Subject: [PATCH] contributor: base localization: document form labels style --- docs/contributor/localization-english.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/contributor/localization-english.md b/docs/contributor/localization-english.md index 9c2fb9aa..fea89108 100644 --- a/docs/contributor/localization-english.md +++ b/docs/contributor/localization-english.md @@ -17,8 +17,12 @@ When an unused string needs to be deleted, it should be only deleted for the bas ## Localization style +### Capitalization + All strings should have regular capitalization. Headers, labels, buttons and such should start with a capital letter. Only names, product names and such should be capitalized after that. Forgejo-specific measurement units should not be capitalized. +Follow these examples for string capitalization: + | Context | ❌ Bad | ✅ Good | | ------- | -------------------------------------- | -------------------------------------- | | Button | star | Star | @@ -28,6 +32,17 @@ All strings should have regular capitalization. Headers, labels, buttons and suc | Label | Integrate matrix into your repository. | Integrate Matrix into your repository. | | Label | %s Commits | %s commits | +### Other stylistic choices + +Form labels should not end with any punctuation marks. + +Follow these examples: + +| Context | ❌ Bad | ✅ Good | +| ---------- | --------- | -------- | +| Form label | Username. | Username | +| Form label | Username: | Username | + ## Contributing This section is to help you contribute to the English localization of Forgejo.