All Projects → MellongLau → AMLocalizedStringBuilder-Xcode-Plugin

MellongLau / AMLocalizedStringBuilder-Xcode-Plugin

Licence: MIT license
AMLocalizedStringBuilder is the localized string helper which help you build your "Localizable.strings" file to class with shortcut ctrl+f.

Programming Languages

objective c
16641 projects - #2 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to AMLocalizedStringBuilder-Xcode-Plugin

Cleanheaders Xcode
A Xcode Source Editor Extension to sort your header imports and remove duplicates, similar to iSort.
Stars: ✭ 91 (+213.79%)
Mutual labels:  xcode-plugin
Xcodeplugintool
🎧a easy way use plugins after Xcode upgraded
Stars: ✭ 174 (+500%)
Mutual labels:  xcode-plugin
Awesome Xcode Extensions
Awesome native Xcode extensions.
Stars: ✭ 2,628 (+8962.07%)
Mutual labels:  xcode-plugin
Snowonder
🔮 Magical import declarations formatter for Xcode
Stars: ✭ 100 (+244.83%)
Mutual labels:  xcode-plugin
Nef Plugin
🔌 an Xcode extension to use nef features easily
Stars: ✭ 144 (+396.55%)
Mutual labels:  xcode-plugin
Amappexporttoipa Xcode Plugin
AMAppExportToIPA-Xcode-Plugin is a simple Xcode plugin to export .app to .ipa file.
Stars: ✭ 185 (+537.93%)
Mutual labels:  xcode-plugin
Xbookmark
Bookmark Plugin for Xcode 8.x and 7.x
Stars: ✭ 72 (+148.28%)
Mutual labels:  xcode-plugin
Pragmatic
⚙An Xcode Source Editor extension for simplifying common pragma driven tasks
Stars: ✭ 24 (-17.24%)
Mutual labels:  xcode-plugin
Ammethod2implement
Xcode plugin to generate implement code for the selected method and const string.
Stars: ✭ 148 (+410.34%)
Mutual labels:  xcode-plugin
Rtimageassets
A Xcode plugin to automatically generate 2x, 1x image from 3x image for you, or upscale to 3x from 2x
Stars: ✭ 2,490 (+8486.21%)
Mutual labels:  xcode-plugin
Swimat
An Xcode formatter plug-in to format your swift code.
Stars: ✭ 1,388 (+4686.21%)
Mutual labels:  xcode-plugin
Timliu Ios
iOS开发常用三方库、插件、知名博客等等
Stars: ✭ 10,898 (+37479.31%)
Mutual labels:  xcode-plugin
Xcodeequatablegenerator
Xcode 8 Source Code Extension will generate conformance to Swift Equatable protocol based on type and fields selection.
Stars: ✭ 188 (+548.28%)
Mutual labels:  xcode-plugin
Xfunnyeditor
Xcode plugin to display an image on the background of the editor
Stars: ✭ 92 (+217.24%)
Mutual labels:  xcode-plugin
Showingithub
Xcode plugin to open the GitHub page of the commit of the currently selected line in the editor window.
Stars: ✭ 243 (+737.93%)
Mutual labels:  xcode-plugin
Xgist
Xcode extension to send code to GitHub's Gist
Stars: ✭ 75 (+158.62%)
Mutual labels:  xcode-plugin
Luft
The Xcode Plugin that helps you write lighter view controllers
Stars: ✭ 179 (+517.24%)
Mutual labels:  xcode-plugin
ViewGenerator
⚒ ViewGenerator generates view code from variable name automatically in iOS development
Stars: ✭ 75 (+158.62%)
Mutual labels:  xcode-plugin
TrickerX
An Xcode9+ Extension which make CodingKeys automatically.
Stars: ✭ 90 (+210.34%)
Mutual labels:  xcode-plugin
Linex
Feature packed Xcode extension
Stars: ✭ 210 (+624.14%)
Mutual labels:  xcode-plugin

AMLocalizedStringBuilder

Build Status Platform: Xcode 6+ License: MIT

AMLocalizedStringBuilder is the localized string helper which help you build your loacalized string file Localizable.strings to object-c class AMLocalizedString, and you can use your localized string key by R_String.am_<#your_localized_string_key#>, the shortcut key is ctrl+f.

AMLocalizedStringBuilder 是可以帮助你将语言本地化文件Localizable.strings生成object-c的类AMLocalizedString的Xcode插件,这样可以直接使用R_String.am_<#你的本地化字符串key#>获取对应key的值,还可以随时点击AltOption按键查看当前字符串的值。
如果觉得这款插件不错的话请点击右上角的star和推荐给你的朋友,如果想即时了解到我的最新消息,请拉到底部扫描二维码关注我的公众号。

Usage

  1. Click Xcode Menu Product->AMLocalizedStringBuilder->Build Localized String or use shortcut ctrl+f to build the Localizable.strings file.
  2. Open your project folder will find these two files: AMLocalizedString.h and AMLocalizedString.m, add these two files reference to your project.
  3. Import AMLocalizedString.h and use R_String.am_<#your_localized_string_key#> to get the localized string.
  4. On the other hand, you can use shortcut ctrl+cmd+s to show the setting window, choose the target localizable string file you want to build, and click ctrl+f to build.

1. 点击Xcode顶部菜单 Product->AMLocalizedStringBuilder->Build Localized String 或者直接用快捷键 ctrl+f 来把Localizable.strings生成为object-c类。
2. 打开你当前项目文件夹,可以找到已经生成好的 AMLocalizedString.h and AMLocalizedString.m 这两个文件,把他们直接拉到项目中添加引用。
3. 在要用到的地方先导入头文件 AMLocalizedString.h, 然后使用R_String.am_<#your_localized_string_key#>来获取对应本地化的文字。
4. 另外,你还可以用快捷键ctrl+cmd+s打开设置窗口,在设置窗口里面选择你要进行转换的Localizable.strings文件。

screenshot.gif

Install

You can:

Install from github.

  • Get the source code from github

$ git clone [email protected]:MellongLau/AMLocalizedStringBuilder-Xcode-Plugin.git

  • Build the AMLocalizedStringBuilder target in the Xcode project and the plug-in will automatically be installed in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins.
  • Relaunch Xcode.

or

Install via Alcatraz

In any case, relaunch Xcode to load it.

Support

Developed and tested against Xcode 6+.

For Xcode7.1, you may need to run shell script:

find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID

sudo xcode-select --reset

defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-7.1

Or download and execute this script to add your current Xcode DVTPlugInCompatibilityUUID to all the Xcode plugins.

License

MIT License

Copyright (c) 2016 Mellong Lau

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].