Skip to content

Commit

Permalink
localize texts in flatpak s3 directory dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
paulwedeck committed Oct 2, 2022
1 parent 5a667be commit 923b66d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -596,4 +596,9 @@ errordlg-header = Fehler
errordlg-map-loading-failed = Die Karte konnte nicht geladen werden.
errordlg-start-failed = Unerwarteter Fehler aufgetreten:

error-rendering = Es ist leider ein Fehler aufgetreten :/\nBitte melden sie diesen Fehler auf GitHub\nBeachten Sie die Hinweise unter "Found a bug?"\n(github.com/paulwedeck/settlers-remake)\n\n%s
error-rendering = Es ist leider ein Fehler aufgetreten :/\nBitte melden Sie diesen Fehler auf GitHub\nBeachten Sie die Hinweise unter "Found a bug?"\n(github.com/paulwedeck/settlers-remake)\n\n%s

flatpak-title=S3-Verzeichnis auswählen
flatpak-description=JSettlers benötigt einige Dateien aus einer Siedler III Installation.\n\
Falls Sie keine Kopie besitzen, folgen Sie den Hinweisen auf unserer GitHub-Seite.\n\
Geben Sie im folgenden Fenster das Verzeichnis an.
Original file line number Diff line number Diff line change
Expand Up @@ -602,3 +602,6 @@ errordlg-map-loading-failed = The map could not be loaded.
errordlg-start-failed = Unexpected Error occurred:

error-rendering = An error has occured :/\nPlease report this bug on GitHub\nTake note of the "Found a bug?" section in the readme\n(github.com/paulwedeck/settlers-remake)\n\n%s

flatpak-title=Select original game directory
flatpak-description=JSettlers needs graphics and sound files from a Settlers 3 installation to run.\nIf you don't own a copy read the README on our GitHub page.\nYou must now select such an installation directory to proceed.
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,8 @@ public void windowClosing(WindowEvent e) {
public static File askForFolder() {
if(FLATPAK_FLAG.exists()) {
try {
JOptionPane.showMessageDialog(null, "JSettlers needs graphics and sound files from a Settlers 3 installation to run.\n" +
"If you don't own a copy read the README on our GitHub page.\n" +
"You must now select such an installation directory to proceed.");
Process proc = Runtime.getRuntime().exec(new String[]{"zenity", "--file-selection" ,"--directory" ,"--title", "Select original game directory"});
JOptionPane.showMessageDialog(null, Labels.getString("flatpak-description"));
Process proc = Runtime.getRuntime().exec(new String[]{"zenity", "--file-selection" ,"--directory" ,"--title", Labels.getString("flatpak-title")});
proc.waitFor();
String dir = null;
try(BufferedReader reader = new BufferedReader(new InputStreamReader(proc.getInputStream()))) {
Expand Down

0 comments on commit 923b66d

Please sign in to comment.