Bug 1846515 - Update Print Error Snackbar

Full printing error should be "Unable to print this page".
Added a new string and deprecated the prior string.
fenix/118.0
Olivia Hall 10 months ago committed by mergify[bot]
parent 19b28887d2
commit 4b6add6169

@ -78,7 +78,7 @@ class SaveToPDFMiddleware(
context.components.appStore.dispatch(
AppAction.UpdateStandardSnackbarErrorAction(
StandardSnackbarError(
context.getString(R.string.unable_to_print_error),
context.getString(R.string.unable_to_print_page_error),
),
),
)

@ -27,6 +27,7 @@
android:layout_height="wrap_content"
android:ellipsize="end"
android:letterSpacing="0.05"
android:minHeight="46dp"
android:maxLines="2"
android:paddingTop="8dp"
android:paddingBottom="8dp"

@ -1167,7 +1167,9 @@
<!-- Text for standard error snackbar dismiss button. -->
<string name="standard_snackbar_error_dismiss">Dismiss</string>
<!-- Text for error message when printing a page and it fails. -->
<string name="unable_to_print_error">Unable to print</string>
<string name="unable_to_print_error" moz:removedIn="121" tools:ignore="UnusedResources">Unable to print</string>
<!-- Text for error message when printing a page and it fails. -->
<string name="unable_to_print_page_error">Unable to print this page</string>
<!-- Text for the print feature in the share and browser menu -->
<string name="menu_print">Print</string>
<!-- Sub-header in the dialog to share a link to another sync device -->

@ -311,7 +311,7 @@ class SaveToPDFMiddlewareTest {
appStore.dispatch(
AppAction.UpdateStandardSnackbarErrorAction(
StandardSnackbarError(
testContext.getString(R.string.unable_to_print_error),
testContext.getString(R.string.unable_to_print_page_error),
),
),
)
@ -354,7 +354,7 @@ class SaveToPDFMiddlewareTest {
appStore.dispatch(
AppAction.UpdateStandardSnackbarErrorAction(
StandardSnackbarError(
testContext.getString(R.string.unable_to_print_error),
testContext.getString(R.string.unable_to_print_page_error),
),
),
)

Loading…
Cancel
Save