Commit fe4ac56c10d0fccc9717b3afd7af8857d9ebfcf2

Authored by David RENÉ
1 parent a39cd37a

[+] add make_translate_function with dictionary collection name as argument. For…

… example this is useful when you want to use general dictionary like country name with iso3611
Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
web_controllers/language/language_management.anubis
... ... @@ -61,6 +61,16 @@ public define (String symbolic_name) -> String
61 61 make_translate_function(_session, (LogLevel level, String txt) |-> println(txt))
62 62 .
63 63  
  64 +public define (String symbolic_name) -> String
  65 + make_translate_function
  66 + (
  67 + WEB_Session _session,
  68 + String dictionary_collection_name,
  69 + ) =
  70 + with lang = _session.language,
  71 + make_translate_function(dictionary_collection_name, lang, (LogLevel level, String txt) |-> println(txt))
  72 +.
  73 +
64 74 public define (String symbolic_name, List((String, String)) list_key_value) -> String
65 75 make_translate_with_key_value_function
66 76 (
... ...