Skip to content

Commit cd89043

Browse files
committed
initial commit
1 parent e5db5e1 commit cd89043

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2406
-0
lines changed

.gitignore

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
### WINDOWS
2+
3+
# Windows image file caches
4+
Thumbs.db
5+
ehthumbs.db
6+
7+
# Folder config file
8+
Desktop.ini
9+
10+
# Recycle Bin used on file shares
11+
$RECYCLE.BIN/
12+
13+
# Windows Installer files
14+
*.cab
15+
*.msi
16+
*.msm
17+
*.msp
18+
19+
# Windows shortcuts
20+
*.lnk
21+
22+
23+
### OSX
24+
25+
.DS_Store
26+
.AppleDouble
27+
.LSOverride
28+
29+
# Icon must end with two \r
30+
Icon
31+
32+
33+
# Thumbnails
34+
._*
35+
36+
# Files that might appear in the root of a volume
37+
.DocumentRevisions-V100
38+
.fseventsd
39+
.Spotlight-V100
40+
.TemporaryItems
41+
.Trashes
42+
.VolumeIcon.icns
43+
44+
# Directories potentially created on remote AFP share
45+
.AppleDB
46+
.AppleDesktop
47+
Network Trash Folder
48+
Temporary Items
49+
.apdisk
50+
51+
# OpenWeather api key
52+
openweather_api.key

README.MD

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
This watchface is an adaptation of Simple Weather for Pebble by Evandro Muller.
2+
It uses OpenWeather as weather service and the icon are from the Oxygen project (https://techbase.kde.org/Projects/Oxygen) under LGPLv3 licence.
3+
Weather is updated every half hour.
4+
Tap to switch form steps to heart rate, calories and floors.
5+
6+
No configuration. It uses your system settings.
7+
8+
Feel free to contribute or open an issue on github : https://github.com/lemnet/SimpleWeather/

README_FR.MD

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Cette watchface est une adaptation de Simple Weather pour Pebble par Evandro Muller.
2+
Elle utilise OpenWeather pour la météo and les icônes viennent du projet Oxygen (https://techbase.kde.org/Projects/Oxygen) sous licence LGPLv3.
3+
La météo est mise à jour toutes les demies heures.
4+
Taper to passer des pas au rythme cardiaque, aux calories, et aux étages.
5+
6+
Pas de configuration. Elle utilise vos paramètres systèmes.
7+
8+
N'hésitez pas à contribuer ou ouvrir un ticket sur github : https://github.com/lemnet/SimpleWeather/

app/date.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { locale } from "user-settings";
2+
import { gettext } from "i18n";
3+
4+
export function getDate(date) {
5+
const monthNum = date.getMonth();
6+
const monthName = gettext(`month_short_${monthNum}`);
7+
const weekdayNum = date.getDay();
8+
const dayName = gettext(`day_short_${weekdayNum}`);
9+
const dayMonthSeparator = gettext("day_month_separator");
10+
11+
switch (locale.language) {
12+
case "zh-cn":
13+
// 2月7日周二 = Month_Date_Weekday
14+
return `${monthName}${dayMonthSeparator}${date.getDate()}${dayName}`;
15+
case "ja-jp":
16+
// 8月3日(木)= Month_Date (Weekday)
17+
return `${monthName}${dayMonthSeparator}${date.getDate()} (${dayName})`;
18+
case "ko-kr":
19+
// 2/7 (목) = Month/date (day)
20+
return `${date.getMonth()+1}${dayMonthSeparator}${date.getDate()} (${dayName})`;
21+
case "en-us":
22+
case "en-ca":
23+
case "es-pa":
24+
case "es-pr":
25+
case "en-se":
26+
// Thu, Feb 7
27+
return `${dayName}${dayMonthSeparator} ${monthName} ${date.getDate()}`;
28+
default:
29+
// Thu, 7 Feb
30+
return `${dayName}${dayMonthSeparator} ${date.getDate()} ${monthName}`;
31+
}
32+
}

app/i18n/de-DE.po

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
msgid "Active Minutes"
2+
msgstr "Aktive Minuten"
3+
4+
msgid "Activity"
5+
msgstr "Aktivität"
6+
7+
msgid "calorie"
8+
msgstr "KCAL"
9+
10+
msgid "Calorie count"
11+
msgstr "Kalorienverbrauch"
12+
13+
msgid "Calories burned"
14+
msgstr "Verbrannte Kalorien"
15+
16+
msgid "challenge"
17+
msgstr "Wettkampf"
18+
19+
msgid "Clock + Display"
20+
msgstr "Uhr + Display"
21+
22+
msgid "clock face"
23+
msgstr "Uhranzeige"
24+
25+
msgid "daily goal"
26+
msgstr "Tagesziel"
27+
28+
msgid "daily stats"
29+
msgstr "Tagesstatistiken"
30+
31+
msgid "daily target"
32+
msgstr "Tagesziel"
33+
34+
msgid "Distance"
35+
msgstr "Strecke"
36+
37+
msgid "exercise mode"
38+
msgstr "Aktivitätsmodus"
39+
40+
msgid "exercise tracking"
41+
msgstr "Tracken deines Trainings"
42+
43+
msgid "Floors"
44+
msgstr "Stockwerke"
45+
46+
msgid "Floors climbed"
47+
msgstr "Etagen"
48+
49+
msgid "Get more steps!"
50+
msgstr "Sammle mehr Schritte!"
51+
52+
msgid "Goal"
53+
msgstr "Ziel"
54+
55+
msgid "Heart rate"
56+
msgstr "Herzfrequenz"
57+
58+
msgid "Resting Heart Rate"
59+
msgstr "Ruheherzfrequenz"
60+
61+
msgid "stats"
62+
msgstr "Statistiken"
63+
64+
msgid "Steps"
65+
msgstr "Schritte"
66+
67+
msgid "day_month_separator"
68+
msgstr ""
69+
70+
msgid "month_short_0"
71+
msgstr "Jan"
72+
73+
msgid "month_short_1"
74+
msgstr "Feb"
75+
76+
msgid "month_short_2"
77+
msgstr "Mrz"
78+
79+
msgid "month_short_3"
80+
msgstr "Apr"
81+
82+
msgid "month_short_4"
83+
msgstr "Mai"
84+
85+
msgid "month_short_5"
86+
msgstr "Jun"
87+
88+
msgid "month_short_6"
89+
msgstr "Jul"
90+
91+
msgid "month_short_7"
92+
msgstr "Aug"
93+
94+
msgid "month_short_8"
95+
msgstr "Sep"
96+
97+
msgid "month_short_9"
98+
msgstr "Okt"
99+
100+
msgid "month_short_10"
101+
msgstr "Nov"
102+
103+
msgid "month_short_11"
104+
msgstr "Dez"
105+
106+
msgid "month_long_0"
107+
msgstr "Januar"
108+
109+
msgid "month_long_1"
110+
msgstr "Februar"
111+
112+
msgid "month_long_2"
113+
msgstr "März"
114+
115+
msgid "month_long_3"
116+
msgstr "April"
117+
118+
msgid "month_long_4"
119+
msgstr "Mai"
120+
121+
msgid "month_long_5"
122+
msgstr "Juni"
123+
124+
msgid "month_long_6"
125+
msgstr "Juli"
126+
127+
msgid "month_long_7"
128+
msgstr "August"
129+
130+
msgid "month_long_8"
131+
msgstr "September"
132+
133+
msgid "month_long_9"
134+
msgstr "Oktober"
135+
136+
msgid "month_long_10"
137+
msgstr "November"
138+
139+
msgid "month_long_11"
140+
msgstr "December"
141+
142+
msgid "day_short_0"
143+
msgstr "So"
144+
145+
msgid "day_short_1"
146+
msgstr "Mo"
147+
148+
msgid "day_short_2"
149+
msgstr "Di"
150+
151+
msgid "day_short_3"
152+
msgstr "Mi"
153+
154+
msgid "day_short_4"
155+
msgstr "Do"
156+
157+
msgid "day_short_5"
158+
msgstr "Fr"
159+
160+
msgid "day_short_6"
161+
msgstr "Sa"
162+

0 commit comments

Comments
 (0)