Change catchphrase to "point %s"

This commit is contained in:
adrienmalin 2018-12-15 16:19:46 +01:00
parent 9942cbdcd6
commit 1fa8ea1f0b
4 changed files with 9 additions and 7 deletions
app
build.gradle
src/main
java/adrienmalin/pingpoints
res
values-fr
values

@ -10,8 +10,8 @@ android {
applicationId "adrienmalin.pingpoints" applicationId "adrienmalin.pingpoints"
minSdkVersion 15 minSdkVersion 15
targetSdkVersion 28 targetSdkVersion 28
versionCode 5 versionCode 6
versionName "2.0" versionName "2.1"
vectorDrawables.useSupportLibrary true vectorDrawables.useSupportLibrary true
} }
buildTypes { buildTypes {

@ -11,6 +11,7 @@ import android.speech.RecognitionListener
import android.speech.RecognizerIntent import android.speech.RecognizerIntent
import android.speech.SpeechRecognizer import android.speech.SpeechRecognizer
import android.support.v4.app.DialogFragment import android.support.v4.app.DialogFragment
import android.util.Log
import android.view.LayoutInflater import android.view.LayoutInflater
import android.widget.ImageView import android.widget.ImageView
import android.widget.TextView import android.widget.TextView
@ -109,6 +110,7 @@ class SttDialog : DialogFragment() {
stt = SpeechRecognizer.createSpeechRecognizer(activity).apply { stt = SpeechRecognizer.createSpeechRecognizer(activity).apply {
setRecognitionListener(SttListener()) setRecognitionListener(SttListener())
try { try {
stopListening()
startListening(sttIntent) startListening(sttIntent)
} catch (e: ActivityNotFoundException) { } catch (e: ActivityNotFoundException) {
sttEnabled = false sttEnabled = false

@ -30,10 +30,10 @@
<string name="share">Partager</string> <string name="share">Partager</string>
<string name="victory_speech">%s gagne par %d à %d.</string> <string name="victory_speech">%s gagne par %d à %d.</string>
<string name="share_subject">Match Ping Points : %s contre %s</string> <string name="share_subject">Match Ping Points : %s contre %s</string>
<string name="share_message">"%s contre %s:\n%s a gagné par %d à %d\nPing Points est disponible sur Google Play\n "</string> <string name="share_message">"%s contre %s:\n%s a gagné par %d à %d\nPing Points est disponible sur Google Play"</string>
<string name="match_point">Balle de match</string> <string name="match_point">Balle de match</string>
<string name="STT_hint">Dîtes : \"Point pour %s\"\nou \"Point pour %s\"</string> <string name="STT_hint">Dîtes : \"point %s\"\nou \"point %s\"</string>
<string name="pattern">(?i:Point pour %s)</string> <string name="pattern">(?i:(point|.) %s)</string>
<string name="not_understood">Pouvez-vous répéter ?</string> <string name="not_understood">Pouvez-vous répéter ?</string>
<string name="STT_disabled">Reconnaissance vocale désactivée.</string> <string name="STT_disabled">Reconnaissance vocale désactivée.</string>
</resources> </resources>

@ -37,8 +37,8 @@
<string name="share_subject">Ping Points Match: %s vs. %s</string> <string name="share_subject">Ping Points Match: %s vs. %s</string>
<string name="share_message">%s vs. %s:\n%s won by %d to %d\nGet Ping Points on Google Play</string> <string name="share_message">%s vs. %s:\n%s won by %d to %d\nGet Ping Points on Google Play</string>
<string name="match_point">Match point</string> <string name="match_point">Match point</string>
<string name="STT_hint">Say: \"Point for %s\"\nor \"Point for %s\"</string> <string name="STT_hint">Say: \"point %s\"\nor \"point %s\"</string>
<string name="pattern">(?i:Point for %s)</string> <string name="pattern">(?i:(point|.) %s)</string>
<string name="not_understood">Can you repeat, please?</string> <string name="not_understood">Can you repeat, please?</string>
<string name="score" translatable="false">%d - %d</string> <string name="score" translatable="false">%d - %d</string>
<string name="STT_disabled">Voice recognition disabled.</string> <string name="STT_disabled">Voice recognition disabled.</string>