Skip to content

[Bug]: Change all the hardcoded strings to translatable strings #6458

@amire80

Description

@amire80

Summary

I recently reported #6442 and #6439 and fixed them myself. I then realized that Android Studio can automatically find all the issues of this kind using the "Inspect Code" tool. It found 33 instances.

I'd like to fix them all, but since fixing every string takes a few minutes, and they are in many files, it's probably better to do it in a series of patches and not in one huge patch.

Steps to reproduce

Run Code -> Inspect Code... in Android Studio.

Expected behaviour

Check the results and find "Android Lint: Internationalization". There should be no warnings of the type "Hardcoded text".

Actual behaviour

Check the results and find "Android Lint: Internationalization". There is a non-zero number of warnings of the type "Hardcoded text" (33 at the time of filing this bug).

Device name

all

Android version

all

Commons app version

current main branch

Device logs

No response

Screen-shots

No response

Would you like to work on the issue?

Yes

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions