Add Pedalo Rules for viewing in the app
[harbour-pedalo.git] / qml / pages / MainPage.qml
index 8190afc..f5c0397 100644 (file)
@@ -20,6 +20,11 @@ Page {
                 text: qsTr("About")
                 onClicked: pageStack.push(Qt.resolvedUrl("About.qml"))
             }
                 text: qsTr("About")
                 onClicked: pageStack.push(Qt.resolvedUrl("About.qml"))
             }
+
+            MenuItem {
+                text: qsTr("The Pedalo Rules")
+                onClicked: pageStack.push(Qt.resolvedUrl("TheRules.qml"))
+            }
         }
 
         // Tell SilicaFlickable the height of its content.
         }
 
         // Tell SilicaFlickable the height of its content.
@@ -51,7 +56,7 @@ Page {
 
             BarButton {
                 source: "image://pedalo/button-journey-add?" + (pressed ? Theme.primaryColor : Theme.highlightColor)
 
             BarButton {
                 source: "image://pedalo/button-journey-add?" + (pressed ? Theme.primaryColor : Theme.highlightColor)
-                text: "Add a journey"
+                text: qsTr("Add a journey")
                 onClicked: pageStack.push(Qt.resolvedUrl("JourneyEdit.qml"))
             }
         }
                 onClicked: pageStack.push(Qt.resolvedUrl("JourneyEdit.qml"))
             }
         }
@@ -67,13 +72,13 @@ Page {
 
             BarButton {
                 source: "image://pedalo/button-stats?" + (pressed ? Theme.primaryColor : Theme.highlightColor)
 
             BarButton {
                 source: "image://pedalo/button-stats?" + (pressed ? Theme.primaryColor : Theme.highlightColor)
-                text: "View latest stats"
+                text: qsTr("View latest stats")
                 onClicked: pageStack.push(Qt.resolvedUrl("Stats.qml"))
             }
 
             BarButton {
                 source: "image://pedalo/button-list?" + (pressed ? Theme.primaryColor : Theme.highlightColor)
                 onClicked: pageStack.push(Qt.resolvedUrl("Stats.qml"))
             }
 
             BarButton {
                 source: "image://pedalo/button-list?" + (pressed ? Theme.primaryColor : Theme.highlightColor)
-                text: "Previous journeys"
+                text: qsTr("Previous journeys")
                 onClicked: pageStack.push(Qt.resolvedUrl("JourneyList.qml"))
             }
         }
                 onClicked: pageStack.push(Qt.resolvedUrl("JourneyList.qml"))
             }
         }