Skip to content

Commit

Permalink
Set default command for Windows. Fix localization entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
obraliar committed Jul 17, 2016
1 parent 1d4dee0 commit 1cd9284
Show file tree
Hide file tree
Showing 20 changed files with 43 additions and 39 deletions.
6 changes: 5 additions & 1 deletion src/main/java/net/sf/jabref/JabRefPreferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,11 @@ private JabRefPreferences() {
defaults.put(INDENT, 4);

defaults.put(USE_DEFAULT_CONSOLE_APPLICATION, Boolean.TRUE);
defaults.put(CONSOLE_COMMAND, "");
if (OS.WINDOWS) {
defaults.put(CONSOLE_COMMAND, "C:\\Program Files\\ConEmu\\ConEmu64.exe /single /dir \"%DIR\"");
} else {
defaults.put(CONSOLE_COMMAND, "");
}

//versioncheck defaults
defaults.put(VersionPreferences.VERSION_IGNORED_UPDATE, "");
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/sf/jabref/gui/desktop/JabRefDesktop.java
Original file line number Diff line number Diff line change
Expand Up @@ -339,13 +339,13 @@ public static void openConsole(File file) throws IOException {
}
}

JabRefGUI.getMainFrame().output(Localization.lang("Executing the command \"%0\"...", commandLoggingText.toString()));
LOGGER.info(Localization.lang("Executing the command \"%0\"...", commandLoggingText.toString()));
JabRefGUI.getMainFrame().output(Localization.lang("Executing command \"%0\"...", commandLoggingText.toString()));
LOGGER.info("Executing command \"" + commandLoggingText.toString() + "\"...");

try {
new ProcessBuilder(subcommands).start();
} catch (IOException exception) {
LOGGER.error(Localization.lang("Open console"), exception);
LOGGER.error("Open console", exception);

JOptionPane.showMessageDialog(JabRefGUI.getMainFrame(),
Localization.lang("Error_occured_while_executing_the_command_\"%0\".", commandLoggingText.toString()),
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/sf/jabref/gui/preftabs/ExternalTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public ExternalTab(JabRefFrame frame, PreferencesDialog prefsDiag, JabRefPrefere


defaultConsole = new JRadioButton(Localization.lang("Use default terminal emulator"));
executeConsole = new JRadioButton(Localization.lang("Execute") + ":");
executeConsole = new JRadioButton(Localization.lang("Execute command") + ":");
consoleCommand = new JTextField();
consoleChooser = new JFileChooser();
browseButton = new JButton(Localization.lang("Browse"));
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_da.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1710,10 +1710,10 @@ Converts_HTML_code_to_Unicode.=
Open_console=
Use_default_terminal_emulator=

Execute=
Execute_command=


Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=

Executing_the_command_\"%0\"...=
Executing_command_\"%0\"...=
Error_occured_while_executing_the_command_\"%0\".=
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2428,11 +2428,11 @@ Custom=
Open_console=Terminal_öffnen
Use_default_terminal_emulator=Standard_Terminal-Emulator_verwenden

Execute=Ausführen
Execute_command=Befehl_ausführen



Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=Hinweis\:_%0_als_Platzhalter_für_den_Speicherort_der_Datenbank_benutzen.

Executing_the_command_\"%0\"...=Ausführung_des_Kommandos_\"%0\"...
Executing_command_\"%0\"...=Ausführung_des_Kommandos_\"%0\"...
Error_occured_while_executing_the_command_\"%0\".=Während_der_Ausführung_des_Befehls_\"%0\"_ist_ein_Fehler_aufgetreten.
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2276,7 +2276,7 @@ Custom=Custom

Open_console=Open_console
Use_default_terminal_emulator=Use_default_terminal_emulator
Execute=Execute
Execute_command=Execute_command
Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.
Executing_the_command_\"%0\"...=Executing_the_command_\"%0\"...
Executing_command_\"%0\"...=Executing_command_\"%0\"...
Error_occured_while_executing_the_command_\"%0\".=Error_occured_while_executing_the_command_\"%0\".
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_es.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1612,10 +1612,10 @@ Converts_HTML_code_to_Unicode.=
Open_console=
Use_default_terminal_emulator=

Execute=
Execute_command=


Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=

Executing_the_command_\"%0\"...=
Executing_command_\"%0\"...=
Error_occured_while_executing_the_command_\"%0\".=
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_fa.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2398,10 +2398,10 @@ Converts_HTML_code_to_Unicode.=
Open_console=
Use_default_terminal_emulator=

Execute=
Execute_command=


Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=

Executing_the_command_\"%0\"...=
Executing_command_\"%0\"...=
Error_occured_while_executing_the_command_\"%0\".=
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_fr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1656,10 +1656,10 @@ Converts_HTML_code_to_Unicode.=
Open_console=
Use_default_terminal_emulator=

Execute=
Execute_command=


Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=

Executing_the_command_\"%0\"...=
Executing_command_\"%0\"...=
Error_occured_while_executing_the_command_\"%0\".=
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_in.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1631,10 +1631,10 @@ Converts_HTML_code_to_Unicode.=
Open_console=
Use_default_terminal_emulator=

Execute=
Execute_command=


Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=

Executing_the_command_\"%0\"...=
Executing_command_\"%0\"...=
Error_occured_while_executing_the_command_\"%0\".=
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_it.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1731,10 +1731,10 @@ Converts_HTML_code_to_Unicode.=
Open_console=
Use_default_terminal_emulator=

Execute=
Execute_command=


Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=

Executing_the_command_\"%0\"...=
Executing_command_\"%0\"...=
Error_occured_while_executing_the_command_\"%0\".=
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_ja.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2376,10 +2376,10 @@ Converts_HTML_code_to_Unicode.=
Open_console=
Use_default_terminal_emulator=

Execute=
Execute_command=


Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=

Executing_the_command_\"%0\"...=
Executing_command_\"%0\"...=
Error_occured_while_executing_the_command_\"%0\".=
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_nl.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2407,10 +2407,10 @@ Converts_HTML_code_to_Unicode.=
Open_console=
Use_default_terminal_emulator=

Execute=
Execute_command=


Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=

Executing_the_command_\"%0\"...=
Executing_command_\"%0\"...=
Error_occured_while_executing_the_command_\"%0\".=
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_no.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2803,10 +2803,10 @@ Converts_HTML_code_to_Unicode.=
Open_console=
Use_default_terminal_emulator=

Execute=
Execute_command=


Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=

Executing_the_command_\"%0\"...=
Executing_command_\"%0\"...=
Error_occured_while_executing_the_command_\"%0\".=
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_pt_BR.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1625,10 +1625,10 @@ Converts_HTML_code_to_Unicode.=
Open_console=
Use_default_terminal_emulator=

Execute=
Execute_command=


Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=

Executing_the_command_\"%0\"...=
Executing_command_\"%0\"...=
Error_occured_while_executing_the_command_\"%0\".=
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_ru.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2375,10 +2375,10 @@ Converts_HTML_code_to_Unicode.=
Open_console=
Use_default_terminal_emulator=

Execute=
Execute_command=


Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=

Executing_the_command_\"%0\"...=
Executing_command_\"%0\"...=
Error_occured_while_executing_the_command_\"%0\".=
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_sv.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1568,10 +1568,10 @@ Custom=Egna
Open_console=
Use_default_terminal_emulator=

Execute=
Execute_command=


Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=

Executing_the_command_\"%0\"...=
Executing_command_\"%0\"...=
Error_occured_while_executing_the_command_\"%0\".=
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_tr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1644,10 +1644,10 @@ Converts_HTML_code_to_Unicode.=
Open_console=
Use_default_terminal_emulator=

Execute=
Execute_command=


Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=

Executing_the_command_\"%0\"...=
Executing_command_\"%0\"...=
Error_occured_while_executing_the_command_\"%0\".=
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_vi.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2399,10 +2399,10 @@ Converts_HTML_code_to_Unicode.=
Open_console=
Use_default_terminal_emulator=

Execute=
Execute_command=


Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=

Executing_the_command_\"%0\"...=
Executing_command_\"%0\"...=
Error_occured_while_executing_the_command_\"%0\".=
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_zh.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1638,10 +1638,10 @@ Converts_HTML_code_to_Unicode.=
Open_console=
Use_default_terminal_emulator=

Execute=
Execute_command=


Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_database_file.=

Executing_the_command_\"%0\"...=
Executing_command_\"%0\"...=
Error_occured_while_executing_the_command_\"%0\".=

0 comments on commit 1cd9284

Please sign in to comment.