element-hq / element-x-android

Android Matrix messenger application using the Matrix Rust Sdk and Jetpack Compose
GNU Affero General Public License v3.0
989 stars 134 forks source link

Duplicated strings - BLOCKED UNTIL THE 2 APPS HAVE SAME FLOW #1356

Open bmarty opened 1 year ago

bmarty commented 1 year ago

There is an issue on Strings between iOS and Android application.

On Android, some strings have been added for submit buttons, like for instance:

https://github.com/vector-im/element-x-android/blob/develop/features/login/impl/src/main/res/values/localazy.xml#L40

<string name="screen_account_provider_continue">"Continue"</string>

instead of using the generic string https://github.com/vector-im/element-x-android/blob/develop/libraries/ui-strings/src/main/res/values/localazy.xml#L19

<string name="action_continue">"Continue"</string>

The value is the same in English, but translations can differ (maybe not for this particular example though), which is not what we want.

We should simplify by removing the extra string entries, and use the generic value when it exists. It will reduce the number of strings to translate and will ensure that Android and iOS are synced. The drawback is that it will not be possible to tweak a value for a particular string by just updating Localazy.

We can use the find duplicate facilities on Localazy to detect identical strings, and probably remove all the duplicates.

bmarty commented 12 months ago

String to remove from Localazy when the PR will be merged:

@pixlwave can you double check that this will not impact iOS if I remove the strings above?

pixlwave commented 12 months ago

From the above, we are using the following on iOS:

bmarty commented 12 months ago

Other string to remove:

pixlwave commented 12 months ago

Updating in EXI: https://github.com/vector-im/element-x-ios/pull/1827

common_select_your_serverscreen_change_server_title screen_room_retry_send_menu_remove_actionaction_remove

bmarty commented 12 months ago

Ok, so I will use common_verification_cancelled.

We will be able to remove

pixlwave commented 11 months ago

Updating in EXI: https://github.com/vector-im/element-x-ios/pull/1827

Merged on EXI.

bmarty commented 11 months ago

Actually the following strings are not used anymore on EXA:

@pixlwave OK to remove those ones?

pixlwave commented 11 months ago

No, we're using all of these except for screen_login_title. I'm curious how we've diverged in this way?

bmarty commented 10 months ago

Here is a comparative of the 2 apps, Android and iOS:

image image image image

We do not have the same on boarding flow, that's why the strings are not the same.