Xcode plugin for quickly creating localized strings

Last update: Jun 19, 2022

Extractor Localizable Strings

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.

How to use

Click to view in full screen.

01.gif

Menu shortcut.

02.png

Installation

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.

Changelog

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

License

(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.

GitHub

https://github.com/viniciusmo/extract-localizable-string-plugin-xcode
Comments
  • 1. Default Localizable.strings file not found.

    I kept getting error message saying "The default localizable file not found.Please create your default localizable file."

    I have set up the project have different targets and each has its own plist.so i don't have the default info.plist. is that an issue?

    Reviewed by kiddomk at 2014-07-29 16:32
  • 2. The default localizable file not found.Please create your default localizable file.

    xcode 6.1

    rename info.plist as Filo-Info.plist, added Localizable.strings file but i get that error.

    please add the possibility to select manually the file... so you have nobody with this error

    Reviewed by croccio at 2015-03-01 23:12
  • 3. Default Localizable.strings file not found Xcode 5.1.1

    First let me thank you for this cool plugin. I'm followed all the instructions you included but I can't figure out why the plugin won't recognize Localizable.strings as the default Localizable strings file for Xcode 5.1.1/iOS 7.1. I do have 2 other Pods that utilize a strings file and am wondering if that could be the cause. The demo app works fine. I would appreciate any help so I can use this potentially useful plug in.

    localizable strings file in project manager default strings file not found

    Reviewed by DoctorG at 2014-09-03 02:40
  • 4. Not working with Swift on Xcode 6.3.2

    Hey,

    I am really keen to use this but can't seem to get it to work on xcode 6.3.2 working with swift.

    The menu item isn't showing on the menu bar.

    screen shot 2015-05-29 at 9 49 01 am

    And when I type the keyboard shortcut nothing happens either.

    Please let me know if you would like some more information.

    Thanks for what looks like a great tool.

    Villy

    Reviewed by va3093 at 2015-05-29 08:51
  • 5. Just work once (installe using Alcatraz)

    Hi there, I gave a shot to your plugin, installing it with Alcatraz, and it worked in the first place. But after restarting XCode, the shorcut doesn't appear in the refactor menu. I tried reinstalling it using Alcatraz (Remove then Install), and the shortcut appear but doesn't do anything. I don't face any other problems with other plugins installed using Alcatraz.

    Reviewed by nartex at 2015-04-16 15:55
  • 6. New features into Plugin

    Hi @viniciusmo , https://github.com/chintan1891/extract-localizable-string-plugin-xcode I have forked source code of this plugin and tried to enhance its features to make it more usable. My forked source code contains below features:

    • Removed "Choose Localizable File" menu. Plugin will now find all Localizable.strings files and add key-value pair into it.
    • Plugin will validate if user is not adding a duplicate key.
    • Plugin will alert user if he/she tries to add any value which is already exists.
    • Plugin now provides option to add comment for any Localizable string.
    • Current plugin stores Localizable file path into NSUserDefaults, due to which if i switch my project, this plugin will add key value pair to Localizable.strings file of old project. Fixed this bug.
    • Added Cancel button in "Extract Lcoalizable String" popup.

    Please look into my forked source code, and provide your suggestion. I can create a pull request if you want to add these features.

    Reviewed by chintan1891 at 2015-07-10 05:24
  • 7. Fixed Swift comments, Improved comment formatting, changed shortcut, Improved duplicate key handling

    • Fixed comments in Swift code (previously created comments like ““my comment““)
    • Improved comment formatting in Localizable.strings file
    • Changed shortcut from ⌥⇧E to ⌥⇧L

    If the key already exists, the user can now choose whether he wants to use the same key again or cancel. Using the same key again results in skipping the existing-value-check.

    Reviewed by floschliep at 2015-08-01 15:28
  • 8. NSLocalizedString(key, nil)

    I want to change comment from nil. But when I click to option + shift + d , comment just be nil. Is there an other shortcut for making comment different string.

    Reviewed by alikemalteke at 2015-04-01 17:01
  • 9. Feature enhancements

    Removed "Choose Localizable File" menu. Plugin will now find all Localizable.strings files and add key-value pair into it. Plugin will validate if user is not adding a duplicate key. Plugin will alert user if he/she tries to add any value which is already exists. Plugin now provides option to add comment for any Localizable string. Current plugin stores Localizable file path into NSUserDefaults, due to which if i switch my project, this plugin will add key value pair to Localizable.strings file of old project. Fixed this bug. Added Cancel button in "Extract Lcoalizable String" popup.

    Reviewed by chintan1891 at 2015-07-11 19:23
  • 10. Does not work on XCode 7.3 (7D175)

    Hi Vinícius:

    Thanks for share this wonderful plugin, it has been saved tons of development hours!

    Unfortunately, the plugin does not work at all in latest XCode version: XCode 7.3 (7D175), fix it please!

    The command "Extract Localization String" is not displayed in the Edit -> Refactor menu, and the shortcut is not working either...

    I tried reinstalling the plugin, using two ways: Alcatraz and Building the source project, neither of them made the plugin to work as always...

    Thanks again for this Must-Have plugin! I hope it gets fixed soon...

    Rigoberto Saenz Imbacuan https://www.linkedin.com/in/rsaenzi

    Reviewed by rsaenzi at 2016-03-29 20:06
  • 11. @ symbol is not exported properly when extracting strings that contain a "%@" format specifier.

    When extracting a strings that contains a %@ format specifier, the @ symbol is not extracted properly

    @"Hello %@, thanks for looking at this"

    is extracted into the localized strings file as

    "Hello %, thanks for looking at this"

    The "@" symbol is stripped out

    Reviewed by SamClewlow at 2015-11-10 07:47
Setting up application specific localized string within xib file.
Setting up application specific localized string within xib file.

LocalizedView ##What is this? LocalizedView is a helper class for setting up application specific localized string within Xib file. Here is a video de

Oct 2, 2017
Localizations is an OS X app that manages your Xcode project localization files (.strings)
Localizations is an OS X app that manages your Xcode project localization files (.strings)

Localizations 0.2 Localizations is an OS X app that manages your Xcode project localization files (.strings). It focuses on keeping .strings files in

Feb 25, 2022
Localization/I18n: Incrementally update/translate your Strings files from .swift, .h, .m(m), .storyboard or .xib files.
Localization/I18n: Incrementally update/translate your Strings files from .swift, .h, .m(m), .storyboard or .xib files.

Installation • Configuration • Usage • Build Script • Donation • Migration Guides • Issues • Contributing • License BartyCrouch BartyCrouch incrementa

Jun 15, 2022
Localize is a framework writed in swift to localize your projects easier improves i18n, including storyboards and strings.
Localize is a framework writed in swift to localize your projects easier improves i18n, including storyboards and strings.

Localize Localize is a framework written in swift to help you localize and pluralize your projects. It supports both storyboards and strings. Features

May 25, 2022
Super lightweight library that helps you to localize strings, even directly in storyboards!
Super lightweight library that helps you to localize strings, even directly in storyboards!

Translatio Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements iOS 9 or higher. Swi

Jan 29, 2022
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

SwiftGen SwiftGen is a tool to automatically generate Swift code for resources of your projects (like images, localised strings, etc), to make them ty

Jun 23, 2022
Localizable.strings files generator
 Localizable.strings files generator

Localizable.strings files generator When we want to internationalize our project always is a headache to maintain the Localizable.strings files. This

Dec 29, 2021
Check Localizable.strings files of iOS Apps
Check Localizable.strings files of iOS Apps

Rubustrings Check the format and consistency of the Localizable.strings files of iOS Apps with multi-language support Rubustrings is also available fo

Feb 2, 2022
An application to convert strings to diffirent formats
An application to convert strings to diffirent formats

Localized An application to convert strings to diffirent formats This app will help developers to convert strings from application in one platform to

Feb 12, 2021
A CLI tool for localization resource management on Xcode. Built with Google Translator.
A CLI tool for localization resource management on Xcode. Built with Google Translator.

Supported by Jetbrains Open Source License Program Automatically translate and synchronize '.strings' files from the defined base language The basic c

May 4, 2022
Minification of localized strings

SmallStrings Reducing localized .strings file sizes by 80% How it works The library consists of two main components: A tool that converts the .strings

May 13, 2022
Xcode-streamdeck-plugin - A Stream Deck plugin for Xcode
Xcode-streamdeck-plugin - A Stream Deck plugin for Xcode

Stream Deck Xcode Plugin This repository contains a Stream Deck plugin to add so

Jun 21, 2022
JSONHelper - ✌ Convert anything into anything in one operation; JSON data into class instances, hex strings into UIColor/NSColor, y/n strings to booleans, arrays and dictionaries of these; anything you can make sense of!

JSONHelper Convert anything into anything in one operation; hex strings into UIColor/NSColor, JSON strings into class instances, y/n strings to boolea

May 30, 2022
Validate iOS, Android, and Mac localizations. Find errors in .strings, .stringsdict, and strings.xml files.

Locheck An Xcode and Android localization file validator. Make sure your .strings, .stringsdict, and strings.xml files do not have any errors! What do

Jun 1, 2022
The Big List of Naughty Strings is a list of strings which have a high probability of causing issues when used as user-input data.
The Big List of Naughty Strings is a list of strings which have a high probability of causing issues when used as user-input data.

The Big List of Naughty Strings is a list of strings which have a high probability of causing issues when used as user-input data. I have put together

Apr 25, 2022
Template repository for quickly creating boilerplate code for a SwiftUI macOS app.
Template repository for quickly creating boilerplate code for a SwiftUI macOS app.

Sidebar App This is a template repository for quickly creating boilerplate code for a SwiftUI macOS app. License This app is released into the public

Jun 17, 2022
LinkedLog is a Xcode plugin that includes a Xcode PCH header file template that adds the macros `LLog` and `LLogF` and parses their output to link from the console to the corresponding file and line.
LinkedLog is a Xcode plugin that includes a Xcode PCH header file template that adds the macros `LLog` and `LLogF` and parses their output to link from the console to the corresponding file and line.

LinkedLog Xcode Plugin LinkedLog is a Xcode plugin that includes a Xcode PCH file template that adds the macros LLog and LLogF. The LLog macro will wo

Feb 23, 2021
Xcode plugin that brings ⇧⌘T from AppCode over to Xcode

Aviator An Xcode Plugin that brings ⇧⌘T over to Xcode This minimal plugin allows you to use the key combo ⇧⌘T to toggle between source and test files.

Aug 18, 2018
This Xcode plugin shows Xcode app version in the Dock and App Switcher icon
This Xcode plugin shows Xcode app version in the Dock and App Switcher icon

Xcode Icon Version Tired of this Xcode icon always showing multiple times in your App Switch with no help watshoever as to which version you are curre

Aug 20, 2021
Setting up application specific localized string within xib file.
Setting up application specific localized string within xib file.

LocalizedView ##What is this? LocalizedView is a helper class for setting up application specific localized string within Xib file. Here is a video de

Oct 2, 2017