daw_i18n/v1: define the placeholder name form and literal braces #18
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
bug
type
config
type
deployment
type/design
type
docs
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/daw-contracts#18
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?
Problem
daw_i18n/v1, section 5, defines placeholders as{name}but leaves twothings open that every implementation has to decide:
{or}in a textAnyone can write texts in an open-source project (translators, module
authors). Without a rule, a typo like
{ name }or{Name}is eitheroutput as plain text or rejected, depending on the implementation.
Existing catalogs already contain plain braces, for example
"sources must be a list of { name, priority, catalogs }".
Proposal (to discuss)
_)error, or does it need an escape form?
source_hash(the hash covers the text as written)Why now
DAW/daw-modul-berhtjan-core adds
format_text(text, params)(see the core issue); until this is decided the core marks its rule as
provisional.
Acceptance criteria
Related
DAW/daw-modul-berhtjan-core (format_text issue)
Status: no escape form
Decided with the
format_textwork (contract state767fb16,DAW/daw-modul-berhtjan-core): there is no escape form for a literal
{or}. Substitution is a single pass, and values are a string or aninteger (section 5 of
daw_i18n/v1already says so for the values).What this means for the proposal above:
with it the question what an escape means for
source_hash: the hashkeeps covering the text as written
specification.md:digits and
_)error
Section 5 does not yet say anything about name form or literal braces;
until it does, the core keeps its rule marked as provisional.