Changeset 1609

User picture

Author: franiglesias

(2012/02/13 13:41) 3 months ago

Fixing language inconsistences

Affected files

Updated branches/mh13/vendors/shells/mh.php Download diff

16081609
439
	{
439
	{
440
		App::import('Core', 'L10n');
440
		App::import('Core', 'L10n');
441
		$L10n = new L10n();
441
		$L10n = new L10n();
442
		$locale = $L10n->get($L10n->locale);
442
		return $L10n->lang;
443
		$language = str_replace('_', '-', $locale);
443
		// $locale = $L10n->get($L10n->locale);
444
		return $language;
444
		// 		$language = str_replace('_', '-', $locale);
445
		// 		return $language;
445
	}
446
	}
446
	
447
	
447
	
448
	
...
...
495
 */	
496
 */	
496
	public function multi($message, $default)
497
	public function multi($message, $default)
497
	{
498
	{
498
		$reponses = array();
499
		$responses = array();
499
		$finish = false;
500
		$finish = false;
500
		$this->out($message);
501
		$this->out($message);
501
		do {
502
		do {
502
			$response = $this->in($message);
503
			$response = $this->in($message, null, $default);
503
			$this->out($response);
504
			$this->out($response);
504
			if ($response != 'q') {
505
			if ($response != 'q') {
505
				$message .= ', '.$response;
506
				$message .= ', '.$response;
...
...
521
		return true;
522
		return true;
522
	}
523
	}
523
	
524
	
524
	
525
	public function testLang()
525
	public function getLang() {
526
	{
526
		$lang = $this->language();
527
		$this->out($this->language());
527
		$this->out($lang);
528
	}
528
	}
529
}
529
}
530
530