From 1ce1eb51d45ff48515b8ef6a568303cb6602aca2 Mon Sep 17 00:00:00 2001 From: korikisulda Date: Wed, 10 Dec 2014 01:48:45 +0000 Subject: [PATCH] Add Japanese translation --- .../factions/cmd/CmdDeinvite.java | 2 +- .../massivecraft/factions/cmd/CmdVersion.java | 3 + .../massivecraft/factions/zcore/util/TL.java | 26 +- src/main/resources/lang/ja_JP.yml | 434 ++++++++++++++++++ 4 files changed, 459 insertions(+), 6 deletions(-) create mode 100644 src/main/resources/lang/ja_JP.yml diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdDeinvite.java b/src/main/java/com/massivecraft/factions/cmd/CmdDeinvite.java index 4bf05fa7..9628a75f 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdDeinvite.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdDeinvite.java @@ -36,7 +36,7 @@ public class CmdDeinvite extends FCommand { for (String id : myFaction.getInvites()) { FPlayer fp = FPlayers.getInstance().getById(id); String name = fp != null ? fp.getName() : id; - msg.then(name + " ").color(ChatColor.WHITE).tooltip(TL.COMMAND_DEINVITE_CLICKTODEINVITE.toString() + name).command("f deinvite " + name); + msg.then(name + " ").color(ChatColor.WHITE).tooltip(TL.COMMAND_DEINVITE_CLICKTODEINVITE.format(name)).command("f deinvite " + name); } sendFancyMessage(msg); return; diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdVersion.java b/src/main/java/com/massivecraft/factions/cmd/CmdVersion.java index 9f5463cb..e7713140 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdVersion.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdVersion.java @@ -25,5 +25,8 @@ public class CmdVersion extends FCommand { @Override public void perform() { msg(TL.COMMAND_VERSION_VERSION,P.p.getDescription().getFullName()); + msg(TL.GENERIC_TRANSLATION_VERSION,TL._LOCALE,TL._LOCAL_LANGUAGE,TL._LOCAL_REGION,TL._LOCAL_STATE); + msg(TL.GENERIC_TRANSLATION_CONTRIBUTORS,TL._LOCAL_AUTHOR); + msg(TL.GENERIC_TRANSLATION_RESPONSIBLE,TL._LOCAL_RESPONSIBLE); } } diff --git a/src/main/java/com/massivecraft/factions/zcore/util/TL.java b/src/main/java/com/massivecraft/factions/zcore/util/TL.java index db7356c3..1b56ef5a 100644 --- a/src/main/java/com/massivecraft/factions/zcore/util/TL.java +++ b/src/main/java/com/massivecraft/factions/zcore/util/TL.java @@ -28,10 +28,22 @@ public enum TL { * Translation meta */ _AUTHOR("misc"), + _RESPONSIBLE("misc"), _LANGUAGE("English"), _ENCODING("UTF-8"), + _LOCALE("en_US"), _REQUIRESUNICODE("false"), _DEFAULT("true"), + _STATE("complete"), //incomplete, limited, partial, majority, complete + /** + * Localised translation meta + */ + _LOCAL_AUTHOR("misc"), + _LOCAL_RESPONSIBLE("misc"), + _LOCAL_LANGUAGE("English"), + _LOCAL_REGION("US"), + _LOCAL_STATE("complete"), //And this is the English version. It's not ever going to be not complete. + /** * Command translations */ @@ -110,7 +122,7 @@ public enum TL { COMMAND_CREATE_CREATED_LOG(" created a new faction: "), COMMAND_DEINVITE_CANDEINVITE("Players you can deinvite: "), - COMMAND_DEINVITE_CLICKTODEINVITE("Click to revoke invite for "), + COMMAND_DEINVITE_CLICKTODEINVITE("Click to revoke invite for %s"), COMMAND_DEINVITE_ALREADYMEMBER("%s is already a member of %s"), COMMAND_DEINVITE_MIGHTWANT("You might want to: %s"), COMMAND_DEINVITE_REVOKED("%s revoked your invitation to %s."), @@ -405,13 +417,17 @@ public enum TL { /** * More generic translations, which will apply to more than one class. */ - GENERIC_SERVERADMIN("generic.serveradmin","A server admin"), - GENERIC_DISABLED("generic.disabled","disabled"), - GENERIC_ENABLED("generic.enabled","enabled"), - GENERIC_CONSOLEONLY("generic.consoleonly","This command cannot be run as a player."), + GENERIC_SERVERADMIN("A server admin"), + GENERIC_DISABLED("disabled"), + GENERIC_ENABLED("enabled"), + GENERIC_CONSOLEONLY("This command cannot be run as a player."), GENERIC_ASKYOURLEADER(" Ask your leader to:"), GENERIC_YOUSHOULD("You should:"), GENERIC_YOUMAYWANT("You may want to: "), + GENERIC_TRANSLATION_VERSION("Translation: %s(%s,%s) State: %s"), + GENERIC_TRANSLATION_CONTRIBUTORS("Translation contributors: %s"), + GENERIC_TRANSLATION_RESPONSIBLE("Responsible for translation: %s"), + /** * Relations */ diff --git a/src/main/resources/lang/ja_JP.yml b/src/main/resources/lang/ja_JP.yml new file mode 100644 index 00000000..2b837800 --- /dev/null +++ b/src/main/resources/lang/ja_JP.yml @@ -0,0 +1,434 @@ +# FactionsUUID「党派・一意な利用者識別子」言語ファイル +# &為に色コード使用 +# 愛で造った〜♥ + +root: + AUTHOR: Korikisulda + RESPONSIBLE: Korikisulda + LANGUAGE: Japanese + ENCODING: UTF-8 + LOCALE: ja_JP + REQUIRESUNICODE: 'true' + DEFAULT: 'false' + STATE: partial + LOCAL: + AUTHOR: エヴェリン雪「korikisulda」 + RESPONSIBLE: 'エヴェリン雪・ツイッター、IRC:「korikisulda」' + LANGUAGE: 日本語 + REGION: 日本 + STATE: 不全 +COMMAND: + ADMIN: + NOTMEMBER: '%sは党派の員になっていませんよ・' + NOTADMIN: アドミンではありません・ + TARGETSELF: 自分はターゲットになれません・ + DEMOTES: 党派アドミンから%sをデモートしました・ + DEMOTED: 党派アドミンから%sはデモートしました・. + PROMOTES: 党派アドミンに%sをプロモートしました + PROMOTED: '%sは%sを%sの党派アドミンにあげりました・' + AUTOCLAIM: + ENABLED: %s為にオート引取っています・ + DISABLED: オート引取っていません・ + REQUIREDRANK: %sになりません・ + OTHERFACTION: %s為に引取れません・. + AUTOHELP: + HELPFOR: ヘルプ・コマンド" + BOOM: + PEACEFULONLY: 安らかじゃない党派は爆発トグルが禁止です・ + TOTOGGLE: 爆発トグルし + FORTOGGLE: 爆発トグルした + ENABLED: '%s は爆発を%sしました' + BYPASS: + ENABLE: アドミンバイパスモードで入っています + ENABLELOG: はアドミンバイパスモードで入っています + DISABLE: アドミンバイパスモードで出た + DISABLELOG: はアドミンバイパスモードで出た + CHAT: + DISABLED: 党派チャットは禁止されました・ + INVALIDMODE: 不正なチャットモード・a,fかpと入力して下さい・ + MODE: + PUBLIC: 只公開チャットモード + ALLIANCE: 只連盟チャットモード + FACTION: 只党派チャットモード + CHATSPY: + ENABLE: チャットスパイモードで入ってします + ENABLELOG: はチャットスパイモードで入ってします + DISABLE: チャットスパイモードで出た + DISABLELOG: はチャットスパイモードで出た + CLAIM: + INVALIDRADIUS: 半径を指定しますなら1以上を指定して下さい・ + DENIED: 半径で引き取る許可がありません・ + CONFIG: + NOEXIST: 設定オプション"%s"はありません・ + SET: + 'TRUE': '"オプションは正に変わりました' + 'FALSE': '"オプションは正じゃなくに変わりました' + ADDED: '"%s" set: "%s" added.' + REMOVED: '"%s" set: "%s" removed.' + OPTIONSET: '" option set to ' + COLOURSET: '" color option set to "' + INTREQUIRED: 'Cannot set "%s": An integer (whole number) value required.' + LONGREQUIRED: 'Cannot set "%s": A long integer (whole number) value required.' + DOUBLEREQUIRED: 'Cannot set "%s": A double (numeric) value required.' + FLOATREQUIRED: 'Cannot set "%s": A float (numeric) value required.' + INVALID: + COLOUR: 'Cannot set "%s": "%s" is not a valid color.' + COLLECTION: '"%s" is not a data collection type which can be modified with this command.' + MATERIAL: 'Cannot change "%s" set: "%s" is not a valid material.' + TYPESET: '"%s" is not a data type set which can be modified with this command.' + MATERIAL: + ADDED: '"%s" set: Material "%s" added.' + REMOVED: '"%s" set: Material "%s" removed.' + LOG: ' (Command was run by %s.)' + ERROR: + SETTING: Error setting configuration setting "%s" to "%s". + MATCHING: Configuration setting "%s" couldn't be matched, though it should be... please report this error. + TYPE: '''%s'' is of type ''%s'', which cannot be modified with this command.' + CREATE: + MUSTLEAVE: You must leave your current faction first. + INUSE: That tag is already in use. + TOCREATE: to create a new faction + FORCREATE: for creating a new faction + ERROR: There was an internal error while trying to create your faction. Please try again. + CREATED: + LOG: ' は新しい党派を造りました: ' + YOUSHOULD: 'You should now: %s' + DEINVITE: + CANDEINVITE: 'Players you can deinvite: ' + CLICKTODEINVITE: 'Click to revoke invite for %s' + ALREADYMEMBER: '%s is already a member of %s' + MIGHTWANT: 'You might want to: %s' + REVOKED: '%s revoked your invitation to %s.' + REVOKES: '%s revoked %s''s invitation.' + DELFWARP: + DELETED: Deleted warp %s + INVALID: Couldn't find warp %s + TODELETE: to delete warp + FORDELETE: for deleting warp + DESCRIPTION: + CHANGES: 'You have changed the description for %s to:' + CHANGED: 'The faction %s changed their description to:' + TOCHANGE: to change faction description + FORCHANGE: for changing faction description + DISBAND: + IMMUTABLE: You cannot disband the Wilderness, SafeZone, or WarZone. + MARKEDPERMANENT: This faction is designated as permanent, so you cannot disband it. + BROADCAST: + YOURS: %s disbanded your faction. + NOTYOURS: %s disbanded the faction %s. + HOLDINGS: You have been given the disbanded faction's bank, totaling %s. + FWARP: + CLICKTOWARP: クリック為にワープ「テレポート」! + COMMANDFORMAT: /f warp <ワープ名> + WARPED: %sにテレポートしました + INVALID: %sが見つかりません + TOWARP: ワープし + FORWARPING: ワープした + WARPS: 'ワープリスト: ' + HELP: + '404': 指定ページは不正です・ + NEXTCREATE: Learn how to create a faction on the next page. + HOME: 'And don''t forget to set your home:' + BANK: + '1': Your faction has a bank which is used to pay for certain + '2': things, so it will need to have money deposited into it. + '3': To learn more, use the money command. + PLAYERTITLES: Player titles are just for fun. No rules connected to them. + OWNERSHIP: + '1': Claimed land with ownership set is further protected so + '2': that only the owner(s), faction admin, and possibly the + '3': faction moderators have full access. + RELATIONS: + '1': Set the relation you WISH to have with another faction. + '2': Your default relation with other factions will be neutral. + '3': If BOTH factions choose "ally" you will be allies. + '4': If ONE faction chooses "enemy" you will be enemies. + '5': You can never hurt members or allies. + '6': You can not hurt neutrals in their own territory. + '7': You can always hurt enemies and players without faction. + '8': '' + '9': Damage from enemies is reduced in your own territory. + '10': When you die you lose power. It is restored over time. + '11': The power of a faction is the sum of all member power. + '12': The power of a faction determines how much land it can hold. + '13': You can claim land from factions with too little power. + PERMISSIONS: + '1': Only faction members can build and destroy in their own + '2': 'territory. Usage of the following items is also restricted:' + '3': Door, Chest, Furnace, Dispenser, Diode. + '4': '' + '5': Make sure to put pressure plates in front of doors for your + '6': guest visitors. Otherwise they can't get through. You can + '7': also use this to create member only areas. + '8': As dispensers are protected, you can create traps without + '9': worrying about those arrows getting stolen. + ADMIN: + '1': /f claim safezone claim land for the Safe Zone + '2': /f claim warzone claim land for the War Zone + '3': /f autoclaim [safezone|warzone] take a guess + MOAR: + '1': 'Finally some commands for the server admins:' + '2': 'More commands for server admins:' + '3': 'Even more commands for server admins:' + HOME: + DISABLED: 党派ホームは禁止されました・ + TELEPORTDISABLED: 党派ホームテレポートは禁止されました・ + NOHOME: '党派のホームはありません' + INENEMY: You cannot teleport to your faction home while in the territory of an enemy faction. + WRONGWORLD: You cannot teleport to your faction home while in a different world. + ENEMYNEAR: You cannot teleport to your faction home while an enemy is within %s blocks of you. + TOTELEPORT: to teleport to your faction home + FORTELEPORT: for teleporting to your faction home + INVITE: + TOINVITE: to invite someone + FORINVITE: for inviting someone + CLICKTOJOIN: Click to join! + INVITEDYOU: ' has invited you to join ' + INVITED: '%s invited %s to your faction.' + ALREADYMEMBER: '%s is already a member of %s' + JOIN: + CANNOTFORCE: You do not have permission to move other players into a faction. + SYSTEMFACTION: Players may only join normal factions. This is a system faction. + ALREADYMEMBER: %s %s already a member of %s + ATLIMIT: ' ! The faction %s is at the limit of %d members, so %s cannot + currently join.' + INOTHERFACTION: %s must leave %s current faction first. + NEGATIVEPOWER: %s cannot join a faction with a negative power level. + REQUIRESINVITATION: This faction requires invitation. + ATTEMPTEDJOIN: '%s tried to join your faction.' + TOJOIN: to join a faction + FORJOIN: for joining a faction + SUCCESS: %s successfully joined %s. + MOVED: %s moved you into the faction %s. + JOINED: %s joined your faction. + JOINEDLOG: '%s joined the faction %s.' + MOVEDLOG: '%s moved the player %s into the faction %s.' + KICK: + CANDIDATES: 'Players you can kick: ' + CLICKTOKICK: 'Click to kick ' + SELF: You cannot kick yourself. + OFFLINE: Something went wrong with getting the offline player's faction. + NOTMEMBER: '%s is not a member of %s' + INSUFFICIENTRANK: Your rank is too low to kick this player. + NEGATIVEPOWER: You cannot kick that member until their power is positive. + TOKICK: to kick someone from the faction + FORKICK: for kicking someone from the faction + FACTION: '%s kicked %s from the faction! :O' + KICKS: You kicked %s from the faction %s! + KICKED: '%s kicked you from %s! :O' + LIST: + FACTIONLIST: 'Faction List ' + TOLIST: to list the factions + FORLIST: for listing the factions + ONLINEFACTIONLESS: 'Online factionless: ' + LOCK: + LOCKED: Factions is now locked + UNLOCKED: Factions in now unlocked + MAP: + TOSHOW: to show the map + FORSHOW: for showing the map + UPDATE: + ENABLED: Map auto update ENABLED. + DISABLED: Map auto update DISABLED. + MOD: + CANDIDATES: 'Players you can promote: ' + CLICKTOPROMOTE: 'Click to promote ' + NOTMEMBER: '%s is not a member in your faction.' + NOTADMIN: You are not the faction admin. + SELF: The target player musn't be yourself. + TARGETISADMIN: The target player is a faction admin. Demote them first. + REVOKES: You have removed moderator status from %s. + REVOKED: '%s is no longer moderator in your faction.' + PROMOTES: '%s was promoted to moderator in your faction.' + PROMOTED: You have promoted %s to moderator. + MODIFYPOWER: + ADDED: 'Added %f power to %s. New total rounded power: %d' + MONEY: + SHORT: faction money commands + LONG: The faction money commands. + MONEYBALANCE: + SHORT: show faction balance + MONEYDEPOSIT: + SHORT: deposit money + DEPOSITED: '%s deposited %s in the faction bank: %s' + MONEYTRANSFERFF: + SHORT: transfer f -> f + TRANSFER: '%s transferred %s from the faction "%s" to the faction "%s"' + MONEYTRANSFERFP: + SHORT: transfer f -> p + TRANSFER: '%s transferred %s from the faction "%s" to the player "%s"' + MONEYTRANSFERPF: + SHORT: transfer p -> f + TRANSFER: '%s transferred %s from the player "%s" to the faction "%s"' + MONEYWITHDRAW: + SHORT: withdraw money + WITHDRAW: '%s withdrew %s from the faction bank: %s' + OPEN: + TOOPEN: to open or close the faction + FOROPEN: for opening or closing the faction + OPEN: open + CLOSED: closed + CHANGES: '%s changed the faction to %s.' + CHANGED: The faction %s is now %s + OWNER: + DISABLED: Sorry, but owned areas are disabled on this server. + LIMIT: Sorry, but you have reached the server's limit of %d owned areas per faction. + WRONGFACTION: This land is not claimed by your faction, so you can't set ownership of it. + NOTCLAIMED: This land is not claimed by a faction. Ownership is not possible. + NOTMEMBER: '%s is not a member of this faction.' + CLEARED: You have cleared ownership for this claimed area. + REMOVED: You have removed ownership of this claimed land from %s. + TOSET: to set ownership of claimed land + FORSET: for setting ownership of claimed land + ADDED: You have added %s to the owner list for this claimed land. + OWNERLIST: + DISABLED: Sorry, but owned areas are disabled on this server. + WRONGFACTION: This land is not claimed by your faction. + NOTCLAIMED: This land is not claimed by any faction, thus no owners. + NONE: No owners are set here; everyone in the faction has access. + OWNERS: 'Current owner(s) of this land: %s' + POWER: + TOSHOW: to show player power info + FORSHOW: for showing player power info + POWER: '%s - Power / Maxpower: %d / %d %s' + BONUS: ' (bonus: ' + PENALTY: ' (penalty: ' + POWERBOOST: + HELP: + '1': You must specify "p" or "player" to target a player or "f" or "faction" to target a faction. + '2': ex. /f powerboost p SomePlayer 0.5 -or- /f powerboost f SomeFaction -5 + INVALIDNUM: You must specify a valid numeric value for the power bonus/penalty amount. + PLAYER: Player "%s" + FACTION: Faction "%s" + BOOST: %s now has a power bonus/penalty of %d to min and max power levels. + BOOSTLOG: '%s has set the power bonus/penalty for %s to %d.' + RELOAD: + TIME: conf.json をリロードしました・%dミリ秒〜. + SAFEUNCLAIMALL: + SHORT: Unclaim all safezone land + UNCLAIMED: You unclaimed ALL safe zone land. + UNCLAIMEDLOG: '%s unclaimed all safe zones.' + SAVEALL: Factions saved to disk! + SETFWARP: + NOTCLAIMED: You can only set warps in your faction territory. + LIMIT: Your Faction already has the max amount of warps set (%d). + SET: Set warp %s to your location. + TOSET: to set warp + FORSET: for setting warp + SETHOME: + DISABLED: 党派ホームは禁止されました・ + NOTCLAIMED: Sorry, your faction home can only be set inside your own claimed territory. + TOSET: to set the faction home + FORSET: for setting the faction home + SET: '%s set the home for your faction. You can now use:' + SETOTHER: You have set the home for the %s faction. + SHOW: + TOSHOW: to show faction information + FORSHOW: for showing faction information + DESCRIPTION: 'Description: %s' + PEACEFUL: This faction is Peaceful + PERMANENT: This faction is permanent, remaining even with no members. + JOINING: 'Joining: %s ' + INVITATION: invitation is required + UNINVITED: no invitation is needed + POWER: 'Land / Power / Maxpower: %d/%d/%d %s' + BONUS: ' (bonus: ' + PENALTY: ' (penalty: ' + DEPRECIATED: (%s depreciated) + LANDVALUE: 'トータル地価: %s%s' + BANKCONTAINS: '残高: %s' + ALLIES: 'Allies: ' + ENEMIES: 'Enemies: ' + MEMBERSONLINE: 'Members online: ' + MEMBERSOFFLINE: 'Members offline: ' + SHOWINVITES: + PENDING: 'Players with pending invites: ' + CLICKTOREVOKE: Click to revoke invite for %s + STATUS: + FORMAT: '%s パワー:%s 最終オンライン:%s' + ONLINE: オンライン + AGOSUFFIX: '間・' + TAG: + TAKEN: That tag is already taken + TOCHANGE: to change the faction tag + FORCHANGE: for changing the faction tag + FACTION: '%s changed your faction tag to %s' + CHANGED: 党派「%s」は名が%sに変わりました・ + TITLE: + TOCHANGE: to change a players title + FORCHANGE: for changing a players title + CHANGED: '%sはタイトルが変わりました: %s' + UNCLAIM: + SAFEZONE: + SUCCESS: この安全地帯は原に変わりました・ + NOPERM: This is a safe zone. You lack permissions to unclaim. + WARZONE: + SUCCESS: この戦場は原に変わりました・ + NOPERM: This is a war zone. You lack permissions to unclaim. + UNCLAIMED: '%s unclaimed some of your land.' + UNCLAIMS: You unclaimed this land. + LOG: '%s unclaimed land at (%s) from the faction: %s' + WRONGFACTION: You don't own this land. + TOUNCLAIM: to unclaim this land + FORUNCLAIM: for unclaiming this land + FACTIONUNCLAIMED: '%s unclaimed some land.' + UNCLAIMALL: + TOUNCLAIM: to unclaim all faction land + FORUNCLAIM: for unclaiming all faction land + UNCLAIMED: '%s unclaimed ALL of your faction''s land.' + LOG: '%s unclaimed everything for the faction: %s' + VERSION: + VERSION: 現在バーション %s + WARUNCLAIMALL: + SHORT: unclaim all warzone land + SUCCESS: You unclaimed ALL war zone land. + LOG: '%s unclaimed all war zones.' + RELATIONS: + ALLTHENOPE: いいえ!出来ません・ + MORENOPE: いいえ・自分は自分には関係出来ません・ + ALREADYINRELATIONSHIP: %sの関係はもうありますよ・ + TOMARRY: 関係は変わり + FORMARRY: 関係は変わった + MUTUAL: Your faction is now %s to %s + PEACEFUL: This will have no effect while your faction is peaceful. + PEACEFULOTHER: This will have no effect while their faction is peaceful. + PROPOSAL: + '1': '%s wishes to be your %s' + '2': Type /%s %s %s to accept. + SENT: '%s were informed that you wish to be %s' +command: + convert: + backend: + running: そのバックエンドは使用中です・ + invalid: バックエンドは不正です・ + help: + invitations: 'You might want to close it and use invitations:' +GENERIC: + ASKYOURLEADER: ' Ask your leader to:' + YOUSHOULD: 'You should:' + YOUMAYWANT: 'You may want to: ' + SERVERADMIN: サーバアドミン + DISABLED: ディセーブル + ENABLED: エネーブル + CONSOLEONLY: プレーヤはそのコマンド使用出来ませんよ・ + TRASLATION: + VERSION: 翻訳:%s・%s「%s」%s + CONTRIBUTORS: 翻訳者:%s + RESPONSIBLE: 翻訳の主任:%s +RELATION: + MEMBER: 員 + ALLY: 連盟 + NEUTRAL: 中立 + ENEMY: 敵 +NOPAGES: 申し訳ありません・ページはありません・ +INVALIDPAGE: 指定ページは不正です・1から%dまで・ + +title: '&b党派 &0|&r' +wilderness: '&2原' +wilderness-description: ' ' +warzone: '&4戦場' +warzone-description: 安全じゃない地帯 +safezone: '&6安全地帯' +safezone-description: プレーヤコンバットとモンスターはありません・ +toggle-sb: 今、スコアーボードは{value}になっています・ +default-prefix: '{relationcolor}[{faction}] &r'