aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-09-19 03:41:21 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-09-19 03:41:21 +0000
commit78ea14b3ae7d8f769ee869a654390dd376aee50f (patch)
treea705c57c1f28aa03e73387d40c6c211ecd67f080
parentaabed07a46c80a452b62a21f27ac9db6a284ce4e (diff)
downloadinfinity-for-reddit-78ea14b3ae7d8f769ee869a654390dd376aee50f.tar
infinity-for-reddit-78ea14b3ae7d8f769ee869a654390dd376aee50f.tar.gz
infinity-for-reddit-78ea14b3ae7d8f769ee869a654390dd376aee50f.tar.bz2
infinity-for-reddit-78ea14b3ae7d8f769ee869a654390dd376aee50f.tar.lz
infinity-for-reddit-78ea14b3ae7d8f769ee869a654390dd376aee50f.tar.xz
infinity-for-reddit-78ea14b3ae7d8f769ee869a654390dd376aee50f.tar.zst
infinity-for-reddit-78ea14b3ae7d8f769ee869a654390dd376aee50f.zip
Update strings.
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/RedditAPIInfoBottomSheetFragment.java10
-rw-r--r--app/src/main/res/layout/fragment_reddit_api_info_bottom_sheet.xml2
-rw-r--r--app/src/main/res/values/strings.xml53
3 files changed, 47 insertions, 18 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/RedditAPIInfoBottomSheetFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/RedditAPIInfoBottomSheetFragment.java
index 54da61e9..85d50993 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/RedditAPIInfoBottomSheetFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/RedditAPIInfoBottomSheetFragment.java
@@ -1,20 +1,14 @@
package ml.docilealligator.infinityforreddit.bottomsheetfragments;
import android.content.Context;
-import android.content.Intent;
-import android.net.Uri;
import android.os.Bundle;
-import android.text.SpannableString;
-import android.text.util.Linkify;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
-import me.saket.bettermovementmethod.BetterLinkMovementMethod;
import ml.docilealligator.infinityforreddit.R;
-import ml.docilealligator.infinityforreddit.activities.LinkResolverActivity;
import ml.docilealligator.infinityforreddit.activities.MainActivity;
import ml.docilealligator.infinityforreddit.customviews.LandscapeExpandedRoundedBottomSheetDialogFragment;
import ml.docilealligator.infinityforreddit.databinding.FragmentRedditApiInfoBottomSheetBinding;
@@ -40,7 +34,7 @@ public class RedditAPIInfoBottomSheetFragment extends LandscapeExpandedRoundedBo
binding.getRoot().setNestedScrollingEnabled(true);
- SpannableString message = new SpannableString(getString(R.string.reddit_api_info, "https://www.reddit.com/r/reddit/comments/145bram/addressing_the_community_about_changes_to_our_api", "https://www.reddit.com/r/Infinity_For_Reddit/comments/147bhsg/the_future_of_infinity"));
+ /*SpannableString message = new SpannableString(getString(R.string.reddit_api_info, "https://www.reddit.com/r/reddit/comments/145bram/addressing_the_community_about_changes_to_our_api", "https://www.reddit.com/r/Infinity_For_Reddit/comments/147bhsg/the_future_of_infinity"));
Linkify.addLinks(message, Linkify.WEB_URLS);
binding.messageTextViewRedditApiInfoBottomSheetFragment.setText(message);
binding.messageTextViewRedditApiInfoBottomSheetFragment.setMovementMethod(BetterLinkMovementMethod.newInstance().setOnLinkClickListener((textView, url) -> {
@@ -48,7 +42,7 @@ public class RedditAPIInfoBottomSheetFragment extends LandscapeExpandedRoundedBo
intent.setData(Uri.parse(url));
startActivity(intent);
return true;
- }));
+ }));*/
binding.messageTextViewRedditApiInfoBottomSheetFragment.setLinkTextColor(getResources().getColor(R.color.colorAccent));
binding.doNotShowThisAgainTextView.setOnClickListener(view -> {
diff --git a/app/src/main/res/layout/fragment_reddit_api_info_bottom_sheet.xml b/app/src/main/res/layout/fragment_reddit_api_info_bottom_sheet.xml
index d5f9f28b..8fc71245 100644
--- a/app/src/main/res/layout/fragment_reddit_api_info_bottom_sheet.xml
+++ b/app/src/main/res/layout/fragment_reddit_api_info_bottom_sheet.xml
@@ -16,7 +16,6 @@
android:paddingTop="16dp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
- android:text="@string/reddit_api_info_title"
android:fontFamily="?attr/font_family"
android:textSize="?attr/font_20"
android:textColor="?attr/primaryTextColor"
@@ -27,7 +26,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"
- android:text="@string/reddit_api_info"
android:fontFamily="?attr/font_family"
android:textSize="?attr/font_16"
android:textColor="?attr/primaryTextColor" />
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 939b75c1..1aaeb2ec 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,4 +1,4 @@
-<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+<resources>
<string name="application_name" translatable="false">Infinity</string>
<string name="login_activity_label">Login</string>
<string name="search_activity_label" translatable="false"> </string>
@@ -45,6 +45,7 @@
<string name="edit_profile_activity_label">Edit Profile</string>
<string name="post_poll_activity_label">Poll Post</string>
<string name="history_activity_label">History</string>
+ <string name="subscription_activity_label">Subscription</string>
<string name="navigation_drawer_open">Open navigation drawer</string>
<string name="navigation_drawer_close">Close navigation drawer</string>
@@ -1166,7 +1167,7 @@
<string name="anonymous_front_page_no_subscriptions">Start by joining a subreddit!</string>
<string name="anonymous_multireddit_no_subreddit">This multireddit does not have a subreddit!</string>
- <string name="backup_settings_success">Successfully exported settings to the destination directory. The password of the generated zip file is 123321. Please don\'t modify the zip file.</string>
+ <string name="backup_settings_success">Successfully exported settings to the destination directory.</string>
<string name="create_zip_in_destination_directory_failed">Could not create backup zip in the destination directory</string>
<string name="backup_some_settings_failed">Could not backup some settings but others were successfully exported to the destination directory</string>
<string name="restore_settings_success">Successfully restored settings. Restart the app to see the changes.</string>
@@ -1307,12 +1308,8 @@
<string name="handle_link">Handle Link</string>
<string name="invalid_link">Invalid link</string>
- <string name="unexpected_intent_action">Unexpected intent action: <xliff:g id="action">%1$s</xliff:g></string>
- <string name="enable_random_adaptation">Enable random adaptation</string>
<string name="error_unsupported_video">Media includes video tracks, but none are playable by this device</string>
<string name="error_unsupported_audio">Media includes audio tracks, but none are playable by this device</string>
- <string name="storage_permission_denied">Permission to access storage was denied</string>
- <string name="sample_list_load_error">One or more sample lists failed to load</string>
<string name="exo_controls_volume_up_description">Volume Up</string>
<string name="exo_controls_volume_off_description">Volume Off</string>
@@ -1327,8 +1324,48 @@
<string name="denied_notification_permission">Notification permission is not granted</string>
<string name="go_to_settings">Settings</string>
- <string name="reddit_api_info_title">Please update Infinity after August 30th</string>
- <string name="reddit_api_info">Starting from August 31st, 2023, Infinity will be a subscription-only app due to Reddit API changes enforced since July 1st. The announcement from Reddit can be found here: %1$s\n\nYou can learn more about the changes in this post: %2$s\n\nIt\'s required for you to update Infinity after August 30th so that you will get the new version with subscription options. None of the previous versions (including this one) will work after August 31st. Thank you for your understanding!</string>
+ <string name="welcome_to_infinity">Welcome to Infinity for Reddit, your gateway to a whole new dimension of Reddit browsing!</string>
+ <string name="subscription_prompt">Before you dive into the countless possibilities this app offers,
+ I want to be upfront and transparent about a significant change I\'ve implemented to ensure the best possible service for you.
+ \n\nFrom now on, you will need a monthly subscription to access the Reddit API within Infinity for Reddit and
+ this is because Reddit has started charging for API access since July 1st, 2023.
+ \n\nAll the tiers work the same. If you want to support Infinity, you can subscribe to a higher tier.
+ Most of the money from the lowest tier goes to Reddit.
+ </string>
+ <string name="monthly">Monthly</string>
+ <string name="yearly">Yearly</string>
+ <string name="weekly">Weekly</string>
+ <string name="billing_error_billing_unavailable">Billing service unavailable on device.</string>
+ <string name="billing_error_developer_error">The developer made some errors. Not your fault.</string>
+ <string name="billing_error_error">Fatal error during the API action.</string>
+ <string name="billing_error_feature_not_supported">The requested feature is not supported by the Play Store on the current device.</string>
+ <string name="billing_error_item_already_owned">The purchase failed because the item is already owned.</string>
+ <string name="billing_error_item_unavailable">The requested product is not available for purchase.</string>
+ <string name="billing_error_network_error">A network error occurred during the operation.</string>
+ <string name="billing_error_service_disconnected">The app is not connected to the Play Store service via the Google Play Billing Library.</string>
+ <string name="billing_error_service_unavailable">The service is currently unavailable.</string>
+ <string name="billing_error_user_canceled">Transaction was canceled by the user.</string>
+ <string name="subscription_plan_description_monthly">Bronze</string>
+ <string name="subscription_plan_description_monthly_399">Silver</string>
+ <string name="subscription_plan_description_monthly_499">Gold - Perfect Choice!</string>
+ <string name="subscription_plan_description_monthly_699">Platinum</string>
+ <string name="subscription_plan_description_monthly_899">Diamond</string>
+ <string name="subscription_plan_description_monthly_999">Infinity</string>
+ <string name="acknowledge_purchase_failed">Cannot acknowledge purchase</string>
+ <string name="connect_to_billing_system_failed">Failed to connect to the billing system</string>
+ <string name="connecting_to_billing_system">Connecting to the billing system. Please wait.</string>
+ <string name="thank_you_for_subscription">Thank you for your subscription</string>
+ <string name="load_subscription_options">Load subscription options</string>
+ <string name="acknowledging_subscription">Acknowledging your subscription. Please wait.</string>
+ <string name="acknowledgement_purchase_failed_description">Oops, there was an error when acknowledging your purchase. If this problem persists for three days, you will automatically get a refund.\nDon\'t worry, you can still enjoy Infinity for Reddit.</string>
+ <string name="continue_to_app">Continue to app</string>
+ <string name="restore_subscription_purchase_details">Already paid for the subscription?</string>
+ <string name="restore_subscription_purchase">Restore subscription purchase</string>
+
+ <string name="important_info_title">Please re-login your account</string>
+ <string name="important_info">Infinity for Reddit with subscription uses a new API key from Reddit and you have to re-login to continue using the app.\n\nJust
+ open the navigation drawer and click your account header and select \"Add an account\" to login to Reddit using the same account again.
+ Otherwise, Infinity may not load posts at all. Sorry for the inconvenience.</string>
<string name="i_understand">I understand</string>
</resources>