v0.3.4: i18n begins! Only changes to actors\hero right now
This commit is contained in:
committed by
Evan Debenham
parent
9eb8759fe1
commit
18bcdd42cb
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Pixel Dungeon
|
||||
* Copyright (C) 2012-2015 Oleg Dolya
|
||||
*
|
||||
* Shattered Pixel Dungeon
|
||||
* Copyright (C) 2014-2015 Evan Debenham
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
*/
|
||||
package com.shatteredpixel.shatteredpixeldungeon.messages;
|
||||
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
public class Messages {
|
||||
|
||||
private static ResourceBundle strings =
|
||||
ResourceBundle.getBundle("com.shatteredpixel.shatteredpixeldungeon.messages.messages");
|
||||
|
||||
public static String get(String key){
|
||||
return get(null, key);
|
||||
}
|
||||
|
||||
//stuffing static variables with results from this means the app needs to restart for locale changes to take effect.
|
||||
//so be careful with where you're calling this, never assign its result to a static value (including enum variables)
|
||||
public static String get(Object o, String k){
|
||||
return get(o.getClass(), k);
|
||||
}
|
||||
|
||||
public static String get(Class c, String k){
|
||||
String key;
|
||||
if (c != null){
|
||||
key = c.getName().replace("com.shatteredpixel.shatteredpixeldungeon.", "");
|
||||
key += "." + k;
|
||||
} else
|
||||
key = k;
|
||||
return strings.getString(key.toLowerCase());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
actors.hero.hero.leave=One does not simply leave Pixel Dungeon.
|
||||
actors.hero.hero.level_up=level up!
|
||||
actors.hero.hero.new_level=Welcome to level %d! Now you are healthier and more focused. It's easier for you to hit enemies and dodge their attacks.
|
||||
actors.hero.hero.level_cap=You cannot grow stronger, but your experiences do give you a surge of power!
|
||||
actors.hero.hero.you_now_have=You now have %s
|
||||
actors.hero.hero.something_else=There is something else here
|
||||
actors.hero.hero.locked_chest=This chest is locked and you don't have matching key
|
||||
actors.hero.hero.locked_door=You don't have a matching key
|
||||
actors.hero.hero.noticed_smth=You noticed something
|
||||
actors.hero.hero.wait=...
|
||||
actors.hero.hero.search=search
|
||||
actors.hero.hero.search_distracted=You can't concentrate, searching takes a while
|
||||
actors.hero.hero.pain_resist=The pain helps you resist the urge to sleep
|
||||
|
||||
actors.hero.heroclass.warrior=warrior
|
||||
actors.hero.heroclass.warrior_perk1=The Warrior starts with 11 points of Strength.
|
||||
actors.hero.heroclass.warrior_perk2=The Warrior starts with a unique short sword. This sword can later be "reforged" to upgrade another melee weapon.
|
||||
actors.hero.heroclass.warrior_perk3=The Warrior is less proficient with missile weapons.
|
||||
actors.hero.heroclass.warrior_perk4=Any piece of food restores some health when eaten.
|
||||
actors.hero.heroclass.warrior_perk5=Potions of Strength are identified from the beginning.
|
||||
|
||||
actors.hero.heroclass.mage=mage
|
||||
actors.hero.heroclass.mage_perk1=The Mage starts with a unique Staff, which can be imbued with the properties of a wand.
|
||||
actors.hero.heroclass.mage_perk2=The Mage's staff can be used as a melee weapon or a more powerful wand.
|
||||
actors.hero.heroclass.mage_perk3=The Mage partially identifies wands after using them.
|
||||
actors.hero.heroclass.mage_perk4=When eaten, any piece of food restores 1 charge for all wands in the inventory.
|
||||
actors.hero.heroclass.mage_perk5=Scrolls of Upgrade are identified from the beginning.
|
||||
|
||||
actors.hero.heroclass.rogue=rogue
|
||||
actors.hero.heroclass.rogue_perk1=The Rogue starts with a unique Cloak of Shadows.
|
||||
actors.hero.heroclass.rogue_perk2=The Rogue identifies a type of a ring on equipping it.
|
||||
actors.hero.heroclass.rogue_perk3=The Rogue is proficient with light armor, dodging better with excess strength.
|
||||
actors.hero.heroclass.rogue_perk4=The Rogue is more proficient in detecting hidden doors and traps.
|
||||
actors.hero.heroclass.rogue_perk5=The Rogue can go without food longer.
|
||||
actors.hero.heroclass.rogue_perk6=Scrolls of Magic Mapping are identified from the beginning.
|
||||
|
||||
actors.hero.heroclass.huntress=huntress
|
||||
actors.hero.heroclass.huntress_perk1=The Huntress starts with a unique upgradeable boomerang.
|
||||
actors.hero.heroclass.huntress_perk2=The Huntress is proficient with missile weapons, getting bonus damage from excess strength.
|
||||
actors.hero.heroclass.huntress_perk3=The Huntress is able to recover a single used missile weapon from each enemy.
|
||||
actors.hero.heroclass.huntress_perk4=The Huntress senses neighbouring monsters even if they are hidden behind obstacles.
|
||||
actors.hero.heroclass.huntress_perk5=Potions of Mind Vision are identified from the beginning.
|
||||
|
||||
actors.hero.herosubclass.gladiator=gladiator
|
||||
actors.hero.herosubclass.gladiator_desc=A successful attack with a melee weapon allows the _Gladiator_ to start a combo, in which every next successful hit inflicts more damage.
|
||||
actors.hero.herosubclass.berserker=berserker
|
||||
actors.hero.herosubclass.berserker_desc=When severely wounded, the _Berserker_ enters a state of wild fury significantly increasing his damage output.
|
||||
actors.hero.herosubclass.warlock=warlock
|
||||
actors.hero.herosubclass.warlock_desc=When using wands on an enemy, the _Warlock_ has a chance to mark their soul. Marked enemies will heal him and restore his hunger whenever they take physical damage.
|
||||
actors.hero.herosubclass.battlemage=battlemage
|
||||
actors.hero.herosubclass.battlemage_desc=When fighting with his staff, the _Battlemage_ conjures bonus effects depending on the wand his staff is imbued with. His staff will also gain charge through combat.
|
||||
actors.hero.herosubclass.assassin=assassin
|
||||
actors.hero.herosubclass.assassin_desc=When performing a surprise attack, the _Assassin_ inflicts additional damage to his target.
|
||||
actors.hero.herosubclass.freerunner=freerunner
|
||||
actors.hero.herosubclass.freerunner_desc=The _Freerunner_ moves faster when he unencumbered and not starving, if he is invisible, this speed boost is increased.
|
||||
actors.hero.herosubclass.sniper=sniper
|
||||
actors.hero.herosubclass.sniper_desc=The _Sniper_ is able to detect weak points in an enemy's armor, effectively ignoring it when using a missile weapon.
|
||||
actors.hero.herosubclass.warden=warden
|
||||
actors.hero.herosubclass.warden_desc=Having a strong connection with forces of nature allows the _Warden_ to gain additional health from dew, armor from trampling grass, and seeds and dew from plants.
|
||||
|
||||
items.bags.bag.name=backpack
|
||||
Reference in New Issue
Block a user