Modulemd.TranslationEntry

g GObject.Object GObject.Object Modulemd.TranslationEntry Modulemd.TranslationEntry GObject.Object->Modulemd.TranslationEntry

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (locale)

copy ()

get_description ()

get_locale ()

get_profile_description (profile_name)

get_profiles ()

get_summary ()

set_description (description)

set_profile_description (profile_name, profile_description)

set_summary (summary)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

description

str

r/w

The description of this module stream translated into the language specified by locale.

locale

str

r/w/co

The locale for this translation entry. It must correspond to the format specified by libc locale names. This field may only be set on object construction and is immutable afterwards.

summary

str

r/w

The summary of this module stream translated into the language specified by locale.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Modulemd.TranslationEntry(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Modulemd.TranslationEntryClass

classmethod new(locale)
Parameters:

locale (str) – The locale for this translation entry. It must correspond to the format specified by libc locale names.

Returns:

A newly-allocated Modulemd.TranslationEntry object. This object must be freed with GObject.Object.unref().

Return type:

Modulemd.TranslationEntry

New in version 2.0.

copy()
Returns:

The copied Modulemd.TranslationEntry object.

Return type:

Modulemd.TranslationEntry

Create a copy of this Modulemd.TranslationEntry object.

New in version 2.0.

get_description()
Returns:

The description of this module stream translated into the language specified by locale.

Return type:

str

Get the description of this translation entry.

New in version 2.0.

get_locale()
Returns:

The locale of this translation entry. This is a pointer to the internal memory location and must not be freed.

Return type:

str

Get the locale of this translation entry.

New in version 2.0.

get_profile_description(profile_name)
Parameters:

profile_name (str) –

Return type:

str

get_profiles()
Returns:

An ordered #GStrv list of profiles for which descriptions have been translated for this locale.

Return type:

[str]

Get a list of profiles that have descriptions.

New in version 2.0.

get_summary()
Returns:

The summary of this module stream translated into the language specified by locale.

Return type:

str

Get the summary of this translation entry.

New in version 2.0.

set_description(description)
Parameters:

description (str or None) – The description of this module stream translated into the language specified by locale.

New in version 2.0.

set_profile_description(profile_name, profile_description)
Parameters:
  • profile_name (str) – The name of the profile.

  • profile_description (str or None) – The translated description of the profile.

Adds a profile name translation.

New in version 2.0.

set_summary(summary)
Parameters:

summary (str or None) – The summary of this module translated appropriately for this locale.

New in version 2.0.

Property Details

Modulemd.TranslationEntry.props.description
Name:

description

Type:

str

Default Value:

'__LOCALE_UNSET__'

Flags:

READABLE, WRITABLE

The description of this module stream translated into the language specified by locale.

Modulemd.TranslationEntry.props.locale
Name:

locale

Type:

str

Default Value:

'__LOCALE_UNSET__'

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The locale for this translation entry. It must correspond to the format specified by libc locale names. This field may only be set on object construction and is immutable afterwards.

Modulemd.TranslationEntry.props.summary
Name:

summary

Type:

str

Default Value:

'__LOCALE_UNSET__'

Flags:

READABLE, WRITABLE

The summary of this module stream translated into the language specified by locale.