From daada0dcf8e4bef297f827e7a82ec6293f44d1bd Mon Sep 17 00:00:00 2001 From: Edu Garcia Date: Sun, 12 Oct 2014 20:50:28 +1100 Subject: [PATCH] #43: IntroScene localized --- android/assets/i18n/l10n.properties | 7 +++++++ .../com/watabou/pixeldungeon/scenes/IntroScene.java | 12 +++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/android/assets/i18n/l10n.properties b/android/assets/i18n/l10n.properties index d30085b7..8f071da1 100644 --- a/android/assets/i18n/l10n.properties +++ b/android/assets/i18n/l10n.properties @@ -79,6 +79,13 @@ game_falling = Falling... game_err_file_not_found = File not found. For some reason. game_err_generic = Something went wrong... +# IntroScene +intro_txt = Many heroes of all kinds ventured into the Dungeon before you. Some of them have returned with treasures and magical \ + artifacts, most have never been heard of since. But none have succeeded in retrieving the Amulet of Yendor, \ + which is told to be hidden in the depths of the Dungeon.\n\n\ + You consider yourself ready for the challenge, but most importantly, you feel that fortune smiles on you. \ + It's time to start your own adventure! + # TitleScene title_play = Play title_rankings = Rankings diff --git a/core/src/com/watabou/pixeldungeon/scenes/IntroScene.java b/core/src/com/watabou/pixeldungeon/scenes/IntroScene.java index a28d32ec..39c6d206 100644 --- a/core/src/com/watabou/pixeldungeon/scenes/IntroScene.java +++ b/core/src/com/watabou/pixeldungeon/scenes/IntroScene.java @@ -22,25 +22,19 @@ public class IntroScene extends PixelScene { - private static final String TEXT = - "Many heroes of all kinds ventured into the Dungeon before you. Some of them have returned with treasures and magical " + - "artifacts, most have never been heard of since. But none have succeeded in retrieving the Amulet of Yendor, " + - "which is told to be hidden in the depths of the Dungeon.\n\n" + - "" + - "You consider yourself ready for the challenge, but most importantly, you feel that fortune smiles on you. " + - "It's time to start your own adventure!"; + private static final String TEXT = "intro_txt"; @Override public void create() { super.create(); - add( new WndStory( TEXT ) { + add(new WndStory(tr(TEXT)) { @Override public void hide() { super.hide(); Game.switchScene( InterlevelScene.class ); } - } ); + }); fadeIn(); }