Index

SimpleTranslations.get_msgMethod

Get the translated message in the global Translater

Arguments

  • id: identificator of the message.
SimpleTranslations.get_msgMethod

get_msg(conf::MessagesTranslator, id::AbstractString)

return the id message translate to current language

SimpleTranslations.loadmsgs!Method

loadmsgs!(file; strict_mode=false)

Load the messages in a global variable.

Arguments

  • file::IO: file to get the messages.
  • strict_mode::Bool=false: strict mode (default=false).

@ref loadmsgs

Example

@example loadmsgs!("test/test.ini")

SimpleTranslations.loadmsgsMethod

loadmsgs(filename; strict_mode=false)

read the file with the message list.

Arguments

  • filename::AbstractString: name of the file to get the messages.
  • strict_mode::Bool=false: strict mode (default=false).
SimpleTranslations.loadmsgsMethod

loadmsgs(file, strict_mode)

read the file with the message list.

Arguments

  • file::IO: file to get the messages.
  • strict_mode::Bool=false: strict mode (default=false).
SimpleTranslations.set_language!Method

set_language!(lang)

Set the language to lang in future messages.

Arguments lang language identification.

Example

set_language!("es")
SimpleTranslations.check_validMethod

is_valid(translation)

Check if the translation is perfect, for strict mode.

If any error is detected, an exception is throw