Esempio n. 1
0
File: index.php Progetto: vih/vih.dk
 function load(k_Context $context)
 {
     // Default to English
     $phrases = array('Hello' => 'Hello', 'Meatballs' => 'Meatballs');
     if ($context->language()->isoCode() == 'sv') {
         $phrases = array('Hello' => 'Bork, bork, bork!', 'Meatballs' => 'Swedish meatballs');
     }
     return new SimpleTranslator($phrases);
 }
Esempio n. 2
0
 function load(k_Context $context)
 {
     return new k_Translation2Translator($context->language()->isoCode());
 }
Esempio n. 3
0
 function language()
 {
     return $this->context->language();
 }