[−][src]Struct creator_tools::types::Localization
Localization.
Fields
bundle_development_region: Option<String>
The default language and region for the bundle, as a language ID.
The system uses this key as the language if it can't locate a resource for the user’s preferred language. The value should be a language ID that identifies a language, dialect, or script.
To distinguish between different languages and regional dialects, use a language designator with a region designator and a script designator separated by hyphens. To specify the English language as it's used in the United Kingdom, use en-GB, where GB is the region designator. To represent Mandarin Chinese, spoken in Taiwan, and written in Traditional Chinese script, use zh-Hant-TW.
To specify a script, combine a language designator with a script designator separated by a hyphen, as in az-Arab for Azerbaijani in the Arabic script.
bundle_localizations: Option<Vec<String>>
The localizations handled manually by your app.
bundle_allow_mixed_localizations: Option<bool>
A Boolean value that indicates whether the bundle supports the retrieval of localized strings from frameworks.
caps_lock_language_switch_capable: Option<bool>
A Boolean value that enables the Caps Lock key to switch between Latin and non-Latin input sources.
Latin input sources, such as ABC, U.S., and Vietnamese, output characters in Latin script. Non-Latin input sources, such as Bulgarian (Cyrillic script), Hindi (Devanagari script), and Urdu (Arabic script), output characters in scripts other than Latin.
After implementing the key, users can enable or disable this functionality by modifying the “Use Caps Lock to switch to and from” preference, which can be found in System Preferences > Keyboard > Input Sources.
Trait Implementations
impl Clone for Localization
[src]
fn clone(&self) -> Localization
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Localization
[src]
impl Default for Localization
[src]
fn default() -> Localization
[src]
impl<'de> Deserialize<'de> for Localization
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Localization> for Localization
[src]
fn eq(&self, other: &Localization) -> bool
[src]
fn ne(&self, other: &Localization) -> bool
[src]
impl Serialize for Localization
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Localization
[src]
Auto Trait Implementations
impl RefUnwindSafe for Localization
[src]
impl Send for Localization
[src]
impl Sync for Localization
[src]
impl Unpin for Localization
[src]
impl UnwindSafe for Localization
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,