struct Gettext::Translations

Defined in:

gettext.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(localedir, languages : Array(String) | Nil = nil) #

[View source]

Instance Method Detail

def find(localedir) #

[View source]
def getlanguage(string) #

[View source]
def gettext(language : String, message : String) : String #

[View source]
def gettext(language : Language, message : String) : String #

[View source]
def ngettext(language : String, singular : String, plural : String | Nil, n : Int32) : String #

[View source]
def ngettext(language : Language, singular : String, plural : String | Nil = nil, n : Int32 = 1) : String #

[View source]
def translations : Hash(Language, Locale) #

[View source]
def translations=(translations : Hash(Language, Locale)) #

[View source]