├── README.md ├── Resource └── Strings Dictionary.xctemplate │ ├── TemplateIcon.png │ ├── TemplateIcon@2x.png │ ├── TemplateInfo.plist │ └── __FILEBASENAME__.stringsdict └── Resources ├── File Template Icon.sketch ├── FileTemplateScreenshot.png └── screenshot.png /README.md: -------------------------------------------------------------------------------- 1 | # Strings Dictionary Xcode file template 2 | 3 | ![Screenshot](Resources/screenshot.png?raw=true) 4 | 5 | ##Overview 6 | 7 | The purpose of this template is to make working with `.stringsdict` files easier. The format of these files is described in details in [Apple's documentation](https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/StringsdictFileFormat/StringsdictFileFormat.html). 8 | 9 | Template is avaialble for development for iOS and OS X platforms. 10 | 11 | 12 | ## Installation 13 | 14 | ### Manual installation 15 | 16 | Manual installation boilds down to copying `Resource` folder to the `~/Library/Developer/Xcode/Templates` location. 17 | 18 | It can be achieved in three steps: 19 | 20 | 1. Clone or download repository. 21 | 1. Set the repository direcotry as the current one using `cd` command from withing the command line. 22 | 1. Create directory `~/Library/Developer/Xcode/Templates/File Templates` if it doesn't exist. 23 | 1. Run `cp Resource ~/Library/Developer/Xcode/Templates`. 24 | 25 | 26 | ### Alcatraz 27 | 28 | Strings dictionary file template is also available for download via [Alcatraz](http://alcatraz.io) plugin. Simply install Alcatraz plugin and use it to browse for the Strings Dictionary Xcode file template. 29 | 30 | ##Features 31 | 32 | The screenshot below presents file created using *Stings Dictionary* file template. All fields visible on the screenshot are explained in [Apple's documentation](The format of these files is described in details in [Apple's documentation](https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/StringsdictFileFormat/StringsdictFileFormat.html).). 33 | 34 | ![Screenshot](Resources/FileTemplateScreenshot.png?raw=true) 35 | 36 | ## Licence 37 | 38 | Copyright (c) 2016 Rafał Augustyniak 39 | 40 | Permission is hereby granted, free of charge, to any person obtaining a copy 41 | of this software and associated documentation files (the "Software"), to deal 42 | in the Software without restriction, including without limitation the rights 43 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 44 | copies of the Software, and to permit persons to whom the Software is 45 | furnished to do so, subject to the following conditions: 46 | 47 | The above copyright notice and this permission notice shall be included in all 48 | copies or substantial portions of the Software. 49 | 50 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 51 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 52 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 53 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 54 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 55 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 56 | SOFTWARE. 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Resource/Strings Dictionary.xctemplate/TemplateIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Augustyniak/Stringsdict-Xcode-file-template/15b446b24d26246f757e35c55ebd1258f7e33e07/Resource/Strings Dictionary.xctemplate/TemplateIcon.png -------------------------------------------------------------------------------- /Resource/Strings Dictionary.xctemplate/TemplateIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Augustyniak/Stringsdict-Xcode-file-template/15b446b24d26246f757e35c55ebd1258f7e33e07/Resource/Strings Dictionary.xctemplate/TemplateIcon@2x.png -------------------------------------------------------------------------------- /Resource/Strings Dictionary.xctemplate/TemplateInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Kind 6 | Xcode.IDEFoundation.TextSubstitutionFileTemplateKind 7 | Description 8 | A prefilled strings dictionary file. 9 | Summary 10 | A prefilled strings dictionary file. 11 | Sort Order 12 | 10 13 | DefaultCompletionName 14 | 15 | Platforms 16 | 17 | com.apple.platform.iphoneos 18 | com.apple.platform.macosx 19 | 20 | MainTemplateFile 21 | __FILEBASENAME__.stringsdict 22 | 23 | 24 | -------------------------------------------------------------------------------- /Resource/Strings Dictionary.xctemplate/__FILEBASENAME__.stringsdict: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LOCALIZED STRING KEY 6 | 7 | NSStringLocalizedFormatKey 8 | FORMAT OF STRING WITH %#@VARIABLE@ HERE 9 | VARIABLE 10 | 11 | NSStringFormatSpecTypeKey 12 | NSStringPluralRuleType 13 | NSStringFormatValueTypeKey 14 | zd 15 | zero 16 | 17 | one 18 | 19 | two 20 | 21 | few 22 | 23 | many 24 | 25 | other 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Resources/File Template Icon.sketch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Augustyniak/Stringsdict-Xcode-file-template/15b446b24d26246f757e35c55ebd1258f7e33e07/Resources/File Template Icon.sketch -------------------------------------------------------------------------------- /Resources/FileTemplateScreenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Augustyniak/Stringsdict-Xcode-file-template/15b446b24d26246f757e35c55ebd1258f7e33e07/Resources/FileTemplateScreenshot.png -------------------------------------------------------------------------------- /Resources/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Augustyniak/Stringsdict-Xcode-file-template/15b446b24d26246f757e35c55ebd1258f7e33e07/Resources/screenshot.png --------------------------------------------------------------------------------