tappollo / xcode-quick-localization Goto Github PK
View Code? Open in Web Editor NEWXcode Plugin to Convert @"content" to NSLocalizedString(@"content", @"content")
Xcode Plugin to Convert @"content" to NSLocalizedString(@"content", @"content")
When the shortcut is used Xcode freezes right away.
Does not seem to work with Xcode 6.2. Installed via Alcatraz, but it does not convert strings anymore
Thanks for a fantastic plugin! Seems it crashes with the latest Xcode.
Occurs when using the keyboard shortcut to localise.
Version: 7.1.1 (9081)
Build Version: 5
Trace:
97 start + 1 (libdyld.dylib + 13769) [0x7fff853b75c9]
97 NSApplicationMain + 1832 (AppKit + 12868) [0x7fff855f9244]
97 -[NSApplication run] + 711 (AppKit + 551784) [0x7fff8567cb68]
97 -[IDEApplication sendEvent:] + 688 (IDEKit + 105394) [0x1047d9bb2]
97 -[NSMenu performKeyEquivalent:] + 359 (AppKit + 2439341) [0x7fff858498ad]
97 _os_activity_initiate + 75 (libsystem_trace.dylib + 3287) [0x7fff85254cd7]
97 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114 (AppKit + 2443644) [0x7fff8584a97c]
97 -[NSMenuItem _corePerformAction] + 382 (AppKit + 2444366) [0x7fff8584ac4e]
97 -[DVTApplication sendAction:to:from:] + 335 (DVTKit + 51239) [0x103a36827]
97 DVTInvokeWithFailureHint + 83 (DVTFoundation + 2263468) [0x10358d9ac]
97 __37-[DVTApplication sendAction:to:from:]_block_invoke + 379 (DVTKit + 1290233) [0x103b64ff9]
97 -[NSApplication sendAction:to:from:] + 452 (AppKit + 2444977) [0x7fff8584aeb1]
97 _os_activity_initiate + 75 (libsystem_trace.dylib + 3287) [0x7fff85254cd7]
97 -[QuickLocalization quickLocalization:] + 383 (QuickLocalization.m:96,13 in QuickLocalization + 7918) [0x11199eeee]
97 -[QuickLocalization replaceTextInRange:textView:] + 692 (QuickLocalization.m:123,39 in QuickLocalization + 8653) [0x11199f1cd]
17 objc_msgSend + 138 (libobjc.A.dylib + 4426) 0x7fff8a39b14a
This appears to be a repeat of issue #2, where a new version of Xcode refuses to load (some?) third-party plugins. After installing Xcode 6.4 and making it the active version using the command 'xcode-select', I get this warning when running Xcode from the command line:
xcodebuild [MT] PluginLoading: Required plug-in compatibility UUID 7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/QuickLocalization.xcplugin' not present in DVTPlugInCompatibilityUUIDs
The fix last time was an update to the plugin's Info.plist file. Same answer here?
It seems that the plugin doesn't support Swift
Does this work with Xcode 8?
@"print %@"
gets turned into "print %" = "print %"
Hey, this is a pretty awesome plugin, but my only gripe is that the comment argument is also replaced with the original string. In a lot of cases, the comment argument isn't really necessary such as NSLocalizedString(@"Ok", nil).
It would be cool if there was an option in the Xcode menu to have it use nil as the comment instead of the original string. Another possibility is to make the comment "<#Comment#>" so the developer can easily tab through each localized string to add the comment describing the context of the string.
I've never worked on an Xcode plugin before, but if you like the idea, I might be able to make the update and send you a pull request if I find the time.
Hi, I am a huge fan, having used QL for a long time.
Recently, we have changed our app to support changing language within app. For convenience we change all the NSLocalizedString(Key, Comment) to a custom macro like kLang(Key, Comment). For continuous working with localizations we hope that QL can support customized macro. Thanks!
Currently QuickLocalization converts strings in the current line, which is not ideal in some cases.
whan i localised my string, where are the file .strings where they a re added?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.