[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kalgebra] mobile/plugins: Added more strings that needed i18n()
From:       Aleix Pol <null () kde ! org>
Date:       2018-07-31 23:59:12
Message-ID: E1fkeXo-00069a-11 () code ! kde ! org
[Download RAW message or body]

Git commit 3fae994d2b52dfc3ac667e63431808b2295733ee by Aleix Pol.
Committed on 31/07/2018 at 23:56.
Pushed by apol into branch 'master'.

Added more strings that needed i18n()

M  +7    -7    mobile/plugins/Tables.qml

https://commits.kde.org/kalgebra/3fae994d2b52dfc3ac667e63431808b2295733ee

diff --git a/mobile/plugins/Tables.qml b/mobile/plugins/Tables.qml
index da49be1..fb132e8 100644
--- a/mobile/plugins/Tables.qml
+++ b/mobile/plugins/Tables.qml
@@ -24,9 +24,9 @@ KAlgebraPage
 //         console.log("chancho2 (" + ffrom + ", " + fto + " : " + fstep + ") " + \
ret);  
         if(fstep==0) {
-            resultsModel.append( { element: "Errors: The step can't be 0" } );
+            resultsModel.append( { element: i18n("Errors: The step can't be 0") } );
         } else if(!a.isCorrect) {
-            resultsModel.append( { element: "Errors: "+ (ret ? ret : a.errors) } );
+            resultsModel.append( { element: i18n("Errors: %1", ret ? ret : a.errors) \
} );  } else {
             for (var i=ffrom; i<=fto && a.isCorrect; i+=fstep) {
                 var args = new Array();
@@ -54,21 +54,21 @@ KAlgebraPage
             columns: 2
             Layout.fillWidth: true
             
-            Label { text: "Input:" }
+            Label { text: i18n("Input:") }
             ExpressionInput {
                 id: input
                 text: "sin x";
                 Layout.fillWidth: true
                 onAccepted: calculateTable();
             }
-            Label { text: "From:" }   RealInput { id: from; text: "0"; \
                Layout.fillWidth: true; onAccepted: calculateTable() }
-            Label { text: "To:" }     RealInput { id: to; text: "10"; \
                Layout.fillWidth: true; onAccepted: calculateTable() }
-            Label { text: "Step:" }   RealInput { id: step; text: "1"; \
Layout.fillWidth: true; onAccepted: calculateTable() } +            Label { text: \
i18n("From:") }   RealInput { id: from; text: "0"; Layout.fillWidth: true; \
onAccepted: calculateTable() } +            Label { text: i18n("To:") }     RealInput \
{ id: to; text: "10"; Layout.fillWidth: true; onAccepted: calculateTable() } +        \
Label { text: i18n("Step:") }   RealInput { id: step; text: "1"; Layout.fillWidth: \
true; onAccepted: calculateTable() }  }
         
         Button {
             anchors.right: parent.right
-            text: "Go!"
+            text: i18n("Run")
             
             onClicked: calculateTable()
         }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic