Extractor Localizable Strings is a open source plug-in for Xcode.
It lets you extract localizable strings without opening the .strings file.
When you select a string you can easily extract to all Localizable.strings file without opening it.
This plugin will also notify if you try to add same key again.
If you try to add a same string again, this plugin will ask you to create a new key for that string or use existing one.
Click to view in full screen.
Menu shortcut.
Download the project and build it, then relaunch Xcode.
ExtractorLocalizableStrings will be installed in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
automatically.
If you want to uninstall plugin, remove ExtractorLocalizableStrings.xcplugin in Plug-ins
directory.
##Xcode version?
From Xcode 5, Apple added a UUID-verification to all plugins to ensure the stability when Xcode gets updated. The value of DVTPlugInCompatibilityUUIDs in project plist should contains current UUID of Xcode version, or the plugin does not work. And from Xcode 6.3, you will be prompt to "Load third party bundle" if you are using a plugin. You should always select "Load bundles" to enable this plugin. If you happened to skip the bundle loading, you can use this to reset the prompt:
defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-{your_xcode_version}
To get the UUID, execute in console:
defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID
Pull request with the new DVTPlugInCompatibilityUUIDs is welcome
1.0.0
- Extract string selected to default localizable file
1.0.1
- Fix bugs
2.0.0
- Fix bugs
- Support to Swift and Xcode 6
2.0.1
- Adding support to choose file
2.0.2
- Fix bugs
(The MIT License)
Copyright (c) 2013 Vinicius Oliveira
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.