From c73d02c4333734d929698a7bffbe5f25b9870240 Mon Sep 17 00:00:00 2001 From: Jannik Date: Tue, 19 Dec 2017 22:18:22 +0100 Subject: [PATCH] added german local --- log.txt | 8 + .../application/MainWindowController.java | 12 +- .../uiElements/JFXOkayCancelDialog.java | 6 +- src/main/resources/fxml/MainWindow.fxml | 4 +- .../locals/cemu_UI-Local_de_DE.properties | 137 ++++++++++-------- .../locals/cemu_UI-Local_en_US.properties | 12 +- 6 files changed, 109 insertions(+), 70 deletions(-) create mode 100644 log.txt diff --git a/log.txt b/log.txt new file mode 100644 index 0000000..8755ceb --- /dev/null +++ b/log.txt @@ -0,0 +1,8 @@ +[21:08:03] mlc01 path is set to: Z:\home\jannik\Downloads\cemu_1.10.0\mlc01\ +[21:08:03] Using AES-NI for filesystem decryption +[21:08:06] RDTSC measurement test: +[21:08:06] TSC-diff: 0x0000000274783686 +[21:08:06] TSC-freq: 0x00000000d0dadcff +[21:08:06] HPC-diff: 0x0000000001cb27c1 +[21:08:06] HPC-freq: 0x0000000000989680 +[21:08:06] Multiplier: 0x000000000000015e diff --git a/src/main/java/com/cemu_UI/application/MainWindowController.java b/src/main/java/com/cemu_UI/application/MainWindowController.java index 60fb0ce..69017a6 100644 --- a/src/main/java/com/cemu_UI/application/MainWindowController.java +++ b/src/main/java/com/cemu_UI/application/MainWindowController.java @@ -287,7 +287,7 @@ public class MainWindowController { private String selectedGameTitle; private String id; private String version = "0.2.2"; - private String buildNumber = "069"; + private String buildNumber = "071"; private String versionName = "Puzzle Plank Galaxy"; private int xPos = -200; private int yPos = 17; @@ -349,6 +349,7 @@ public class MainWindowController { private String addDLCBodyText; private String licensesLblHeadingText; private String licensesLblBodyText; + private String showLicenses; private String aboutBtnHeadingText; private String aboutBtnBodyText; private String cloudSyncWaringHeadingText; @@ -362,6 +363,7 @@ public class MainWindowController { private String lastPlayed; private String today; private String yesterday; + private String never; private String playBtnPlay; private String playBtnUpdating; @@ -793,7 +795,7 @@ public class MainWindowController { JFXOkayCancelDialog licenseOverviewDialog = new JFXOkayCancelDialog(licensesLblHeadingText, licensesLblBodyText, dialogBtnStyle, 350, 275, okayAction, cancelAction, main.getPane(), bundle); - licenseOverviewDialog.setCancelText("show licenses"); + licenseOverviewDialog.setCancelText(showLicenses); licenseOverviewDialog.show(); } } @@ -1240,7 +1242,7 @@ public class MainWindowController { // setting last played, if lastPlayed is empty game was never played before, else set correct date if (dbController.getLastPlayed(titleID).equals("") || dbController.getLastPlayed(titleID).equals(null)) { - lastTimePlayedBtn.setText("Last played, never"); + lastTimePlayedBtn.setText(lastPlayed + never); totalPlaytimeBtn.setText(dbController.getTotalPlaytime(titleID) + " min"); } else { DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd"); @@ -1344,6 +1346,8 @@ public class MainWindowController { updateBtn.setText(bundle.getString("updateBtnCheckNow")); smmdbDownloadBtn.setText(bundle.getString("smmdbDownloadBtn")); playBtn.setText(bundle.getString("playBtn")); + cloudSyncToggleBtn.setText(bundle.getString("cloudSyncToggleBtn")); + autoUpdateToggleBtn.setText(bundle.getString("autoUpdateToggleBtn")); // Labels cemu_UISettingsLbl.setText(bundle.getString("cemu_UISettingsLbl")); @@ -1373,6 +1377,7 @@ public class MainWindowController { addDLCBodyText = bundle.getString("addDLCBodyText"); licensesLblHeadingText = bundle.getString("licensesLblHeadingText"); licensesLblBodyText = bundle.getString("licensesLblBodyText"); + showLicenses = bundle.getString("showLicenses"); aboutBtnHeadingText = bundle.getString("aboutBtnHeadingText"); aboutBtnBodyText = bundle.getString("aboutBtnBodyText"); cloudSyncWaringHeadingText = bundle.getString("cloudSyncWaringHeadingText"); @@ -1386,6 +1391,7 @@ public class MainWindowController { lastPlayed = bundle.getString("lastPlayed"); today = bundle.getString("today"); yesterday = bundle.getString("yesterday"); + never = bundle.getString("never"); playBtnPlay = bundle.getString("playBtnPlay"); playBtnUpdating = bundle.getString("playBtnUpdating"); diff --git a/src/main/java/com/cemu_UI/uiElements/JFXOkayCancelDialog.java b/src/main/java/com/cemu_UI/uiElements/JFXOkayCancelDialog.java index 6e35a75..5dd4d1a 100644 --- a/src/main/java/com/cemu_UI/uiElements/JFXOkayCancelDialog.java +++ b/src/main/java/com/cemu_UI/uiElements/JFXOkayCancelDialog.java @@ -47,7 +47,6 @@ public class JFXOkayCancelDialog { private EventHandler okayAction; private EventHandler cancelAction; private Pane pane; - private ResourceBundle bundle; /** * Creates a new JFoenix Dialog to show some information with okay and cancel option @@ -71,12 +70,11 @@ public class JFXOkayCancelDialog { this.okayAction = okayAction; this.cancelAction = cancelAction; this.pane = pane; - this.bundle = bundle; + okayText = bundle.getString("okayBtnText"); + cancelText = bundle.getString("cancelBtnText"); } public void show() { - okayText = bundle.getString("okayBtnText"); - cancelText = bundle.getString("cancelBtnText"); JFXDialogLayout content = new JFXDialogLayout(); content.setHeading(new Text(headingText)); diff --git a/src/main/resources/fxml/MainWindow.fxml b/src/main/resources/fxml/MainWindow.fxml index 5502ba9..d67e830 100644 --- a/src/main/resources/fxml/MainWindow.fxml +++ b/src/main/resources/fxml/MainWindow.fxml @@ -213,14 +213,14 @@ - + - + diff --git a/src/main/resources/locals/cemu_UI-Local_de_DE.properties b/src/main/resources/locals/cemu_UI-Local_de_DE.properties index aa9c214..e6d4b4b 100644 --- a/src/main/resources/locals/cemu_UI-Local_de_DE.properties +++ b/src/main/resources/locals/cemu_UI-Local_de_DE.properties @@ -1,63 +1,86 @@ -#HomeFlix-Local_de_DE.properties German Local +#HomeFlix-Local_de_DE.properties geramn Local -#main window translations -info = Info -settings = Einstellungen -streamingSettings = Stream Einst. -tfSearch = Suche... -openFolder = Ordner \u00F6ffnen +# Buttons +aboutBtn = \u00dcber +settingsBtn = Einstellungen +addBtn = Spiel hinzuf\u00fcgen +reloadRomsBtn = ROMs neu laden +smmdbBtn = smmdb +cemuTFBtn = Ordner \u00F6ffnen +romTFBtn = Ordner \u00F6ffnen +smmdbDownloadBtn = Download +playBtn = spielen +cloudSyncToggleBtn = Spielst\u00e4nde \u00fcber die Cloud syncronisieren (Google Drive) +autoUpdateToggleBtn = beim Start nach Updates suchen -#settings translations -settingsHead1Label = HomeFlix Einstellungen -tfPath = Pfad... -chooseFolder = Ordner ausw\u00E4hlen -mainColorLabel = Hauptfarbe: -fontsizeLabel = Schriftgr\u00F6\u00DFe: -localLabel = Sprache: -checkUpdates = Auf Update pr\u00FCfen -checkingUpdates = Es wird nach Updates gesucht... -updateBtnavail = Update verf\u00FCgbar -updateBtnNotavail = Kein Update verf\u00FCgbar -autoUpdateLabel = beim Start nach Updates suchen: -version = Version: +# Labels +cemu_UISettingsLbl = cemu_UI Einstellungen +cemuDirectoryLbl = cemu directory +romDirectoryLbl = ROM directory +mainColorLbl = Hauptfarbe +languageLbl = Sprache +updateLbl = updates +branchLbl = Updatezweig +cemuSettingsLbl = cemu Einstellungen +licensesLbl = Lizenzen -#column translations -columnName = Name -columnRating = Bewertung -columnStreamUrl = Datei Name -columnResolution = Aufl\u00F6sung -columnSeason = Staffel -columnYear = Jahr +# Columns +titleColumn = Titel +idColumn = ID +starsColumn = Sterne +timeColumn = Zeit -#error translations -errorUpdateV = Beim ausf\u00FChren des Updates ist ein Fehler aufgetreten! \nError: could not check update version (nvc)\nWeitere Hilfe erhalten sie unter www.kellerkinder.xyz \noder wenden sie sich an support@kellerkinder.xyz -errorUpdateD = Beim ausf\u00FChren des Updates ist ein Fehler aufgetreten! \nError: could not download update files (ndf)\nWeitere Hilfe erhalten sie unter www.kellerkinder.xyz \noder wenden sie sich an support@kellerkinder.xyz -errorPlay = Beim \u00F6ffnen der Datei ist ein Fehler aufgetreten! \nError: could not open file (nof) \nWeitere Hilfe erhalten sie unter www.kellerkinder.xyz \noder wenden sie sich an support@kellerkinder.xyz -errorMode = Oh, da lief etwas falsch! Da hat jemand einen falschen Modus verwendet. \nError: mode unknow (muk)\nWeitere Hilfe erhalten sie unter www.kellerkinder.xyz \noder wenden sie sich an support@kellerkinder.xyz -errorOpenStream = Beim \u00F6ffnen des Streams ist ein Fehler aufgetreten! -errorLoad = Beim laden der Einstellungen ist ein Fehler aufgetreten! -errorSave = Beim speichern der Einstellungen ist ein Fehler aufgetreten! -noFilmFound = Kein Film mit diesem Titel gefunden! -vlcNotInstalled = Um einen Film abspielen wird der VLC Media Player ben\u00F6tigt! -infoText = \nMaintainer: seilo@kellerkinder.xyz und \nhendrik.schutter@coptersicht.de \n(c) 2016-2017 Kellerkinder www.kellerkinder.xyz +# Strings +editHeadingText = bearbeiten +editBodyText = Du kannst den Title und den ROM-/Coverpfad bearbeiten. +removeHeadingText = löschen +removeBodyText = Bist du sicher dass du flgendes Spiel l\u00f6schen m\u00f6chtest +addUpdateHeadingText = update +addUpdateBodyText = Bitte w\u00e4hle das Update-Verzeichniss aus. +addDLCHeadingText = ein DLC hinzufügen +addDLCBodyText = Bitte w\u00e4hle das DLC-Verzeichniss aus. -#textFlow translations -title = Titel -year = Jahr -rating = Einstufung -publishedOn = Ver\u00F6ffentlicht am -duration = Laufzeit -genre = Gener -director = Regisseur -writer = Autor -actors = Schauspieler -plot = Beschreibung -language = Original Sprache -country = Produktionsland -awards = Auszeichnungen -metascore = Metascore -imdbRating = IMDB-Bewertung -type = Type +licensesLblHeadingText = cemu_UI +licensesLblBodyText = cemu_UI ist lizensiert unter der GNU GPL 3.\n\nJFoenix, Apache License 2.0\nminimal-json, MIT License\nsqlite-jdbc, Apache License 2.0\nApache Commons IO, Apache License 2.0\nApache Commons Logging, Apache License 2.0\nApache Commons Codec, Apache License 2.0\nApache Log4j 2, Apache License 2.0\n +showLicenses = Lizenzen \u00f6ffnen -firstStartHeader = Es ist kein Stammverzeichnis f\u00FCr Filme angegeben! -firstStartContent = Stammverzeichniss angeben? +aboutBtnHeadingText = cemu_UI +aboutBtnBodyText = Diese Programm wurde mit freier Software erstellt\nund ist lizensiert unter der GNU GPL 3.\n\nwww.kellerkinder.xyz + +cloudSyncWaringHeadingText = Spielst\u00e4nde über die Cloud syncronisieren (beta) +cloudSyncWaringBodyText = WARNING this is a completly WIP cloud save integration,\nit's NOT recomended to use this!!\n\nUse it on your own risk and backup everthing before! + +cloudSyncErrorHeadingText = Fehler beim initialisieren der Cloud-Verbindung! +cloudSyncErrorBodyText = Fehler beim initialisieren der Cloud-Verbindung.\nBitte lade die app.log (welceh du im cemu_UI Verzeichniss findest)\nauf \"https://github.com/Seil0/cemu_UI/issues\" hoch. + +addGameBtnHeadingText = eine neues Spiel zu cemu_Ui hinzuf\u00fcgen +addGameBtnBodyText = +addBtnReturnErrorHeadingText = Fehler beim hinzuf\u00fcgen des Spiels! +addBtnReturnErrorBodyText = Fehler beim hinzuf\u00fcgen des Spiels.\nEiner der benötigten Werte war leer, bitte versuche es erneut. +lastPlayed = zuletzt gespielt, +today = heute +yesterday = gestern +never = nie + +# button strings +playBtnPlay = spieles +playBtnUpdating = updating... +playBtnCopyingFiles = kopiere Dateien... +smmdbDownloadBtnLoading = laden +smmdbDownloadBtnDownload = Download +okayBtnText = okay +cancelBtnText = abbruch +updateBtnCheckNow = Auf Update pr\u00FCfen +updateBtnChecking = Es wird nach Updates gesucht... +updateBtnNoUpdateAvailable = Kein Update verf\u00FCgbar +updateBtnUpdateAvailable = Update verf\u00FCgbar + +#EditGameDialog +gameTitle = Spiel Titel +titleID = Titel ID +romPath = ROM Pfad +coverPath = Cover-Pfad +editGameDialogHeadingTextError = Fehler beim hinzuf\u00fcgen des Spiels! +editGameDialogBodyTextError = Fehler beim hinzuf\u00fcgen des Spiels.\nEiner der benötigten Werte war leer, bitte versuche es erneut. +editGameDialogSelectPathBtn = .rpx Datei ausw\u00E4hlen +editGameDialogSelectCoverBtn = cover Datei ausw\u00E4hlen diff --git a/src/main/resources/locals/cemu_UI-Local_en_US.properties b/src/main/resources/locals/cemu_UI-Local_en_US.properties index f965f2b..960bf3f 100644 --- a/src/main/resources/locals/cemu_UI-Local_en_US.properties +++ b/src/main/resources/locals/cemu_UI-Local_en_US.properties @@ -5,11 +5,13 @@ aboutBtn = About settingsBtn = Setting addBtn = Add new Game reloadRomsBtn = reload ROMs -smmdbBtn = ammdb +smmdbBtn = smmdb cemuTFBtn = choose directory romTFBtn = choose directory -smmdbDownloadBtn = -playBtn = +smmdbDownloadBtn = Download +playBtn = play +cloudSyncToggleBtn = cloud savegames (Google Drive) +autoUpdateToggleBtn = check for updates on startup # Labels cemu_UISettingsLbl = cemu_UI Settings @@ -40,6 +42,7 @@ addDLCBodyText = Please select the DLC root directory. licensesLblHeadingText = cemu_UI licensesLblBodyText = cemu_UI is licensed under the terms of GNU GPL 3.\n\nJFoenix, Apache License 2.0\nminimal-json, MIT License\nsqlite-jdbc, Apache License 2.0\nApache Commons IO, Apache License 2.0\nApache Commons Logging, Apache License 2.0\nApache Commons Codec, Apache License 2.0\nApache Log4j 2, Apache License 2.0\n +showLicenses = show licenses aboutBtnHeadingText = cemu_UI aboutBtnBodyText = This Application is made with free Software\nand licensed under the terms of GNU GPL 3.\n\nwww.kellerkinder.xyz @@ -48,7 +51,7 @@ cloudSyncWaringHeadingText = activate cloud savegame sync (beta) cloudSyncWaringBodyText = WARNING this is a completly WIP cloud save integration,\nit's NOT recomended to use this!!\n\nUse it on your own risk and backup everthing before! cloudSyncErrorHeadingText = Error while initializing cloud sync! -cloudSyncErrorBodyText = There was some truble adding your game.\nPlease upload the app.log (which can be found in the cemu_UI directory)\nto \"https://github.com/Seil0/cemu_UI/issues\" so we can fix this. +cloudSyncErrorBodyText = There was some truble while initializing cloud sync.\nPlease upload the app.log (which can be found in the cemu_UI directory)\nto \"https://github.com/Seil0/cemu_UI/issues\" so we can fix this. addGameBtnHeadingText = add a new game to cemu_UI addGameBtnBodyText = @@ -57,6 +60,7 @@ addBtnReturnErrorBodyText = There was some truble adding your game.\nOne of the lastPlayed = Last played, today = today yesterday = yesterday +never = never # button strings playBtnPlay = play