Skip to content

Commit

Permalink
improve: Added descriptions to Settings - Storage.
Browse files Browse the repository at this point in the history
  • Loading branch information
awaLiny2333 committed Dec 4, 2024
1 parent 04efbd5 commit 84a5313
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions home/src/main/ets/blocks/meowAppSettings.ets
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ struct meowAppSettings {
linysTitleText({ text: $r('app.string.Settings_storage') }) // Storage Title

linysText({ text: $r('app.string.Settings_storage_clear_webview') })
linysText({ text: $r('app.string.Settings_storage_clear_webview_desc'), max_lines: 6 })

Row({ space: 10 }) {
linysTitleText({ text: "󰂼 " + add_units_to_size(this.web_cache_size) })
Expand Down
2 changes: 1 addition & 1 deletion home/src/main/ets/utils/storage_tools.ets
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,5 @@ export function add_units_to_size(size_in_bytes: number) {
result /= 1024;
unit += 1;
}
return result.toFixed(3) + units[unit];
return result.toFixed(3) + " " + units[unit];
}
4 changes: 4 additions & 0 deletions home/src/main/resources/base/element/string.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,10 @@
{
"name": "Settings_storage_clear_webview",
"value": "Clear all webview cache"
},
{
"name": "Settings_storage_clear_webview_desc",
"value": "The statistics shown below may (is usually) not up to date. A manual refresh by clicking \uDB80\uDCC8 may be essential if you wish a accurate figure."
}
]
}
4 changes: 4 additions & 0 deletions home/src/main/resources/en_US/element/string.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,10 @@
{
"name": "Settings_storage_clear_webview",
"value": "Clear all webview cache"
},
{
"name": "Settings_storage_clear_webview_desc",
"value": "The statistics shown below may (is usually) not up to date. A manual refresh by clicking \uDB80\uDCC8 may be essential if you wish a accurate figure."
}
]
}
4 changes: 4 additions & 0 deletions home/src/main/resources/zh_CN/element/string.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,10 @@
{
"name": "Settings_storage_clear_webview",
"value": "清理所有网页(Webview)的缓存"
},
{
"name": "Settings_storage_clear_webview_desc",
"value": "以下统计可能(往往)是过时的。如果你需要一个准确的信息,请点击 \uDB80\uDCC8 以刷新。"
}
]
}

0 comments on commit 84a5313

Please sign in to comment.