Skip to content

Commit

Permalink
perf: improve localizable text
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Feb 19, 2023
1 parent fe3dec0 commit b918208
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions Easydict/Feature/Configuration/EZConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ - (void)setLanguageDetectOptimize:(EZLanguageDetectOptimize)languageDetectOptimi
[NSUserDefaults mm_write:@(languageDetectOptimizeType) forKey:kLanguageDetectOptimizeTypeKey];
}

- (void)
setShowGoogleQuickLink:(BOOL)showGoogleLink {
- (void)setShowGoogleQuickLink:(BOOL)showGoogleLink {
_showGoogleQuickLink = showGoogleLink;

[NSUserDefaults mm_write:@(showGoogleLink) forKey:kShowGoogleLinkKey];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ - (void)viewDidLoad {
[self setupUI];

self.leftMargin = 120;
self.rightMargin = 100;
self.rightMargin = 90;

[self updateViewSize];
}
Expand Down
2 changes: 1 addition & 1 deletion en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"show_mini_window" = "Show Mini Window:";
"check_update" = "Update:";
"auto_check_update" = "Auto Check App Update";
"show_query_icon" = "Query Icon:";
"show_query_icon" = "Show Query Icon:";
"auto_show_icon" = "Auto Show Query Icon (Experimental)";
"launch" = "Launch:";
"launch_at_startup" = "Launch at Startup";
Expand Down
8 changes: 4 additions & 4 deletions zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@

"check_update" = "更新:";
"auto_check_update" = "自动检查应用程序更新";
"show_query_icon" = "查询图标:";
"show_query_icon" = "显示查询图标:";
"auto_show_icon" = "划词后自动显示查询图标(实验功能)";
"launch" = "启动:";
"launch_at_startup" = "开机自启动";
"show_main_window" = "主窗口:";
"hide_main_window" = "启动后自动隐藏主窗口";
"hide_main_window" = "启动后隐藏主窗口";
"auto_snip_translate" = "截图 OCR 后自动翻译";
"play_audio" = "播放单词发音:";
"auto_play_audio" = "查询英语单词后自动播放发音";
Expand All @@ -67,13 +67,13 @@
"show_eudic_quick_link" = "显示欧路词典快捷图标(若有安装)";
"menu_bar_icon" = "菜单栏图标:";
"hide_menu_bar_icon" = "隐藏菜单栏图标";
"fixed_window_position" = "悬浮窗口位置:";
"fixed_window_position" = "侧悬浮窗口位置:";
"fixed_window_position_right" = "屏幕右侧";
"fixed_window_position_word" = "划词位置";
"fixed_window_position_former" = "上次位置";

"mini_window" = "迷你窗口";
"fixed_window" = "悬浮窗口";
"fixed_window" = "侧悬浮窗口";
"main_window" = "主窗口";

"about" = "关于";
Expand Down

0 comments on commit b918208

Please sign in to comment.