Skip to content

Commit c2f7629

Browse files
authored
Merge pull request #422 from KipK/i18n
I18n
2 parents 5de0d3c + 1aa4182 commit c2f7629

21 files changed

+5294
-4016
lines changed

models/Config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ x-examples:
2828
- https
2929
ssid: wibble_ext
3030
pass: _DUMMY_PASSWORD
31+
lang: en
3132
www_username: ''
3233
www_password: ''
3334
hostname: openevse-a7d4

src/app_config.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
String esid;
2525
String epass;
2626

27+
// Language
28+
String lang;
29+
2730
// Web server authentication (leave blank for none)
2831
String www_username;
2932
String www_password;
@@ -110,6 +113,9 @@ ConfigOpt *opts[] =
110113
new ConfigOptDefenition<String>(esid, "", "ssid", "ws"),
111114
new ConfigOptSecret(epass, "", "pass", "wp"),
112115

116+
// Language String
117+
new ConfigOptDefenition<String>(lang, "", "lang", "lan"),
118+
113119
// Web server authentication (leave blank for none)
114120
new ConfigOptDefenition<String>(www_username, "", "www_username", "au"),
115121
new ConfigOptSecret(www_password, "", "www_password", "ap"),

src/app_config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
extern String esid;
1717
extern String epass;
1818

19+
// Language
20+
extern String lang;
21+
1922
// Web server authentication (leave blank for none)
2023
extern String www_username;
2124
extern String www_password;

src/web_static/web_server.home.html.gz.h

Lines changed: 828 additions & 717 deletions
Large diffs are not rendered by default.

src/web_static/web_server.home.js.gz.h

Lines changed: 826 additions & 820 deletions
Large diffs are not rendered by default.

src/web_static/web_server.jquery.js.gz.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
static const char CONTENT_JQUERY_JS_GZ[] PROGMEM = {
2-
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x03, 0xbc, 0xbd, 0xfb, 0x76, 0xdb, 0x46,
2+
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0a, 0xbc, 0xbd, 0xfb, 0x76, 0xdb, 0x46,
33
0xb2, 0x37, 0xfa, 0xff, 0x79, 0x0a, 0x13, 0x93, 0xad, 0x01, 0xcc, 0x16, 0x25, 0x39, 0x93, 0x7c,
44
0xdf, 0x80, 0x86, 0xb9, 0x1c, 0xdb, 0x49, 0x3c, 0x93, 0x8b, 0x13, 0x3b, 0x93, 0x64, 0x28, 0x26,
55
0x0b, 0x22, 0x5b, 0x12, 0x12, 0x0a, 0x60, 0x00, 0x50, 0x97, 0x88, 0x9c, 0x37, 0x3b, 0xeb, 0x3c,
@@ -1935,4 +1935,4 @@ static const char CONTENT_JQUERY_JS_GZ[] PROGMEM = {
19351935
0xb3, 0xc5, 0x27, 0xd9, 0x3f, 0x5a, 0x46, 0x66, 0x31, 0x65, 0xd9, 0x27, 0xfa, 0xf6, 0x3f, 0x88,
19361936
0x48, 0xb2, 0x77, 0x04, 0x54, 0xeb, 0x3f, 0xc4, 0xfb, 0xf7, 0x78, 0x4e, 0x75, 0xfa, 0x3f, 0xa6,
19371937
0x58, 0x12, 0xc8, 0x6c, 0x5f, 0x01, 0x00, 0x00 };
1938-
static const char CONTENT_JQUERY_JS_GZ_ETAG[] PROGMEM = "0a3dd4a124716726607dae709fbc2c3b19e9cc941168e1e6a655eca656a687b7";
1938+
static const char CONTENT_JQUERY_JS_GZ_ETAG[] PROGMEM = "1801045e099d748b05b1dee853f93c7bf901e60767683acf45f52cb32031ae66";

src/web_static/web_server.lib.js.gz.h

Lines changed: 2717 additions & 2024 deletions
Large diffs are not rendered by default.

src/web_static/web_server.localisation.js.gz.h

Lines changed: 454 additions & 0 deletions
Large diffs are not rendered by default.

src/web_static/web_server.style.css.gz.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
static const char CONTENT_STYLE_CSS_GZ[] PROGMEM = {
2-
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x03, 0xbd, 0x18, 0x5b, 0x8f, 0xab, 0xb8,
2+
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0a, 0xbd, 0x18, 0x5b, 0x8f, 0xab, 0xb8,
33
0xf9, 0xaf, 0xd0, 0x19, 0xad, 0x74, 0x46, 0x27, 0x20, 0x20, 0x24, 0x99, 0x80, 0x5a, 0xb5, 0xfb,
44
0xb2, 0x7d, 0x68, 0x9f, 0xfa, 0x52, 0xa9, 0x5a, 0x55, 0x0e, 0x98, 0xe0, 0x1d, 0xc0, 0xd4, 0x98,
55
0xc9, 0xcc, 0x41, 0xfc, 0xf7, 0x7e, 0xbe, 0x00, 0x36, 0x90, 0x39, 0x67, 0x8f, 0x76, 0x57, 0x51,
@@ -129,4 +129,4 @@ static const char CONTENT_STYLE_CSS_GZ[] PROGMEM = {
129129
0x23, 0xbb, 0x4c, 0xbb, 0x11, 0x36, 0xb5, 0x30, 0xc6, 0xb0, 0x91, 0x43, 0x65, 0xe7, 0x65, 0xb3,
130130
0x57, 0xd1, 0x2f, 0xae, 0xdc, 0xd1, 0xac, 0xfd, 0x1e, 0x24, 0xff, 0x0f, 0xee, 0x1a, 0xbe, 0x4c,
131131
0xb1, 0x1b, 0x00, 0x00, 0x00 };
132-
static const char CONTENT_STYLE_CSS_GZ_ETAG[] PROGMEM = "9bed8df33b25bd618e06b40608e6b736793be0a23246be9483b92fadc57af43c";
132+
static const char CONTENT_STYLE_CSS_GZ_ETAG[] PROGMEM = "de9f78eb72a5c4f9fa349129f1b38e48f7f2dc75715ea5be39661befb1c821ff";

0 commit comments

Comments
 (0)