Foxit PDF SDK  9.1
FSLocalization Class Reference
Inheritance diagram for FSLocalization:

Class Methods

(void) + addLanguage:table:languageAbbr:
 Add the languages you want to support. You need to call the setup method before initialization or you may not be able to reach the expected. More...
 
(NSString *) + languageAbbr
 Get language abbreviation;. More...
 
(NSString *) + tableName
 Get the receiver’s string table to search;. More...
 

Properties

BOOL allowLanguageBranch
 Language branches are allowed. For example "es" can use "es-419" ,the defualt is YES. More...
 
NSUInteger currentLanguage
 Optional language set and get. The default is 0~10. This is a static variable. You need to call the setup method before initialization or you may not be able to reach the expected. More...
 

Detailed Description

If you want to use some kind of our existing language. Example: [FSLocalization setCurrentLanguage:FSLocalizationLanguageOptionalEnglish];

If you want to add your own language resources. Example: [FSLocalization addLanguage:11 table:"your tableName" languageAbbr:@"your language resources"]; [FSLocalization setCurrentLanguage:11];//If you want to follow system changes, remove this line of code.

You can also cover our language. Example: [FSLocalization addLanguage:FSLocalizationLanguageOptionalEnglish table:"your tableName" languageAbbr:@"your language resources"]; [FSLocalization setCurrentLanguage:FSLocalizationLanguageOptionalEnglish];//If you want to follow system changes, remove this line of code.

Method Documentation

◆ addLanguage:table:languageAbbr:

+ (void) addLanguage: (NSUInteger)  language
table: (nonnull NSString *)  tableName
languageAbbr: (nonnull NSString *)  abbr 

Add the languages you want to support. You need to call the setup method before initialization or you may not be able to reach the expected.

Parameters
[in]languageThe language of your custom ID, unique, you can override our definition.
[in]tableNameThe receiIver’s string table to search, Can't be empty.
[in]abbrAbbreviation for language resources.For example, the prefix "en" of "en.lproj".

◆ languageAbbr

+ (NSString *) languageAbbr

Get language abbreviation;.

Returns
Such as en, zh-Hans, zh-Hant, ko.

◆ tableName

+ (NSString *) tableName

Get the receiver’s string table to search;.

Returns
For example, the prefix "Localizable" of "Localizable.strings"

Property Documentation

◆ allowLanguageBranch

- (BOOL) allowLanguageBranch
readwritenonatomicassign

Language branches are allowed. For example "es" can use "es-419" ,the defualt is YES.

◆ currentLanguage

- (NSUInteger) currentLanguage
readwritenonatomicassign

Optional language set and get. The default is 0~10. This is a static variable. You need to call the setup method before initialization or you may not be able to reach the expected.