aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-10-08 01:06:44 -0400
committerGitHub <noreply@github.com>2018-10-08 01:06:44 -0400
commit81518f74fa76b6c2274a0e02ad4169f5d7f61e59 (patch)
tree8af3ed7f0fecad644a4a3c485cac760968ae8b2b /core
parent4029fb9ab284f56f5dc838399fe38c42cb93c708 (diff)
downloadkau-81518f74fa76b6c2274a0e02ad4169f5d7f61e59.tar.gz
kau-81518f74fa76b6c2274a0e02ad4169f5d7f61e59.tar.bz2
kau-81518f74fa76b6c2274a0e02ad4169f5d7f61e59.zip
Update translations (#169)
* New translations strings_about.xml (Polish) * New translations strings_commons.xml (Hebrew) * New translations strings_commons.xml (Tagalog) * New translations strings_commons.xml (Swedish) * New translations strings_commons.xml (Serbian (Cyrillic)) * New translations strings_commons.xml (Russian) * New translations strings_commons.xml (Romanian) * New translations strings_commons.xml (Portuguese, Brazilian) * New translations strings_commons.xml (Portuguese) * New translations strings_commons.xml (Norwegian) * New translations strings_commons.xml (Korean) * New translations strings_commons.xml (Japanese) * New translations strings_commons.xml (Italian) * New translations strings_commons.xml (Hungarian) * New translations strings_commons.xml (Greek) * New translations strings_commons.xml (German) * New translations strings_commons.xml (Galician) * New translations strings_commons.xml (French) * New translations strings_commons.xml (Finnish) * New translations strings_commons.xml (English) * New translations strings_commons.xml (Dutch) * New translations strings_commons.xml (Czech) * New translations strings_commons.xml (Chinese Traditional) * New translations strings_commons.xml (Chinese Simplified) * New translations strings_commons.xml (Catalan) * New translations strings_commons.xml (Arabic) * New translations strings_commons.xml (Afrikaans) * New translations strings_colorpicker.xml (Ukrainian) * New translations strings_commons.xml (Ukrainian) * New translations strings_mediapicker.xml (Ukrainian) * New translations strings_mediapicker.xml (Tagalog) * New translations strings_mediapicker.xml (Swedish) * New translations strings_mediapicker.xml (Serbian (Cyrillic)) * New translations strings_mediapicker.xml (Russian) * New translations strings_mediapicker.xml (Romanian) * New translations strings_mediapicker.xml (Portuguese, Brazilian) * New translations strings_mediapicker.xml (Portuguese) * New translations strings_mediapicker.xml (Norwegian) * New translations strings_mediapicker.xml (Korean) * New translations strings_mediapicker.xml (Japanese) * New translations strings_mediapicker.xml (Italian) * New translations strings_mediapicker.xml (Hungarian) * New translations strings_commons.xml (Vietnamese) * New translations strings_mediapicker.xml (Hebrew) * New translations strings_mediapicker.xml (Greek) * New translations strings_mediapicker.xml (German) * New translations strings_mediapicker.xml (Galician) * New translations strings_mediapicker.xml (French) * New translations strings_mediapicker.xml (Finnish) * New translations strings_mediapicker.xml (English) * New translations strings_mediapicker.xml (Dutch) * New translations strings_mediapicker.xml (Czech) * New translations strings_mediapicker.xml (Chinese Traditional) * New translations strings_mediapicker.xml (Chinese Simplified) * New translations strings_mediapicker.xml (Catalan) * New translations strings_mediapicker.xml (Arabic) * New translations strings_mediapicker.xml (Afrikaans) * New translations strings_colorpicker.xml (Tagalog) * New translations strings_mediapicker.xml (Polish) * New translations strings_about.xml (English) * New translations strings_about.xml (Portuguese, Brazilian) * New translations strings_about.xml (Portuguese) * New translations strings_about.xml (Norwegian) * New translations strings_about.xml (Korean) * New translations strings_about.xml (Japanese) * New translations strings_about.xml (Italian) * New translations strings_about.xml (Hungarian) * New translations strings_about.xml (Hebrew) * New translations strings_about.xml (Greek) * New translations strings_about.xml (German) * New translations strings_about.xml (Galician) * New translations strings_about.xml (French) * New translations strings_about.xml (Finnish) * New translations strings_about.xml (Dutch) * New translations strings_about.xml (Russian) * New translations strings_about.xml (Czech) * New translations strings_about.xml (Chinese Simplified) * New translations strings_about.xml (Catalan) * New translations strings_about.xml (Arabic) * New translations strings_about.xml (Afrikaans) * New translations strings_mediapicker.xml (Danish) * New translations strings_commons.xml (Danish) * New translations strings_colorpicker.xml (Danish) * New translations strings_about.xml (Danish) * New translations strings_mediapicker.xml (Spanish) * New translations strings_commons.xml (Spanish) * New translations strings_about.xml (Spanish) * New translations strings_about.xml (Chinese Traditional) * New translations strings_about.xml (Romanian) * New translations strings_about.xml (Serbian (Cyrillic)) * New translations strings_colorpicker.xml (Swedish) * New translations strings_colorpicker.xml (Serbian (Cyrillic)) * New translations strings_colorpicker.xml (Russian) * New translations strings_colorpicker.xml (Romanian) * New translations strings_colorpicker.xml (Portuguese) * New translations strings_colorpicker.xml (Japanese) * New translations strings_colorpicker.xml (Hebrew) * New translations strings_colorpicker.xml (Greek) * New translations strings_about.xml (Swedish) * New translations strings_colorpicker.xml (Arabic) * New translations strings_about.xml (Tagalog) * New translations strings_about.xml (Ukrainian) * New translations strings_about.xml (Vietnamese) * New translations strings_colorpicker.xml (Afrikaans) * New translations strings_colorpicker.xml (Catalan) * New translations strings_colorpicker.xml (Chinese Traditional) * New translations strings_colorpicker.xml (Czech) * New translations strings_colorpicker.xml (Dutch) * New translations strings_colorpicker.xml (English) * New translations strings_colorpicker.xml (Finnish) * New translations strings_mediapicker.xml (Vietnamese) * New translations strings_commons.xml (Danish) * New translations strings_about.xml (Swedish) * New translations strings_about.xml (Ukrainian) * New translations strings_colorpicker.xml (Swedish) * New translations strings_colorpicker.xml (Ukrainian) * New translations strings_commons.xml (Swedish) * New translations strings_commons.xml (Ukrainian) * New translations strings_mediapicker.xml (Swedish) * New translations strings_mediapicker.xml (Ukrainian) * Delete empty files * Optimize all source files
Diffstat (limited to 'core')
-rw-r--r--core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt1
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/kotlin/LazyResettable.kt6
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/kotlin/Utils.kt2
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt6
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefSingleDelegate.kt3
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt9
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/permissions/Permissions.kt6
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackHelper.kt3
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackPage.kt3
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/utils/ColorUtils.kt12
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/utils/FileUtils.kt3
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/utils/FontUtils.kt3
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/utils/NotificationUtils.kt3
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt51
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/xml/FAQ.kt3
-rw-r--r--core/src/main/res-public/values-da-rDK/strings_commons.xml69
-rw-r--r--core/src/main/res-public/values-in-rID/strings_commons.xml122
-rw-r--r--core/src/main/res-public/values-pl-rPL/strings_commons.xml98
-rw-r--r--core/src/main/res-public/values-sv-rSE/strings_commons.xml69
-rw-r--r--core/src/main/res-public/values-th-rTH/strings_commons.xml122
-rw-r--r--core/src/main/res-public/values-tr-rTR/strings_commons.xml130
-rw-r--r--core/src/main/res-public/values-uk-rUA/strings_commons.xml53
-rw-r--r--core/src/main/res-public/values/public.xml2
23 files changed, 489 insertions, 290 deletions
diff --git a/core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt b/core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt
index b396985..f9ce24b 100644
--- a/core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt
+++ b/core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt
@@ -3,7 +3,6 @@ package ca.allanwang.kau.xml
import android.support.test.InstrumentationRegistry
import android.support.test.filters.MediumTest
import android.support.test.runner.AndroidJUnit4
-import ca.allanwang.kau.test.R
import org.junit.Test
import org.junit.runner.RunWith
import kotlin.test.assertEquals
diff --git a/core/src/main/kotlin/ca/allanwang/kau/kotlin/LazyResettable.kt b/core/src/main/kotlin/ca/allanwang/kau/kotlin/LazyResettable.kt
index ceeaa30..979f7a7 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/kotlin/LazyResettable.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/kotlin/LazyResettable.kt
@@ -14,7 +14,8 @@ internal object UNINITIALIZED
fun <T : Any> lazyResettable(initializer: () -> T): LazyResettable<T> = LazyResettable<T>(initializer)
class LazyResettable<T : Any>(private val initializer: () -> T, lock: Any? = null) : ILazyResettable<T>, Serializable {
- @Volatile private var _value: Any = UNINITIALIZED
+ @Volatile
+ private var _value: Any = UNINITIALIZED
private val lock = lock ?: this
override fun invalidate() {
@@ -69,8 +70,7 @@ class LazyResettableRegistry : ILazyResettableRegistry {
var lazyRegistry: MutableList<LazyResettable<*>> = mutableListOf()
- override fun <T : Any> lazy(initializer: () -> T): LazyResettable<T>
- = add(lazyResettable(initializer))
+ override fun <T : Any> lazy(initializer: () -> T): LazyResettable<T> = add(lazyResettable(initializer))
override fun <T : Any> add(resettable: LazyResettable<T>): LazyResettable<T> {
lazyRegistry.add(resettable)
diff --git a/core/src/main/kotlin/ca/allanwang/kau/kotlin/Utils.kt b/core/src/main/kotlin/ca/allanwang/kau/kotlin/Utils.kt
index db28914..1ba1de6 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/kotlin/Utils.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/kotlin/Utils.kt
@@ -3,4 +3,4 @@ package ca.allanwang.kau.kotlin
/**
* Created by Allan Wang on 07/04/18.
*/
-inline fun <reified T: Any> javaClass(): Class<T> = T::class.java \ No newline at end of file
+inline fun <reified T : Any> javaClass(): Class<T> = T::class.java \ No newline at end of file
diff --git a/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt
index 33ba807..60d03ad 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt
@@ -26,7 +26,8 @@ class KPrefDelegate<T : Any> internal constructor(
private object UNINITIALIZED
- @Volatile private var _value: Any = UNINITIALIZED
+ @Volatile
+ private var _value: Any = UNINITIALIZED
private val lock = lock ?: this
init {
@@ -89,5 +90,6 @@ class KPrefDelegate<T : Any> internal constructor(
}
class KPrefException(message: String) : IllegalAccessException(message) {
- constructor(element: Any?) : this("Invalid type in pref cache: ${element?.javaClass?.simpleName ?: "null"}")
+ constructor(element: Any?) : this("Invalid type in pref cache: ${element?.javaClass?.simpleName
+ ?: "null"}")
} \ No newline at end of file
diff --git a/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefSingleDelegate.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefSingleDelegate.kt
index 6525305..ed30a44 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefSingleDelegate.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefSingleDelegate.kt
@@ -14,7 +14,8 @@ fun KPref.kprefSingle(key: String) = KPrefSingleDelegate(key, this)
*/
class KPrefSingleDelegate internal constructor(private val key: String, private val pref: KPref, lock: Any? = null) : ILazyResettable<Boolean> {
- @Volatile private var _value: Boolean? = null
+ @Volatile
+ private var _value: Boolean? = null
private val lock = lock ?: this
init {
diff --git a/core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt b/core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt
index 3b15e0b..36456ec 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt
@@ -29,7 +29,8 @@ internal object PermissionManager {
*/
private val manifestPermission = lazyContext<Array<String>> {
try {
- it.packageManager.getPackageInfo(it.packageName, PackageManager.GET_PERMISSIONS)?.requestedPermissions ?: emptyArray()
+ it.packageManager.getPackageInfo(it.packageName, PackageManager.GET_PERMISSIONS)?.requestedPermissions
+ ?: emptyArray()
} catch (e: Exception) {
emptyArray()
}
@@ -47,7 +48,8 @@ internal object PermissionManager {
} else KL.d { "Request is postponed since another one is still in progress; did you remember to override onRequestPermissionsResult?" }
}
- @Synchronized private fun requestPermissions(context: Context, permissions: Array<out String>) {
+ @Synchronized
+ private fun requestPermissions(context: Context, permissions: Array<out String>) {
permissions.forEach {
if (!manifestPermission(context).contains(it)) {
KL.e { "Requested permission $it is not stated in the manifest" }
@@ -55,7 +57,8 @@ internal object PermissionManager {
//we'll let the request pass through so it can be denied and so the callback can be triggered
}
}
- val activity = (context as? Activity) ?: throw KauException("Context is not an instance of an activity; cannot request permissions")
+ val activity = (context as? Activity)
+ ?: throw KauException("Context is not an instance of an activity; cannot request permissions")
KL.i { "Requesting permissions ${permissions.contentToString()}" }
ActivityCompat.requestPermissions(activity, permissions, 1)
}
diff --git a/core/src/main/kotlin/ca/allanwang/kau/permissions/Permissions.kt b/core/src/main/kotlin/ca/allanwang/kau/permissions/Permissions.kt
index 4de6695..248e484 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/permissions/Permissions.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/permissions/Permissions.kt
@@ -22,8 +22,7 @@ import android.support.annotation.RequiresApi
/**
* Hook that should be added inside all [Activity.onRequestPermissionsResult] so that the Permission manager can handle the responses
*/
-fun Activity.kauOnRequestPermissionsResult(permissions: Array<out String>, grantResults: IntArray)
- = PermissionManager.onRequestPermissionsResult(this, permissions, grantResults)
+fun Activity.kauOnRequestPermissionsResult(permissions: Array<out String>, grantResults: IntArray) = PermissionManager.onRequestPermissionsResult(this, permissions, grantResults)
/**
* Request a permission with a callback
@@ -32,8 +31,7 @@ fun Activity.kauOnRequestPermissionsResult(permissions: Array<out String>, grant
* The [callback] returns [granted], which is true if all permissions are granted
* [deniedPerm] is the first denied permission, if granted is false
*/
-fun Context.kauRequestPermissions(vararg permissions: String, callback: (granted: Boolean, deniedPerm: String?) -> Unit)
- = PermissionManager(this, permissions, callback)
+fun Context.kauRequestPermissions(vararg permissions: String, callback: (granted: Boolean, deniedPerm: String?) -> Unit) = PermissionManager(this, permissions, callback)
/**
* See http://developer.android.com/guide/topics/security/permissions.html#normal-dangerous for a
diff --git a/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackHelper.kt b/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackHelper.kt
index 41cd2e0..018d7c7 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackHelper.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackHelper.kt
@@ -16,8 +16,7 @@ internal object SwipeBackHelper {
private val pageStack = Stack<SwipeBackPage>()
- private operator fun get(activity: Activity): SwipeBackPage?
- = pageStack.firstOrNull { it.activityRef.get() === activity }
+ private operator fun get(activity: Activity): SwipeBackPage? = pageStack.firstOrNull { it.activityRef.get() === activity }
fun onCreate(activity: Activity, builder: SwipeBackContract.() -> Unit = {}) {
val page = this[activity] ?: pageStack.push(SwipeBackPage(activity).apply { builder() })
diff --git a/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackPage.kt b/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackPage.kt
index 7b6654d..4dba622 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackPage.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackPage.kt
@@ -40,7 +40,8 @@ internal class SwipeBackPage(activity: Activity) : SwipeBackContractInternal by
}
private fun handleLayout() {
- val activity = activityRef.get() ?: return KL.v { "KauSwipe activity ref gone during handleLayout" }
+ val activity = activityRef.get()
+ ?: return KL.v { "KauSwipe activity ref gone during handleLayout" }
if (swipeEnabled) swipeBackLayout.attachToActivity(activity)
else swipeBackLayout.removeFromActivity(activity)
}
diff --git a/core/src/main/kotlin/ca/allanwang/kau/utils/ColorUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/ColorUtils.kt
index d0e1f8f..236f2ca 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/utils/ColorUtils.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/utils/ColorUtils.kt
@@ -94,12 +94,10 @@ fun Int.blendWith(@ColorInt color: Int, @FloatRange(from = 0.0, to = 1.0) ratio:
}
@ColorInt
-fun Int.withAlpha(@IntRange(from = 0L, to = 255L) alpha: Int): Int
- = Color.argb(alpha, Color.red(this), Color.green(this), Color.blue(this))
+fun Int.withAlpha(@IntRange(from = 0L, to = 255L) alpha: Int): Int = Color.argb(alpha, Color.red(this), Color.green(this), Color.blue(this))
@ColorInt
-fun Int.withMinAlpha(@IntRange(from = 0L, to = 255L) alpha: Int): Int
- = Color.argb(Math.max(alpha, Color.alpha(this)), Color.red(this), Color.green(this), Color.blue(this))
+fun Int.withMinAlpha(@IntRange(from = 0L, to = 255L) alpha: Int): Int = Color.argb(Math.max(alpha, Color.alpha(this)), Color.red(this), Color.green(this), Color.blue(this))
@ColorInt
fun Int.lighten(@FloatRange(from = 0.0, to = 1.0) factor: Float = 0.1f): Int {
@@ -116,12 +114,10 @@ fun Int.darken(@FloatRange(from = 0.0, to = 1.0) factor: Float = 0.1f): Int {
}
@ColorInt
-fun Int.colorToBackground(@FloatRange(from = 0.0, to = 1.0) factor: Float = 0.1f): Int
- = if (isColorDark) darken(factor) else lighten(factor)
+fun Int.colorToBackground(@FloatRange(from = 0.0, to = 1.0) factor: Float = 0.1f): Int = if (isColorDark) darken(factor) else lighten(factor)
@ColorInt
-fun Int.colorToForeground(@FloatRange(from = 0.0, to = 1.0) factor: Float = 0.1f): Int
- = if (isColorDark) lighten(factor) else darken(factor)
+fun Int.colorToForeground(@FloatRange(from = 0.0, to = 1.0) factor: Float = 0.1f): Int = if (isColorDark) lighten(factor) else darken(factor)
@Throws(IllegalArgumentException::class)
fun String.toColor(): Int {
diff --git a/core/src/main/kotlin/ca/allanwang/kau/utils/FileUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/FileUtils.kt
index b97f4aa..bfbc009 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/utils/FileUtils.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/utils/FileUtils.kt
@@ -6,5 +6,4 @@ import java.io.InputStream
/**
* Created by Allan Wang on 2017-08-04.
*/
-fun File.copyFromInputStream(inputStream: InputStream)
- = inputStream.use { input -> outputStream().use { output -> input.copyTo(output) } } \ No newline at end of file
+fun File.copyFromInputStream(inputStream: InputStream) = inputStream.use { input -> outputStream().use { output -> input.copyTo(output) } } \ No newline at end of file
diff --git a/core/src/main/kotlin/ca/allanwang/kau/utils/FontUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/FontUtils.kt
index 05073c7..1db7694 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/utils/FontUtils.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/utils/FontUtils.kt
@@ -17,7 +17,8 @@ object FontUtils {
context.applicationContext.assets, "fonts/$font.ttf")
sTypefaceCache.put(font, tf)
}
- return sTypefaceCache.get(font) ?: throw IllegalArgumentException("Font error; typeface does not exist at assets/fonts$font.ttf")
+ return sTypefaceCache.get(font)
+ ?: throw IllegalArgumentException("Font error; typeface does not exist at assets/fonts$font.ttf")
}
}
diff --git a/core/src/main/kotlin/ca/allanwang/kau/utils/NotificationUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/NotificationUtils.kt
index 23a8370..1eb0076 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/utils/NotificationUtils.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/utils/NotificationUtils.kt
@@ -7,5 +7,4 @@ import android.support.v4.app.NotificationManagerCompat
/**
* Created by Allan Wang on 2017-08-04.
*/
-fun Context.cancelNotification(notifId: Int)
- = NotificationManagerCompat.from(this).cancel(notifId) \ No newline at end of file
+fun Context.cancelNotification(notifId: Int) = NotificationManagerCompat.from(this).cancel(notifId) \ No newline at end of file
diff --git a/core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt
index 9a1e9b0..4e020bc 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt
@@ -23,7 +23,6 @@ import android.view.ViewGroup
import android.view.inputmethod.InputMethodManager
import android.widget.EditText
import android.widget.ImageView
-import android.widget.TextView
import ca.allanwang.kau.ui.createSimpleRippleDrawable
import com.mikepenz.iconics.IconicsDrawable
import com.mikepenz.iconics.typeface.IIcon
@@ -33,34 +32,47 @@ import com.mikepenz.iconics.typeface.IIcon
* Created by Allan Wang on 2017-05-31.
*/
-@KauUtils inline fun <T : View> T.visible(): T {
+@KauUtils
+inline fun <T : View> T.visible(): T {
visibility = View.VISIBLE
return this
}
-@KauUtils inline fun <T : View> T.invisible(): T {
+@KauUtils
+inline fun <T : View> T.invisible(): T {
visibility = View.INVISIBLE
return this
}
-@KauUtils inline fun <T : View> T.gone(): T {
+@KauUtils
+inline fun <T : View> T.gone(): T {
visibility = View.GONE
return this
}
-@KauUtils inline fun <T : View> T.invisibleIf(invisible: Boolean): T = if (invisible) invisible() else visible()
+@KauUtils
+inline fun <T : View> T.invisibleIf(invisible: Boolean): T = if (invisible) invisible() else visible()
-@KauUtils inline fun <T : View> T.visibleIf(visible: Boolean): T = if (visible) visible() else gone()
+@KauUtils
+inline fun <T : View> T.visibleIf(visible: Boolean): T = if (visible) visible() else gone()
-@KauUtils inline fun <T : View> T.goneIf(gone: Boolean): T = visibleIf(!gone)
+@KauUtils
+inline fun <T : View> T.goneIf(gone: Boolean): T = visibleIf(!gone)
-@KauUtils inline val View.isVisible: Boolean get() = visibility == View.VISIBLE
+@KauUtils
+inline val View.isVisible: Boolean
+ get() = visibility == View.VISIBLE
-@KauUtils inline val View.isInvisible: Boolean get() = visibility == View.INVISIBLE
+@KauUtils
+inline val View.isInvisible: Boolean
+ get() = visibility == View.INVISIBLE
-@KauUtils inline val View.isGone: Boolean get() = visibility == View.GONE
+@KauUtils
+inline val View.isGone: Boolean
+ get() = visibility == View.GONE
-@KauUtils inline fun View.setBackgroundColorRes(@ColorRes color: Int) = setBackgroundColor(context.color(color))
+@KauUtils
+inline fun View.setBackgroundColorRes(@ColorRes color: Int) = setBackgroundColor(context.color(color))
fun View.snackbar(text: String, duration: Int = Snackbar.LENGTH_LONG, builder: Snackbar.() -> Unit = {}): Snackbar {
val snackbar = Snackbar.make(this, text, duration)
@@ -69,8 +81,7 @@ fun View.snackbar(text: String, duration: Int = Snackbar.LENGTH_LONG, builder: S
return snackbar
}
-fun View.snackbar(@StringRes textId: Int, duration: Int = Snackbar.LENGTH_LONG, builder: Snackbar.() -> Unit = {})
- = snackbar(context.string(textId), duration, builder)
+fun View.snackbar(@StringRes textId: Int, duration: Int = Snackbar.LENGTH_LONG, builder: Snackbar.() -> Unit = {}) = snackbar(context.string(textId), duration, builder)
@KauUtils
fun ImageView.setIcon(icon: IIcon?, sizeDp: Int = 24, @ColorInt color: Int = Color.WHITE, builder: IconicsDrawable.() -> Unit = {}) {
@@ -78,7 +89,9 @@ fun ImageView.setIcon(icon: IIcon?, sizeDp: Int = 24, @ColorInt color: Int = Col
setImageDrawable(icon.toDrawable(context, sizeDp = sizeDp, color = color, builder = builder))
}
-@KauUtils inline val FloatingActionButton.isHidden get() = !isShown
+@KauUtils
+inline val FloatingActionButton.isHidden
+ get() = !isShown
fun FloatingActionButton.showIf(show: Boolean) = if (show) show() else hide()
@@ -133,7 +146,8 @@ fun View.setMargin(margin: Int) = setMargins(margin, KAU_ALL)
* Base margin setter
* returns true if setting is successful, false otherwise
*/
-@KauUtils private fun View.setMargins(margin: Int, flag: Int): Boolean {
+@KauUtils
+private fun View.setMargins(margin: Int, flag: Int): Boolean {
val p = (layoutParams as? ViewGroup.MarginLayoutParams) ?: return false
p.setMargins(
if (flag and KAU_LEFT > 0) margin else p.leftMargin,
@@ -189,7 +203,8 @@ fun View.setPadding(padding: Int) = setPadding(padding, KAU_ALL)
/**
* Base padding setter
*/
-@KauUtils private fun View.setPadding(padding: Int, flag: Int) {
+@KauUtils
+private fun View.setPadding(padding: Int, flag: Int) {
setPadding(
if (flag and KAU_LEFT > 0) padding else paddingLeft,
if (flag and KAU_TOP > 0) padding else paddingTop,
@@ -217,7 +232,9 @@ fun View.setRippleBackground(@ColorInt foregroundColor: Int, @ColorInt backgroun
background = createSimpleRippleDrawable(foregroundColor, backgroundColor)
}
-@KauUtils inline val View.parentViewGroup: ViewGroup get() = parent as ViewGroup
+@KauUtils
+inline val View.parentViewGroup: ViewGroup
+ get() = parent as ViewGroup
inline val EditText.value: String get() = text.toString().trim()
diff --git a/core/src/main/kotlin/ca/allanwang/kau/xml/FAQ.kt b/core/src/main/kotlin/ca/allanwang/kau/xml/FAQ.kt
index f804b70..7caf5d6 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/xml/FAQ.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/xml/FAQ.kt
@@ -47,7 +47,8 @@ fun Context.kauParseFaq(
}
1 -> {
items.add(FaqItem(items.size + 1,
- question ?: throw IllegalArgumentException("KAU FAQ answer found without a question"),
+ question
+ ?: throw IllegalArgumentException("KAU FAQ answer found without a question"),
Html.fromHtml(parser.text.replace("\n", if (parseNewLine) "<br/>" else ""))))
question = null
flag = -1
diff --git a/core/src/main/res-public/values-da-rDK/strings_commons.xml b/core/src/main/res-public/values-da-rDK/strings_commons.xml
new file mode 100644
index 0000000..5be1277
--- /dev/null
+++ b/core/src/main/res-public/values-da-rDK/strings_commons.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?><!--Generated by crowdin.com--><!--
+A collection of common string values
+Most resources are verbatim and x represents a formatted item
+-->
+<resources>
+ <string name="kau_about_app">Om app</string>
+ <string name="kau_about_x">Om %s</string>
+ <string name="kau_add_account">Tilføj konto</string>
+ <string name="kau_back">Tilbage</string>
+ <string name="kau_cancel">Annuller</string>
+ <string name="kau_changelog">Ændringslog</string>
+ <string name="kau_close">Luk</string>
+ <string name="kau_contact_us">Kontakt os</string>
+ <string name="kau_copy">Kopier</string>
+ <string name="kau_custom">Tilpasset</string>
+ <string name="kau_dark">Mørk</string>
+ <string name="kau_default">Standard</string>
+ <string name="kau_do_not_show_again">Vis ikke igen</string>
+ <string name="kau_done">Færdig</string>
+ <string name="kau_error">Fejl</string>
+ <string name="kau_exit">Afslut</string>
+ <string name="kau_exit_confirmation">Er du sikker på, at du vil afslutte?</string>
+ <string name="kau_exit_confirmation_x">Er du sikker på, at du vil afslutte %s?</string>
+ <string name="kau_glass">Glas</string>
+ <string name="kau_got_it">Forstået</string>
+ <string name="kau_great">Fantastisk</string>
+ <string name="kau_hide">Skjul</string>
+ <string name="kau_light">Lys</string>
+ <string name="kau_login">Log på</string>
+ <string name="kau_logout">Log af</string>
+ <string name="kau_logout_confirm_as_x">Er du sikker på, at du vil logge %s af?</string>
+ <string name="kau_manage_account">Administrér konto</string>
+ <string name="kau_maybe">Måske</string>
+ <string name="kau_menu">Menu</string>
+ <string name="kau_no">Nej</string>
+ <string name="kau_no_results_found">Ingen resultater fundet</string>
+ <string name="kau_none">Ingen</string>
+ <string name="kau_ok">OK</string>
+ <string name="kau_play_store">Play Butik</string>
+ <string name="kau_rate">Bedøm</string>
+ <string name="kau_report_bug">Rapportér en fejl</string>
+ <string name="kau_search">Søg</string>
+ <string name="kau_send_feedback">Send feedback</string>
+ <string name="kau_send_via">Send med</string>
+ <string name="kau_settings">Indstillinger</string>
+ <string name="kau_share">Del</string>
+ <string name="kau_text_copied">Tekst kopieret til udklipsholder.</string>
+ <string name="kau_thank_you">Tak</string>
+ <string name="kau_uh_oh">Åh nej</string>
+ <string name="kau_warning">Advarsel</string>
+ <plurals name="kau_x_days">
+ <item quantity="one">%d dag</item>
+ <item quantity="other">%d dage</item>
+ </plurals>
+ <plurals name="kau_x_hours">
+ <item quantity="one">%d time</item>
+ <item quantity="other">%d timer</item>
+ </plurals>
+ <plurals name="kau_x_minutes">
+ <item quantity="one">%d minut</item>
+ <item quantity="other">%d minutter</item>
+ </plurals>
+ <plurals name="kau_x_seconds">
+ <item quantity="one">%d sekund</item>
+ <item quantity="other">%d sekunder</item>
+ </plurals>
+ <string name="kau_yes">Ja</string>
+ <string name="kau_permission_denied">Adgang nægtet</string>
+</resources>
diff --git a/core/src/main/res-public/values-in-rID/strings_commons.xml b/core/src/main/res-public/values-in-rID/strings_commons.xml
index dc8d46a..b734377 100644
--- a/core/src/main/res-public/values-in-rID/strings_commons.xml
+++ b/core/src/main/res-public/values-in-rID/strings_commons.xml
@@ -1,67 +1,65 @@
-<?xml version="1.0" encoding="utf-8" standalone="no"?>
-<!--Generated by crowdin.com-->
-<!--
+<?xml version="1.0" encoding="utf-8" standalone="no"?><!--Generated by crowdin.com--><!--
A collection of common string values
Most resources are verbatim and x represents a formatted item
-->
<resources>
- <string name="kau_about_app">Tentang Aplikasi</string>
- <string name="kau_about_x">Tentang %s</string>
- <string name="kau_add_account">Tambahkan Akun</string>
- <string name="kau_back">Kembali</string>
- <string name="kau_cancel">Batal</string>
- <string name="kau_changelog">Log perubahan</string>
- <string name="kau_close">Tutup</string>
- <string name="kau_contact_us">Hubungi Kami</string>
- <string name="kau_copy">Salin</string>
- <string name="kau_custom">Adat</string>
- <string name="kau_dark">Gelap</string>
- <string name="kau_default">Standar</string>
- <string name="kau_do_not_show_again">Jangan tampilkan lagi</string>
- <string name="kau_done">Selesai</string>
- <string name="kau_error">Kesalahan</string>
- <string name="kau_exit">Keluar</string>
- <string name="kau_exit_confirmation">Anda yakin ingin keluar?</string>
- <string name="kau_exit_confirmation_x">Anda yakin ingin keluar %s?</string>
- <string name="kau_glass">Kaca</string>
- <string name="kau_got_it">Mengerti</string>
- <string name="kau_great">Hebat</string>
- <string name="kau_hide">Sembunyikan</string>
- <string name="kau_light">Terang</string>
- <string name="kau_login">Masuk</string>
- <string name="kau_logout">Keluar</string>
- <string name="kau_logout_confirm_as_x">Anda yakin ingin keluar sebagai %s?</string>
- <string name="kau_manage_account">Kelola Akun</string>
- <string name="kau_maybe">Mungkin</string>
- <string name="kau_menu">Menu</string>
- <string name="kau_no">Tidak</string>
- <string name="kau_no_results_found">Tidak ada hasil yang ditemukan</string>
- <string name="kau_none">Tidak ada</string>
- <string name="kau_ok">Oke</string>
- <string name="kau_play_store">Play Store</string>
- <string name="kau_rate">Menilai</string>
- <string name="kau_report_bug">Laporkan bug</string>
- <string name="kau_search">Pencarian</string>
- <string name="kau_send_feedback">Kirim Umpan balik</string>
- <string name="kau_send_via">Kirim melalui</string>
- <string name="kau_settings">Pengaturan</string>
- <string name="kau_share">Bagikan</string>
- <string name="kau_text_copied">Salin teks ke papan tulis.</string>
- <string name="kau_thank_you">Terima Kasih</string>
- <string name="kau_uh_oh">Uh Oh</string>
- <string name="kau_warning">Peringatan</string>
- <plurals name="kau_x_days">
- <item quantity="other">%d hari</item>
- </plurals>
- <plurals name="kau_x_hours">
- <item quantity="other">%d jam</item>
- </plurals>
- <plurals name="kau_x_minutes">
- <item quantity="other">%d menit</item>
- </plurals>
- <plurals name="kau_x_seconds">
- <item quantity="other">%d detik</item>
- </plurals>
- <string name="kau_yes">Iya</string>
- <string name="kau_permission_denied">Izin ditolak</string>
+ <string name="kau_about_app">Tentang Aplikasi</string>
+ <string name="kau_about_x">Tentang %s</string>
+ <string name="kau_add_account">Tambahkan Akun</string>
+ <string name="kau_back">Kembali</string>
+ <string name="kau_cancel">Batal</string>
+ <string name="kau_changelog">Log perubahan</string>
+ <string name="kau_close">Tutup</string>
+ <string name="kau_contact_us">Hubungi Kami</string>
+ <string name="kau_copy">Salin</string>
+ <string name="kau_custom">Adat</string>
+ <string name="kau_dark">Gelap</string>
+ <string name="kau_default">Standar</string>
+ <string name="kau_do_not_show_again">Jangan tampilkan lagi</string>
+ <string name="kau_done">Selesai</string>
+ <string name="kau_error">Kesalahan</string>
+ <string name="kau_exit">Keluar</string>
+ <string name="kau_exit_confirmation">Anda yakin ingin keluar?</string>
+ <string name="kau_exit_confirmation_x">Anda yakin ingin keluar %s?</string>
+ <string name="kau_glass">Kaca</string>
+ <string name="kau_got_it">Mengerti</string>
+ <string name="kau_great">Hebat</string>
+ <string name="kau_hide">Sembunyikan</string>
+ <string name="kau_light">Terang</string>
+ <string name="kau_login">Masuk</string>
+ <string name="kau_logout">Keluar</string>
+ <string name="kau_logout_confirm_as_x">Anda yakin ingin keluar sebagai %s?</string>
+ <string name="kau_manage_account">Kelola Akun</string>
+ <string name="kau_maybe">Mungkin</string>
+ <string name="kau_menu">Menu</string>
+ <string name="kau_no">Tidak</string>
+ <string name="kau_no_results_found">Tidak ada hasil yang ditemukan</string>
+ <string name="kau_none">Tidak ada</string>
+ <string name="kau_ok">Oke</string>
+ <string name="kau_play_store">Play Store</string>
+ <string name="kau_rate">Menilai</string>
+ <string name="kau_report_bug">Laporkan bug</string>
+ <string name="kau_search">Pencarian</string>
+ <string name="kau_send_feedback">Kirim Umpan balik</string>
+ <string name="kau_send_via">Kirim melalui</string>
+ <string name="kau_settings">Pengaturan</string>
+ <string name="kau_share">Bagikan</string>
+ <string name="kau_text_copied">Salin teks ke papan tulis.</string>
+ <string name="kau_thank_you">Terima Kasih</string>
+ <string name="kau_uh_oh">Uh Oh</string>
+ <string name="kau_warning">Peringatan</string>
+ <plurals name="kau_x_days">
+ <item quantity="other">%d hari</item>
+ </plurals>
+ <plurals name="kau_x_hours">
+ <item quantity="other">%d jam</item>
+ </plurals>
+ <plurals name="kau_x_minutes">
+ <item quantity="other">%d menit</item>
+ </plurals>
+ <plurals name="kau_x_seconds">
+ <item quantity="other">%d detik</item>
+ </plurals>
+ <string name="kau_yes">Iya</string>
+ <string name="kau_permission_denied">Izin ditolak</string>
</resources>
diff --git a/core/src/main/res-public/values-pl-rPL/strings_commons.xml b/core/src/main/res-public/values-pl-rPL/strings_commons.xml
index caac77f..248e409 100644
--- a/core/src/main/res-public/values-pl-rPL/strings_commons.xml
+++ b/core/src/main/res-public/values-pl-rPL/strings_commons.xml
@@ -1,55 +1,53 @@
-<?xml version="1.0" encoding="utf-8" standalone="no"?>
-<!--Generated by crowdin.com-->
-<!--
+<?xml version="1.0" encoding="utf-8" standalone="no"?><!--Generated by crowdin.com--><!--
A collection of common string values
Most resources are verbatim and x represents a formatted item
-->
<resources>
- <string name="kau_about_app">O aplikacji</string>
- <string name="kau_about_x">O %s</string>
- <string name="kau_add_account">Dodaj konto</string>
- <string name="kau_back">Wstecz</string>
- <string name="kau_cancel">Anuluj</string>
- <string name="kau_changelog">Lista zmian</string>
- <string name="kau_close">Zamknij</string>
- <string name="kau_contact_us">Skontaktuj się z nami</string>
- <string name="kau_copy">Kopiuj</string>
- <string name="kau_custom">Własny</string>
- <string name="kau_dark">Ciemny</string>
- <string name="kau_default">Domyślnie</string>
- <string name="kau_do_not_show_again">Nie pokazuj ponownie</string>
- <string name="kau_done">Gotowe</string>
- <string name="kau_error">Błąd</string>
- <string name="kau_exit">Wyjdź</string>
- <string name="kau_exit_confirmation">Czy na pewno chcesz wyjść?</string>
- <string name="kau_exit_confirmation_x">Czy na pewno chcesz wyjść %s?</string>
- <string name="kau_glass">Szkło</string>
- <string name="kau_got_it">Rozumiem</string>
- <string name="kau_great">Świetnie</string>
- <string name="kau_hide">Ukryj</string>
- <string name="kau_light">Jasny</string>
- <string name="kau_login">Zaloguj się</string>
- <string name="kau_logout">Wyloguj się</string>
- <string name="kau_logout_confirm_as_x">Czy na pewno chcesz się wylogować jako %s?</string>
- <string name="kau_manage_account">Zarządzaj kontem</string>
- <string name="kau_maybe">Może</string>
- <string name="kau_menu">Menu</string>
- <string name="kau_no">Nie</string>
- <string name="kau_no_results_found">Nie znaleziono wyników</string>
- <string name="kau_none">Żadne</string>
- <string name="kau_ok">OK</string>
- <string name="kau_play_store">Sklep Google Play</string>
- <string name="kau_rate">Oceń</string>
- <string name="kau_report_bug">Zgłoś błąd</string>
- <string name="kau_search">Szukaj</string>
- <string name="kau_send_feedback">Prześlij opinię</string>
- <string name="kau_send_via">Wyślij przez</string>
- <string name="kau_settings">Ustawienia</string>
- <string name="kau_share">Udostępnij</string>
- <string name="kau_text_copied">Tekst skopiowano do schowka.</string>
- <string name="kau_thank_you">Dziękuję</string>
- <string name="kau_uh_oh">Uh Oh</string>
- <string name="kau_warning">Ostrzeżenie</string>
- <string name="kau_yes">Tak</string>
- <string name="kau_permission_denied">Odmowa uprawnienia</string>
+ <string name="kau_about_app">O aplikacji</string>
+ <string name="kau_about_x">O %s</string>
+ <string name="kau_add_account">Dodaj konto</string>
+ <string name="kau_back">Wstecz</string>
+ <string name="kau_cancel">Anuluj</string>
+ <string name="kau_changelog">Lista zmian</string>
+ <string name="kau_close">Zamknij</string>
+ <string name="kau_contact_us">Skontaktuj się z nami</string>
+ <string name="kau_copy">Kopiuj</string>
+ <string name="kau_custom">Własny</string>
+ <string name="kau_dark">Ciemny</string>
+ <string name="kau_default">Domyślnie</string>
+ <string name="kau_do_not_show_again">Nie pokazuj ponownie</string>
+ <string name="kau_done">Gotowe</string>
+ <string name="kau_error">Błąd</string>
+ <string name="kau_exit">Wyjdź</string>
+ <string name="kau_exit_confirmation">Czy na pewno chcesz wyjść?</string>
+ <string name="kau_exit_confirmation_x">Czy na pewno chcesz wyjść %s?</string>
+ <string name="kau_glass">Szkło</string>
+ <string name="kau_got_it">Rozumiem</string>
+ <string name="kau_great">Świetnie</string>
+ <string name="kau_hide">Ukryj</string>
+ <string name="kau_light">Jasny</string>
+ <string name="kau_login">Zaloguj się</string>
+ <string name="kau_logout">Wyloguj się</string>
+ <string name="kau_logout_confirm_as_x">Czy na pewno chcesz się wylogować jako %s?</string>
+ <string name="kau_manage_account">Zarządzaj kontem</string>
+ <string name="kau_maybe">Może</string>
+ <string name="kau_menu">Menu</string>
+ <string name="kau_no">Nie</string>
+ <string name="kau_no_results_found">Nie znaleziono wyników</string>
+ <string name="kau_none">Żadne</string>
+ <string name="kau_ok">OK</string>
+ <string name="kau_play_store">Sklep Google Play</string>
+ <string name="kau_rate">Oceń</string>
+ <string name="kau_report_bug">Zgłoś błąd</string>
+ <string name="kau_search">Szukaj</string>
+ <string name="kau_send_feedback">Prześlij opinię</string>
+ <string name="kau_send_via">Wyślij przez</string>
+ <string name="kau_settings">Ustawienia</string>
+ <string name="kau_share">Udostępnij</string>
+ <string name="kau_text_copied">Tekst skopiowano do schowka.</string>
+ <string name="kau_thank_you">Dziękuję</string>
+ <string name="kau_uh_oh">Uh Oh</string>
+ <string name="kau_warning">Ostrzeżenie</string>
+ <string name="kau_yes">Tak</string>
+ <string name="kau_permission_denied">Odmowa uprawnienia</string>
</resources>
diff --git a/core/src/main/res-public/values-sv-rSE/strings_commons.xml b/core/src/main/res-public/values-sv-rSE/strings_commons.xml
new file mode 100644
index 0000000..6cc2bb3
--- /dev/null
+++ b/core/src/main/res-public/values-sv-rSE/strings_commons.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?><!--Generated by crowdin.com--><!--
+A collection of common string values
+Most resources are verbatim and x represents a formatted item
+-->
+<resources>
+ <string name="kau_about_app">Om appen</string>
+ <string name="kau_about_x">Om %s</string>
+ <string name="kau_add_account">Lägg till konto</string>
+ <string name="kau_back">Tillbaka</string>
+ <string name="kau_cancel">Avbryt</string>
+ <string name="kau_changelog">Uppdateringslog</string>
+ <string name="kau_close">Stäng</string>
+ <string name="kau_contact_us">Kontakta oss</string>
+ <string name="kau_copy">Kopiera</string>
+ <string name="kau_custom">Anpassa</string>
+ <string name="kau_dark">Mörk</string>
+ <string name="kau_default">Standard</string>
+ <string name="kau_do_not_show_again">Visa inte igen</string>
+ <string name="kau_done">Klar</string>
+ <string name="kau_error">Fel</string>
+ <string name="kau_exit">Avsluta</string>
+ <string name="kau_exit_confirmation">Är du säker på att du vill avsluta?</string>
+ <string name="kau_exit_confirmation_x">Är du säker på att du vill avsluta %s?</string>
+ <string name="kau_glass">Glas</string>
+ <string name="kau_got_it">Jag förstår</string>
+ <string name="kau_great">Bra</string>
+ <string name="kau_hide">Dölj</string>
+ <string name="kau_light">Ljus</string>
+ <string name="kau_login">Logga in</string>
+ <string name="kau_logout">Logga ut</string>
+ <string name="kau_logout_confirm_as_x">Är du säker på att du vill logga ut %s?</string>
+ <string name="kau_manage_account">Hantera konto</string>
+ <string name="kau_maybe">Kanske</string>
+ <string name="kau_menu">Meny</string>
+ <string name="kau_no">Nej</string>
+ <string name="kau_no_results_found">Inga resultat hittades</string>
+ <string name="kau_none">Inga</string>
+ <string name="kau_ok">OK</string>
+ <string name="kau_play_store">Play Store</string>
+ <string name="kau_rate">Betygsätt</string>
+ <string name="kau_report_bug">Rapportera ett fel</string>
+ <string name="kau_search">Sök</string>
+ <string name="kau_send_feedback">Skicka Feedback</string>
+ <string name="kau_send_via">Skicka via</string>
+ <string name="kau_settings">Inställningar</string>
+ <string name="kau_share">Dela</string>
+ <string name="kau_text_copied">Text kopierad till urklipp.</string>
+ <string name="kau_thank_you">Tack så mycket</string>
+ <string name="kau_uh_oh">Uh-oh</string>
+ <string name="kau_warning">Varning</string>
+ <plurals name="kau_x_days">
+ <item quantity="one">%d dag</item>
+ <item quantity="other">%d dagar</item>
+ </plurals>
+ <plurals name="kau_x_hours">
+ <item quantity="one">%d timme</item>
+ <item quantity="other">%d timmar</item>
+ </plurals>
+ <plurals name="kau_x_minutes">
+ <item quantity="one">%d minut</item>
+ <item quantity="other">%d minuter</item>
+ </plurals>
+ <plurals name="kau_x_seconds">
+ <item quantity="one">%d sekund</item>
+ <item quantity="other">%d sekunder</item>
+ </plurals>
+ <string name="kau_yes">Ja</string>
+ <string name="kau_permission_denied">Åtkomst nekad</string>
+</resources>
diff --git a/core/src/main/res-public/values-th-rTH/strings_commons.xml b/core/src/main/res-public/values-th-rTH/strings_commons.xml
index 33a54e0..2f4bdec 100644
--- a/core/src/main/res-public/values-th-rTH/strings_commons.xml
+++ b/core/src/main/res-public/values-th-rTH/strings_commons.xml
@@ -1,67 +1,65 @@
-<?xml version="1.0" encoding="utf-8" standalone="no"?>
-<!--Generated by crowdin.com-->
-<!--
+<?xml version="1.0" encoding="utf-8" standalone="no"?><!--Generated by crowdin.com--><!--
A collection of common string values
Most resources are verbatim and x represents a formatted item
-->
<resources>
- <string name="kau_about_app">เกี่ยวกับแอพ</string>
- <string name="kau_about_x">เกี่ยวกับ%s</string>
- <string name="kau_add_account">เพิ่มบัญชี</string>
- <string name="kau_back">กลับ</string>
- <string name="kau_cancel">ยกเลิก</string>
- <string name="kau_changelog">บันทึกการเปลี่ยนแปลง</string>
- <string name="kau_close">ปิด</string>
- <string name="kau_contact_us">ติดต่อเรา</string>
- <string name="kau_copy">คัดลอก</string>
- <string name="kau_custom">กำหนด​เอง</string>
- <string name="kau_dark">สีเข้ม</string>
- <string name="kau_default">ค่าเริ่มต้น</string>
- <string name="kau_do_not_show_again">ไม่ต้องแสดงอีก</string>
- <string name="kau_done">เสร็จ</string>
- <string name="kau_error">ข้อผิดพลาด</string>
- <string name="kau_exit">ออก</string>
- <string name="kau_exit_confirmation">แน่ใจหรือไม่ว่าคุณต้องการจะออก?</string>
- <string name="kau_exit_confirmation_x">แน่ใจหรือไม่ว่าคุณต้องการจะออกจาก%s?</string>
- <string name="kau_glass">แก้ว</string>
- <string name="kau_got_it">เข้าใจแล้ว</string>
- <string name="kau_great">ดีมาก</string>
- <string name="kau_hide">ซ่อน</string>
- <string name="kau_light">สว่าง</string>
- <string name="kau_login">เข้าสู่ระบบ</string>
- <string name="kau_logout">ออกจากระบบ</string>
- <string name="kau_logout_confirm_as_x">คุณแน่ใจว่าต้องการให้%sออกจากระบบ?</string>
- <string name="kau_manage_account">จัดการบัญชี</string>
- <string name="kau_maybe">บางที</string>
- <string name="kau_menu">เมนู</string>
- <string name="kau_no">ไม่</string>
- <string name="kau_no_results_found">ไม่พบผลลัพธ์</string>
- <string name="kau_none">ไม่มี</string>
- <string name="kau_ok">ตกลง</string>
- <string name="kau_play_store">Play Store</string>
- <string name="kau_rate">ให้คะแนน</string>
- <string name="kau_report_bug">รายงานข้อบกพร่อง</string>
- <string name="kau_search">ค้นหา</string>
- <string name="kau_send_feedback">ส่งข้อเสนอแนะ</string>
- <string name="kau_send_via">ส่งผ่านทาง</string>
- <string name="kau_settings">ตั้งค่า</string>
- <string name="kau_share">แชร์</string>
- <string name="kau_text_copied">คัดลอกข้อความไปยังคลิปบอร์ดแล้ว</string>
- <string name="kau_thank_you">ขอบคุณ</string>
- <string name="kau_uh_oh">โอ้โห!</string>
- <string name="kau_warning">คำเตือน</string>
- <plurals name="kau_x_days">
- <item quantity="other">%d วัน</item>
- </plurals>
- <plurals name="kau_x_hours">
- <item quantity="other">%d ชั่วโมง</item>
- </plurals>
- <plurals name="kau_x_minutes">
- <item quantity="other">%d นาที</item>
- </plurals>
- <plurals name="kau_x_seconds">
- <item quantity="other">%d วินาที</item>
- </plurals>
- <string name="kau_yes">ใช่</string>
- <string name="kau_permission_denied">สิทธิ์การใช้งานถูกปฏิเสธ!</string>
+ <string name="kau_about_app">เกี่ยวกับแอพ</string>
+ <string name="kau_about_x">เกี่ยวกับ%s</string>
+ <string name="kau_add_account">เพิ่มบัญชี</string>
+ <string name="kau_back">กลับ</string>
+ <string name="kau_cancel">ยกเลิก</string>
+ <string name="kau_changelog">บันทึกการเปลี่ยนแปลง</string>
+ <string name="kau_close">ปิด</string>
+ <string name="kau_contact_us">ติดต่อเรา</string>
+ <string name="kau_copy">คัดลอก</string>
+ <string name="kau_custom">กำหนด​เอง</string>
+ <string name="kau_dark">สีเข้ม</string>
+ <string name="kau_default">ค่าเริ่มต้น</string>
+ <string name="kau_do_not_show_again">ไม่ต้องแสดงอีก</string>
+ <string name="kau_done">เสร็จ</string>
+ <string name="kau_error">ข้อผิดพลาด</string>
+ <string name="kau_exit">ออก</string>
+ <string name="kau_exit_confirmation">แน่ใจหรือไม่ว่าคุณต้องการจะออก?</string>
+ <string name="kau_exit_confirmation_x">แน่ใจหรือไม่ว่าคุณต้องการจะออกจาก%s?</string>
+ <string name="kau_glass">แก้ว</string>
+ <string name="kau_got_it">เข้าใจแล้ว</string>
+ <string name="kau_great">ดีมาก</string>
+ <string name="kau_hide">ซ่อน</string>
+ <string name="kau_light">สว่าง</string>
+ <string name="kau_login">เข้าสู่ระบบ</string>
+ <string name="kau_logout">ออกจากระบบ</string>
+ <string name="kau_logout_confirm_as_x">คุณแน่ใจว่าต้องการให้%sออกจากระบบ?</string>
+ <string name="kau_manage_account">จัดการบัญชี</string>
+ <string name="kau_maybe">บางที</string>
+ <string name="kau_menu">เมนู</string>
+ <string name="kau_no">ไม่</string>
+ <string name="kau_no_results_found">ไม่พบผลลัพธ์</string>
+ <string name="kau_none">ไม่มี</string>
+ <string name="kau_ok">ตกลง</string>
+ <string name="kau_play_store">Play Store</string>
+ <string name="kau_rate">ให้คะแนน</string>
+ <string name="kau_report_bug">รายงานข้อบกพร่อง</string>
+ <string name="kau_search">ค้นหา</string>
+ <string name="kau_send_feedback">ส่งข้อเสนอแนะ</string>
+ <string name="kau_send_via">ส่งผ่านทาง</string>
+ <string name="kau_settings">ตั้งค่า</string>
+ <string name="kau_share">แชร์</string>
+ <string name="kau_text_copied">คัดลอกข้อความไปยังคลิปบอร์ดแล้ว</string>
+ <string name="kau_thank_you">ขอบคุณ</string>
+ <string name="kau_uh_oh">โอ้โห!</string>
+ <string name="kau_warning">คำเตือน</string>
+ <plurals name="kau_x_days">
+ <item quantity="other">%d วัน</item>
+ </plurals>
+ <plurals name="kau_x_hours">
+ <item quantity="other">%d ชั่วโมง</item>
+ </plurals>
+ <plurals name="kau_x_minutes">
+ <item quantity="other">%d นาที</item>
+ </plurals>
+ <plurals name="kau_x_seconds">
+ <item quantity="other">%d วินาที</item>
+ </plurals>
+ <string name="kau_yes">ใช่</string>
+ <string name="kau_permission_denied">สิทธิ์การใช้งานถูกปฏิเสธ!</string>
</resources>
diff --git a/core/src/main/res-public/values-tr-rTR/strings_commons.xml b/core/src/main/res-public/values-tr-rTR/strings_commons.xml
index d74981f..1e8395e 100644
--- a/core/src/main/res-public/values-tr-rTR/strings_commons.xml
+++ b/core/src/main/res-public/values-tr-rTR/strings_commons.xml
@@ -1,71 +1,69 @@
-<?xml version="1.0" encoding="utf-8" standalone="no"?>
-<!--Generated by crowdin.com-->
-<!--
+<?xml version="1.0" encoding="utf-8" standalone="no"?><!--Generated by crowdin.com--><!--
A collection of common string values
Most resources are verbatim and x represents a formatted item
-->
<resources>
- <string name="kau_about_app">App Hakkında</string>
- <string name="kau_about_x">Hakkında%s</string>
- <string name="kau_add_account">Hesap eklemek</string>
- <string name="kau_back">Geri</string>
- <string name="kau_cancel">İptal etmek</string>
- <string name="kau_changelog">Değişiklikler</string>
- <string name="kau_close">Kapat</string>
- <string name="kau_contact_us">Bize ulaşın</string>
- <string name="kau_copy">Kopyala</string>
- <string name="kau_custom">Özel</string>
- <string name="kau_dark">Koyu</string>
- <string name="kau_default">Varsayılan</string>
- <string name="kau_do_not_show_again">Bir daha gösterme</string>
- <string name="kau_done">Bitti</string>
- <string name="kau_error">Hata</string>
- <string name="kau_exit">Çıkış</string>
- <string name="kau_exit_confirmation">Çıkmak istediğine emin misin?</string>
- <string name="kau_exit_confirmation_x">Çıkmak istediğine emin misin? %s?</string>
- <string name="kau_glass">Cam</string>
- <string name="kau_got_it">Anladım</string>
- <string name="kau_great">Güzel</string>
- <string name="kau_hide">Gizle</string>
- <string name="kau_light">Açık</string>
- <string name="kau_login">Giriş yap</string>
- <string name="kau_logout">Çıkış yap</string>
- <string name="kau_logout_confirm_as_x">Çıkış yapmak istediğine emin misin %s?</string>
- <string name="kau_manage_account">Hesabını yönet</string>
- <string name="kau_maybe">Belki</string>
- <string name="kau_menu">Menü</string>
- <string name="kau_no">Hayır</string>
- <string name="kau_no_results_found">Hiç bir sonuç bulunamadı</string>
- <string name="kau_none">Hiçbir</string>
- <string name="kau_ok">Tamam</string>
- <string name="kau_play_store">Play Store</string>
- <string name="kau_rate">Oran</string>
- <string name="kau_report_bug">Bir hatayı bildir</string>
- <string name="kau_search">Araştır</string>
- <string name="kau_send_feedback">Geri bildirim gönder</string>
- <string name="kau_send_via">Yoluyla Gönder</string>
- <string name="kau_settings">Ayarlar</string>
- <string name="kau_share">Paylaş</string>
- <string name="kau_text_copied">Metin panoya kopyalandı.</string>
- <string name="kau_thank_you">Teşekkür ederim</string>
- <string name="kau_uh_oh">Ah ah</string>
- <string name="kau_warning">Uyarı</string>
- <plurals name="kau_x_days">
- <item quantity="one">%d gün</item>
- <item quantity="other">%d gün</item>
- </plurals>
- <plurals name="kau_x_hours">
- <item quantity="one">Saat %d</item>
- <item quantity="other">Saat %d</item>
- </plurals>
- <plurals name="kau_x_minutes">
- <item quantity="one">%d dakika</item>
- <item quantity="other">%d dakika</item>
- </plurals>
- <plurals name="kau_x_seconds">
- <item quantity="one">%d saniye</item>
- <item quantity="other">%d saniye</item>
- </plurals>
- <string name="kau_yes">Evet</string>
- <string name="kau_permission_denied">İzin reddedildi</string>
+ <string name="kau_about_app">App Hakkında</string>
+ <string name="kau_about_x">Hakkında%s</string>
+ <string name="kau_add_account">Hesap eklemek</string>
+ <string name="kau_back">Geri</string>
+ <string name="kau_cancel">İptal etmek</string>
+ <string name="kau_changelog">Değişiklikler</string>
+ <string name="kau_close">Kapat</string>
+ <string name="kau_contact_us">Bize ulaşın</string>
+ <string name="kau_copy">Kopyala</string>
+ <string name="kau_custom">Özel</string>
+ <string name="kau_dark">Koyu</string>
+ <string name="kau_default">Varsayılan</string>
+ <string name="kau_do_not_show_again">Bir daha gösterme</string>
+ <string name="kau_done">Bitti</string>
+ <string name="kau_error">Hata</string>
+ <string name="kau_exit">Çıkış</string>
+ <string name="kau_exit_confirmation">Çıkmak istediğine emin misin?</string>
+ <string name="kau_exit_confirmation_x">Çıkmak istediğine emin misin? %s?</string>
+ <string name="kau_glass">Cam</string>
+ <string name="kau_got_it">Anladım</string>
+ <string name="kau_great">Güzel</string>
+ <string name="kau_hide">Gizle</string>
+ <string name="kau_light">Açık</string>
+ <string name="kau_login">Giriş yap</string>
+ <string name="kau_logout">Çıkış yap</string>
+ <string name="kau_logout_confirm_as_x">Çıkış yapmak istediğine emin misin %s?</string>
+ <string name="kau_manage_account">Hesabını yönet</string>
+ <string name="kau_maybe">Belki</string>
+ <string name="kau_menu">Menü</string>
+ <string name="kau_no">Hayır</string>
+ <string name="kau_no_results_found">Hiç bir sonuç bulunamadı</string>
+ <string name="kau_none">Hiçbir</string>
+ <string name="kau_ok">Tamam</string>
+ <string name="kau_play_store">Play Store</string>
+ <string name="kau_rate">Oran</string>
+ <string name="kau_report_bug">Bir hatayı bildir</string>
+ <string name="kau_search">Araştır</string>
+ <string name="kau_send_feedback">Geri bildirim gönder</string>
+ <string name="kau_send_via">Yoluyla Gönder</string>
+ <string name="kau_settings">Ayarlar</string>
+ <string name="kau_share">Paylaş</string>
+ <string name="kau_text_copied">Metin panoya kopyalandı.</string>
+ <string name="kau_thank_you">Teşekkür ederim</string>
+ <string name="kau_uh_oh">Ah ah</string>
+ <string name="kau_warning">Uyarı</string>
+ <plurals name="kau_x_days">
+ <item quantity="one">%d gün</item>
+ <item quantity="other">%d gün</item>
+ </plurals>
+ <plurals name="kau_x_hours">
+ <item quantity="one">Saat %d</item>
+ <item quantity="other">Saat %d</item>
+ </plurals>
+ <plurals name="kau_x_minutes">
+ <item quantity="one">%d dakika</item>
+ <item quantity="other">%d dakika</item>
+ </plurals>
+ <plurals name="kau_x_seconds">
+ <item quantity="one">%d saniye</item>
+ <item quantity="other">%d saniye</item>
+ </plurals>
+ <string name="kau_yes">Evet</string>
+ <string name="kau_permission_denied">İzin reddedildi</string>
</resources>
diff --git a/core/src/main/res-public/values-uk-rUA/strings_commons.xml b/core/src/main/res-public/values-uk-rUA/strings_commons.xml
new file mode 100644
index 0000000..60ca520
--- /dev/null
+++ b/core/src/main/res-public/values-uk-rUA/strings_commons.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?><!--Generated by crowdin.com--><!--
+A collection of common string values
+Most resources are verbatim and x represents a formatted item
+-->
+<resources>
+ <string name="kau_about_app">Про додаток</string>
+ <string name="kau_about_x">Про %s</string>
+ <string name="kau_add_account">Додати обліковий запис</string>
+ <string name="kau_back">Назад</string>
+ <string name="kau_cancel">Скасувати</string>
+ <string name="kau_changelog">Історія змін</string>
+ <string name="kau_close">Закрити</string>
+ <string name="kau_contact_us">Зв\'яжіться з нами</string>
+ <string name="kau_copy">Скопіювати</string>
+ <string name="kau_custom">Користувальницький</string>
+ <string name="kau_dark">Темний</string>
+ <string name="kau_default">За замовчуванням</string>
+ <string name="kau_do_not_show_again">Не показувати знову</string>
+ <string name="kau_done">Готово</string>
+ <string name="kau_error">Помилка</string>
+ <string name="kau_exit">Вихід</string>
+ <string name="kau_exit_confirmation">Ви впевнені що хочете вийти?</string>
+ <string name="kau_exit_confirmation_x">Ви впевнені що хочете вийти %s?</string>
+ <string name="kau_glass">Скляна</string>
+ <string name="kau_got_it">Зрозуміло</string>
+ <string name="kau_great">Чудово</string>
+ <string name="kau_hide">Сховати</string>
+ <string name="kau_light">Світла</string>
+ <string name="kau_login">Увійти</string>
+ <string name="kau_logout">Вийти</string>
+ <string name="kau_logout_confirm_as_x">Ви впевнені, що хочете вийти з %s?</string>
+ <string name="kau_manage_account">Керування акаунтами</string>
+ <string name="kau_maybe">Можливо</string>
+ <string name="kau_menu">Меню</string>
+ <string name="kau_no">Ні</string>
+ <string name="kau_no_results_found">Нічого не знайдено</string>
+ <string name="kau_none">Жоден</string>
+ <string name="kau_ok">OK</string>
+ <string name="kau_play_store">Play Маркет</string>
+ <string name="kau_rate">Оцінити</string>
+ <string name="kau_report_bug">Повідомити про помилки</string>
+ <string name="kau_search">Пошук</string>
+ <string name="kau_send_feedback">Надіслати відгук</string>
+ <string name="kau_send_via">Надіслати через</string>
+ <string name="kau_settings">Налаштування</string>
+ <string name="kau_share">Поділитися</string>
+ <string name="kau_text_copied">Текст скопійовано до буфера обміну.</string>
+ <string name="kau_thank_you">Дякуємо Вам</string>
+ <string name="kau_uh_oh">Ой-ой</string>
+ <string name="kau_warning">Увага</string>
+ <string name="kau_yes">Так</string>
+ <string name="kau_permission_denied">У доступі відмовлено</string>
+</resources>
diff --git a/core/src/main/res-public/values/public.xml b/core/src/main/res-public/values/public.xml
index 158ab6f..485be78 100644
--- a/core/src/main/res-public/values/public.xml
+++ b/core/src/main/res-public/values/public.xml
@@ -1,5 +1,5 @@
<resources xmlns:tools='http://schemas.android.com/tools' tools:ignore='ResourceName'>
-<!-- AUTO-GENERATED FILE. DO NOT MODIFY. public.xml is generated by the generatepublicxml gradle task -->
+ <!-- AUTO-GENERATED FILE. DO NOT MODIFY. public.xml is generated by the generatepublicxml gradle task -->
<public name='Kau' type='style' />
<public name='Kau.Translucent' type='style' />
<public name='kau_activity_horizontal_margin' type='dimen' />