Method

AppStreamComponentget_language

Declaration [src]

gint
as_component_get_language (
  AsComponent* cpt,
  const gchar* locale
)

Description [src]

Gets the translation coverage in percent for a specific locale.

Available since:0.7.0

Parameters

locale const gchar*
 

The BCP47 locale, or NULL. e.g. “en-GB

 The argument can be NULL.
 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.

Return value

Returns: gint
 

A percentage value, -1 if locale was not found.