tasker: use translated tasker action description

This commit is contained in:
Alexander Capehart 2024-08-21 13:58:19 -06:00
parent cc7f9ba539
commit 2c976374f3
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
2 changed files with 6 additions and 2 deletions

View file

@ -32,6 +32,7 @@ import com.joaomgcd.taskerpluginlibrary.runner.TaskerPluginResult
import com.joaomgcd.taskerpluginlibrary.runner.TaskerPluginResultSucess
import org.oxycblt.auxio.AuxioService
import org.oxycblt.auxio.IntegerTable
import org.oxycblt.auxio.R
class StartActionHelper(config: TaskerPluginConfig<Unit>) :
TaskerPluginConfigHelperNoOutputOrInput<StartActionRunner>(config) {
@ -39,8 +40,7 @@ class StartActionHelper(config: TaskerPluginConfig<Unit>) :
get() = StartActionRunner::class.java
override fun addToStringBlurb(input: TaskerInput<Unit>, blurbBuilder: StringBuilder) {
blurbBuilder.append(
"Starts Auxio using the previously saved state. If no saved state is available, all songs will be shuffled. Playback will start immediately. Be careful controlling this service, if you close it and then try to use it again, you will probably crash the app.")
blurbBuilder.append(context.getString(R.string.lng_tasker_start))
}
}

View file

@ -213,6 +213,10 @@
<string name="lng_supporters_promo">Donate to the project to get your name added here!</string>
<!-- As in music library -->
<string name="lng_search_library">Search your library…</string>
<string name="lng_tasker_start">
Starts Auxio using the previously saved state. If no saved state is available, all songs will be shuffled. Playback will start immediately.
\n\nWARNING: Be careful controlling this service, if you close it and then try to use it again, you will probably crash the app.
</string>
<!-- Settings namespace | Settings-related labels -->
<eat-comment />