Skip to content

Commit

Permalink
Merge pull request #486 from ligenxxxx/Optimize-Chinese-translation
Browse files Browse the repository at this point in the history
Optimize chinese translation
  • Loading branch information
ligenxxxx authored Feb 11, 2025
2 parents f625725 + 7e7d899 commit 4c98c0c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions mkapp/app/language/zh_hans.ini
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ scroll to cancel = "转动滚轮取消"
Elements reset = "复位元素"
Pos-X = "X轴坐标"
Pos-Y = "Y轴坐标"
Element = "元素"

; ui_keyboard
Highlight Key = "切换键"
Expand Down
2 changes: 1 addition & 1 deletion src/lang/language.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "core/settings.h"

#define TRANSLATE_STRING_NUM 286
#define TRANSLATE_STRING_NUM 287
#define LANG_FOLDER "/mnt/app/language"

typedef enum {
Expand Down
7 changes: 5 additions & 2 deletions src/ui/page_wifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -860,13 +860,16 @@ static void page_wifi_on_roller(uint8_t key) {
* Common handling method of the three "apply settings" buttons.
*/
static void page_wifi_handle_apply_button(lv_obj_t *apply_button) {
uint8_t buf[256];
if (page_wifi.confirm_settings) {
lv_label_set_text(apply_button, "#FF0000 Updating WiFi...#");
snprintf(buf, sizeof(buf), "#FF0000 %s...#", _lang("Updating WiFi"));
lv_label_set_text(apply_button, buf);
page_wifi_apply_settings_timer = lv_timer_create(page_wifi_apply_settings_timer_cb, 1000, NULL);
lv_timer_set_repeat_count(page_wifi_apply_settings_timer, 1);
page_wifi.confirm_settings = 2;
} else {
lv_label_set_text(apply_button, "#FFFF00 Click to confirm or Scroll to cancel...#");
snprintf(buf, sizeof(buf), "#FFFF00 %s...#", _lang("Click to confirm or Scroll to cancel"));
lv_label_set_text(apply_button, buf);
page_wifi.confirm_settings = 1;
}
}
Expand Down

0 comments on commit 4c98c0c

Please sign in to comment.