Added missing Localization Strings in Options Menu

This commit is contained in:
CrushedPixel
2015-04-29 23:46:55 +02:00
parent 5bfe66e09b
commit 263ce4df8b
3 changed files with 8 additions and 5 deletions

View File

@@ -96,12 +96,12 @@ public class GuiReplaySettings extends GuiScreen {
for(RenderOptions o : RenderOptions.values()) { for(RenderOptions o : RenderOptions.values()) {
if(o == RenderOptions.videoFramerate) { if(o == RenderOptions.videoFramerate) {
this.buttonList.add(new GuiVideoFramerateSlider(FRAMERATE_SLIDER_ID, this.buttonList.add(new GuiVideoFramerateSlider(FRAMERATE_SLIDER_ID,
this.width / 2 - 155 + i % 2 * 160, this.height / 6 + 24 * (i >> 1), settings.getVideoFramerate(), "Video Framerate")); this.width / 2 - 155 + i % 2 * 160, this.height / 6 + 24 * (i >> 1), settings.getVideoFramerate(), I18n.format("replaymod.gui.settings.framerate")));
} else if(o == RenderOptions.videoQuality) { } else if(o == RenderOptions.videoQuality) {
this.buttonList.add(new GuiVideoQualitySlider(QUALITY_SLIDER_ID, this.buttonList.add(new GuiVideoQualitySlider(QUALITY_SLIDER_ID,
this.width / 2 - 155 + i % 2 * 160, this.height / 6 + 24 * (i >> 1), (float) settings.getVideoQuality(), "Video Quality")); this.width / 2 - 155 + i % 2 * 160, this.height / 6 + 24 * (i >> 1), (float) settings.getVideoQuality(), I18n.format("replaymod.gui.settings.quality")));
} else if(o == RenderOptions.waitForChunks) { } else if(o == RenderOptions.waitForChunks) {
this.buttonList.add(resourcePackButton = new GuiButton(WAITFORCHUNKS_ID, this.width / 2 - 155 + i % 2 * 160, this.buttonList.add(waitForChunksButton = new GuiButton(WAITFORCHUNKS_ID, this.width / 2 - 155 + i % 2 * 160,
this.height / 6 + 24 * (i >> 1), 150, 20, I18n.format("replaymod.gui.settings.forcechunks")+": " + onOff(settings.getWaitForChunks()))); this.height / 6 + 24 * (i >> 1), 150, 20, I18n.format("replaymod.gui.settings.forcechunks")+": " + onOff(settings.getWaitForChunks())));
} }
@@ -175,7 +175,7 @@ public class GuiReplaySettings extends GuiScreen {
case WAITFORCHUNKS_ID: case WAITFORCHUNKS_ID:
enabled = ReplayMod.replaySettings.getWaitForChunks(); enabled = ReplayMod.replaySettings.getWaitForChunks();
enabled = !enabled; enabled = !enabled;
resourcePackButton.displayString = I18n.format("replaymod.gui.settings.forcechunks")+": " + onOff(enabled); waitForChunksButton.displayString = I18n.format("replaymod.gui.settings.forcechunks")+": " + onOff(enabled);
ReplayMod.replaySettings.setWaitForChunks(enabled); ReplayMod.replaySettings.setWaitForChunks(enabled);
break; break;
case INDICATOR_ID: case INDICATOR_ID:

View File

@@ -36,7 +36,8 @@ public class LocalizedResourcePack implements IResourcePack {
boolean downloaded = true; boolean downloaded = true;
try { try {
String lang = ReplayMod.apiClient.getTranslation(langcode); String lang = ReplayMod.apiClient.getTranslation(langcode);
availableLanguages.put(langcode, StringEscapeUtils.unescapeHtml4(lang)); String prop = StringEscapeUtils.unescapeHtml4(lang);
availableLanguages.put(langcode, prop);
} catch(Exception e) { } catch(Exception e) {
e.printStackTrace(); e.printStackTrace();
downloaded = false; downloaded = false;

View File

@@ -120,6 +120,8 @@ replaymod.gui.settings.title=Replay Mod Settings
replaymod.gui.settings.interpolation.linear=Linear replaymod.gui.settings.interpolation.linear=Linear
replaymod.gui.settings.interpolation.cubic=Cubic replaymod.gui.settings.interpolation.cubic=Cubic
replaymod.gui.settings.quality=Video Quality
replaymod.gui.settings.framerate=Video Framerate
replaymod.gui.settings.notifications=Enable Notifications replaymod.gui.settings.notifications=Enable Notifications
replaymod.gui.settings.recordserver=Record Server replaymod.gui.settings.recordserver=Record Server
replaymod.gui.settings.recordsingleplayer=Record Singleplayer replaymod.gui.settings.recordsingleplayer=Record Singleplayer