Merge branch 'master' into 'master'
Allow for better localization See merge request AuroraOSS/AuroraStore!190
This commit is contained in:
@@ -79,12 +79,12 @@ class AccountActivity : BaseActivity() {
|
||||
}
|
||||
|
||||
AuthState.Available -> {
|
||||
updateStatus("Verifying session")
|
||||
updateStatus(getString(R.string.session_verifying))
|
||||
updateActionLayout(false)
|
||||
}
|
||||
|
||||
AuthState.Unavailable -> {
|
||||
updateStatus("You need to login first")
|
||||
updateStatus(getString(R.string.session_login))
|
||||
updateActionLayout(true)
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ class AccountActivity : BaseActivity() {
|
||||
}
|
||||
|
||||
AuthState.SignedOut -> {
|
||||
updateStatus("Last session scrapped")
|
||||
updateStatus(getString(R.string.session_scrapped))
|
||||
updateActionLayout(true)
|
||||
}
|
||||
|
||||
@@ -114,10 +114,10 @@ class AccountActivity : BaseActivity() {
|
||||
when (event) {
|
||||
is BusEvent.GoogleAAS -> {
|
||||
if (event.success) {
|
||||
updateStatus("Verifying Google Session")
|
||||
updateStatus(getString(R.string.session_verifying_google))
|
||||
VM.buildGoogleAuthData(event.email, event.aasToken)
|
||||
} else {
|
||||
updateStatus("Failed to login via Google")
|
||||
updateStatus(getString(R.string.session_login_failed_google))
|
||||
}
|
||||
}
|
||||
else -> {
|
||||
@@ -129,10 +129,10 @@ class AccountActivity : BaseActivity() {
|
||||
private fun updateContents() {
|
||||
if (accountProvider.isSignedIn()) {
|
||||
B.viewFlipper.displayedChild = 1
|
||||
updateStatus("Woah! all good.")
|
||||
updateStatus(getString(R.string.session_good))
|
||||
} else {
|
||||
B.viewFlipper.displayedChild = 0
|
||||
updateStatus("Login and enjoy.")
|
||||
updateStatus(getString(R.string.session_enjoy))
|
||||
}
|
||||
|
||||
updateUserProfile()
|
||||
|
||||
@@ -77,7 +77,7 @@ class SplashActivity : BaseActivity() {
|
||||
attachActions()
|
||||
|
||||
//Initial status
|
||||
updateStatus("Getting things ready..")
|
||||
updateStatus(getString(R.string.session_init))
|
||||
|
||||
VM.liveData.observe(this, {
|
||||
when (it) {
|
||||
@@ -86,12 +86,12 @@ class SplashActivity : BaseActivity() {
|
||||
}
|
||||
|
||||
AuthState.Available -> {
|
||||
updateStatus("Verifying session")
|
||||
updateStatus(getString(R.string.session_verifying))
|
||||
updateActionLayout(false)
|
||||
}
|
||||
|
||||
AuthState.Unavailable -> {
|
||||
updateStatus("You need to login first")
|
||||
updateStatus(getString(R.string.session_login))
|
||||
updateActionLayout(true)
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ class SplashActivity : BaseActivity() {
|
||||
}
|
||||
|
||||
AuthState.SignedOut -> {
|
||||
updateStatus("Last session scrapped")
|
||||
updateStatus(getString(R.string.session_scrapped))
|
||||
updateActionLayout(true)
|
||||
}
|
||||
|
||||
@@ -164,10 +164,10 @@ class SplashActivity : BaseActivity() {
|
||||
when (event) {
|
||||
is BusEvent.GoogleAAS -> {
|
||||
if (event.success) {
|
||||
updateStatus("Verifying Google Session")
|
||||
updateStatus(getString(R.string.session_verifying_google))
|
||||
VM.buildGoogleAuthData(event.email, event.aasToken)
|
||||
} else {
|
||||
updateStatus("Failed to login via Google")
|
||||
updateStatus(getString(R.string.session_login_failed_google))
|
||||
}
|
||||
}
|
||||
else -> {
|
||||
|
||||
@@ -196,7 +196,12 @@ class UpdatesFragment : BaseFragment() {
|
||||
add(
|
||||
UpdateHeaderViewModel_()
|
||||
.id("header_all")
|
||||
.title("${updateFileMap.size} updates available")
|
||||
.title("${updateFileMap.size} " +
|
||||
if (updateFileMap.size == 1)
|
||||
getString(R.string.update_available)
|
||||
else
|
||||
getString(R.string.updates_available)
|
||||
)
|
||||
.action(
|
||||
if (VM.updateAllEnqueued)
|
||||
getString(R.string.action_cancel)
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_action"
|
||||
android:layout_width="100dp"
|
||||
android:layout_width="115dp"
|
||||
android:layout_height="@dimen/height_button"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
|
||||
@@ -177,6 +177,9 @@
|
||||
<string name="download_completed">"Downloaded"</string>
|
||||
<string name="download_deleted">"Deleted"</string>
|
||||
<string name="download_eta_calculating">"Calculating"</string>
|
||||
<string name="download_eta_hrs">%1$dh %2$dm %3$ds left</string>
|
||||
<string name="download_eta_min">%1$dm %2$ds left</string>
|
||||
<string name="download_eta_sec">%1$ds left</string>
|
||||
<string name="download_failed">"Download failed"</string>
|
||||
<string name="download_force_clear_all">"Force clear all"</string>
|
||||
<string name="download_metadata">"Getting metadata"</string>
|
||||
@@ -318,6 +321,14 @@
|
||||
<string name="purchase_not_found">"App not found"</string>
|
||||
<string name="purchase_no_file">"Could not get files"</string>
|
||||
<string name="purchase_session_expired">"Session expired, re-login to obtain new session."</string>
|
||||
<string name="session_enjoy">Login and enjoy.</string>
|
||||
<string name="session_good">Woah! All good.</string>
|
||||
<string name="session_init">Getting things ready…</string>
|
||||
<string name="session_login">You need to login first</string>
|
||||
<string name="session_login_failed_google">Failed to login via Google</string>
|
||||
<string name="session_scrapped">Last session scrapped</string>
|
||||
<string name="session_verifying">Verifying session</string>
|
||||
<string name="session_verifying_google">Verifying Google Session</string>
|
||||
<string name="spoof_apply">"Make sure you re-login to apply the spoof"</string>
|
||||
<string name="insecure_anonymous_apply">"Make sure you re-login and restart app to apply changes."</string>
|
||||
<string name="tab_categories">"Categories"</string>
|
||||
@@ -387,4 +398,6 @@
|
||||
<string name="ui_accent_11">Light blue</string>
|
||||
<string name="ui_accent_12">Disskord blue</string>
|
||||
<string name="ui_accent_13">Deep blue</string>
|
||||
<string name="update_available">update available</string>
|
||||
<string name="updates_available">updates available</string>
|
||||
</resources>
|
||||
@@ -21,9 +21,6 @@
|
||||
<string name="app_name">"Aurora Store"</string>
|
||||
|
||||
<string name="app_list_rating">"%s • %s★ • %s"</string>
|
||||
<string name="download_eta_hrs" translatable="false">%1$dh %2$dm %3$ds left</string>
|
||||
<string name="download_eta_min" translatable="false">%1$dm %2$ds left</string>
|
||||
<string name="download_eta_sec" translatable="false">%1$ds left</string>
|
||||
<string name="download_speed_bytes" translatable="false">%1$d B/s</string>
|
||||
<string name="download_speed_kb" translatable="false">%1$s KB/s</string>
|
||||
<string name="download_speed_mb" translatable="false">%1$s MB/s</string>
|
||||
|
||||
Reference in New Issue
Block a user