1
0
Fork 0

Merge pull request #3576 from atjn/counter-lang

counter: Support translations
master
thyttan 2024-09-22 08:28:32 +02:00 committed by GitHub
commit fe8e82faeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

@ -2,3 +2,4 @@
0.02: Added decrement and touch functions
0.03: Set color - ensures widgets don't end up coloring the counter's text
0.04: Adopted for BangleJS 2
0.05: Support translations

View File

@ -95,9 +95,9 @@ if (BANGLEJS2) {
g.clear(1).setFont("6x8");
g.setBgColor(g.theme.bg).setColor(g.theme.fg);
if (BANGLEJS2) {
g.drawString('Swipe up to increase\nSwipe down to decrease\nPress button to reset.', x, 100 + y);
g.drawString([/*LANG*/"Swipe up to increase", /*LANG*/"Swipe down to decrease", /*LANG*/"Press button to reset"].join("\n"), x, 100 + y);
} else {
g.drawString('Tap right or BTN1 to increase\nTap left or BTN3 to decrease\nPress BTN2 to reset.', x, 100 + y);
g.drawString([/*LANG*/"Tap right or BTN1 to increase", /*LANG*/"Tap left or BTN3 to decrease", /*LANG*/"Press BTN2 to reset"].join("\n"), x, 100 + y);
}
Bangle.loadWidgets();

View File

@ -1,7 +1,7 @@
{
"id": "counter",
"name": "Counter",
"version": "0.04",
"version": "0.05",
"description": "Simple counter",
"icon": "counter_icon.png",
"tags": "tool",