change strings for translators

This commit is contained in:
tateisu 2019-11-21 18:48:15 +09:00
parent 2bbd599ba0
commit 64a2851f80
2 changed files with 7 additions and 6 deletions

View File

@ -4,12 +4,11 @@ import android.app.Activity
import android.content.Intent import android.content.Intent
import android.content.pm.PackageManager import android.content.pm.PackageManager
import android.os.Bundle import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.view.Gravity import android.view.Gravity
import android.view.View
import android.widget.Button import android.widget.Button
import android.widget.LinearLayout import android.widget.LinearLayout
import android.widget.TextView import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import jp.juggler.util.LogCategory import jp.juggler.util.LogCategory
class ActAbout : AppCompatActivity() { class ActAbout : AppCompatActivity() {
@ -32,10 +31,11 @@ class ActAbout : AppCompatActivity() {
const val url_weblate = "https://hosted.weblate.org/projects/subway-tooter/" const val url_weblate = "https://hosted.weblate.org/projects/subway-tooter/"
val contributors = arrayOf( val contributors = arrayOf(
Pair("@ButterflyOfFire@mstdn.fr", "update arabic & french language") Pair("@ButterflyOfFire@mstdn.fr", "arabic & french")
) )
} }
override fun onCreate(savedInstanceState : Bundle?) { override fun onCreate(savedInstanceState : Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
App1.setActivityTheme(this) App1.setActivityTheme(this)
@ -92,7 +92,7 @@ class ActAbout : AppCompatActivity() {
for(pair in contributors) { for(pair in contributors) {
ll.addView(Button(this).apply { ll.addView(Button(this).apply {
val acct = pair.first val acct = pair.first
val works = pair.second val languages = pair.second
// //
layoutParams = LinearLayout.LayoutParams( layoutParams = LinearLayout.LayoutParams(
@ -105,9 +105,10 @@ class ActAbout : AppCompatActivity() {
setBackgroundResource(R.drawable.btn_bg_transparent) setBackgroundResource(R.drawable.btn_bg_transparent)
setPadding(padding, padding, padding, padding) setPadding(padding, padding, padding, padding)
isAllCaps = false isAllCaps = false
// //
text = getString(R.string.search_for, acct) + "\n" + text = getString(R.string.search_for, acct) + "\n" +
getString(R.string.thanks_for, works) getString(R.string.thanks_for, languages)
gravity = Gravity.START or Gravity.CENTER_VERTICAL gravity = Gravity.START or Gravity.CENTER_VERTICAL

View File

@ -201,7 +201,7 @@
<string name="search_for">Search %1$s</string> <string name="search_for">Search %1$s</string>
<string name="spoil_visibility_for_account">Visibility is spoiled for account.</string> <string name="spoil_visibility_for_account">Visibility is spoiled for account.</string>
<string name="contributor">contributor</string> <string name="contributor">contributor</string>
<string name="thanks_for">Thanks for %1$s</string> <string name="thanks_for">Thanks for %1$s.</string>
<string name="simple_list">Simple list(app restart required)</string> <string name="simple_list">Simple list(app restart required)</string>
<string name="mute_app_desc">&gt;Swipe leftwards to delete. Reload columns to show statuses published by unmuted apps.</string> <string name="mute_app_desc">&gt;Swipe leftwards to delete. Reload columns to show statuses published by unmuted apps.</string>
<string name="muted_app">Muted apps</string> <string name="muted_app">Muted apps</string>