Skip to content
Snippets Groups Projects
Commit f6680270 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Localize playout log dialog

parent 8ab9e909
Branches
Tags
No related merge requests found
...@@ -9,4 +9,9 @@ public final class Strings { ...@@ -9,4 +9,9 @@ public final class Strings {
public static final String MENU_ITEM_LOG = "main.menuitem.log"; public static final String MENU_ITEM_LOG = "main.menuitem.log";
public static final String PLAYOUT_LOG_DIALOG_LABEL_HEADLINE = "PlayoutLogDialog.Label.Headline";
public static final String PLAYOUT_LOG_DIALOG_BUTTON_START = "PlayoutLogDialog.Button.Start";
public static final String PLAYOUT_LOG_DIALOG_BUTTON_STOP = "PlayoutLogDialog.Button.Stop";
public static final String PLAYOUT_LOG_DIALOG_BUTTON_EXPORT = "PlayoutLogDialog.Button.Export";
public static final String PLAYOUT_LOG_DIALOG_BUTTON_DELETE = "PlayoutLogDialog.Button.Delete";
} }
...@@ -46,7 +46,6 @@ public class PlayoutLogViewController extends NVC { ...@@ -46,7 +46,6 @@ public class PlayoutLogViewController extends NVC {
private FontIcon logIcon; private FontIcon logIcon;
// TODO l10n
public PlayoutLogViewController(Window owner) { public PlayoutLogViewController(Window owner) {
load("view/dialog", "PlayoutLogDialog", Localization.getBundle()); load("view/dialog", "PlayoutLogDialog", Localization.getBundle());
...@@ -64,11 +63,11 @@ public class PlayoutLogViewController extends NVC { ...@@ -64,11 +63,11 @@ public class PlayoutLogViewController extends NVC {
logIcon = new FontIcon(FontAwesomeType.LIST); logIcon = new FontIcon(FontAwesomeType.LIST);
if (LogSeasons.getInstance() != null) { // Running if (LogSeasons.getInstance() != null) { // Running
startButton.setText("Stop"); // TODO l10n startButton.setText(Localization.getString(Strings.PLAYOUT_LOG_DIALOG_BUTTON_STOP));
nameTextField.setDisable(true); nameTextField.setDisable(true);
nameTextField.setText(LogSeasons.getInstance().getName()); nameTextField.setText(LogSeasons.getInstance().getName());
} else { } else {
startButton.setText("Start"); // TODO l10n startButton.setText(Localization.getString(Strings.PLAYOUT_LOG_DIALOG_BUTTON_START));
nameTextField.setDisable(false); nameTextField.setDisable(false);
} }
} }
...@@ -102,12 +101,12 @@ public class PlayoutLogViewController extends NVC { ...@@ -102,12 +101,12 @@ public class PlayoutLogViewController extends NVC {
logSeason.createProjectSnapshot(currentProject); logSeason.createProjectSnapshot(currentProject);
controller.addToolbarItem(logIcon); controller.addToolbarItem(logIcon);
startButton.setText("Stop"); // TODO l10n startButton.setText(Localization.getString(Strings.PLAYOUT_LOG_DIALOG_BUTTON_STOP));
nameTextField.setDisable(false); nameTextField.setDisable(false);
} else { // Stop } else { // Stop
LogSeasons.stop(); LogSeasons.stop();
controller.removeToolbarItem(logIcon); controller.removeToolbarItem(logIcon);
startButton.setText("Start"); // TODO l10n startButton.setText(Localization.getString(Strings.PLAYOUT_LOG_DIALOG_BUTTON_START));
nameTextField.setDisable(false); nameTextField.setDisable(false);
} }
} }
......
UI.Dialog.PlayoutLog.Title=PlayoutLog UI.Dialog.PlayoutLog.Title=PlayoutLog
main.menuitem.log=Playout Log... main.menuitem.log=Playout Log...
PlayoutLogDialog.Label.Headline=PlayOut Log
PlayoutLogDialog.Button.Start=Starten
PlayoutLogDialog.Button.Stop=Stoppen
PlayoutLogDialog.Button.Export=Exportieren...
PlayoutLogDialog.Button.Delete=L\u00F6schen...
\ No newline at end of file
...@@ -7,13 +7,14 @@ ...@@ -7,13 +7,14 @@
<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" spacing="14.0" <VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" spacing="14.0"
xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"> xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1">
<children> <children>
<Label styleClass="headline" text="PlayOut Log"/> <Label styleClass="headline" text="%PlayoutLogDialog.Label.Headline"/>
<HBox spacing="14.0"> <HBox spacing="14.0">
<children> <children>
<TextField fx:id="nameTextField" maxWidth="1.7976931348623157E308" prefWidth="300.0" promptText="Name" <TextField fx:id="nameTextField" maxWidth="1.7976931348623157E308" prefWidth="300.0" promptText="Name"
HBox.hgrow="ALWAYS"/> HBox.hgrow="ALWAYS"/>
<Button fx:id="startButton" maxWidth="1.7976931348623157E308" mnemonicParsing="false" <Button fx:id="startButton" maxWidth="1.7976931348623157E308" mnemonicParsing="false"
onAction="#startButtonHandler" prefWidth="100.0" text="Starten" HBox.hgrow="ALWAYS"/> onAction="#startButtonHandler" prefWidth="100.0" text="%PlayoutLogDialog.Button.Start"
HBox.hgrow="ALWAYS"/>
</children> </children>
</HBox> </HBox>
<HBox maxWidth="1.7976931348623157E308" spacing="14.0" VBox.vgrow="ALWAYS"> <HBox maxWidth="1.7976931348623157E308" spacing="14.0" VBox.vgrow="ALWAYS">
...@@ -23,9 +24,10 @@ ...@@ -23,9 +24,10 @@
<VBox maxWidth="1.7976931348623157E308" spacing="14.0" HBox.hgrow="ALWAYS"> <VBox maxWidth="1.7976931348623157E308" spacing="14.0" HBox.hgrow="ALWAYS">
<children> <children>
<Button fx:id="exportButton" maxWidth="1.7976931348623157E308" mnemonicParsing="false" <Button fx:id="exportButton" maxWidth="1.7976931348623157E308" mnemonicParsing="false"
onAction="#exportButtonHandler" prefWidth="100.0" text="Export..." VBox.vgrow="ALWAYS"/> onAction="#exportButtonHandler" prefWidth="100.0" text="%PlayoutLogDialog.Button.Export"
VBox.vgrow="ALWAYS"/>
<Button fx:id="deleteButton" maxWidth="1.7976931348623157E308" mnemonicParsing="false" <Button fx:id="deleteButton" maxWidth="1.7976931348623157E308" mnemonicParsing="false"
onAction="#deleteButtonHandler" prefWidth="100.0" text="Löschen..." onAction="#deleteButtonHandler" prefWidth="100.0" text="%PlayoutLogDialog.Button.Delete"
VBox.vgrow="ALWAYS"/> VBox.vgrow="ALWAYS"/>
</children> </children>
</VBox> </VBox>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment