Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5959cb2e authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Update voicemail donations strings"

parents d42fb78b c4aea8f6
Loading
Loading
Loading
Loading
+3 −5
Original line number Original line Diff line number Diff line
@@ -329,10 +329,8 @@ public class PhoneCallDetailsHelper


    // Use a custom title to prevent truncation, sigh
    // Use a custom title to prevent truncation, sigh
    TextView title = new TextView(context);
    TextView title = new TextView(context);
    title.setText(
    title.setText(R.string.voicemail_donation_promo_title);
        ratingValue == TranscriptionRatingValue.GOOD_TRANSCRIPTION

            ? R.string.voicemail_donation_promo_good_title
            : R.string.voicemail_donation_promo_bad_title);
    title.setTypeface(Typeface.create("sans-serif-medium", Typeface.NORMAL));
    title.setTypeface(Typeface.create("sans-serif-medium", Typeface.NORMAL));
    title.setTextSize(TypedValue.COMPLEX_UNIT_SP, 20);
    title.setTextSize(TypedValue.COMPLEX_UNIT_SP, 20);
    title.setTextColor(ContextCompat.getColor(context, R.color.dialer_primary_text_color));
    title.setTextColor(ContextCompat.getColor(context, R.color.dialer_primary_text_color));
@@ -383,7 +381,7 @@ public class PhoneCallDetailsHelper
    CharSequence content = context.getString(R.string.voicemail_donation_promo_content);
    CharSequence content = context.getString(R.string.voicemail_donation_promo_content);
    CharSequence learnMore = context.getString(R.string.voicemail_donation_promo_learn_more);
    CharSequence learnMore = context.getString(R.string.voicemail_donation_promo_learn_more);
    String learnMoreUrl = context.getString(R.string.voicemail_donation_promo_learn_more_url);
    String learnMoreUrl = context.getString(R.string.voicemail_donation_promo_learn_more_url);
    SpannableString span = new SpannableString(content + "\n" + learnMore);
    SpannableString span = new SpannableString(content + " " + learnMore);
    int end = span.length();
    int end = span.length();
    int start = end - learnMore.length();
    int start = end - learnMore.length();
    span.setSpan(new URLSpan(learnMoreUrl), start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
    span.setSpan(new URLSpan(learnMoreUrl), start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
+5 −9
Original line number Original line Diff line number Diff line
@@ -675,19 +675,15 @@
       [CHAR LIMIT=64] -->
       [CHAR LIMIT=64] -->
  <string name="voicemail_transcription_failed_no_speech">Transcript not available. No speech detected.</string>
  <string name="voicemail_transcription_failed_no_speech">Transcript not available. No speech detected.</string>


  <!-- Title of voicemail donation promo dialog, show after clicking a 'thumbs up' rating icon
  <!-- Title of voicemail donation promo dialog
      [CHAR LIMIT=64] -->
      [CHAR LIMIT=64] -->
  <string name="voicemail_donation_promo_good_title">Thanks! Would you like to help us improve transcriptions?</string>
  <string name="voicemail_donation_promo_title">Help improve transcription accuracy?</string>

  <!-- Title of voicemail donation promo dialog, show after clicking a 'thumbs up' rating icon
       [CHAR LIMIT=64] -->
  <string name="voicemail_donation_promo_bad_title">Sorry. Would you like to help us improve transcriptions?</string>


  <!-- Content of voicemail donation promo dialog
  <!-- Content of voicemail donation promo dialog
       [CHAR LIMIT=NONE] -->
       [CHAR LIMIT=NONE] -->
  <string name="voicemail_donation_promo_content">
  <string name="voicemail_donation_promo_content">
    Let Google review your voicemail messages to improve transcription quality.
    Let Google review this and future voicemail messages with transcripts.
    For voicemail transcription analysis, your voicemail messages are stored anonymously.
    They\'ll be stored anonymously. Change Settings any time.
  </string>
  </string>


  <!-- Text for a 'learn more' link at the end of the voicemail donation promo dialog content -->
  <!-- Text for a 'learn more' link at the end of the voicemail donation promo dialog content -->
+1 −1
Original line number Original line Diff line number Diff line
@@ -116,7 +116,7 @@
       [CHAR LIMIT=NONE] -->
       [CHAR LIMIT=NONE] -->
  <string name="voicemail_donate_preference_summary_not_activated">Visual voicemail is not activated yet, please try again later</string>
  <string name="voicemail_donate_preference_summary_not_activated">Visual voicemail is not activated yet, please try again later</string>
  <!-- Summary information for visual voicemail donation setting [CHAR LIMIT=NONE] -->
  <!-- Summary information for visual voicemail donation setting [CHAR LIMIT=NONE] -->
  <string name="voicemail_donate_preference_summary_info">Let Google review your voicemail messages to improve transcription quality</string>
  <string name="voicemail_donate_preference_summary_info">Let Google review your voicemail messages to improve transcription accuracy</string>


  <!-- Title for disable visual voicemail confirmation dialog [CHAR LIMIT=40] -->
  <!-- Title for disable visual voicemail confirmation dialog [CHAR LIMIT=40] -->
  <string name="confirm_disable_voicemail_dialog_title">Turn off visual voicemail</string>
  <string name="confirm_disable_voicemail_dialog_title">Turn off visual voicemail</string>