woocommerce / woocommerce-android

WooCommerce Android app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
277 stars 135 forks source link

[Bug] Remove new lines from subtitle strings in "Collect Payment has moved" bottom sheet #12815

Closed samiuelson closed 3 weeks ago

samiuelson commented 4 weeks ago

Closes: #12666

Description

This PR attempts to fix issue with odd text formatting in some locales in the "Collect Payment has moved" bottom sheet rationale.

Steps to reproduce

🧭 Path: More menu > Payments > Collect Payment > Bottom sheet

Certain translations of the following english/default strings contain \n in wrong places:

e.g.: <string name="order_creation_simple_payment_migration_message_one">Hemos combinado el cobro de pagos con\nla creación de pedidos, de manera que sea una función más accesible\ny potente.</string>

Testing information

The problem is due to a bug in translation – the \ns were put in weird places by translators, resulting in text formatting glitches:

Screenshot 2024-10-23 at 18 29 26

As per my observation of different screen sizes, it's sufficient to remove the \n from these texts completely, because texts are quite well-formatted by default.

Modifying the original strings, by removing \ns from them will trigger update of their translations during release which should resolve the issue.

The tests that have been performed

I tested the text formatting on various screen sizes and orientations. Devices: Pixel 7 pro, Samsung S9 Tab FE; Android 14

Images/gif

After the change:

Screenshot 2024-10-24 at 16 45 30

Reviewer (or Author, in the case of optional code reviews):

Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement:

dangermattic commented 4 weeks ago
1 Warning
:warning: This PR is assigned to the milestone 21.0. The due date for this milestone has already passed.
Please assign it to a milestone with a later deadline or check whether the release for this milestone has already been finished.

Generated by :no_entry_sign: Danger

wpmobilebot commented 4 weeks ago
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
App Name WooCommerce-Wear Android
Platform⌚️ Wear OS
FlavorJalapeno
Build TypeDebug
Commit075f26bfc607fe7acedbbca1608220afb7c8d904
Direct Downloadwoocommerce-wear-prototype-build-pr12815-075f26b.apk
wpmobilebot commented 4 weeks ago

📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.

App Name WooCommerce Android
Platform📱 Mobile
FlavorJalapeno
Build TypeDebug
Commit075f26bfc607fe7acedbbca1608220afb7c8d904
Direct Downloadwoocommerce-prototype-build-pr12815-075f26b.apk