Class YRTI18nManager

Localization manager.

Instance Methods

- canonicalSpeedWithSpeed:

Represents the speed with the value and unit of measurement separated.

- localizeCanonicalUnitWithCanonicalUnit:

Localizes a value represented by canonical units.

- localizeDataSizeWithDataSize:

Converts data size to the current locale.

- localizeDistanceWithDistance:

Converts a distance value to the current locale.

- localizeDurationWithDuration:

Converts a duration to the current locale.

- localizeSpeedWithSpeed:

Converts speed to the current locale.

Properties

prefs

Localization preferences.

som

System of measurement used.

timeFormat

Preferred time format.

valid

Tells if this object is valid or no.

Method Detail

-canonicalSpeedWithSpeed:

- (nonnull YRTCanonicalUnit *)canonicalSpeedWithSpeed:(double)speed 

Represents the speed with the value and unit of measurement separated.

-localizeCanonicalUnitWithCanonicalUnit:

- (nonnull NSString *)localizeCanonicalUnitWithCanonicalUnit:(nonnull YRTCanonicalUnit *)canonicalUnit 

Localizes a value represented by canonical units.

-localizeDataSizeWithDataSize:

- (nonnull NSString *)localizeDataSizeWithDataSize:(long long)dataSize 

Converts data size to the current locale.

-localizeDistanceWithDistance:

- (nonnull NSString *)localizeDistanceWithDistance:(NSInteger)distance 

Converts a distance value to the current locale.

-localizeDurationWithDuration:

- (nonnull NSString *)localizeDurationWithDuration:(NSInteger)duration 

Converts a duration to the current locale.

-localizeSpeedWithSpeed:

- (nonnull NSString *)localizeSpeedWithSpeed:(double)speed 

Converts speed to the current locale.

Property Detail

prefs

(assign, readwrite) YRTI18nPrefs * prefs

Localization preferences.

som

(assign, readwrite) YRTSystemOfMeasurement som

System of measurement used.

timeFormat

(assign, readwrite) YRTTimeFormat timeFormat

Preferred time format.

valid

(assign, readonly, getter=isValid) BOOL valid

Tells if this object is valid or no.

Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.