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

Refactor/Convert string resources #250

Closed
wants to merge 16 commits into from
Closed

Conversation

SaturneV
Copy link
Contributor

@SaturneV SaturneV commented Dec 19, 2024

Summary

The aim of this pull request is to refactor the hard coded strings of the application's UI into resource strings and import them from the application's resources in the UI code. This ensures that the app can easily support multiple languages and makes it easier to manage text updates.

Changes

  • Convert hardcoded strings to string ressource.

Tests

Please test this refactor by using the app as a user and ensure that the different texts appear as expected.

@SaturneV SaturneV added the Refactor 🛠️ Code improvements without changing behavior label Dec 19, 2024
@SaturneV SaturneV added this to the Milestone M3 milestone Dec 19, 2024
@SaturneV SaturneV self-assigned this Dec 19, 2024
@SaturneV SaturneV linked an issue Dec 19, 2024 that may be closed by this pull request
# Conflicts:
#	app/src/main/java/com/android/streetworkapp/ui/train/TrainCoachScreen.kt
#	app/src/main/res/values/strings.xml
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
69.28% Line Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@SaturneV
Copy link
Contributor Author

Because of some issue due to the overall line coverage of the project and the Milstone 3 deadline, the team decided not to merge this Pull Request. I'm closing it.

@SaturneV SaturneV closed this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor 🛠️ Code improvements without changing behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert hardcoded strings to string resources
1 participant