├── screenshot.png ├── preferences.png ├── update.py ├── update.js ├── .github └── FUNDING.yml └── README.md /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rogeraabbccdd/GitKraken-zh-tw/HEAD/screenshot.png -------------------------------------------------------------------------------- /preferences.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rogeraabbccdd/GitKraken-zh-tw/HEAD/preferences.png -------------------------------------------------------------------------------- /update.py: -------------------------------------------------------------------------------- 1 | """ 2 | Soruce From EvanHsieh0415 3 | https://github.com/EvanHsieh0415 4 | """ 5 | 6 | from json import load, dump 7 | 8 | with open('./strings.en.json', encoding='utf8') as enJSON, open('./strings.json', encoding='utf8') as zhJSON: 9 | data = load(enJSON) | load(zhJSON) 10 | 11 | with open('./strings.json', 'w', encoding='utf8') as JSON: 12 | dump(data, JSON, indent=4, ensure_ascii=False) 13 | -------------------------------------------------------------------------------- /update.js: -------------------------------------------------------------------------------- 1 | const enJSON = require('./strings.en.json') 2 | const twJSON = require('./strings.json') 3 | const fs = require('fs') 4 | 5 | for(let key1st in enJSON) { 6 | for(let key2nd in enJSON[key1st]) { 7 | if(twJSON[key1st][key2nd]) enJSON[key1st][key2nd] = twJSON[key1st][key2nd] 8 | } 9 | } 10 | 11 | const output = JSON.stringify(enJSON, null, 2) 12 | 13 | fs.writeFile('./strings.json', output, 'utf8', () => { 14 | console.log('finished') 15 | }) 16 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: https://www.paypal.me/kento520 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # GitKraken 正體中文 (台灣) 翻譯 2 | 3 | [GitKraken](https://www.gitkraken.com/) 正體中文 (台灣) 翻譯補丁 4 | 目前以緩慢速度翻譯中,9.3.0 除部分 Npm 與 Yarn 指令說明外其他皆翻譯完畢 5 | **近期專案繁忙,暫停更新中,歡迎發送 Pull Request 協助翻譯** 6 | 7 | ![screenshot](./screenshot.png) 8 | 9 | ## 使用方法 10 | - 目前支援版本: 9.3.0 11 | - 至 [Release](https://github.com/rogeraabbccdd/GitKraken-zh-tw/releases) 下載 `strings.json` 12 | - 取代檔案 13 | - Windows: `%LOCALAPPDATA%\gitkraken\app-9.3.0\resources\app.asar.unpacked\src\strings.json` 14 | - Mac: `/Applications/GitKraken.app/Contents/Resources/app.asar.unpacked/src/strings.json` 15 | - Linux: `/usr/share/gitkraken/resources/app.asar.unpacked/src` 16 | - 重新開啟 GitKraken 後,至 Preference -> UI Customization -> Language 切換語言 17 | ![screenshot](./preferences.png) 18 | 19 | ## 更新翻譯檔格式 20 | 當新版本 GitKraken 發佈時,請使用 `update.js` 將翻譯檔更新為新版本的格式,避免使用時出現問題 21 | - 安裝 [Node.js](https://nodejs.org/en/) 22 | - 下載 `update.js` 到翻譯檔資料夾 23 | - 將新版的英文 `strings.json` 重新命名為 `strings.en.json` 24 | - 將未更新的中文翻譯檔 `strings.json` 放入資料夾 25 | - 用終端機開啟翻譯檔資料夾,執行 `node update.js` 26 | 27 | ## 翻譯參考 28 | - [VSCode 繁體中文語言包](https://github.com/microsoft/vscode-loc/tree/master/i18n/vscode-language-pack-zh-hant) 29 | - [k-skye 的 gitkraken-chinese](https://github.com/k-skye/gitkraken-chinese) 30 | - [gitg 繁體中文 (台灣) 翻譯](https://gitlab.gnome.org/GNOME/gitg/-/blob/master/po/zh_TW.po) 31 | - [《Pro Git》第二版中文文件翻譯對照表與規範](https://gist.github.com/fntsrlike/cf1e96d60b6f34fab725599b06dfcb2a) 32 | --------------------------------------------------------------------------------