From 178aea6b90fb085e05e9d50979af1782592a3a49 Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Thu, 10 Sep 2015 11:46:31 +0200 Subject: linked: localization for github creation --- .../ui/linked/LinkedIdCreateGithubFragment.java | 35 +++++++++---------- .../res/layout/linked_create_github_fragment.xml | 12 +++---- OpenKeychain/src/main/res/values/strings.xml | 39 ++++++++++++++-------- 3 files changed, 47 insertions(+), 39 deletions(-) (limited to 'OpenKeychain/src') diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/linked/LinkedIdCreateGithubFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/linked/LinkedIdCreateGithubFragment.java index 56a405cc2..6cf8b4fcf 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/linked/LinkedIdCreateGithubFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/linked/LinkedIdCreateGithubFragment.java @@ -31,7 +31,6 @@ import java.net.URI; import java.net.URL; import java.util.Random; -import android.annotation.SuppressLint; import android.app.Activity; import android.app.Dialog; import android.content.Context; @@ -41,6 +40,8 @@ import android.content.Intent; import android.net.Uri; import android.os.AsyncTask; import android.os.Build; +import android.os.Build.VERSION; +import android.os.Build.VERSION_CODES; import android.os.Bundle; import android.os.Handler; import android.support.annotation.NonNull; @@ -244,19 +245,18 @@ public class LinkedIdCreateGithubFragment extends CryptoOperationFragment= Build.VERSION_CODES.LOLLIPOP) { + if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { linkedItem.setTransitionName(resource.toUri().toString()); } @@ -533,7 +532,7 @@ public class LinkedIdCreateGithubFragment extends CryptoOperationFragment @@ -92,7 +92,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:text="Post Gist…" + android:text="@string/linked_progress_post_gist" style="?android:textAppearanceMedium" /> @@ -112,7 +112,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:text="Update Key…" + android:text="@string/linked_progress_update_key" style="?android:textAppearanceMedium" /> @@ -139,7 +139,7 @@ android:drawableLeft="@drawable/link_24dp" android:drawableStart="@drawable/link_24dp" android:drawablePadding="12dp" - android:text="Link to Github Account" + android:text="@string/linked_button_start" android:id="@+id/button_send" /> @@ -156,7 +156,7 @@ android:drawableLeft="@drawable/ic_repeat_black_24dp" android:drawableStart="@drawable/ic_repeat_black_24dp" android:drawablePadding="12dp" - android:text="Retry Last Step" + android:text="@string/linked_button_retry" android:id="@+id/button_retry" /> diff --git a/OpenKeychain/src/main/res/values/strings.xml b/OpenKeychain/src/main/res/values/strings.xml index bfa1395ac..034a78133 100644 --- a/OpenKeychain/src/main/res/values/strings.xml +++ b/OpenKeychain/src/main/res/values/strings.xml @@ -1604,19 +1604,30 @@ "Link to Account" "Linked Identities" "Finish" - Website (HTTPS) - Domain Name (DNS) - GitHub - Twitter - Linked Identity - Verify - Retry - Confirm - View - Verifying… - Error - Confirming… - %d more unknown identity types - Create Linked Identity + "Website (HTTPS)" + "Domain Name (DNS)" + "GitHub" + "Twitter" + "Linked Identity" + "Verify" + "Retry last step" + "Confirm" + "View" + "Verifying…" + "Error" + "Confirming…" + "%d more unknown identity types" + "Create Linked Identity" + "This operation links your key to your GitHub account.\nJust press the button to continue." + "Authorize with GitHub…" + "Post Gist…" + "Update Key…" + "Link to Github Account" + "Authorization failed!" + "Connection timeout!" + "Network error!" + "Communication error: %s" + "GitHub Authorization" + "OpenKeychain API Tests" -- cgit v1.2.3