pub trait TranslationExt:
IsA<Translation>
+ Sealed
+ 'static {
// Provided methods
fn id(&self) -> Option<GString> { ... }
fn kind(&self) -> TranslationKind { ... }
fn source_locale(&self) -> Option<GString> { ... }
fn set_id(&self, id: &str) { ... }
fn set_kind(&self, kind: TranslationKind) { ... }
fn set_source_locale(&self, locale: Option<&str>) { ... }
}
Expand description
Provided Methods§
sourcefn kind(&self) -> TranslationKind
fn kind(&self) -> TranslationKind
sourcefn source_locale(&self) -> Option<GString>
fn source_locale(&self) -> Option<GString>
The locale of the source strings for this component. If this has not been
explicitly specified, en_US
will be returned.
§Returns
The locale of the source strings for this component.
sourcefn set_kind(&self, kind: TranslationKind)
fn set_kind(&self, kind: TranslationKind)
sourcefn set_source_locale(&self, locale: Option<&str>)
fn set_source_locale(&self, locale: Option<&str>)
Object Safety§
This trait is not object safe.