Skip to content

Commit

Permalink
Merge pull request #61 from hideki0403/develop
Browse files Browse the repository at this point in the history
release: v1.4.5
  • Loading branch information
hideki0403 authored Jul 12, 2022
2 parents 6c42d9b + 1d25c53 commit 3c4ad7a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion locales/ja.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5637,5 +5637,6 @@
"support us on %1 (there's perks!)": "%1で支援(特典もあるよ!)",
"check out our %1 with rad cookie shirts, hoodies and stickers": "イカすクッキーシャツやパーカー、ステッカーがある%1をチェック",
"Shop": "ショップ",
"disable your adblocker (if you want!)": "アドブロッカーの無効化(お任せするよ!)"
"disable your adblocker (if you want!)": "アドブロッカーの無効化(お任せするよ!)",
"refill": "回復"
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "better-japanese",
"version": "1.4.4",
"version": "1.4.5",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
10 changes: 9 additions & 1 deletion src/common/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,14 @@ const betterJapanese = {
betterJapanese.origins.tickerDraw()
}

// ミニゲームでの砂糖使用時に表示する確認ツールチップを翻訳
betterJapanese.origins.refillLump = Game.refillLump
eval('Game.refillLump=' + Game.refillLump.toString().replace('\'refill\'', 'loc(\'refill\')'))

// イースターのエッグ解放時に表示するツールチップのアップグレード名を翻訳
betterJapanese.origins.dropEgg = Game.DropEgg
eval('Game.DropEgg=' + Game.DropEgg.toString().replace(/(Game\.Notify\(loc\("You found an egg\!"\),'\<b\>'\+)drop(\+'\<\/b\>',Game\.Upgrades\[drop\]\.icon\);)/, '$1Game.Upgrades[drop].dname$2'))

// hookを削除
Game.removeHook('create', betterJapanese.initAfterLoad)
},
Expand Down Expand Up @@ -463,7 +471,7 @@ const betterJapanese = {
}

this.writeButton('toggleBJPButton', 'replaceJP', '日本語訳の改善', '日本語訳を非公式翻訳版に置き換えます。変更は再起動後に適用されます。', updateAll)
this.writeButton('toggleBJPButton', 'replaceNews', 'ニュース欄の改善', 'ニュース欄の挙動および翻訳を置き換えます。変更は再起動後に適用されます。', updateAll)
this.writeButton('toggleNewsButton', 'replaceNews', 'ニュース欄の改善', 'ニュース欄の挙動および翻訳を置き換えます。変更は再起動後に適用されます。', updateAll)
this.writeButton('openIgnoreWordList', null, '置き換え除外リスト', '非公式翻訳に置き換えたくない単語を指定することができます。', openPrompt)
this.writeButton('toggleNumberJPButton', 'numberJP', '日本語単位', '数の単位に日本語単位を用います。', updateAll)
this.writeButton('toggleShortFormatJPButton', 'shortFormatJP', '塵劫記単位', '数の単位に塵劫記の単位(阿僧祇~無量大数)を用います。', updateAll)
Expand Down

0 comments on commit 3c4ad7a

Please sign in to comment.