Эх сурвалжийг харах

Merge pull request #9 from Ghostlyr/1.11

Unlocalized strings & Russian translation (1.11)
Jared 8 жил өмнө
parent
commit
569531a3e1

+ 3 - 3
src/main/java/us/getfluxed/controlsearch/client/gui/GuiNewControls.java

@@ -177,11 +177,11 @@ public class GuiNewControls extends GuiControls {
             availableTime = 0;
             if(!conflicts) {
                 conflicts = true;
-                conflictsButton.displayString = "Show All";
+                conflictsButton.displayString = I18n.format("options.showAll");
                 reloadKeys(1);
             } else {
                 conflicts = false;
-                conflictsButton.displayString = "Show Conflicts";
+                conflictsButton.displayString = I18n.format("options.showConflicts");
                 reloadKeys(1);
             }
             
@@ -345,7 +345,7 @@ public class GuiNewControls extends GuiControls {
             final int[] x = {0};
             final int[] y = {0};
             final int[] count = {0};
-            fontRendererObj.drawString("Available Keys:", width / 2, keyBindingList.top + 2, 0xFFFFFF);
+            fontRendererObj.drawString(I18n.format("options.availableKeys") + ":", width / 2, keyBindingList.top + 2, 0xFFFFFF);
             List<String> codes = new ArrayList<>();
             keyCodes.forEach(key -> {
                 if(key >= 0) {

+ 2 - 0
src/main/resources/assets/controlling/lang/en_US.lang

@@ -1,2 +1,4 @@
 options.search=Search
+options.showAll=Show All
 options.showConflicts=Show Conflicts
+options.availableKeys=Available Keys

+ 4 - 0
src/main/resources/assets/controlling/lang/ru_RU.lang

@@ -0,0 +1,4 @@
+options.search=Поиск
+options.showAll=Показать все
+options.showConflicts=Показать конфликты
+options.availableKeys=Доступные кнопки