mirror of
https://github.com/wekan/wekan.git
synced 2026-11-05 09:40:20 -05:00
Validate restored Basque checklist check actions
Retain the distinct singular temporal checked and unchecked actions using actual generic trigger context, native software uncheck terminology and temporal grammar evidence. Named-item word order and browser review remain open. Thanks to xet7.
This commit is contained in:
1 parent
f1c93824ca
commit
1439c4c61c
2 files changed
+25
No files matched your search
@@ -24988,5 +24988,17 @@
|
||||
"key": "r-is-moved",
|
||||
"value": "lekuz aldatzen denean",
|
||||
"reason": "Retained after checking the actual generic board movement trigger: Txartel bat lekuz aldatzen denean. EHU EEH leku entry section 16 attests lekuz aldatu and temporal lekuz aldatzen garenean; Euskadi native grammar section 13.1 explains -ENEAN and singular gelditzen denean. Singular card changes location is the complete generic temporal predicate; this row inserts no separate copula or destination noun. Other directional fragments and live browser review remain open."
|
||||
},
|
||||
{
|
||||
"locale": "eu",
|
||||
"key": "r-checked",
|
||||
"value": "Markatzen denean",
|
||||
"reason": "Retain the checklist-item temporal action. Actual generic checklist row combines Kontrol-zerrendako elementu bat with this singular predicate and no extra copula. Native EHU employment portal instructions explicitly use desmarkatu for unchecking a default check; Euskadi procurement FAQ independently uses desmarkatu for a software option. Euskadi grammar section 13.1 supports singular -tzen denean temporal clauses. The checked/unchecked opposition remains distinct; specific named-item word order and live browser validation remain open."
|
||||
},
|
||||
{
|
||||
"locale": "eu",
|
||||
"key": "r-unchecked",
|
||||
"value": "Desmarkatzen denean",
|
||||
"reason": "Retain the checklist-item temporal action. Actual generic checklist row combines Kontrol-zerrendako elementu bat with this singular predicate and no extra copula. Native EHU employment portal instructions explicitly use desmarkatu for unchecking a default check; Euskadi procurement FAQ independently uses desmarkatu for a software option. Euskadi grammar section 13.1 supports singular -tzen denean temporal clauses. The checked/unchecked opposition remains distinct; specific named-item word order and live browser validation remain open."
|
||||
}
|
||||
]
|
||||
@@ -76,3 +76,16 @@ assert.match(genericMove, /r-when-a-card[\s\S]*?r-is-moved/);
|
||||
assert.doesNotMatch(genericMove, /ruleTriggerCopula|r-a-card|r-moved-to|r-moved-from/);
|
||||
assert.equal([eu['r-when-a-card'], eu['r-is-moved']].join(' '), 'Txartel bat lekuz aldatzen denean');
|
||||
assert.doesNotMatch(eu['r-is-moved'], /\bes\b|\bis\b/, 'retain native temporal predicate rather than Spanish or English');
|
||||
|
||||
const checklistTemplate = fs.readFileSync(path.join(root, 'client/components/rules/triggers/checklistTriggers.jade'), 'utf8');
|
||||
const itemTrigger = checklistTemplate.split("{{_'r-when-a-item'}}")[1].split('js-add-gen-check-item-trigger')[0];
|
||||
assert.match(itemTrigger, /option\(value="checked"\) \{\{_'r-checked'\}\}/);
|
||||
assert.match(itemTrigger, /option\(value="unchecked"\) \{\{_'r-unchecked'\}\}/);
|
||||
assert.doesNotMatch(itemTrigger, /ruleTriggerCopula/);
|
||||
assert.equal(eu['r-checked'], 'Markatzen denean');
|
||||
assert.equal(eu['r-unchecked'], 'Desmarkatzen denean');
|
||||
assert.notEqual(eu['r-checked'], eu['r-unchecked']);
|
||||
for (const key of ['r-checked', 'r-unchecked']) {
|
||||
assert.match(eu[key], /tzen denean$/);
|
||||
assert.doesNotMatch(eu[key], /Checked|Unchecked|marcado/, 'native action vocabulary preserved');
|
||||
}
|
||||
Reference in new issue
Block a user