From 4f9c15d5c7d81fdd29120b81a94ae3eaa2a22fd6 Mon Sep 17 00:00:00 2001 From: rodriformiga Date: Sat, 30 Aug 2014 22:42:53 -0300 Subject: [PATCH] Translate - Part 7 - Quest Translation of all texts and information concerning the Quests, on Classes in "\items\quest" package Remove "Lint.xml" file generated by Eclipse --- .gitignore | 1 + res/values-pt-rBR/strings.xml | 33 +++++++++++++++++++ res/values/strings.xml | 30 ++++++++++++++++- .../pixeldungeon/items/quest/CorpseDust.java | 8 ++--- .../pixeldungeon/items/quest/DarkGold.java | 8 ++--- .../pixeldungeon/items/quest/DriedRose.java | 7 ++-- .../pixeldungeon/items/quest/DwarfToken.java | 8 ++--- .../pixeldungeon/items/quest/Pickaxe.java | 11 ++++--- .../pixeldungeon/items/quest/RatSkull.java | 7 ++-- 9 files changed, 89 insertions(+), 24 deletions(-) diff --git a/.gitignore b/.gitignore index 207618fcbe..39d0121c62 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .project project.properties proguard.cfg +lint.xml # Built application files *.apk diff --git a/res/values-pt-rBR/strings.xml b/res/values-pt-rBR/strings.xml index 57e2d7dba7..0768ff8790 100644 --- a/res/values-pt-rBR/strings.xml +++ b/res/values-pt-rBR/strings.xml @@ -884,4 +884,37 @@ Poção de Gás Tóxico Abrir ou quebrar esse vidro pressurizado fará com que o seu conteúdo exploda em uma nuvem mortal de gás tóxico verde. Você pode optar por lançar esta poção em inimigos distantes ao invés de abri-lo com a mão. + + + + poeira de cadáver + Por fora a bola de poeira cadáver não e diferente de uma bola de poeira normal. No entanto, você sabe de alguma forma que é melhor se livrar dela o mais rápido possível. + + + + minério de ouro escuro + Este metal é chamado de escuro não por causa da sua cor(que é igual à cor normal do ouro), mas porque derrete sob a luz do dia, tornando-se inútil na superfície. + + + + rosa seca + A rosa secou há muito tempo, mas manteve todas as suas pétalas de alguma forma. + + + + token de anão + Muitos anões e algumas de suas criações maiores carregam esses pequenos pedaços de metal de propósito desconhecido. Talvez eles sejam jóias ou algum tipo de identificação. Anões são pessoas estranhas. + + + + picareta + Esta é uma ferramenta grande e resistente para quebrar rochas. Provavelmente isto pode ser usado como uma arma. + MINERAR + Não há nenhum veio de ouro escuro perto de você para minerar + + + + crânio de rato gigante + Poderia ser um bom troféu de caça, mas cheira muito mal para colocá-lo em uma parede. + \ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index 80576f8332..42cf061250 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -886,9 +886,37 @@ Uncorking or shattering this pressurized glass will cause its contents to explode into a deadly cloud of toxic green gas. You might choose to fling this potion at distant enemies instead of uncorking it by hand. - + + + corpse dust + The ball of corpse dust doesn\'t differ outwardly from a regular dust ball. However, you know somehow that it\'s better to get rid of it as soon as possible. + + + + dark gold ore + This metal is called dark not because of its color (it doesn\'t differ from the normal gold), but because it melts under the daylight, making it useless on the surface. + + + + dried rose + The rose has dried long ago, but it has kept all its petals somehow. + + + + dwarf token + Many dwarves and some of their larger creations carry these small pieces of metal of unknown purpose. Maybe they are jewelry or maybe some kind of ID. Dwarves are strange folk. + + + + pickaxe + This is a large and sturdy tool for breaking rocks. Probably it can be used as a weapon. + MINE + There is no dark gold vein near you to mine + + giant rat skull + It could be a nice hunting trophy, but it smells too bad to place it on a wall. diff --git a/src/com/watabou/pixeldungeon/items/quest/CorpseDust.java b/src/com/watabou/pixeldungeon/items/quest/CorpseDust.java index be30f17477..01df645010 100644 --- a/src/com/watabou/pixeldungeon/items/quest/CorpseDust.java +++ b/src/com/watabou/pixeldungeon/items/quest/CorpseDust.java @@ -17,13 +17,15 @@ */ package com.watabou.pixeldungeon.items.quest; +import com.watabou.noosa.Game; +import com.watabou.pixeldungeon.R; import com.watabou.pixeldungeon.items.Item; import com.watabou.pixeldungeon.sprites.ItemSpriteSheet; public class CorpseDust extends Item { { - name = "corpse dust"; + name = Game.getVar(R.string.CorpseDust_Name); image = ItemSpriteSheet.DUST; cursed = true; @@ -44,8 +46,6 @@ public boolean isIdentified() { @Override public String info() { - return - "The ball of corpse dust doesn't differ outwardly from a regular dust ball. However, " + - "you know somehow that it's better to get rid of it as soon as possible."; + return Game.getVar(R.string.CorpseDust_Info); } } diff --git a/src/com/watabou/pixeldungeon/items/quest/DarkGold.java b/src/com/watabou/pixeldungeon/items/quest/DarkGold.java index ef94c85a97..a0810c5f70 100644 --- a/src/com/watabou/pixeldungeon/items/quest/DarkGold.java +++ b/src/com/watabou/pixeldungeon/items/quest/DarkGold.java @@ -17,13 +17,15 @@ */ package com.watabou.pixeldungeon.items.quest; +import com.watabou.noosa.Game; +import com.watabou.pixeldungeon.R; import com.watabou.pixeldungeon.items.Item; import com.watabou.pixeldungeon.sprites.ItemSpriteSheet; public class DarkGold extends Item { { - name = "dark gold ore"; + name = Game.getVar(R.string.DarkGold_Name); image = ItemSpriteSheet.ORE; stackable = true; @@ -42,9 +44,7 @@ public boolean isIdentified() { @Override public String info() { - return - "This metal is called dark not because of its color (it doesn't differ from the normal gold), " + - "but because it melts under the daylight, making it useless on the surface."; + return Game.getVar(R.string.DarkGold_Info); } @Override diff --git a/src/com/watabou/pixeldungeon/items/quest/DriedRose.java b/src/com/watabou/pixeldungeon/items/quest/DriedRose.java index be751a5c2d..ebfe8c7edc 100644 --- a/src/com/watabou/pixeldungeon/items/quest/DriedRose.java +++ b/src/com/watabou/pixeldungeon/items/quest/DriedRose.java @@ -17,13 +17,15 @@ */ package com.watabou.pixeldungeon.items.quest; +import com.watabou.noosa.Game; +import com.watabou.pixeldungeon.R; import com.watabou.pixeldungeon.items.Item; import com.watabou.pixeldungeon.sprites.ItemSpriteSheet; public class DriedRose extends Item { { - name = "dried rose"; + name = Game.getVar(R.string.DriedRose_Name); image = ItemSpriteSheet.ROSE; unique = true; @@ -41,7 +43,6 @@ public boolean isIdentified() { @Override public String info() { - return - "The rose has dried long ago, but it has kept all its petals somehow."; + return Game.getVar(R.string.DriedRose_Info); } } diff --git a/src/com/watabou/pixeldungeon/items/quest/DwarfToken.java b/src/com/watabou/pixeldungeon/items/quest/DwarfToken.java index 3ab8873472..c8c4eacf2e 100644 --- a/src/com/watabou/pixeldungeon/items/quest/DwarfToken.java +++ b/src/com/watabou/pixeldungeon/items/quest/DwarfToken.java @@ -17,13 +17,15 @@ */ package com.watabou.pixeldungeon.items.quest; +import com.watabou.noosa.Game; +import com.watabou.pixeldungeon.R; import com.watabou.pixeldungeon.items.Item; import com.watabou.pixeldungeon.sprites.ItemSpriteSheet; public class DwarfToken extends Item { { - name = "dwarf token"; + name = Game.getVar(R.string.DwarfToken_Name); image = ItemSpriteSheet.TOKEN; stackable = true; @@ -42,9 +44,7 @@ public boolean isIdentified() { @Override public String info() { - return - "Many dwarves and some of their larger creations carry these small pieces of metal of unknown purpose. " + - "Maybe they are jewelry or maybe some kind of ID. Dwarves are strange folk."; + return Game.getVar(R.string.DwarfToken_Info); } @Override diff --git a/src/com/watabou/pixeldungeon/items/quest/Pickaxe.java b/src/com/watabou/pixeldungeon/items/quest/Pickaxe.java index 03caf593fa..f985ba9dd6 100644 --- a/src/com/watabou/pixeldungeon/items/quest/Pickaxe.java +++ b/src/com/watabou/pixeldungeon/items/quest/Pickaxe.java @@ -19,9 +19,11 @@ import java.util.ArrayList; +import com.watabou.noosa.Game; import com.watabou.noosa.audio.Sample; import com.watabou.pixeldungeon.Assets; import com.watabou.pixeldungeon.Dungeon; +import com.watabou.pixeldungeon.R; import com.watabou.pixeldungeon.actors.Char; import com.watabou.pixeldungeon.actors.buffs.Hunger; import com.watabou.pixeldungeon.actors.hero.Hero; @@ -41,16 +43,16 @@ public class Pickaxe extends Weapon { - public static final String AC_MINE = "MINE"; + public static final String AC_MINE = Game.getVar(R.string.Pickaxe_ACMine); public static final float TIME_TO_MINE = 2; - private static final String TXT_NO_VEIN = "There is no dark gold vein near you to mine"; + private static final String TXT_NO_VEIN = Game.getVar(R.string.Pickaxe_NoVein); private static final Glowing BLOODY = new Glowing( 0x550000 ); { - name = "pickaxe"; + name = Game.getVar(R.string.Pickaxe_Name); image = ItemSpriteSheet.PICKAXE; unique = true; @@ -171,7 +173,6 @@ public Glowing glowing() { @Override public String info() { - return - "This is a large and sturdy tool for breaking rocks. Probably it can be used as a weapon."; + return Game.getVar(R.string.Pickaxe_Info); } } diff --git a/src/com/watabou/pixeldungeon/items/quest/RatSkull.java b/src/com/watabou/pixeldungeon/items/quest/RatSkull.java index 612e0af7fa..53fb5f9d8c 100644 --- a/src/com/watabou/pixeldungeon/items/quest/RatSkull.java +++ b/src/com/watabou/pixeldungeon/items/quest/RatSkull.java @@ -17,13 +17,15 @@ */ package com.watabou.pixeldungeon.items.quest; +import com.watabou.noosa.Game; +import com.watabou.pixeldungeon.R; import com.watabou.pixeldungeon.items.Item; import com.watabou.pixeldungeon.sprites.ItemSpriteSheet; public class RatSkull extends Item { { - name = "giant rat skull"; + name = Game.getVar(R.string.RatSkull_Name); image = ItemSpriteSheet.SKULL; unique = true; @@ -41,8 +43,7 @@ public boolean isIdentified() { @Override public String info() { - return - "It could be a nice hunting trophy, but it smells too bad to place it on a wall."; + return Game.getVar(R.string.RatSkull_Info); } @Override