Config: list of languages to build into the runtime catalogs #150
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type/architecture
type
bug
type
config
type
deployment
type
docs
type/documentation
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
type/task
type/tech-debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/fragjan#150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
The admin decides in the host config which languages are built into the
runtime catalogs. A language with only a few translated texts is not offered
until the admin adds it to the list.
Background
make resources/make dev-resources(scripts/gen-resources.lua ->core/resources/catalogs.lua build()) write one catalog for every language
found in the sources. [language] only has
langanddefault_lang.the user. A user with LANG=fr and five French texts sees a mix of French and
English.
the chain that have a loaded catalog. A language that is not built is
therefore dropped at runtime without further code.
Scope
languages = de, en: the languages that are built.in the sources and are not written to the runtime files.
default_langmust be in the list. Otherwise build fails with a cleardaw_error/v1 (no silent correction).
Open questions
compatible) or fail?
happens in the host at build time; berhtjan-core stays unchanged.
Acceptance criteria
languages = de, enonly de and en catalogs are written, also fordev-resources.
comment updated.
Refs: DAW/daw-modul-berhtjan-core#13