usage 0.6.0
新功能 2 項
介面自動說你的語言,五種語言隨系統切換
你的面板會自動變成你電腦的語言。usage 現在會偵測 macOS 系統語言,自動把整個介面切成繁體中文、簡體中文、英文、日文或韓文,不用設定——系統是什麼語言就顯示什麼。以前介面的狀態文字(像「✓ 已同步」)是硬寫死的中文,現在全改交給一套多語系系統(i18n,把同一套介面翻成多種語言、依系統自動切換的機制)統一管理,所以五種語言都顯示得出來。如果你是開發者,想強制測試某個語言,可以設環境變數(開程式之前預先塞給它的隱藏開關,一般使用者看不到)USAGE_LANG=ja 之類來釘住語言。就像一台跨國販賣機,以前只會講中文,現在進到哪一國就自動切那一國的語言顯示。
官方原文
**Multi-language UI (i18n)**: automatically detects the macOS system language and displays the interface in Traditional Chinese, Simplified Chinese, English, Japanese, or Korean. No configuration needed.
**USAGE_LANG environment variable**: force a specific language (e.g. USAGE_LANG=ja) for development and testing.
Removed hardcoded Chinese status strings (e.g. ✓ 已同步) from usage_client.py; all status text now goes through the i18n system.
開源授權改採 AGPL,改作發佈也須公開原始碼
如果你打算拿 usage 的原始碼去改、然後發佈出去,要注意授權變嚴了。授權從 MIT(幾乎隨你用的寬鬆條款)改成 AGPL-3.0(修改後發佈出去的版本必須同樣開源、把原始碼公開的條款)——目的是保護原作者,讓別人不能把改過的版本藏起來不還給社群。另外,面板底部現在會顯示一行小字「based on usage by lollapalooza」,標明出處。就像一份開放讓大家免費用的食譜,本來隨你改隨你賣,現在改成「你可以改、但端出去的菜也得公開你的配方」,而且盤子底下印著原廚師的名字。
官方原文
**License changed from MIT to AGPL-3.0**: modified versions that are distributed must be open-sourced.
**Attribution footer in popover**: based on usage by lollapalooza shown at the bottom of the panel.