original_string: public static function languagesList($full = false, $sort = true)
      {
          $languages = [];
          if ($full) {
              foreach (static::$_catalog as $code => $info) {
                  $languages[$code] = $info['language'];
              }
          } else {
              foreach (quickapps('languages') as $code => $data) {
                  $languages[$code] = $data['name'];
              }
          }
  
          if ($sort) {
              asort($languages);
          }
  
          return $languages;
      }
code: public static function languagesList($full = false, $sort = true)
      {
          $languages = [];
          if ($full) {
              foreach (static::$_catalog as $code => $info) {
                  $languages[$code] = $info['language'];
              }
          } else {
              foreach (quickapps('languages') as $code => $data) {
                  $languages[$code] = $data['name'];
              }
          }
  
          if ($sort) {
              asort($languages);
          }
  
          return $languages;
      }
code_tokens: public static function languagesList ( $ full = false , $ sort = true ) { $ languages = [ ] ; if ( $ full ) { foreach ( static :: $ _catalog as $ code => $ info ) { $ languages [ $ code ] = $ info [ 'language' ] ; } } else { foreach ( quickapps ( 'languages' ) as $ code => $ data ) { $ languages [ $ code ] = $ data [ 'name' ] ; } } if ( $ sort ) { asort ( $ languages ) ; } return $ languages ; }
docstring: Gets a list of languages suitable for select boxes.
  
  @param bool $full Set to true to return the entire list of languages
  (from catalog). Set to false (by default) to get a list of installed languages
  @param bool $sort Sort languages alphabetically if set to true (by default).
  @return void
docstring_tokens: Gets a list of languages suitable for select boxes .