src/Gelembjuk/Locale/Languages.php
public function getHTMLSelect($attributes = '',$currentlang = '',$orignames = false) {
		$html = '<select '.$attributes.'>';
		
		foreach ($this->getUsedLanguages() as $code=>$lang) {
			$html .= '<option value="'.$code.'" ';
			
			if ($currentlang == $code) {
				$html .= 'selected';
			}
			
			$html .= '>';
			
			if ($orignames) {
				$html .= $lang['origname'];
			} else {
				$html .= $lang['name'];
			}
		}
		
		$html .= '</select>';
		
		return $html;
	}
public function getHTMLSelect($attributes = '',$currentlang = '',$orignames = false) {
		$html = '<select '.$attributes.'>';
		
		foreach ($this->getUsedLanguages() as $code=>$lang) {
			$html .= '<option value="'.$code.'" ';
			
			if ($currentlang == $code) {
				$html .= 'selected';
			}
			
			$html .= '>';
			
			if ($orignames) {
				$html .= $lang['origname'];
			} else {
				$html .= $lang['name'];
			}
		}
		
		$html .= '</select>';
		
		return $html;
	}
public function getHTMLSelect ( $ attributes = '' , $ currentlang = '' , $ orignames = false ) { $ html = '<select ' . $ attributes . '>' ; foreach ( $ this -> getUsedLanguages ( ) as $ code => $ lang ) { $ html .= '<option value="' . $ code . '" ' ; if ( $ currentlang == $ code ) { $ html .= 'selected' ; } $ html .= '>' ; if ( $ orignames ) { $ html .= $ lang [ 'origname' ] ; } else { $ html .= $ lang [ 'name' ] ; } } $ html .= '</select>' ; return $ html ; }
Build HTML select consruction with used languages
Can be used on a web site to show a Language change dropbox

@param string $attributes for a select box
@param string $currentlang Current selected language code (locale)
@param boolean $orignames If true then original manes of languages ill be used as titles in a dropbox

@return string
Build HTML select consruction with used languages Can be used on a web site to show a Language change dropbox