Android: is there an easy way to find all the Strings in my project?

前端 未结 6 1909
既然无缘
既然无缘 2021-02-19 15:49

I want to scan my Android project for all hardcoded Strings so I can localize the project, putting the Strings in strings.xml. I see an option in Eclipse to \'Externalize String

6条回答
  •  無奈伤痛
    2021-02-19 16:04

    I was searching for this myself. There is a nice way of doing this:

    Right click on "src" directory -> Source -> Externalize Strings

    This will find all Non-Externalize Strings and let you Externalize them.

    Hope this will help :)

    Edit:
    This is not same as the Android -> Extract Android String. But it can help you find all the Non-Externalize strings. Then, on each string you will have to perform:
    Ctrl + 1 -> Android -> Extract Android String.

提交回复
热议问题