GLib.dngettext

function dngettext(domain: String, msgid: String, msgid_plural: String, n: Number(gulong)): String {
    // Gjs wrapper for g_dngettext()
}
  

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 GLib.dgettext for details of how this differs from dngettext() proper.

Since 2.18

domain

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

msgid

message to translate

msgid_plural

plural form of the message

n

the quantity for which translation is needed

Returns

The translated string