Skip to content

Commit

Permalink
Translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Lechindianer committed Oct 12, 2015
1 parent 9d52fd9 commit eaec99c
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 39 deletions.
Binary file modified Beerware.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/beerware.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion qml/pages/About.qml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Page {
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: desc.bottom
anchors.topMargin: Theme.paddingLarge
text: qsTr("<b>Copyright</b>: Pascal Schmid <br /><b>License: </b>Beerware (Revision 42)")
text: "<b>Copyright</b>: Pascal Schmid <br /><b>License: </b>Beerware (Revision 42)"
color: Theme.primaryColor
}

Expand Down
4 changes: 2 additions & 2 deletions qml/pages/BeerModel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import QtQuick 2.0

ListModel {

property string sortColumnNameFirst: "section"
property string sortColumnNameSecond: "category" // TODO: Sort categories according to rating
property string sortColumnNameFirst: "category"
property string sortColumnNameSecond: "rating" // TODO: Sort categories according to rating

function swap(a,b) {
if (a<b) {
Expand Down
11 changes: 6 additions & 5 deletions qml/pages/FirstPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Page {
model: BeerModel { id: beerModel }
anchors.fill: parent
header: PageHeader {
title: qsTr("Beerware")
title: "Beerware"
}
section {
property: 'category'
Expand All @@ -25,15 +25,15 @@ Page {
ListView.onRemove: animateRemoval(listItem)

function remove() {
remorseAction("Deleting", function() { beerModel.remove(index) })
remorseAction(qsTr("Deleting"), function() { beerModel.remove(index) })
DB.removeBeer(beerModel.get(index).name, beerModel.get(index).category)
}

Component {
id: contextMenu
ContextMenu {
MenuItem {
text: "Remove"
text: qsTr("Remove")
onClicked: remove()
}
}
Expand All @@ -51,6 +51,7 @@ Page {
id: row
width: parent.width / 3
anchors.right: parent.right
anchors.rightMargin: 5
anchors.verticalCenter: parent.verticalCenter
GlassItem {
color: "white"
Expand Down Expand Up @@ -108,7 +109,7 @@ Page {
}

MenuItem {
text: "Add Beer"
text: "Add beer"
onClicked: {
pageStack.push(Qt.resolvedUrl("NewBeer.qml"), {"listModel": beerModel})
}
Expand All @@ -125,7 +126,7 @@ Page {

ViewPlaceholder {
id: emptyText
text: 'No entries'
text: qsTr('No entries')
enabled: beerModel.count === 0
}

Expand Down
2 changes: 1 addition & 1 deletion qml/pages/NewBeer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Dialog {
id: beerName
width: parent.width
label: qsTr("Beer name")
placeholderText: qsTr("New Beer")
placeholderText: qsTr("New beer")
focus: true
EnterKey.enabled: text.length > 0
EnterKey.iconSource: "image://theme/icon-m-enter-next"
Expand Down
34 changes: 19 additions & 15 deletions translations/Beerware-de.ts
Original file line number Diff line number Diff line change
@@ -1,41 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<TS version="2.1" language="de_DE">
<context>
<name>About</name>
<message>
<source>Rate you favourite beers</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>&lt;b&gt;Copyright&lt;/b&gt;: Pascal Schmid &lt;br /&gt;&lt;b&gt;License: &lt;/b&gt;Beerware (Revision 42)</source>
<translation type="unfinished"></translation>
<translation>Bewerte deine Lieblingsbiere</translation>
</message>
</context>
<context>
<name>FirstPage</name>
<message>
<source>Beerware</source>
<translation type="unfinished"></translation>
<source>Return to Top</source>
<translation>Zum Anfang</translation>
</message>
<message>
<source>Return to Top</source>
<translation type="unfinished"></translation>
<source>Deleting</source>
<translation>Lösche</translation>
</message>
<message>
<source>Remove</source>
<translation>Entfernen</translation>
</message>
<message>
<source>No entries</source>
<translation>Keine Einträge</translation>
</message>
</context>
<context>
<name>NewBeer</name>
<message>
<source>Beer name</source>
<translation type="unfinished"></translation>
<translation>Biername</translation>
</message>
<message>
<source>New Beer</source>
<translation type="unfinished"></translation>
<source>Beer type</source>
<translation>Biersorte</translation>
</message>
<message>
<source>Beer type</source>
<translation type="unfinished"></translation>
<source>New beer</source>
<translation>Neues Bier</translation>
</message>
</context>
</TS>
34 changes: 19 additions & 15 deletions translations/Beerware.ts
Original file line number Diff line number Diff line change
@@ -1,41 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<TS version="2.1" language="en_US">
<context>
<name>About</name>
<message>
<source>Rate you favourite beers</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>&lt;b&gt;Copyright&lt;/b&gt;: Pascal Schmid &lt;br /&gt;&lt;b&gt;License: &lt;/b&gt;Beerware (Revision 42)</source>
<translation type="unfinished"></translation>
<translation>Rate your favourite beers</translation>
</message>
</context>
<context>
<name>FirstPage</name>
<message>
<source>Beerware</source>
<translation type="unfinished"></translation>
<source>Return to Top</source>
<translation>Return to top</translation>
</message>
<message>
<source>Return to Top</source>
<translation type="unfinished"></translation>
<source>Deleting</source>
<translation>Deleting</translation>
</message>
<message>
<source>Remove</source>
<translation>Remove</translation>
</message>
<message>
<source>No entries</source>
<translation>No entries</translation>
</message>
</context>
<context>
<name>NewBeer</name>
<message>
<source>Beer name</source>
<translation type="unfinished"></translation>
<translation>Beer name</translation>
</message>
<message>
<source>New Beer</source>
<translation type="unfinished"></translation>
<source>Beer type</source>
<translation>Beer type</translation>
</message>
<message>
<source>Beer type</source>
<translation type="unfinished"></translation>
<source>New beer</source>
<translation>New beer</translation>
</message>
</context>
</TS>

0 comments on commit eaec99c

Please sign in to comment.