summaryrefslogtreecommitdiff
path: root/vendor/fisharebest/localization/src/Locale/LocaleEs.php
blob: a5d8d9008638ff6180806a049e69b3913c21a0d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php namespace Fisharebest\Localization\Locale;

use Fisharebest\Localization\Language\LanguageEs;
use Fisharebest\Localization\Territory\TerritoryEs;

/**
 * Class LocaleEs - Spanish
 *
 * @author        Greg Roach <fisharebest@gmail.com>
 * @copyright (c) 2015 Greg Roach
 * @license       GPLv3+
 */
class LocaleEs extends AbstractLocale implements LocaleInterface {
	/** {@inheritdoc} */
	public function collation() {
		return 'spanish_ci';
	}

	/** {@inheritdoc} */
	public function endonym() {
		return 'español';
	}

	/** {@inheritdoc} */
	public function endonymSortable() {
		return 'ESPANOL';
	}

	/** {@inheritdoc} */
	public function language() {
		return new LanguageEs;
	}

	/** {@inheritdoc} */
	protected function percentFormat() {
		return '%s' . self::NBSP . self::PERCENT;
	}

	/** {@inheritdoc} */
	public function territory() {
		return new TerritoryEs;
	}

	/** {@inheritdoc} */
	public function numberSymbols() {
		return array(
			self::GROUP   => self::DOT,
			self::DECIMAL => self::COMMA,
		);
	}
}