Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 161 lines (142 sloc) 5.618 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
//
// GBApplicationStringsProvider.m
// appledoc
//
// Created by Tomaz Kragelj on 1.10.10.
// Copyright (C) 2010, Gentle Bytes. All rights reserved.
//

#import "GBApplicationStringsProvider.h"

@implementation GBApplicationStringsProvider

#pragma mark Initialization & disposal

+ (id)provider {
return [[[self alloc] init] autorelease];
}

#pragma mark Object output strings

- (NSDictionary *)objectPage {
static NSMutableDictionary *result = nil;
if (!result) {
result = [[NSMutableDictionary alloc] init];
[result setObject:@"%@ Class Reference" forKey:@"classTitle"];
[result setObject:@"%1$@(%2$@) Category Reference" forKey:@"categoryTitle"];
[result setObject:@"%@ Protocol Reference" forKey:@"protocolTitle"];
[result setObject:@"%@ Constants Reference" forKey:@"constantTitle"];
        [result setObject:@"%@ Block Reference" forKey:@"blockTitle"];
[result setObject:@"%@ Methods" forKey:@"mergedCategorySectionTitle"];
[result setObject:@"Extension Methods" forKey:@"mergedExtensionSectionTitle"];
[result setObject:@"%2$@ from %1$@" forKey:@"mergedPrefixedCategorySectionTitle"];
}
return result;
}

- (NSDictionary *)objectSpecifications {
static NSMutableDictionary *result = nil;
if (!result) {
result = [[NSMutableDictionary alloc] init];
[result setObject:@"Inherits from" forKey:@"inheritsFrom"];
[result setObject:@"Conforms to" forKey:@"conformsTo"];
        [result setObject:@"References" forKey:@"references"];
        [result setObject:@"Availability" forKey:@"availability"];
[result setObject:@"Declared in" forKey:@"declaredIn"];
[result setObject:@"Companion guide" forKey:@"companionGuide"];
}
return result;
}

- (NSDictionary *)objectOverview {
static NSMutableDictionary *result = nil;
if (!result) {
result = [[NSMutableDictionary alloc] init];
[result setObject:@"Overview" forKey:@"title"];
}
return result;
}

- (NSDictionary *)objectTasks {
static NSMutableDictionary *result = nil;
if (!result) {
result = [[NSMutableDictionary alloc] init];
[result setObject:@"Tasks" forKey:@"title"];
[result setObject:@"Other Methods" forKey:@"otherMethodsSectionName"];
[result setObject:@"required method" forKey:@"requiredMethod"];
[result setObject:@"property" forKey:@"property"];
}
return result;
}

- (NSDictionary *)objectMethods {
static NSMutableDictionary *result = nil;
if (!result) {
result = [[NSMutableDictionary alloc] init];
[result setObject:@"Class Methods" forKey:@"classMethodsTitle"];
[result setObject:@"Instance Methods" forKey:@"instanceMethodsTitle"];
        [result setObject:@"Block Definition" forKey:@"blockDefTitle"];
[result setObject:@"Properties" forKey:@"propertiesTitle"];
[result setObject:@"Parameters" forKey:@"parametersTitle"];
[result setObject:@"Return Value" forKey:@"resultTitle"];
[result setObject:@"Availability" forKey:@"availability"];
[result setObject:@"Discussion" forKey:@"discussionTitle"];
[result setObject:@"Exceptions" forKey:@"exceptionsTitle"];
[result setObject:@"See Also" forKey:@"seeAlsoTitle"];
[result setObject:@"Declared In" forKey:@"declaredInTitle"];
}
return result;
}

#pragma mark Document output strings

- (NSDictionary *)documentPage {
static NSMutableDictionary *result = nil;
if (!result) {
result = [[NSMutableDictionary alloc] init];
[result setObject:@"%@ Document" forKey:@"titleTemplate"];
}
return result;
}

#pragma mark Index output strings

- (NSDictionary *)indexPage {
static NSMutableDictionary *result = nil;
if (!result) {
result = [[NSMutableDictionary alloc] init];
[result setObject:@"%@ Reference" forKey:@"titleTemplate"];
[result setObject:@"Programming Guides" forKey:@"docsTitle"];
[result setObject:@"Class References" forKey:@"classesTitle"];
[result setObject:@"Category References" forKey:@"categoriesTitle"];
[result setObject:@"Protocol References" forKey:@"protocolsTitle"];
        [result setObject:@"Constant References" forKey:@"constantsTitle"];
        [result setObject:@"Block References" forKey:@"blocksTitle"];
}
return result;
}

- (NSDictionary *)hierarchyPage {
static NSMutableDictionary *result = nil;
if (!result) {
result = [[NSMutableDictionary alloc] init];
[result setObject:@"%@ Hierarchy" forKey:@"titleTemplate"];
[result setObject:@"Class Hierarchy" forKey:@"classesTitle"];
[result setObject:@"Category References" forKey:@"categoriesTitle"];
[result setObject:@"Protocol References" forKey:@"protocolsTitle"];
        [result setObject:@"Constant References" forKey:@"constantsTitle"];
        [result setObject:@"Block References" forKey:@"blocksTitle"];
}
return result;
}

#pragma mark Documentation set output strings

- (NSDictionary *)docset {
static NSMutableDictionary *result = nil;
if (!result) {
result = [[NSMutableDictionary alloc] init];
[result setObject:@"Programming Guides" forKey:@"docsTitle"];
[result setObject:@"Classes" forKey:@"classesTitle"];
[result setObject:@"Categories" forKey:@"categoriesTitle"];
[result setObject:@"Protocols" forKey:@"protocolsTitle"];
        [result setObject:@"Constants" forKey:@"constantsTitle"];
        [result setObject:@"Blocks" forKey:@"blocksTitle"];
}
return result;
}

- (NSDictionary *)appledocData {
static NSMutableDictionary *result = nil;
if (!result) {
result = [[NSMutableDictionary alloc] init];
[result setObject:@"appledoc" forKey:@"tool"];
[result setObject:@"2.2" forKey:@"version"];
[result setObject:@"963" forKey:@"build"];
[result setObject:@"http://appledoc.gentlebytes.com" forKey:@"homepage"];
}
return result;
}

@end
Something went wrong with that request. Please try again.