Remove a string in all the languages Android
default strings.xml file and automatically propagate the deletion to the other strings.xml file of other translations
ADT does not support this operation. You need to get rid of the text from all your XML files yourself, which should not be hard task anyway, as it would be sufficient to do project global search (in Eclipse CTRL-H), set file mask to *.xml
and search for your string key. Then just remove this file from each file found.
You can remove all translations by "Translations Editor" in Android Studio.
- Select string's key
- Click on "Remove key" button
- Uncheck all checkboxes in "Delete" dialog
- Click "OK" button in "Delete" dialog
- CTRL-H
- select tab
File Search
- check regular expression
- input
\R\s*<string name="string_name">(.|\R)*?</string>
and don't forget replacestring_name
to actual string name. - file name patterns set
*.xml
- Press
Replace...
- Leave replace field empty.
- Press
Preview >
- Check all replacement.
- Apply changes by press `Ok'