Function

GLib-2.0GLibdngettextSince 2.18

  • This function is a wrapper of dngettext() which does not translate the message if the default domain as set with textdomain() has no translations for the current locale.

    See g_dgettext() for details of how this differs from dngettext() proper.

    Parameters

    • domain: string

      the translation domain to use, or null to use the domain set with textdomain()

    • msgid: string

      message to translate

    • msgid_plural: string

      plural form of the message

    • n: number

      the quantity for which translation is needed

    Returns string

    The translated string

    2.18