original_string: public function getTranslation($lang, $key, $array_support = false)
      {
          $translation = Grav::instance()['languages']->get($lang . '.' . $key, null);
          if (!$array_support && is_array($translation)) {
              return (string)array_shift($translation);
          }
  
          return $translation;
      }
code: public function getTranslation($lang, $key, $array_support = false)
      {
          $translation = Grav::instance()['languages']->get($lang . '.' . $key, null);
          if (!$array_support && is_array($translation)) {
              return (string)array_shift($translation);
          }
  
          return $translation;
      }
code_tokens: public function getTranslation ( $ lang , $ key , $ array_support = false ) { $ translation = Grav :: instance ( ) [ 'languages' ] -> get ( $ lang . '.' . $ key , null ) ; if ( ! $ array_support && is_array ( $ translation ) ) { return ( string ) array_shift ( $ translation ) ; } return $ translation ; }
docstring: Lookup the translation text for a given lang and key
  
  @param string $lang lang code
  @param string $key  key to lookup with
  @param bool $array_support
  
  @return string
docstring_tokens: Lookup the translation text for a given lang and key