darktable.gettext

table

This table contains functions related to translating lua scripts

🔗darktable.gettext.gettext

function(
  msgid : string
) : string

Translate a string using the darktable textdomain

  • msgid - string - The string to translate
  • return - string - The translated string

🔗darktable.gettext.dgettext

function(
  domainname : string,
  msgid : string
) : string

Translate a string using the specified textdomain

  • domainname - string - The domain to use for that translation
  • msgid - string - The string to translate
  • return - string - The translated string

🔗darktable.gettext.ngettext

function(
  msgid : string,
  msgid_plural : string,
  n : int
) : string

Translate a string depending on the number of objects using the darktable textdomain

  • msgid - string - The string to translate
  • msgid_plural - string - The string to translate in plural form
  • n - int - The number of objects
  • return - string - The translated string

🔗darktable.gettext.dngettext

function(
  domainname : string,
  msgid : string,
  msgid_plural : string,
  n : int
) : string

Translate a string depending on the number of objects using the specified textdomain

  • domainname - string - The domain to use for that translation
  • msgid - string - The string to translate
  • msgid_plural - string - The string to translate in plural form
  • n - int - The number of objects
  • return - string - The translated string

🔗darktable.gettext.bindtextdomain

function(
  domainname : string,
  dirname : string
)

Tell gettext where to find the .mo file translating messages for a particular domain

  • domainname - string - The domain to use for that translation
  • dirname - string - The base directory to look for the file. The file should be placed in dirname/locale name/LC_MESSAGES/domain.mo