Xcode plugin for quickly creating localized strings

Overview

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.

Comments
  • Default Localizable.strings file not found.

    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?

    opened by kiddomk 15
  • The default localizable file not found.Please create your default localizable file.

    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

    opened by croccio 9
  • Default Localizable.strings file not found Xcode 5.1.1

    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

    opened by DoctorG 6
  • Not working with Swift on Xcode 6.3.2

    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

    opened by va3093 4
  • Just work once (installe using Alcatraz)

    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.

    opened by nartex 4
  • New features into Plugin

    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.

    opened by chintan1891 3
  • Fixed Swift comments, Improved comment formatting, changed shortcut, Improved duplicate key handling

    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.

    opened by floschliep 1
  • NSLocalizedString(key, nil)

    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.

    opened by alikemalteke 1
  • Feature enhancements

    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.

    opened by chintan1891 0
  • Does not work on XCode 7.3 (7D175)

    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

    opened by rsaenzi 3
  • @ symbol is not exported properly when extracting strings that contain a

    @ 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

    opened by SamClewlow 0
Owner
Vinícius Oliveira
Vinícius Oliveira
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

darkcl 8 Oct 2, 2017
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

Arnaud Thiercelin 129 Jul 19, 2022
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

Flinesoft 1.3k Jan 1, 2023
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

Andres Silva 279 Dec 24, 2022
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

Andrea Mario Lufino 19 Jan 29, 2022
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

null 8.3k Jan 3, 2023
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

humdrum 30 Dec 18, 2022
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

David Cordero 110 Nov 12, 2022
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

null 16 Feb 12, 2021
Lists missing keys from .strings files.

strings-check A simple command line utility to check if translation strings are missing, or if extra translations are present in a set of .strings fil

Dave Clayton-Wagner 3 Nov 22, 2022
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

gitmerge 164 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

Emerge Tools 48 Jan 8, 2023
Generate Swift and SwiftUI symbols for localized strings files.

localized-strings-symbols An SPM and Xcode build plugin for creating Swift symbols for localized string keys. What It Does This is a very simple build

Daniel Kennett 12 Oct 18, 2022
🌊 A clean wave - report unused localized strings

Ripple ?? Ripple - a command line tool that reports unused localization strings in your Xcode project. Install Clone from repo git clone cd Ripple sw

Edoardo Benissimo 3 Sep 16, 2022
Xcode-streamdeck-plugin - A Stream Deck plugin for Xcode

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

Daniel Kennett 77 Dec 27, 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

Baris Sencan 788 Jul 19, 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

Asana 73 Dec 13, 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. I have put together

Romain Pouclet 589 Sep 7, 2022
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

apparata 22 Dec 18, 2022
This is a template repository for quickly creating boilerplate code for a SwiftUI macOS menu bar app.

Menu Bar App This is a template repository for quickly creating boilerplate code for a SwiftUI macOS menu bar app. License This app is released into t

apparata 5 Dec 6, 2022