Skip to content

prepare for translation #4467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 20, 2022
Merged

prepare for translation #4467

merged 2 commits into from
Dec 20, 2022

Conversation

kaibolay
Copy link
Contributor

  • removed unused strings
  • extracted hard-coded strings
  • added translation_description

@google-oss-bot
Copy link
Contributor

1 Warning
⚠️ Did you forget to add a changelog entry? (Add the 'no-changelog' label to the PR to silence this warning.)

Generated by 🚫 Danger

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Dec 19, 2022

Coverage Report 1

Affected Products

No changes between base commit (12be9d7) and merge commit (7b81e69).

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/6Wcu83S0jz.html

@github-actions
Copy link
Contributor

github-actions bot commented Dec 19, 2022

Unit Test Results

   389 files  +   310     389 suites  +310   18m 44s ⏱️ + 17m 54s
4 629 tests +3 517  4 606 ✔️ +3 510  22 💤 +6  1 +1 
4 645 runs  +3 533  4 622 ✔️ +3 526  22 💤 +6  1 +1 

For more details on these failures, see this check.

Results for commit ab9de46. ± Comparison against base commit aa923f7.

♻️ This comment has been updated with latest results.

<string name="singin_yes_button">Turn on</string>
<string name="singin_no_button">Not now</string>
<string name="no_update_available">No new release available, try calling checkForUpdate.</string>
<string name="update_dialog_title">New Version Available</string>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lowercase "version available"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

<string name="app_update_notification_channel_description">Shows progress of in-app updates</string>
<string name="feedback_launch_failed">Failed to launch feedback</string>
<string name="feedback_unidentified_release">Release not found. This app may not have been installed by App Distribution, or you may no longer have access.</string>
<string name="feedback_no_release">Would have sent feedback, but did not due to development mode.</string>
Copy link

@VictoriaAuto VictoriaAuto Dec 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this due to the Developer Mode issue? Is there a way to rephrase this such that the user knows what happened and how to resolve the issue? Perhaps "Feedback not sent due to development mode." Will users know what development mode means, and what they need to do to resolve this issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is not about the iOS development mode.

It's about the local development mode for the SDK explained in the EAP feedback guide.

Testers will not encounter this. Only developers who test the SDK will see this.

Since it's a "toast" the message needs to be pretty brief. I think it's probably fine as-is.

<string name="feedback_unidentified_release">Release not found. This app may not have been installed by App Distribution, or you may no longer have access.</string>
<string name="feedback_no_release">Would have sent feedback, but did not due to development mode.</string>
<string name="feedback_notification_channel_name">Feedback</string>
<string name="feedback_notification_channel_description">Tap to leave feedback</string>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend replacing "leave" with "enter"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

<string name="feedback_notification_channel_description">Tap to leave feedback</string>
<string name="feedback_notification_title">We want your feedback!</string>
<string name="feedback_notification_text">Tap to leave feedback for %1$s</string>
<string name="unknown_sources_dialog_title">Enable Unknown Sources</string>
Copy link

@VictoriaAuto VictoriaAuto Dec 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is "Unknown Sources" a field name? If not, use lowercase here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My Android version calls this setting "Install unknown apps". That's actually pretty nonsensical. I think it's a pretty bad change in the Android OS. The apps being installed are not "unknown".

The setting used to be called "Unknown sources" with the subtitle "Allow installation of apps from unknown sources".

I've updated this title and the associated message.

<string name="send_feedback">Send feedback</string>
<string name="send_button_description">Send</string>
<string name="sender">From: %1$s</string>
<string name="feedback_text_hint">Have feedback? Let us know how we can make this app better.</string>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace with "Have feedback? Tell us how we can improve this app."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

<string name="update_yes_button">Update</string>
<string name="update_no_button">Cancel</string>
<string name="downloading_app_update">Downloading in-app update…</string>
<string name="download_completed">Download completed</string>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace "completed" with "complete"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

<string name="feedback_notification_title">We want your feedback!</string>
<string name="feedback_notification_text">Tap to leave feedback for %1$s</string>
<string name="unknown_sources_dialog_title">Enable Unknown Sources</string>
<string name="unknown_sources_dialog_description">To install the update enable unknown sources</string>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comma after "To install the update"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -13,40 +13,37 @@
<!-- limitations under the License. -->

<resources>
<string name="signin_dialog_title">Enable testing features</string>
<string name="singin_dialog_message">Enable testing features like new build alerts and in-app feedback.</string>
<string name="singin_yes_button">Turn on</string>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not "Enable"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

<string name="signin_dialog_title">Enable testing features</string>
<string name="singin_dialog_message">Enable testing features like new build alerts and in-app feedback.</string>
<string name="singin_yes_button">Turn on</string>
<string name="singin_no_button">Not now</string>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would "Cancel" be more appropriate here, if it's canceling an action?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The action (trying to enable the SDK) was likely not taken by the user in this case. It is typically triggered by the developer when the app is first opened.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If left this as-is for now.

Copy link

@VictoriaAuto VictoriaAuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Kai, I reviewed the strings and left some comments. Let me know if you have any questions about my feedback. Thank you! :-)

<string name="signin_dialog_title">Enable testing features</string>
<string name="singin_dialog_message">Enable testing features like new build alerts and in-app feedback.</string>
<string name="singin_yes_button">Turn on</string>
<string name="singin_no_button">Not now</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The action (trying to enable the SDK) was likely not taken by the user in this case. It is typically triggered by the developer when the app is first opened.

<string name="screenshot">Screenshot</string>
<string name="no_screenshot">Screenshot (not available)</string>
<string name="screenshot_image_description">Screenshot image</string>
<string name="signin_dialog_title" translation_description="Title of the dialog encouraging the user to enable Firebase App-Distribution features">Enable testing features</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: don't hyphenate App Distribution :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

<string name="feedback_notification_channel_name" translation_description="Name of the notification channel for in-app feedback">Feedback</string>
<string name="feedback_notification_channel_description" translation_description="Description of the notification channel for in-app feedback">Shows notification to leave feedback about app</string>
<string name="feedback_notification_title" translation_description="Title of notification encouraging testers to leave feedback">We want your feedback!</string>
<string name="feedback_notification_text" translation_description="Text of notification encouraging testers to leave feedback">Tap to leave feedback for %1$s</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: how about "... to leave feedback for the app" just so it's clear what the placeholder represents.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

<string name="back_button_description" translation_description="Description for image button (back) which aborts feedback">Back</string>
<string name="send_feedback" translation_description="Text next to send button which sends feedback">Send feedback</string>
<string name="send_button_description" translation_description="Description of image button (send) which sends feedback">Send</string>
<string name="feexdback_text_hint" translation_description="">Have feedback? Let us know how we can make this app better.</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last 4 need translation_descriptions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, those got lost in a bad merge. Restored.

@kaibolay kaibolay merged commit 776e1d4 into fad/in-app-feedback Dec 20, 2022
@kaibolay kaibolay deleted the kb/i18n branch December 20, 2022 15:09
@google-oss-bot
Copy link
Contributor

Size Report 1

Affected Products

  • base

    TypeBase (12be9d7)Merge (7b81e69)Diff
    apk (aggressive)?8.39 kB? (?)
    apk (release)?8.65 kB? (?)
  • firebase-annotations

    TypeBase (12be9d7)Merge (7b81e69)Diff
    apk (aggressive)?8.39 kB? (?)
    apk (release)?9.46 kB? (?)
  • firebase-appdistribution

    TypeBase (12be9d7)Merge (7b81e69)Diff
    aar?146 kB? (?)
    apk (aggressive)?830 kB? (?)
    apk (release)?2.01 MB? (?)
  • firebase-appdistribution-api

    TypeBase (12be9d7)Merge (7b81e69)Diff
    aar?16.0 kB? (?)
    apk (aggressive)?95.8 kB? (?)
    apk (release)?708 kB? (?)
  • firebase-common

    TypeBase (12be9d7)Merge (7b81e69)Diff
    aar?67.4 kB? (?)
    apk (aggressive)?95.1 kB? (?)
    apk (release)?700 kB? (?)
  • firebase-components

    TypeBase (12be9d7)Merge (7b81e69)Diff
    aar?44.9 kB? (?)
    apk (aggressive)?8.68 kB? (?)
    apk (release)?33.6 kB? (?)
  • firebase-installations

    TypeBase (12be9d7)Merge (7b81e69)Diff
    aar?55.0 kB? (?)
    apk (aggressive)?96.6 kB? (?)
    apk (release)?724 kB? (?)
  • firebase-installations-interop

    TypeBase (12be9d7)Merge (7b81e69)Diff
    aar?8.05 kB? (?)
    apk (aggressive)?65.0 kB? (?)
    apk (release)?651 kB? (?)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/lXmvSRNXpt.html

@google-oss-bot
Copy link
Contributor

Startup Time Report 1

Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS.

Startup time comparison between the CI merge commit (7b81e69) and the base commit (12be9d7) are not available.

No macrobenchmark data found for the base commit (12be9d7). Analysis for the CI merge commit (7b81e69) can be found at:

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/wir0mbxtxF/index.html

lfkellogg pushed a commit that referenced this pull request Dec 20, 2022
- Remove unused strings
- extract hard-coded strings
- add translation_description
lfkellogg pushed a commit that referenced this pull request Jan 5, 2023
- Remove unused strings
- extract hard-coded strings
- add translation_description
@firebase firebase locked and limited conversation to collaborators Jan 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants