[-]
[+]
|
Changed |
_service:tar_git:harbour-neuntrainer.changes
|
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-neuntrainer.spec
^
|
|
[-]
[+]
|
Changed |
_service
^
|
@@ -2,7 +2,7 @@
<service name="tar_git">
<param name="url">https://codeberg.org/nephros/neuntrainer</param>
<param name="branch"></param>
- <param name="revision">0.9.5</param>
+ <param name="revision">0.9.7</param>
<param name="token"/>
<param name="debian">N</param>
<param name="dumb">N</param>
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-neuntrainer-0.9.7.tar.gz/qml/pages/AboutPage.qml
^
|
@@ -35,6 +35,9 @@
DetailItem { label: qsTr("Copyright:"); value: copyright; BackgroundItem { anchors.fill: parent; onClicked: Qt.openUrlExternally(email) } }
DetailItem { label: qsTr("License:"); value: license + " (" + licenseurl + ")"; BackgroundItem { anchors.fill: parent; onClicked: Qt.openUrlExternally(licenseurl) } }
DetailItem { label: qsTr("Source Code:"); value: source; BackgroundItem { anchors.fill: parent; onClicked: Qt.openUrlExternally(source) } }
+ SectionHeader { text: qsTr("Credits") }
+ DetailItem { label: qsTr("Translation: %1", "%1 is the native language name").arg(Qt.locale("de").nativeLanguageName); value: "nephros" }
+ DetailItem { label: qsTr("Translation: %1", "%1 is the native language name").arg(Qt.locale("sv").nativeLanguageName); value: "eson" }
}
}
}
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-neuntrainer-0.9.7.tar.gz/qml/pages/MainPage.qml
^
|
@@ -34,7 +34,7 @@
Page {
id: page
- property string language: settings.language ? settings.language : ""
+ property string language: settings.language ? settings.language : Qt.locale().name.substr(0,2).toUpperCase()
property string selectedDocument
property string mimeType
@@ -190,7 +190,17 @@
RemorsePopup { id: remorse }
Notification { id: notification; isTransient: true; appName: qsTr(Qt.application.name); category: "transfer.error"}
-
+ // timer and function, used to emulate a sleep in loops (see learn())
+ Timer { id: delayTimer
+ property string word
+ onTriggered: thread.acceptWord(word, false)
+ }
+ function delayLearn(w,t) {
+ delayTimer.interval = t;
+ delayTimer.repeat = true;
+ delayTimer.word = w;
+ delayTimer.start();
+ }
// this saves our learned words:
Xt9EngineThread { id: thread
language: page.language
@@ -229,10 +239,14 @@
}
function learn(word, strip) {
if (word !== "") {
- const w = strip ? word.replace(/\W+/gi, "") : word;
+ //const w = strip ? word.replace(/\W+/gi, "") : word;
+ const stripre = /[\p{Alpha}\p{M}\p{Nd}\p{Pc}\p{Join_C}]+/gi; // unicode word characters
+ const w = strip ? word.replace(stripre, "") : word;
// https://forum.sailfishos.org/t/q-how-can-i-bring-predictive-text-input-to-learn-a-new-word/10402/6
// apparently accepting three times learns
- for ( var i=0; i<3; i++) { thread.acceptWord(w, false); }
+ //for ( var i=0; i<3; i++) { thread.acceptWord(w, false); }
+ // but the loop fires too quickly(?) so lets delay that:
+ for ( var i=0; i<3; i++) { delayLearn(w, i*200); }
const linetext = qsTr("learned: ") + w
logModel.append({ "logline": linetext });
console.info(linetext);
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-neuntrainer-0.9.7.tar.gz/translations/harbour-neuntrainer-de.ts
^
|
@@ -38,6 +38,18 @@
<source>Source Code:</source>
<translation>Quellcode</translation>
</message>
+ <message>
+ <location filename="../qml/pages/AboutPage.qml" line="38"/>
+ <source>Credits</source>
+ <translation>Danksagungen</translation>
+ </message>
+ <message>
+ <location filename="../qml/pages/AboutPage.qml" line="39"/>
+ <location filename="../qml/pages/AboutPage.qml" line="40"/>
+ <source>Translation: %1</source>
+ <comment>%1 is the native language name</comment>
+ <translation>Übersetzung: %1</translation>
+ </message>
</context>
<context>
<name>MainPage</name>
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-neuntrainer-0.9.7.tar.gz/translations/harbour-neuntrainer-en.ts
^
|
@@ -38,6 +38,18 @@
<source>Source Code:</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <location filename="../qml/pages/AboutPage.qml" line="38"/>
+ <source>Credits</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../qml/pages/AboutPage.qml" line="39"/>
+ <location filename="../qml/pages/AboutPage.qml" line="40"/>
+ <source>Translation: %1</source>
+ <comment>%1 is the native language name</comment>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>MainPage</name>
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-neuntrainer-0.9.7.tar.gz/translations/harbour-neuntrainer-sv.ts
^
|
@@ -1,42 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
-<TS version="2.1">
+<TS version="2.1" language="sv">
<context>
<name>AboutPage</name>
<message>
<location filename="../qml/pages/AboutPage.qml" line="22"/>
<source>About</source>
- <translation type="unfinished"></translation>
+ <translation>Om</translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="23"/>
<source>What's %1?</source>
- <translation type="unfinished"></translation>
+ <translation>Vad är %1?</translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="27"/>
<source>%1 lets you add words to ("train") the Xt9 input prediction engine that comes with licensed versions of Sailfish OS.</source>
- <translation type="unfinished"></translation>
+ <translation>%1 låter dig lägga till ord (träna) i den Xt9 textförutsägelsemotor (Predictive text input) som kan installeras i licensierade versioner av Sailfish OS.</translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="34"/>
<source>Version:</source>
- <translation type="unfinished"></translation>
+ <translation>Version:</translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="35"/>
<source>Copyright:</source>
- <translation type="unfinished"></translation>
+ <translation>Copyright:</translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="36"/>
<source>License:</source>
- <translation type="unfinished"></translation>
+ <translation>Licens:</translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="37"/>
<source>Source Code:</source>
- <translation type="unfinished"></translation>
+ <translation>Källkod:</translation>
+ </message>
+ <message>
+ <location filename="../qml/pages/AboutPage.qml" line="38"/>
+ <source>Credits</source>
+ <translation>Erkännanden</translation>
+ </message>
+ <message>
+ <location filename="../qml/pages/AboutPage.qml" line="39"/>
+ <location filename="../qml/pages/AboutPage.qml" line="40"/>
+ <source>Translation: %1</source>
+ <comment>%1 is the native language name</comment>
+ <translation>Översättningar: %1</translation>
</message>
</context>
<context>
@@ -45,82 +57,82 @@
<location filename="../qml/pages/MainPage.qml" line="55"/>
<location filename="../qml/pages/MainPage.qml" line="59"/>
<source>Loading failed</source>
- <translation type="unfinished"></translation>
+ <translation>Inläsning misslyckades</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="55"/>
<source>Not a Text file.</source>
- <translation type="unfinished"></translation>
+ <translation>Ingen textfil.</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="59"/>
<source>File empty or not accessible.</source>
- <translation type="unfinished"></translation>
+ <translation>Filen är tom eller inte tillgänglig.</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="68"/>
<source>Select text file</source>
- <translation type="unfinished"></translation>
+ <translation>Välj en textfil</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="95"/>
<source>Training language: %1</source>
- <translation type="unfinished"></translation>
+ <translation>Tränar språk: %1</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="151"/>
<source>Strip punctuation</source>
- <translation type="unfinished"></translation>
+ <translation>Ta bort skiljetecken</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="133"/>
<source>Learn selected</source>
- <translation type="unfinished"></translation>
+ <translation>Mata in markerat</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="152"/>
<source>If enabled, characters that are not letters are removed before learning. Turn this off if you want to learn things like URLs or words with special characters.</source>
- <translation type="unfinished"></translation>
+ <translation>Om detta aktiveras, tas tecken som inte är bokstäver bort, innan de matas in. Stäng av detta om du vill mata in saker som webbadresser, eller ord med specialtecken.</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="186"/>
<source>About</source>
- <translation type="unfinished"></translation>
+ <translation>Om</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="187"/>
<source>Switch Language</source>
- <translation type="unfinished"></translation>
+ <translation>Byt språk</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="188"/>
<source>Load File…</source>
- <translation type="unfinished"></translation>
+ <translation>Läs in fil...</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="236"/>
<source>learned: </source>
- <translation type="unfinished"></translation>
+ <translation>Inmatat: </translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="100"/>
<source>Target Language</source>
- <translation type="unfinished"></translation>
+ <translation>Målspråk</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="101"/>
<source>Language that will be trained</source>
- <translation type="unfinished"></translation>
+ <translation>Språk som kommer att tränas</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="138"/>
<source>Learn all words</source>
- <translation type="unfinished"></translation>
+ <translation>Mata in alla ord</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="145"/>
<source>Learning all words</source>
- <translation type="unfinished"></translation>
+ <translation>Matar in alla ord</translation>
</message>
</context>
</TS>
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-neuntrainer.yaml
^
|
@@ -1,6 +1,6 @@
Name: harbour-neuntrainer
Summary: Add words to your personal XT9 word list
-Version: 0.9.5
+Version: 0.9.7
Release: 0
Group: Applications
License: MIT
|