Skip to content
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

Delete bunch of unused strings - WIP #5352

Merged
merged 5 commits into from Feb 25, 2022
Merged

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Feb 24, 2022

Remove all unused strings (about 700 strings removed). See the last file on this diff (value/strings.xml). Lots of strings were coming from Riot or has been replaced by other strings. I prefer to remove them all and add again later if necessary. The goal is to avoid translators (= real human!) to translate unused strings.

  • 2 layouts were unused too, so deleted.
  • some string resource from build.gradle has been deleted too, they were not used and can be replaced by BuildConfig field.
  • lint.xml file has been updated to ignore other sources of unused resources. Weblate is locked, so I want to focus on String here. Other unused resources can be handled later in a separate PR.

Now unused strings will be considered as lint error, we may change this later, since PR cannot delete unused string, but mark them as to be deleted. We may just ignore those errors until the next Weblate sync, but this is not ideal.

WIP

All translations has been temporarily removed to work only on the original strings.

If the CI is happy, next step is to restore all the translations (revert first commit) and delete all the translations of deleted strings.

Once PR is merge, a sync with Weblate will be done and Weblate will be unlocked.

@bmarty bmarty marked this pull request as draft February 24, 2022 21:54
@github-actions
Copy link

github-actions bot commented Feb 24, 2022

Unit Test Results

  84 files  ±0    84 suites  ±0   59s ⏱️ -2s
157 tests ±0  157 ✔️ ±0  0 💤 ±0  0 ±0 
504 runs  ±0  504 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 561dcbc. ± Comparison against base commit 35204d2.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Feb 25, 2022

Matrix SDK

Integration Tests Results:

  • [org.matrix.android.sdk.session]
    =passed=0 failures=4 errors=0 skipped=0
  • [org.matrix.android.sdk.account]
    =passed=3 failures=0 errors=0 skipped=2
  • [org.matrix.android.sdk.internal]
    =passed=19 failures=1 errors=0 skipped=3
  • [org.matrix.android.sdk.ordering]
    =passed=0 failures=1 errors=0 skipped=0
  • [org.matrix.android.sdk.PermalinkParserTest]
    =passed=2 failures=0 errors=0 skipped=0

@bmarty bmarty force-pushed the feature/bma/delete_unused_strings branch from dfc0182 to 561dcbc Compare February 25, 2022 16:26
@bmarty
Copy link
Member Author

bmarty commented Feb 25, 2022

Force pushed and git history rewritten.

If CI is happy, this could be merged and Weblate synced and unlocked.

@bmarty bmarty marked this pull request as ready for review February 25, 2022 16:27
@bmarty bmarty merged commit 0855a9a into develop Feb 25, 2022
@bmarty bmarty deleted the feature/bma/delete_unused_strings branch February 25, 2022 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants