Inherits from NSObject
Declared in DTLocalizableStringAggregator.h

Overview

An aggregator that parses one or more source files and aggregates the results in multiple string tables.

You use this be calling beginProcessingFile: for each file. This starts the parsing thread for each file. Then you call aggregatedStringTables which blocks until all files are fully parsed.

Tasks

Getting Information about the Aggregator

Scanning Files

Properties

customMacroPrefix

The custom macro prefix to use instead of NSLocalizedString.

@property (nonatomic, retain) NSString *customMacroPrefix

Declared In

DTLocalizableStringAggregator.h

defaultTableName

The default table name, if not set it defaults to “Localizable”.

@property (nonatomic, retain) NSString *defaultTableName

Declared In

DTLocalizableStringAggregator.h

inputEncoding

The encoding to use for interpreting the input files

@property (nonatomic, assign) NSStringEncoding inputEncoding

Declared In

DTLocalizableStringAggregator.h

tablesToSkip

The names of the string tables to ignore.

@property (nonatomic, retain) NSSet *tablesToSkip

Declared In

DTLocalizableStringAggregator.h

wantsPositionalParameters

If set to YES then placeholders are numbered

@property (nonatomic, assign) BOOL wantsPositionalParameters

Declared In

DTLocalizableStringAggregator.h

Instance Methods

aggregatedStringTables

Retrieves the string tables resulting from the parsing process

- (NSArray *)aggregatedStringTables

Return Value

An array of DTLocalizableStringTables

Discussion

Note: blocks until all enqueued files have been processed

Declared In

DTLocalizableStringAggregator.h

beginProcessingFile:

Begins processing a source code file

- (void)beginProcessingFile:(NSURL *)fileURL

Parameters

fileURL

The file URL of the code file to process

Declared In

DTLocalizableStringAggregator.h