Skip to content

Commit

Permalink
add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Hoppe committed Mar 28, 2017
1 parent 0e866c2 commit aecc026
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 40 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.thm.mni.mote.mode</groupId>
<artifactId>MoDE</artifactId>
<version>0.6.8-SNAPSHOT</version>
<version>0.6.9-SNAPSHOT</version>

<packaging>jar</packaging>

Expand Down
11 changes: 11 additions & 0 deletions src/main/resources/de/thm/mni/mote/mode/i18n/MoDE_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ dialog.new_project.select=Wähle Bibliothek
dialog.new_project.clear=Lösche Bibliotheken
dialog.new_project.add=Füge Bibliothek hinzu
dialog.new_project.remove_selected=Entferne ausgewählte Bibliotheken
#new class -> package
dialog.new_class.package=Neues Package
#new class -> model
dialog.new_class.model=Neues Model
#new class -> global
dialog.new_class.path=Within:
dialog.new_class.name=Name:
dialog.new_class.comment=Kommentar:
dialog.new_class.documentation=Dokumentation:
dialog.new_class.extent.preserve_aspect_ratio=Seitenverhältnis beibehalten
dialog.new_class.initial_scale=Initiale Skalierung:


settings.global.file=Datei
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>

<DialogPane fx:id="dialog" minHeight="600.0" stylesheets="@../../css/Basis.css" xmlns="http://javafx.com/javafx/8.0.121"
<DialogPane fx:id="dialog" stylesheets="@../../css/Basis.css" xmlns="http://javafx.com/javafx/8.0.121"
xmlns:fx="http://javafx.com/fxml/1"
fx:controller="de.thm.mni.mote.mode.uiactor.controller.dialogs.CreateNewModelController">
<content>
<GridPane>
<GridPane hgap="5.0">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" prefWidth="160.0"/>
<ColumnConstraints hgrow="SOMETIMES" prefWidth="300.0"/>
Expand Down Expand Up @@ -50,15 +50,15 @@
<Font size="18.0"/>
</font>
</Label>
<Label text="%dialog.new_class.path" GridPane.rowIndex="2"/>
<Label text="%dialog.new_class.path" GridPane.halignment="RIGHT" GridPane.rowIndex="2"/>
<TextField fx:id="tfPath" disable="true" GridPane.columnIndex="1" GridPane.rowIndex="2"/>

<Label text="%dialog.new_class.name" GridPane.halignment="RIGHT" GridPane.rowIndex="4"/>
<TextField fx:id="tfName" GridPane.columnIndex="1" GridPane.rowIndex="4"/>
<Label text="%dialog.new_class.comment" GridPane.rowIndex="6"/>

<Label text="%dialog.new_class.comment" GridPane.halignment="RIGHT" GridPane.rowIndex="6"/>
<TextField fx:id="tfComment" GridPane.columnIndex="1" GridPane.rowIndex="6"/>

<Label text="%dialog.new_class.documentation" GridPane.columnSpan="2147483647" GridPane.hgrow="ALWAYS"
GridPane.rowIndex="16"/>
<TextArea fx:id="taDocumentation" prefHeight="250.0" GridPane.columnSpan="2147483647" GridPane.hgrow="ALWAYS"
Expand All @@ -67,18 +67,18 @@
<Insets/>
</GridPane.margin>
</TextArea>
<Label text="%dialog.new_class.extent" GridPane.rowIndex="8"/>
<VBox alignment="TOP_CENTER" spacing="5.0" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS"
GridPane.rowIndex="8" GridPane.rowSpan="3">
<Label text="%dialog.new_class.extent" GridPane.halignment="RIGHT" GridPane.rowIndex="8"/>
<VBox alignment="TOP_CENTER" spacing="5.0" GridPane.columnIndex="1" GridPane.halignment="LEFT"
GridPane.hgrow="ALWAYS" GridPane.rowIndex="8" GridPane.rowSpan="3">
<children>
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0" spacing="10.0">
<HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" spacing="10.0">
<children>
<Label text="%dialog.new_class.extent.x1">
<font>
<Font size="12.0"/>
</font>
</Label>
<TextField disable="true" fx:id="tfX1" maxWidth="75.0" minWidth="75.0" text="-100"/>
<TextField fx:id="tfX1" disable="true" maxWidth="75.0" minWidth="75.0" text="-100"/>
<Label text="%dialog.new_class.extent.y1">
<HBox.margin>
<Insets left="10.0"/>
Expand All @@ -87,17 +87,17 @@
<Font size="12.0"/>
</font>
</Label>
<TextField disable="true" fx:id="tfY1" maxWidth="75.0" minWidth="75.0" text="-100"/>
<TextField fx:id="tfY1" disable="true" maxWidth="75.0" minWidth="75.0" text="-100"/>
</children>
</HBox>
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0" spacing="10.0">
<HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" spacing="10.0">
<children>
<Label text="%dialog.new_class.extent.x2">
<font>
<Font size="12.0"/>
</font>
</Label>
<TextField disable="true" fx:id="tfX2" maxWidth="75.0" minWidth="75.0" text="100"/>
<TextField fx:id="tfX2" disable="true" maxWidth="75.0" minWidth="75.0" text="100"/>
<Label text="%dialog.new_class.extent.y2">
<HBox.margin>
<Insets left="10.0"/>
Expand All @@ -106,39 +106,42 @@
<Font size="12.0"/>
</font>
</Label>
<TextField disable="true" fx:id="tfY2" maxWidth="75.0" minWidth="75.0" text="100"/>
<TextField fx:id="tfY2" disable="true" maxWidth="75.0" minWidth="75.0" text="100"/>
</children>
</HBox>
<HBox GridPane.columnIndex="1" GridPane.rowIndex="12">
<children>
<CheckBox fx:id="cbPreserveAspectRatio" alignment="TOP_LEFT" mnemonicParsing="false" selected="true"
text="%dialog.new_class.extent.preserve_aspect_ratio">
<font>
<Font size="12.0"/>
</font>
</CheckBox>
</children>
</HBox>
<CheckBox fx:id="cbPreserveAspectRatio" mnemonicParsing="false" selected="true"
text="%dialog.new_class.extent.preserve_aspect_ratio" GridPane.columnIndex="1"
GridPane.rowIndex="12">
<font>
<Font size="12.0"/>
</font>
</CheckBox>
</children>
<GridPane.margin>
<Insets left="10.0" right="10.0"/>
<Insets left="15.0" right="10.0"/>
</GridPane.margin>
</VBox>
<Label text="%dialog.new_class.initial_scale" GridPane.rowIndex="12"/>
<TextField disable="true" fx:id="tfInitialScale" maxWidth="75.0" minWidth="75.0" text="0.1"
<Label text="%dialog.new_class.initial_scale" GridPane.halignment="RIGHT" GridPane.rowIndex="12"/>
<TextField fx:id="tfInitialScale" disable="true" maxWidth="75.0" minWidth="75.0" text="0.1"
GridPane.columnIndex="1" GridPane.rowIndex="12">
<GridPane.margin>
<Insets left="10.0"/>
</GridPane.margin>
</TextField>
<Label text="%dialog.new_class.snap_grid" GridPane.rowIndex="14"/>
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0" spacing="10.0" GridPane.columnIndex="1"

<Label text="%dialog.new_class.snap_grid" GridPane.halignment="RIGHT" GridPane.rowIndex="14"/>
<HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" spacing="10.0" GridPane.columnIndex="1"
GridPane.rowIndex="14">
<children>
<Label text="%dialog.new_class.snap_grid.x">
<font>
<Font size="12.0"/>
</font>
</Label>
<TextField disable="true" fx:id="tfSnapX" maxWidth="75.0" minWidth="75.0" text="2"/>
<TextField fx:id="tfSnapX" disable="true" maxWidth="75.0" minWidth="75.0" text="2"/>
<Label text="%dialog.new_class.snap_grid.y">
<HBox.margin>
<Insets left="10.0"/>
Expand All @@ -147,11 +150,14 @@
<Font size="12.0"/>
</font>
</Label>
<TextField disable="true" fx:id="tfSnapY" maxWidth="75.0" minWidth="75.0" text="2"/>
<TextField fx:id="tfSnapY" disable="true" maxWidth="75.0" minWidth="75.0" text="2"/>
</children>
<GridPane.margin>
<Insets left="10.0" right="10.0"/>
<Insets left="15.0" right="10.0"/>
</GridPane.margin>
<opaqueInsets>
<Insets/>
</opaqueInsets>
</HBox>
</children>
<padding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.text.Font?>

<DialogPane fx:id="dialog" minHeight="600.0" stylesheets="@../../css/Basis.css" xmlns="http://javafx.com/javafx/8.0.121"
<DialogPane fx:id="dialog" stylesheets="@../../css/Basis.css" xmlns="http://javafx.com/javafx/8.0.121"
xmlns:fx="http://javafx.com/fxml/1"
fx:controller="de.thm.mni.mote.mode.uiactor.controller.dialogs.CreateNewPackageController">
<content>
<GridPane>
<GridPane hgap="5.0">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" prefWidth="160.0"/>
<ColumnConstraints hgrow="SOMETIMES" prefWidth="300.0"/>
Expand All @@ -39,15 +39,15 @@
<Font size="18.0"/>
</font>
</Label>
<Label text="%dialog.new_class.path" GridPane.rowIndex="2"/>
<Label text="%dialog.new_class.path" GridPane.halignment="RIGHT" GridPane.rowIndex="2"/>
<TextField fx:id="tfPath" disable="true" GridPane.columnIndex="1" GridPane.rowIndex="2"/>

<Label text="%dialog.new_class.name" GridPane.halignment="RIGHT" GridPane.rowIndex="4"/>
<TextField fx:id="tfName" GridPane.columnIndex="1" GridPane.rowIndex="4"/>
<Label text="%dialog.new_class.comment" GridPane.rowIndex="6"/>

<Label text="%dialog.new_class.comment" GridPane.halignment="RIGHT" GridPane.rowIndex="6"/>
<TextField fx:id="tfComment" GridPane.columnIndex="1" GridPane.rowIndex="6"/>

<Label text="%dialog.new_class.documentation" GridPane.columnSpan="2147483647" GridPane.hgrow="ALWAYS"
GridPane.rowIndex="8"/>
<TextArea fx:id="taDocumentation" prefHeight="250.0" GridPane.columnSpan="2147483647" GridPane.hgrow="ALWAYS"
Expand Down

0 comments on commit aecc026

Please sign in to comment.