- The General/ level is gone: its 109 files moved up into the folders of the same name, and its topic table is the "Shared topics" section of Features.md. - Accessibility is one folder, docs/Features/Accessibility/, with the Admin Panel's accessibility page in it. - Every folder's main page is README.md (110 X/X.md pages renamed with git mv, five merged with an existing README.md, 26 index pages added for folders that had none), so a folder opened on GitHub shows its page. - The 73 "# Moved" forwarding pages are deleted, with the folders that held only them; every link that went to one goes to its final page. - docs/Features/README.md has the website's "Features in WeKan" overview, each feature linking to its page here. 1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose, snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when General/ or a "# Moved" page comes back, a folder has no README.md, or a relative link in the docs or README.md does not resolve. Thanks to xet7 !
Translations
{% raw %}
What it is
WeKan is written in English and translated into many languages. Translators
work on Transifex; developers add every new
text to the English catalog, and the translations come back into WeKan's
imports/i18n/data/<language>.i18n.json files. Each user picks their language
in the language popup.
Read more
- Internationalization and localization and Transifex on Wikipedia.
- WeKan on Transifex.
- WeKan pages: Language popup, Customize translations, Push all translations, Translation audit, RTL.
How to use it
Adding language support for new language
You are encouraged to translate (or improve the translation of) Wekan in your locale language. For that purpose we rely on Transifex. So the first step is to create a Transifex account if you don’t have one already. You can then send a request to join one of the translation teams. If there we will create a new one.
Once you are in a team you can start translating the application. Please take a look at the glossary so you can agree with other (present and future) contributors on words to use to translate key concepts in the application like “boards” and “cards”.
Supporting automatic translation when adding new features
The original application is written in English, and if you want to contribute to
the application itself, you are asked to fill the i18n/en.i18n.json file with your new phrases
(today imports/i18n/data/en.i18n.json).
When you do that the new strings of text to translate automatically appears on Transifex to be translated (the refresh may take a few hours).
Then in your JADE files, use the string like so:
h3.card-details-item-title {{_ 'members'}}
We pull all translations from Transifex before every new Wekan release
candidate, ask the translators to review the app, and pull all translations
again for the final release. (Today the pull is
releases/translations/pull-translations.sh, which merges key by key: a real
Transifex translation in the right language wins, a local translation fills a
key Transifex left in English, and nothing is pushed back automatically.)
Example
diff --git a/client/components/cards/cardDetails.jade b/client/components/cards/cardDetails.jade
index ee31d76be..e3b2ea7cd 100644
--- a/client/components/cards/cardDetails.jade
+++ b/client/components/cards/cardDetails.jade
@@ -142,19 +142,19 @@ template(name="cardDetails")
.card-details-item.card-details-item-recurring
h3.card-details-item-title
i.fa.fa-repeat
- | Recurrence
+ | {{_ 'recurrence'}}
label
input.js-recurring-checkbox(type="checkbox" checked=card.isRecurring)
- | Repeat this card
+ | {{_ 'repeat-this-card'}}
if card.isRecurring
label
- | Repeat every
+ | {{_ 'repeat-every'}}
select.js-recurring-pattern
- option(value="daily" selected=card.recurrencePattern === 'daily') Daily
- option(value="weekly" selected=card.recurrencePattern === 'weekly') Weekly
- option(value="monthly" selected=card.recurrencePattern === 'monthly') Monthly
+ option(value="daily", selected="#{card.recurrencePattern === 'daily'}") {{_ 'daily'}}
+ option(value="weekly", selected="#{card.recurrencePattern === 'weekly'}") {{_ 'weekly'}}
+ option(value="monthly", selected="#{card.recurrencePattern === 'monthly'}") {{_ 'monthly'}}
label
- | End repeat on
+ | {{_ 'end-repeat-on'}}
input.js-recurring-end-date(type="date" value=card.recurrenceEndDate)
if currentBoard.hasAnyAllowsUser
hr
diff --git a/imports/i18n/data/en.i18n.json b/imports/i18n/data/en.i18n.json
index 10260ff2b..b16200c1a 100644
--- a/imports/i18n/data/en.i18n.json
+++ b/imports/i18n/data/en.i18n.json
@@ -1270,5 +1270,12 @@
"supportPopup-title": "Support",
"accessibility-page-enabled": "Accessibility page enabled",
"accessibility-title": "Accessibility topic",
- "accessibility-content": "Accessibility content"
+ "accessibility-content": "Accessibility content",
+ "recurrence": "Recurrence",
+ "repeat-this-card": "Repeat this card",
+ "repeat-every": "Repeat every",
+ "daily": "Daily",
+ "weekly": "Weekly",
+ "monthly": "Monthly",
+ "end-repeat-on": "End repeat on"
}
Translation regression checks and remaining work
Run node tests/run-node-suites.cjs Translation translation i18n boardItemLinks
for the catalog regression suites. Key order and interpolation tokens are checked
against the full current English source, including newly added feature strings.
The historical no-English assertions use --completed-catalog to check the
2,417 source strings from the September 6 completion milestone, commit
6cae1d48b9. Its source snapshot is
releases/translations/completed-source.json. This scope preserves the earlier
completion guarantee without treating later feature additions as regressions.
Feature-specific translation assertions continue checking their named strings.
Passing these suites does not mean every newer string is translated.
For the actual work queue, use node releases/translations/fill-translations.mjs --list <locale> without that flag. This includes strings awaiting Transifex.
--missing reports other unfinished strings separately from the pending-Transifex
key count. The snapshot is historical evidence; do not regenerate it from a
partially translated current catalog to make tests pass.
How the numbers are calculated
- WeKan has 246 catalog files in
imports/i18n/data/, and 245 entries in imports/i18n/languages.js (counted for this page; Englishen.i18n.jsonis the source, with 5230 keys). node releases/translations/fill-translations.mjs --missingcounts, per language, the keys still equal to the English source; English anden-*are skipped.- The completed-catalog check uses the 2,417 source strings of
releases/translations/completed-source.json.
How it works in WeKan
TAPi18nin imports/i18n/tap.js loads a language's catalog on demand (languages.jsmaps each tag to its loader) and translates{{_ 'key'}}in templates andTAPi18n.__('key')in code.- releases/translations/pull-translations.sh
runs
tx pull -a -fand then the per-key merge, merge-translations.mjs; verify-human-preference.mjs proves a human translation is never overwritten. - fill-translations.mjs lists and fills only the keys still in English.
- Admins can override single strings, see Customize translations.
{% endraw %}
Commits
- Keep translation regression gates scoped to the completed source catalog
- Rewrite locale files that held another language
- Korean is Korean again
- Merge Transifex human translations over local fills
- Fill remaining strings directly, with no service, keeping human translations
- Never overwrite human translations
- Fifteen more languages, most of them African
- Enforce translation completeness, the milestone of the completed catalog
- Switch tap:i18n to the custom TAPi18n implementation
