Skip to content

Commit

Permalink
add Albanian support to CVAC (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
BJNFNE authored Oct 30, 2023
1 parent b540881 commit aef7cf4
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/main/java/de/samir/vmdconverter/AppController.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class AppController {
@FXML
private ComboBox<String> comboBox;
private final ObservableList<String> languagesList = FXCollections.observableArrayList("Deutsch (German)",
"English (US)", "עִברִית (Hebrew)", "Русский (RU)");
"English (US)", "עִברִית (Hebrew)", "Русский (RU)", "Shqiptare (ALB)");


@FXML
Expand Down Expand Up @@ -94,6 +94,8 @@ public void switchLanguage(final ActionEvent actionEvent) throws IOException {
App.setRoot("hebrew");
} else if (comboBox.getValue().equals(languagesList.get(3))) {
App.setRoot("russian");
} else if (comboBox.getValue().equals(languagesList.get(4))) {
App.setRoot("albanian");
}
}

Expand Down
49 changes: 49 additions & 0 deletions src/main/resources/de/samir/vmdconverter/albanian.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.effect.Blend?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.text.Font?>

<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="631.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="de.samir.vmdconverter.AppController">
<effect>
<Blend />
</effect>
<ComboBox fx:id="comboBox" layoutX="6.0" layoutY="2.0" onAction="#switchLanguage" prefWidth="150.0" promptText="Shqiptare (ALB)" />
<AnchorPane layoutX="190.0" layoutY="86.0" prefHeight="114.0" prefWidth="249.0">
<TextField fx:id="inputField" editable="false" layoutX="-17.0" layoutY="24.0" prefHeight="25.0" prefWidth="166.0" />
<Button layoutX="161.0" layoutY="24.0" mnemonicParsing="false" onAction="#inputFieldBrowseButton" prefHeight="25.0" prefWidth="92.0" text="Kërko" textAlignment="CENTER" />
<TextField fx:id="outputField" editable="false" layoutX="-17.0" layoutY="81.0" prefHeight="25.0" prefWidth="166.0" />
<Button layoutX="161.0" layoutY="81.0" mnemonicParsing="false" onAction="#outputFieldBrowseButton" prefHeight="25.0" prefWidth="92.0" text="Kërko" />
<Label layoutX="-15.0" layoutY="60.0" text="Dosja e daljes:" textAlignment="CENTER">
<font>
<Font name="Cascadia Code SemiBold" size="14.0" />
</font>
</Label>
<Label layoutX="-15.0" layoutY="6.0" prefHeight="20.0" prefWidth="81.0" text="Dosje:" textAlignment="CENTER">
<font>
<Font name="Cascadia Code SemiBold" size="14.0" />
</font>
</Label>
</AnchorPane>
<HBox layoutX="177.0" layoutY="230.0" prefHeight="25.0" prefWidth="200.0" spacing="60.0">
<ComboBox fx:id="formatBox" prefHeight="25.0" prefWidth="198.0"/>
</HBox>
<Label layoutX="177.0" layoutY="206.0" text="Konverto në:" textAlignment="CENTER">
<font>
<Font name="System Bold" size="12.0" />
</font>
</Label>
<Button fx:id="startButton" layoutX="196.0" layoutY="288.0" mnemonicParsing="false" onAction="#startButton" prefHeight="25.0" prefWidth="189.0" text="Fillojnë" textAlignment="CENTER">
<font>
<Font name="System Bold" size="12.0" />
</font>
</Button>
<TextArea fx:id="consoleLog" editable="false" layoutX="66.0" layoutY="345.0" prefHeight="272.0" prefWidth="469.0" promptText="Në pritje të një skedari...." />
</Pane>
2 changes: 1 addition & 1 deletion src/main/resources/de/samir/vmdconverter/english.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@
</font>
</Button>
<TextArea fx:id="consoleLog" editable="false" layoutX="66.0" layoutY="345.0" prefHeight="272.0" prefWidth="469.0"
promptText="Waiting for an VMD File..."/>
promptText="Waiting for an File..."/>
</Pane>
2 changes: 1 addition & 1 deletion src/main/resources/de/samir/vmdconverter/german.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@
<Font name="System Bold" size="12.0" />
</font>
</Button>
<TextArea fx:id="consoleLog" editable="false" layoutX="66.0" layoutY="345.0" prefHeight="272.0" prefWidth="469.0" promptText="Wartet auf eine VMD Datei..." />
<TextArea fx:id="consoleLog" editable="false" layoutX="66.0" layoutY="345.0" prefHeight="272.0" prefWidth="469.0" promptText="Wartet auf eine Datei..." />
</Pane>
2 changes: 1 addition & 1 deletion src/main/resources/de/samir/vmdconverter/hebrew.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@
</font>
</Button>
<TextArea fx:id="consoleLog" editable="false" layoutX="66.0" layoutY="345.0" prefHeight="272.0" prefWidth="469.0"
promptText="ממתין לקובץ VMD..."/>
promptText="ממתין לקובץ ..."/>
</Pane>
2 changes: 1 addition & 1 deletion src/main/resources/de/samir/vmdconverter/russian.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@
</font>
</Button>
<TextArea fx:id="consoleLog" editable="false" layoutX="66.0" layoutY="345.0" prefHeight="272.0" prefWidth="469.0"
promptText="Ожидание файла VMD...
promptText="Ожидание файла...
"/>
</Pane>

0 comments on commit aef7cf4

Please sign in to comment.