Skip to content

Commit

Permalink
add ZH_TW
Browse files Browse the repository at this point in the history
  • Loading branch information
vitotai committed Apr 24, 2019
1 parent 9580c0a commit 134ae09
Show file tree
Hide file tree
Showing 41 changed files with 32,103 additions and 22,956 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ You will need to run the hardware setup procedure after upgrading to v2.4 from p
The log format before v2.0 is vulnerable. There seems to be some unconsidered conditions that break the log.

## Version History
* v3.5.1
* fixed iSpindel temperature unit issue
* update new OLED library(not verified)
* The version number is still "3.5"

* v3.5
* MQTT Remote Control
* Pressure transducer support
Expand Down
2 changes: 2 additions & 0 deletions bins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ NOTE: The images with **newui** use different flash layout(4m2m) which has 2m fi
* Online update might not work on changing between those two layout. Flashing by USB is recommended.
* File system will be reformted after changing. All settings will be gone

NOTE: Due to the size increase of latest framework, all images will use 2m file space after version 3.6. The last version for 4m1m and SONOFF is v3.5.1.

Those images are prebuilt:
## Default Configuration
* The Pins are defined as the main page.
Expand Down
24 changes: 22 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
; http://docs.platformio.org/page/projectconf.html

[platformio]
env_default = newui-oled
#env_default = newui-oled

#env_default = classic, classic-spanish, classic-portuguese-br, classic-slovak, newui, newui-spanish, newui-portuguese-br, newui-slovak, newui-oled, thorrax, sonoff, sonoffota, sonoff-esp8285, sonoffota-esp8285 , thorrax-classic
env_default = classic, classic-spanish, classic-portuguese-br, classic-slovak, classic-tw, newui, newui-tw, newui-spanish, newui-portuguese-br, newui-slovak, newui-oled, thorrax, sonoff, sonoffota, sonoff-esp8285, sonoffota-esp8285 , thorrax-classic

[common_env_data]
lib_deps_external =
Expand Down Expand Up @@ -74,6 +74,16 @@ build_flags = -Wl,-Tesp8266.flash.4m.ld -DUseClassicFrontEnd=true

lib_deps = ${common_env_data.lib_deps_external}

[env:classic-tw]
platform = espressif8266@~1.8.0
board = nodemcuv2
framework = arduino
lib_extra_dirs = ./lib_async
build_flags = -Wl,-Tesp8266.flash.4m.ld -DUseClassicFrontEnd=true
-DWebPageLanguage=chinese

lib_deps = ${common_env_data.lib_deps_external}


[env:newui]
;not yet working
Expand Down Expand Up @@ -117,6 +127,16 @@ build_flags = -Wl,-Tesp8266.flash.4m2m.ld

lib_deps = ${common_env_data.lib_deps_external}

[env:newui-tw]
platform = espressif8266@~1.8.0
board = nodemcuv2
framework = arduino
lib_extra_dirs = ./lib_async
build_flags = -Wl,-Tesp8266.flash.4m2m.ld
-DWebPageLanguage=chinese

lib_deps = ${common_env_data.lib_deps_external}


[env:newui-oled]
platform = espressif8266@~1.8.0
Expand Down
348 changes: 348 additions & 0 deletions src/data/chinese_c_config_htm.h

Large diffs are not rendered by default.

107 changes: 107 additions & 0 deletions src/data/chinese_c_gdc_htm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
const unsigned char data_c_gdc_htm_gz[] PROGMEM = {
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0x8d, 0x56,
0x6d, 0x6f, 0xdb, 0x54, 0x14, 0xfe, 0x2b, 0xb7, 0x17, 0xa9, 0xb2, 0x89,
0xe3, 0x24, 0xdb, 0x90, 0x20, 0xc9, 0x4d, 0xd9, 0x4a, 0xa1, 0x9b, 0xba,
0xb6, 0x5b, 0x2a, 0x04, 0x6a, 0x03, 0xba, 0xb5, 0x4f, 0x12, 0x6f, 0xce,
0xb5, 0xb1, 0xaf, 0xd3, 0x76, 0x5d, 0x24, 0x5e, 0x86, 0x36, 0x21, 0xba,
0xf1, 0xa1, 0xeb, 0x60, 0x20, 0xbe, 0x80, 0xd0, 0x26, 0x58, 0xc7, 0x80,
0x0f, 0x68, 0xac, 0xf4, 0xcf, 0x34, 0xe9, 0xfa, 0x89, 0xbf, 0xc0, 0xb9,
0xb6, 0xf3, 0x82, 0x96, 0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, 0xfd, 0x02, 0xe7, 0xc7, 0xf8, 0x9c, 0x61, 0xb4,
0xda, 0x72, 0xfa, 0x59, 0x93, 0x7b, 0xfc, 0x00, 0xe1, 0x44, 0xbb, 0xca,
0x68, 0xfa, 0xc1, 0x4c, 0x26, 0xb5, 0x31, 0x51, 0xa0, 0xa3, 0xc5, 0xe5,
0xd2, 0x3e, 0xcb, 0xa9, 0x5e, 0xc4, 0x8b, 0x6a, 0x54, 0xd5, 0xb5, 0xea,
0x77, 0xda, 0xbf, 0x70, 0x6e, 0x6c, 0x4a, 0xb7, 0x09, 0x00, 0x00
};
unsigned int dist_chinese_classic_gdc_htm_gz_len = 1247;
Loading

0 comments on commit 134ae09

Please sign in to comment.