mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-23 14:31:30 +01:00
Prepare translating
Fix some problems I forgot about earlier, Move more strings to the string resource xml
This commit is contained in:
parent
9dd663d279
commit
ca5b6878d9
4 changed files with 19 additions and 14 deletions
|
@ -7,7 +7,6 @@ import android.os.Bundle
|
||||||
import android.provider.Settings
|
import android.provider.Settings
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.WindowManager
|
import android.view.WindowManager
|
||||||
import android.widget.Toast
|
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
|
|
||||||
|
|
||||||
|
@ -73,8 +72,8 @@ class SettingsActivity : AppCompatActivity() {
|
||||||
startActivity(intent)
|
startActivity(intent)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun openFinnWebsite(view: View) { openNewTabWindow("https://www.finnmglas.com/", this) }
|
fun openFinnWebsite(view: View) { openNewTabWindow(getString(R.string.settings_footer_web), this) }
|
||||||
fun openGithubRepo(view: View) { openNewTabWindow("https://github.com/finnmglas/Launcher#en", this) }
|
fun openGithubRepo(view: View) { openNewTabWindow(getString(R.string.settings_footer_repo), this) }
|
||||||
fun backHome(view: View) { finish() }
|
fun backHome(view: View) { finish() }
|
||||||
|
|
||||||
fun setLauncher(view: View) {
|
fun setLauncher(view: View) {
|
||||||
|
@ -86,8 +85,8 @@ class SettingsActivity : AppCompatActivity() {
|
||||||
// on older sdk: manage app details
|
// on older sdk: manage app details
|
||||||
else {
|
else {
|
||||||
AlertDialog.Builder(this)
|
AlertDialog.Builder(this)
|
||||||
.setTitle("App Info")
|
.setTitle(getString(R.string.alert_cant_choose_launcher))
|
||||||
.setMessage("Your device does not support this feature. Manage application details instead?")
|
.setMessage(getString(R.string.alert_cant_choose_launcher_message))
|
||||||
.setPositiveButton(android.R.string.yes,
|
.setPositiveButton(android.R.string.yes,
|
||||||
DialogInterface.OnClickListener { dialog, which ->
|
DialogInterface.OnClickListener { dialog, which ->
|
||||||
try {
|
try {
|
||||||
|
@ -106,8 +105,8 @@ class SettingsActivity : AppCompatActivity() {
|
||||||
// Show a dialog prompting for confirmation
|
// Show a dialog prompting for confirmation
|
||||||
fun resetSettingsClick(view: View) {
|
fun resetSettingsClick(view: View) {
|
||||||
AlertDialog.Builder(this)
|
AlertDialog.Builder(this)
|
||||||
.setTitle("Reset Settings")
|
.setTitle(getString(R.string.settings_reset))
|
||||||
.setMessage("This will discard all your App Choices. Sure you want to continue?")
|
.setMessage(getString(R.string.settings_reset_message))
|
||||||
.setPositiveButton(android.R.string.yes,
|
.setPositiveButton(android.R.string.yes,
|
||||||
DialogInterface.OnClickListener { dialog, which ->
|
DialogInterface.OnClickListener { dialog, which ->
|
||||||
resetSettings(this.getSharedPreferences(getString(R.string.preference_file_key), Context.MODE_PRIVATE), this)
|
resetSettings(this.getSharedPreferences(getString(R.string.preference_file_key), Context.MODE_PRIVATE), this)
|
||||||
|
|
|
@ -281,7 +281,7 @@
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.95">
|
app:layout_constraintVertical_bias="0.98">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<resources>
|
<resources>
|
||||||
<string name="fa_icon_calendar"></string>
|
<string name="fa_icon_calendar" translatable="false"></string>
|
||||||
<string name="fa_icon_home"></string>
|
<string name="fa_icon_home" translatable="false"></string>
|
||||||
<string name="fa_icon_globe"></string>
|
<string name="fa_icon_globe" translatable="false"></string>
|
||||||
<string name="fa_icon_bars"></string>
|
<string name="fa_icon_bars" translatable="false"></string>
|
||||||
</resources>
|
</resources>
|
|
@ -1,7 +1,7 @@
|
||||||
<resources>
|
<resources>
|
||||||
<!-- General -->
|
<!-- General -->
|
||||||
<string name="app_name">Launcher</string>
|
<string name="app_name" translatable="false">Launcher</string>
|
||||||
<string name="preference_file_key">V3RYR4ND0MK3YCR4P</string>
|
<string name="preference_file_key" translatable="false">V3RYR4ND0MK3YCR4P</string>
|
||||||
|
|
||||||
<!-- Errors, Exceptions (Alerts, Toasts ...) -->
|
<!-- Errors, Exceptions (Alerts, Toasts ...) -->
|
||||||
<string name="none_found">None found</string>
|
<string name="none_found">None found</string>
|
||||||
|
@ -10,6 +10,9 @@
|
||||||
<string name="alert_cant_open_message">Want to change its settings (\'add it to the apps screen\')?</string>
|
<string name="alert_cant_open_message">Want to change its settings (\'add it to the apps screen\')?</string>
|
||||||
<string name="toast_cant_open_message">Open settings to choose an app for this action</string>
|
<string name="toast_cant_open_message">Open settings to choose an app for this action</string>
|
||||||
|
|
||||||
|
<string name="alert_cant_choose_launcher">App Info</string>
|
||||||
|
<string name="alert_cant_choose_launcher_message">Your device does not support this feature. Manage application details instead?</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="settings_title">Settings</string>
|
<string name="settings_title">Settings</string>
|
||||||
<string name="settings_sub_title1">Applications</string>
|
<string name="settings_sub_title1">Applications</string>
|
||||||
|
@ -25,11 +28,14 @@
|
||||||
|
|
||||||
<string name="settings_select_launcher">Select Launcher</string>
|
<string name="settings_select_launcher">Select Launcher</string>
|
||||||
<string name="settings_reset">Reset Settings</string>
|
<string name="settings_reset">Reset Settings</string>
|
||||||
|
<string name="settings_reset_message">You are going to discard all your preferences. Continue?</string>
|
||||||
<string name="settings_launch">Launch Apps</string>
|
<string name="settings_launch">Launch Apps</string>
|
||||||
<string name="settings_uninstall">Uninstall Apps</string>
|
<string name="settings_uninstall">Uninstall Apps</string>
|
||||||
<string name="settings_home">Back Home</string>
|
<string name="settings_home">Back Home</string>
|
||||||
|
|
||||||
<string name="settings_footer_by">By</string>
|
<string name="settings_footer_by">By</string>
|
||||||
|
<string name="settings_footer_repo">https://github.com/finnmglas/Launcher#en</string>
|
||||||
|
<string name="settings_footer_web">https://www.finnmglas.com</string>
|
||||||
|
|
||||||
<!-- Choose Activity -->
|
<!-- Choose Activity -->
|
||||||
<string name="choose_title">Choose App</string>
|
<string name="choose_title">Choose App</string>
|
||||||
|
|
Loading…
Add table
Reference in a new issue