Commit 7b322fc9 authored by Matyáš Latner's avatar Matyáš Latner

#233 Transaltions for synchronization button

parent 220a2a68
...@@ -168,3 +168,4 @@ user_consecutivelyallgames3stars=Detektivní šelma ...@@ -168,3 +168,4 @@ user_consecutivelyallgames3stars=Detektivní šelma
user_consecutivelyallgames3stars_description=Za všechny hry po sobě na těžkou obtížnost a tři poháry user_consecutivelyallgames3stars_description=Za všechny hry po sobě na těžkou obtížnost a tři poháry
sync_request_dialog_text=Zadej číslo průkazu: sync_request_dialog_text=Zadej číslo průkazu:
sync_request_button=Synchronizovat uživatele
...@@ -168,3 +168,4 @@ user_consecutivelyallgames3stars=Als DetektivIn ein Raubtier ...@@ -168,3 +168,4 @@ user_consecutivelyallgames3stars=Als DetektivIn ein Raubtier
user_consecutivelyallgames3stars_description=Für alle Spiele nacheinander auf der schwierigen Stufe mit drei Pokalen user_consecutivelyallgames3stars_description=Für alle Spiele nacheinander auf der schwierigen Stufe mit drei Pokalen
sync_request_dialog_text=Trage deine Ausweisnummer ein: sync_request_dialog_text=Trage deine Ausweisnummer ein:
sync_request_button=Account synchronisieren
...@@ -170,3 +170,4 @@ user_consecutivelyallgames3stars=Detektívna šelma ...@@ -170,3 +170,4 @@ user_consecutivelyallgames3stars=Detektívna šelma
user_consecutivelyallgames3stars_description=Za všetky hry po sebe na ťažkú obtiažnosť a tri poháre. user_consecutivelyallgames3stars_description=Za všetky hry po sebe na ťažkú obtiažnosť a tri poháre.
sync_request_dialog_text=Zadaj číslo preukazu: sync_request_dialog_text=Zadaj číslo preukazu:
sync_request_button=Synchronizovať užívateľa
\ No newline at end of file
...@@ -91,6 +91,7 @@ public class ApplicationTextManager extends TablexiaDataManager<I18NBundle> impl ...@@ -91,6 +91,7 @@ public class ApplicationTextManager extends TablexiaDataManager<I18NBundle> impl
public static final String GAME_QUIT_QUESTION = "game_quit_question"; public static final String GAME_QUIT_QUESTION = "game_quit_question";
public static final String SYNC_REQUEST_DIALOG_TEXT = "sync_request_dialog_text"; public static final String SYNC_REQUEST_DIALOG_TEXT = "sync_request_dialog_text";
public static final String SYNC_REQUEST_BUTTON = "sync_request_button";
} }
private static final String APPLICATION_TEXT_RESOURCE_FILE = "text/application/application"; private static final String APPLICATION_TEXT_RESOURCE_FILE = "text/application/application";
......
...@@ -8,6 +8,7 @@ import com.badlogic.gdx.utils.Align; ...@@ -8,6 +8,7 @@ import com.badlogic.gdx.utils.Align;
import cz.nic.tablexia.loader.application.ApplicationAtlasManager; import cz.nic.tablexia.loader.application.ApplicationAtlasManager;
import cz.nic.tablexia.loader.application.ApplicationFontManager; import cz.nic.tablexia.loader.application.ApplicationFontManager;
import cz.nic.tablexia.loader.application.ApplicationTextManager;
import cz.nic.tablexia.menu.main.user.UserSelectBox; import cz.nic.tablexia.menu.main.user.UserSelectBox;
import cz.nic.tablexia.util.ui.TablexiaLabel; import cz.nic.tablexia.util.ui.TablexiaLabel;
...@@ -15,12 +16,12 @@ import cz.nic.tablexia.util.ui.TablexiaLabel; ...@@ -15,12 +16,12 @@ import cz.nic.tablexia.util.ui.TablexiaLabel;
* Created by frantisek on 20.1.16. * Created by frantisek on 20.1.16.
*/ */
public abstract class UserMenuDownloadSelectBoxItemGroup extends Actor implements UserSelectBox.UserSelectBoxItem { public abstract class UserMenuDownloadSelectBoxItemGroup extends Actor implements UserSelectBox.UserSelectBoxItem {
//TODO - This will probably be localized later...
private static final String DOWNLOAD_USER_TEXT = "Download User";
private static final ApplicationFontManager.FontType_NEW DOWNLOAD_USER_TEXT_FONT = ApplicationFontManager.FontType_NEW.BOLD_20; private static final String DOWNLOAD_USER_TEXT_KEY = ApplicationTextManager.ApplicationTextsAssets.SYNC_REQUEST_BUTTON;
private static final Color DOWNLOAD_USER_TEXT_COLOR = new Color(0.098f, 0.086f, 0.075f, 1f);
private static final int DOWNLOAD_USER_TEXT_ALIGN = Align.center; private static final ApplicationFontManager.FontType_NEW DOWNLOAD_USER_TEXT_FONT = ApplicationFontManager.FontType_NEW.BOLD_20;
private static final Color DOWNLOAD_USER_TEXT_COLOR = new Color(0.098f, 0.086f, 0.075f, 1f);
private static final int DOWNLOAD_USER_TEXT_ALIGN = Align.center;
private final NinePatch background; private final NinePatch background;
...@@ -29,7 +30,7 @@ public abstract class UserMenuDownloadSelectBoxItemGroup extends Actor implement ...@@ -29,7 +30,7 @@ public abstract class UserMenuDownloadSelectBoxItemGroup extends Actor implement
public UserMenuDownloadSelectBoxItemGroup() { public UserMenuDownloadSelectBoxItemGroup() {
background = ApplicationAtlasManager.getInstance().getPatch(ApplicationAtlasManager.USERMENU_MENUBUTTON_BACKGROUND); background = ApplicationAtlasManager.getInstance().getPatch(ApplicationAtlasManager.USERMENU_MENUBUTTON_BACKGROUND);
textLabel = new TablexiaLabel(DOWNLOAD_USER_TEXT, new TablexiaLabel.TablexiaLabelStyle(DOWNLOAD_USER_TEXT_FONT, DOWNLOAD_USER_TEXT_COLOR)); textLabel = new TablexiaLabel(ApplicationTextManager.getInstance().getText(DOWNLOAD_USER_TEXT_KEY), new TablexiaLabel.TablexiaLabelStyle(DOWNLOAD_USER_TEXT_FONT, DOWNLOAD_USER_TEXT_COLOR));
textLabel.setAlignment(DOWNLOAD_USER_TEXT_ALIGN); textLabel.setAlignment(DOWNLOAD_USER_TEXT_ALIGN);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment