Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Japanese Localization #245

Merged
merged 1 commit into from
Jan 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,11 @@ end

function DrawText3D(x, y, z, text)
SetTextScale(0.35, 0.35)
SetTextFont(4)
if GetConvar('qb_locale', 'en') == 'en' then
SetTextFont(4)
else
SetTextFont(1)
end
SetTextProportional(1)
SetTextColour(255, 255, 255, 215)
SetTextEntry("STRING")
Expand Down
50 changes: 50 additions & 0 deletions locales/ja.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
local Translations = {
notify = {
ydhk = 'この車両の鍵を持っていません',
nonear = '近くに鍵を渡せる人がいません',
vlock = '車両をロックした!',
vunlock = '車両のロックを解除した!',
vlockpick = 'ドアの鍵を開けるのに成功した!',
fvlockpick = '鍵が見つけられなかった。苛立ちを感じる',
vgkeys = '鍵を渡した',
vgetkeys = '車両の鍵を手に入れた!',
fpid = 'プレイヤーIDとプレートを引数に入力してください',
cjackfail = 'カージャックに失敗してしまった!',
vehclose = '近くに車両が無い!',
},
progress = {
takekeys = 'ボディから鍵を探す...',
hskeys = '車両の鍵を探している...',
acjack = 'カージャック中...',
},
info = {
skeys = '~g~[H]~w~ - 鍵を探す',
tlock = '車両のロックを切り替え',
palert = '車両盗難発生。 種類: ',
engine = 'エンジンスイッチ',
},
addcom = {
givekeys = '他のプレイヤーに鍵を渡します。IDを指定しなかった場合は近くに居る人か、車内にいる全員に渡します',
givekeys_id = 'id',
givekeys_id_help = 'プレイヤーID',
addkeys = '他人に渡すために車両のスペアキーを増やします',
addkeys_id = 'id',
addkeys_id_help = 'プレイヤーID',
addkeys_plate = 'plate',
addkeys_plate_help = 'プレート',
rkeys = '他人に渡すために作った車両のスペアキーを破棄します',
rkeys_id = 'id',
rkeys_id_help = 'プレイヤーID',
rkeys_plate = 'plate',
rkeys_plate_help = 'プレート',
}

}

if GetConvar('qb_locale', 'en') == 'ja' then
Lang = Locale:new({
phrases = Translations,
warnOnMissing = true,
fallbackLang = Lang,
})
end
Loading