1<?php
2/** Latvian (latviešu)
3 *
4 * To improve a translation please visit https://translatewiki.net
5 *
6 * @ingroup Language
7 * @file
8 *
9 * @author Admresdeserv.
10 * @author Dark Eagle
11 * @author Edgars2007
12 * @author FnTmLV
13 * @author Geimeris
14 * @author Geitost
15 * @author Gleb Borisov
16 * @author GreenZeb
17 * @author Kaganer
18 * @author Karlis
19 * @author Kikos
20 * @author Knakts
21 * @author Marozols
22 * @author Papuass
23 * @author Reedy
24 * @author Srolanh
25 * @author Xil
26 * @author Yyy
27 * @author לערי ריינהארט
28 */
29
30/**
31 * @copyright Copyright © 2006, Niklas Laxström
32 * @license GPL-2.0-or-later
33 */
34
35$linkTrail = '/^([a-zA-ZĀāČčĒēĢģĪīĶķĻļŅņŠšŪūŽž]+)(.*)$/sDu';
36
37$namespaceNames = [
38	NS_MEDIA            => 'Media',
39	NS_SPECIAL          => 'Special',
40	NS_TALK             => 'Diskusija',
41	NS_USER             => 'Dalībnieks',
42	NS_USER_TALK        => 'Dalībnieka_diskusija',
43	NS_PROJECT_TALK     => '{{grammar:ģenitīvs|$1}}_diskusija',
44	NS_FILE             => 'Attēls',
45	NS_FILE_TALK        => 'Attēla_diskusija',
46	NS_MEDIAWIKI        => 'MediaWiki',
47	NS_MEDIAWIKI_TALK   => 'MediaWiki_diskusija',
48	NS_TEMPLATE         => 'Veidne',
49	NS_TEMPLATE_TALK    => 'Veidnes_diskusija',
50	NS_HELP             => 'Palīdzība',
51	NS_HELP_TALK        => 'Palīdzības_diskusija',
52	NS_CATEGORY         => 'Kategorija',
53	NS_CATEGORY_TALK    => 'Kategorijas_diskusija',
54];
55
56$namespaceAliases = [
57	'Lietotājs' => NS_USER,
58	'Lietotāja_diskusija' => NS_USER_TALK,
59];
60
61$namespaceGenderAliases = [
62	NS_USER => [ 'male' => 'Dalībnieks', 'female' => 'Dalībniece' ],
63	NS_USER_TALK => [ 'male' => 'Dalībnieka_diskusija', 'female' => 'Dalībnieces_diskusija' ]
64];
65
66$separatorTransformTable = [ ',' => "\u{00A0}", '.' => ',' ];
67
68/**
69 * A list of date format preference keys, which can be selected in user
70 * preferences. New preference keys can be added, provided they are supported
71 * by the language class's timeanddate(). Only the 5 keys listed below are
72 * supported by the wikitext converter (parser/DateFormatter.php).
73 *
74 * The special key "default" is an alias for either dmy or mdy depending on
75 * $wgAmericanDates
76 */
77$datePreferences = [
78	'default',
79	'ydm',
80	'mdy',
81	'dmy',
82	'ymd',
83	'ISO 8601',
84];
85
86/**
87 * The date format to use for generated dates in the user interface.
88 * This may be one of the above date preferences, or the special value
89 * "dmy or mdy", which uses mdy if $wgAmericanDates is true, and dmy
90 * if $wgAmericanDates is false.
91 */
92$defaultDateFormat = 'ydm';
93
94/**
95 * Associative array mapping old numeric date formats, which may still be
96 * stored in user preferences, to the new string formats.
97 */
98$datePreferenceMigrationMap = [
99	'default',
100	'mdy',
101	'dmy',
102	'ymd'
103];
104
105/**
106 * These are formats for dates generated by MediaWiki (as opposed to the wikitext
107 * DateFormatter). Documentation for the format string can be found in
108 * Language.php, search for sprintfDate.
109 *
110 * This array is automatically inherited by all subclasses. Individual keys can be
111 * overridden.
112 */
113$dateFormats = [
114	'ydm time' => 'H.i',
115	'ydm date' => 'Y". gada" j. F',
116	'ydm monthonly' => 'Y". gada" F',
117	'ydm both' => 'Y". gada" j. F", plkst." H.i',
118	'ydm pretty' => 'j F',
119
120	'mdy time' => 'H:i',
121	'mdy date' => 'F j, Y',
122	'mdy monthonly' => 'F Y',
123	'mdy both' => 'H:i, F j, Y',
124	'mdy pretty' => 'F j',
125
126	'dmy time' => 'H:i',
127	'dmy date' => 'j F Y',
128	'dmy monthonly' => 'F Y',
129	'dmy both' => 'H:i, j F Y',
130	'dmy pretty' => 'j F',
131
132	'ymd time' => 'H:i',
133	'ymd date' => 'Y F j',
134	'ymd monthonly' => 'Y F',
135	'ymd both' => 'H:i, Y F j',
136	'ymd pretty' => 'F j',
137
138	'ISO 8601 time' => 'xnH:xni:xns',
139	'ISO 8601 date' => 'xnY-xnm-xnd',
140	'ISO 8601 monthonly' => 'xnY-xnm',
141	'ISO 8601 both' => 'xnY-xnm-xnd"T"xnH:xni:xns',
142	'ISO 8601 pretty' => 'xnm-xnd'
143];
144