Giter Club home page Giter Club logo

extract-localizable-string-plugin-xcode's Introduction

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.

extract-localizable-string-plugin-xcode's People

Contributors

andr3a88 avatar andygeers avatar chintan1891 avatar chintanprajapati avatar floschliep avatar otaran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

extract-localizable-string-plugin-xcode's Issues

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?

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.

Does not work

After select and choose "Extract Localization String", nothing appears.

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.

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

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

Xcode 7.2 (7C68)

Does not work (or install). Tried to Install within Alcatraz too. Option in the Xcode menu does not appear.

xCode 6.4 support

Does not work for me at the moment in xCode 6.4, no menu entry is visible

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.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.