mirror of
https://github.com/gittrahan/support-fins.git
synced 2026-10-19 02:10:52 -05:00
ui: the amber small-overhang card shows again -- the German localization (#184) built its English and German text but never set it, so the card was blank on every part with slivers; one tn() with the German in de.js
This commit is contained in:
1 parent
708b2dfac9
commit
b3900fc2b3
2 files changed
+8
-8
No files matched your search
@@ -215,6 +215,10 @@ export default {
|
|||||||
"{n} region": { one: "{n} Bereich", other: "{n} Bereiche" },
|
"{n} region": { one: "{n} Bereich", other: "{n} Bereiche" },
|
||||||
"{n} slivers": { one: "{n} Splitter", other: "{n} Splitter" },
|
"{n} slivers": { one: "{n} Splitter", other: "{n} Splitter" },
|
||||||
"{n} sliver": { one: "{n} Splitter", other: "{n} Splitter" },
|
"{n} sliver": { one: "{n} Splitter", other: "{n} Splitter" },
|
||||||
|
"⚠ {n} overhangs shaded amber are too small for a fin (under {area} mm² each), so they print unsupported this way up and may come out rough. Try Suggest orientation to point them up.": {
|
||||||
|
one: "⚠ {n} Überhang in Bernstein ist zu klein für eine Finne (unter {area} mm²), wird daher in dieser Lage stützenlos gedruckt und kann rau werden. Versuchen Sie „Ausrichtung vorschlagen“, um ihn nach oben zu drehen.",
|
||||||
|
other: "⚠ {n} Überhänge in Bernstein sind zu klein für eine Finne (unter {area} mm²), werden daher in dieser Lage stützenlos gedruckt und können rau werden. Versuchen Sie „Ausrichtung vorschlagen“, um sie nach oben zu drehen.",
|
||||||
|
},
|
||||||
"{n} rough holes": { one: "{n} Restüberhang", other: "{n} Restüberhänge" },
|
"{n} rough holes": { one: "{n} Restüberhang", other: "{n} Restüberhänge" },
|
||||||
"{n} rough hole": { one: "{n} Restüberhang", other: "{n} Restüberhänge" },
|
"{n} rough hole": { one: "{n} Restüberhang", other: "{n} Restüberhänge" },
|
||||||
|
|
||||||
|
|||||||
+4
-8
@@ -224,14 +224,10 @@ export function paintOverhangs(res = lastResult) {
|
|||||||
// card; the sliver count in the readout above stays.
|
// card; the sliver count in the readout above stays.
|
||||||
const warn = el('over-warn');
|
const warn = el('over-warn');
|
||||||
if (dropped > 0 && highlightSmall) {
|
if (dropped > 0 && highlightSmall) {
|
||||||
const one = dropped === 1;
|
warn.textContent = tn(
|
||||||
const deText = `⚠ ${dropped} ${one ? 'Überhang' : 'Überhänge'} in Bernstein ${one ? 'ist' : 'sind'} `
|
'⚠ {n} overhang shaded amber is too small for a fin (under {area} mm² each), so it prints unsupported this way up and may come out rough. Try Suggest orientation to point it up.',
|
||||||
+ `zu klein für eine Finne (unter ${MIN_REGION_AREA} mm²), ${one ? 'wird' : 'werden'} daher in dieser Lage stützenlos `
|
'⚠ {n} overhangs shaded amber are too small for a fin (under {area} mm² each), so they print unsupported this way up and may come out rough. Try Suggest orientation to point them up.',
|
||||||
+ `gedruckt und können rau werden. Versuchen Sie „Ausrichtung vorschlagen“, um sie nach oben zu drehen.`;
|
dropped, { area: MIN_REGION_AREA });
|
||||||
const enText = `⚠ ${dropped} overhang${one ? '' : 's'} shaded amber ${one ? 'is' : 'are'} `
|
|
||||||
+ `too small for a fin (under ${MIN_REGION_AREA} mm² each), so ${one ? 'it prints' : 'they print'} `
|
|
||||||
+ `unsupported this way up and may come out rough. Try Suggest orientation to point `
|
|
||||||
+ `${one ? 'it' : 'them'} up.`;
|
|
||||||
} else {
|
} else {
|
||||||
warn.textContent = '';
|
warn.textContent = '';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user