name_order_conventions.php 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * @package chamilo.include.internationalization
  5. */
  6. /**
  7. * The following table contains two types of conventions concerning person names:
  8. *
  9. * "format" - determines how a full person name to be formatted, i.e. in what order the title, the first_name and the last_name to be placed.
  10. * You might need to correct the value for your language. The possible values are:
  11. * title first_name last_name - Western order;
  12. * title last_name first_name - Eastern order;
  13. * title last_name, first_name - Western libraries order.
  14. * Placing the title (Dr, Mr, Miss, etc) depends on the tradition in you country.
  15. * @link http://en.wikipedia.org/wiki/Personal_name#Naming_convention
  16. *
  17. * To see the complete list:
  18. *
  19. * $language = Intl::getLocaleBundle()->getLocaleNames('en');
  20. * echo '<pre>';print_r($language);exit;
  21. *
  22. * "sort_by" - determines you preferable way of sorting person names. The possible values are:
  23. * first_name - sorting names with priority for the first name;
  24. * last_name - sorting names with priority for the last name.
  25. */
  26. return [
  27. 'af' => [
  28. 'format' => 'title first_name last_name',
  29. 'sort_by' => 'first_name',
  30. ],
  31. //afrikaans
  32. 'sq' => [
  33. 'format' => 'title first_name last_name',
  34. 'sort_by' => 'first_name',
  35. ],
  36. //albanian
  37. //'alemannic' => ['format' => 'title first_name last_name', 'sort_by' => 'first_name'],
  38. 'am' => [
  39. 'format' => 'title first_name last_name',
  40. 'sort_by' => 'first_name',
  41. ],
  42. //amharic
  43. 'hy' => [
  44. 'format' => 'title first_name last_name',
  45. 'sort_by' => 'first_name',
  46. ],
  47. //armenian
  48. 'ar' => [
  49. 'format' => 'title first_name last_name',
  50. 'sort_by' => 'first_name',
  51. ],
  52. //arabic
  53. //'asturian' => ['format' => 'title first_name last_name', 'sort_by' => 'first_name'],
  54. 'bs' => [
  55. 'format' => 'title first_name last_name',
  56. 'sort_by' => 'first_name',
  57. ],
  58. //bosnian
  59. 'pt_BR' => [
  60. 'format' => 'title first_name last_name',
  61. 'sort_by' => 'first_name',
  62. ],
  63. //brazilian Portuguese (Brazil)
  64. 'br' => [
  65. 'format' => 'title first_name last_name',
  66. 'sort_by' => 'first_name',
  67. ],
  68. //breton
  69. 'bg' => [
  70. 'format' => 'title first_name last_name',
  71. 'sort_by' => 'first_name',
  72. ],
  73. //bulgarian
  74. 'ca' => [
  75. 'format' => 'title first_name last_name',
  76. 'sort_by' => 'first_name',
  77. ],
  78. //catalan
  79. 'hr' => [
  80. 'format' => 'title first_name last_name',
  81. 'sort_by' => 'first_name',
  82. ],
  83. //croatian
  84. 'cs' => [
  85. 'format' => 'title first_name last_name',
  86. 'sort_by' => 'first_name',
  87. ],
  88. //czech
  89. 'da' => [
  90. 'format' => 'title first_name last_name',
  91. 'sort_by' => 'first_name',
  92. ],
  93. //danish
  94. //'dari' => ['format' => 'title first_name last_name', 'sort_by' => 'first_name'],
  95. 'nl' => [
  96. 'format' => 'title first_name last_name',
  97. 'sort_by' => 'first_name',
  98. ],
  99. //dutch
  100. 'en' => [
  101. 'format' => 'title first_name last_name',
  102. 'sort_by' => 'first_name',
  103. ],
  104. //english
  105. 'eo' => [
  106. 'format' => 'title first_name last_name',
  107. 'sort_by' => 'first_name',
  108. ],
  109. //esperanto
  110. 'et' => [
  111. 'format' => 'title first_name last_name',
  112. 'sort_by' => 'first_name',
  113. ],
  114. //estonian
  115. 'eu' => [
  116. 'format' => 'title first_name last_name',
  117. 'sort_by' => 'first_name',
  118. ],
  119. //basque
  120. 'fi' => [
  121. 'format' => 'title first_name last_name',
  122. 'sort_by' => 'first_name',
  123. ],
  124. //finnish
  125. 'fr' => [
  126. 'format' => 'title first_name last_name',
  127. 'sort_by' => 'first_name',
  128. ],
  129. //french
  130. 'fy' => [
  131. 'format' => 'title first_name last_name',
  132. 'sort_by' => 'first_name',
  133. ],
  134. //frisian
  135. //'friulian' => ['format' => 'title first_name last_name', 'sort_by' => 'first_name'],
  136. 'gl' => [
  137. 'format' => 'title last_name first_name',
  138. 'sort_by' => 'last_name',
  139. ],
  140. //galician
  141. 'ka' => [
  142. 'format' => 'title first_name last_name',
  143. 'sort_by' => 'first_name',
  144. ],
  145. //georgian
  146. 'de' => [
  147. 'format' => 'title first_name last_name',
  148. 'sort_by' => 'first_name',
  149. ],
  150. //german
  151. 'el' => [
  152. 'format' => 'title first_name last_name',
  153. 'sort_by' => 'first_name',
  154. ],
  155. //greek
  156. //'hawaiian' => ['format' => 'title first_name last_name', 'sort_by' => 'first_name'],
  157. 'he' => [
  158. 'format' => 'title first_name last_name',
  159. 'sort_by' => 'first_name',
  160. ],
  161. //hebrew
  162. 'hi' => [
  163. 'format' => 'title first_name last_name',
  164. 'sort_by' => 'first_name',
  165. ],
  166. //hindi
  167. 'hu' => [
  168. 'format' => 'title last_name first_name',
  169. 'sort_by' => 'last_name',
  170. ],
  171. // hungarian Eastern order
  172. 'is' => [
  173. 'format' => 'title first_name last_name',
  174. 'sort_by' => 'first_name',
  175. ],
  176. //icelandic
  177. 'id' => [
  178. 'format' => 'title first_name last_name',
  179. 'sort_by' => 'first_name',
  180. ],
  181. //indonesian
  182. 'ga' => [
  183. 'format' => 'title first_name last_name',
  184. 'sort_by' => 'first_name',
  185. ],
  186. //irish
  187. 'it' => [
  188. 'format' => 'title first_name last_name',
  189. 'sort_by' => 'first_name',
  190. ],
  191. //italian
  192. 'ja' => [
  193. 'format' => 'title last_name first_name',
  194. 'sort_by' => 'last_name',
  195. ],
  196. // japanese Eastern order
  197. 'ko' => [
  198. 'format' => 'title last_name first_name',
  199. 'sort_by' => 'last_name',
  200. ],
  201. // korean Eastern order
  202. //'latin' => ['format' => 'title first_name last_name', 'sort_by' => 'first_name'],
  203. 'lv' => [
  204. 'format' => 'title first_name last_name',
  205. 'sort_by' => 'first_name',
  206. ],
  207. //latvian
  208. 'lt' => [
  209. 'format' => 'title first_name last_name',
  210. 'sort_by' => 'first_name',
  211. ],
  212. //lithuanian
  213. 'mk' => [
  214. 'format' => 'title first_name last_name',
  215. 'sort_by' => 'first_name',
  216. ],
  217. //macedonian
  218. 'ms' => [
  219. 'format' => 'title last_name first_name',
  220. 'sort_by' => 'last_name',
  221. ],
  222. // malay Eastern order
  223. 'gv' => [
  224. 'format' => 'title first_name last_name',
  225. 'sort_by' => 'first_name',
  226. ],
  227. //manx
  228. 'mr' => [
  229. 'format' => 'title first_name last_name',
  230. 'sort_by' => 'first_name',
  231. ],
  232. //marathi
  233. //'middle_frisian' => ['format' => 'title first_name last_name', 'sort_by' => 'first_name'],
  234. //'mingo' => ['format' => 'title first_name last_name', 'sort_by' => 'first_name'],
  235. 'ne' => [
  236. 'format' => 'title first_name last_name',
  237. 'sort_by' => 'first_name',
  238. ],
  239. //nepali
  240. 'no' => [
  241. 'format' => 'title first_name last_name',
  242. 'sort_by' => 'first_name',
  243. ],
  244. //norwegian
  245. //'occitan' => ['format' => 'title first_name last_name', 'sort_by' => 'first_name'],
  246. 'ps' => [
  247. 'format' => 'title first_name last_name',
  248. 'sort_by' => 'first_name',
  249. ],
  250. //pashto
  251. 'fa' => [
  252. 'format' => 'title first_name last_name',
  253. 'sort_by' => 'first_name',
  254. ],
  255. //persian
  256. 'pl' => [
  257. 'format' => 'title first_name last_name',
  258. 'sort_by' => 'first_name',
  259. ],
  260. //polish
  261. 'pt' => [
  262. 'format' => 'title first_name last_name',
  263. 'sort_by' => 'first_name',
  264. ],
  265. // Portuguese
  266. 'qu' => [
  267. 'format' => 'title first_name last_name',
  268. 'sort_by' => 'first_name',
  269. ],
  270. // Quechua
  271. 'ro' => [
  272. 'format' => 'title first_name last_name',
  273. 'sort_by' => 'first_name',
  274. ],
  275. //romanian
  276. //'rumantsch' => ['format' => 'title first_name last_name', 'sort_by' => 'first_name'],
  277. 'ru' => [
  278. 'format' => 'title first_name last_name',
  279. 'sort_by' => 'first_name',
  280. ],
  281. //russian
  282. //'sanskrit' => ['format' => 'title first_name last_name', 'sort_by' => 'first_name'],
  283. 'sr' => [
  284. 'format' => 'title first_name last_name',
  285. 'sort_by' => 'first_name',
  286. ],
  287. //serbian
  288. 'sr_Cyrl' => [
  289. 'format' => 'title first_name last_name',
  290. 'sort_by' => 'first_name',
  291. ],
  292. //serbian_cyrillic
  293. 'zh_Hans' => [
  294. 'format' => 'title last_name first_name',
  295. 'sort_by' => 'last_name',
  296. ],
  297. // Eastern order //simpl_chinese
  298. 'sk' => [
  299. 'format' => 'title first_name last_name',
  300. 'sort_by' => 'first_name',
  301. ],
  302. //slovak
  303. 'sl' => [
  304. 'format' => 'title first_name last_name',
  305. 'sort_by' => 'first_name',
  306. ],
  307. //slovenian
  308. 'es' => [
  309. 'format' => 'title last_name, first_name',
  310. 'sort_by' => 'last_name',
  311. ],
  312. // spanish
  313. 'es_PE' => [
  314. 'format' => 'title last_name, first_name',
  315. 'sort_by' => 'last_name',
  316. ],
  317. // spanish PERU
  318. 'sw' => [
  319. 'format' => 'title first_name last_name',
  320. 'sort_by' => 'first_name',
  321. ],
  322. //swahili
  323. 'sv' => [
  324. 'format' => 'title first_name last_name',
  325. 'sort_by' => 'first_name',
  326. ],
  327. //swedish
  328. 'tl' => [
  329. 'format' => 'title first_name last_name',
  330. 'sort_by' => 'first_name',
  331. ],
  332. //tagalog
  333. 'ta' => [
  334. 'format' => 'title first_name last_name',
  335. 'sort_by' => 'first_name',
  336. ],
  337. // tamil
  338. 'th' => [
  339. 'format' => 'title first_name last_name',
  340. 'sort_by' => 'first_name',
  341. ],
  342. //thai
  343. 'zh_Hant' => [
  344. 'format' => 'title last_name first_name',
  345. 'sort_by' => 'last_name',
  346. ],
  347. // Eastern order //trad_chinese
  348. 'tr' => [
  349. 'format' => 'title first_name last_name',
  350. 'sort_by' => 'first_name',
  351. ],
  352. //turkish
  353. 'uk' => [
  354. 'format' => 'title first_name last_name',
  355. 'sort_by' => 'first_name',
  356. ],
  357. //ukrainian
  358. 'vi' => [
  359. 'format' => 'title last_name first_name',
  360. 'sort_by' => 'last_name',
  361. ],
  362. // Eastern order vietnamese
  363. 'cy' => [
  364. 'format' => 'title first_name last_name',
  365. 'sort_by' => 'first_name',
  366. ],
  367. //welsh
  368. 'yi' => [
  369. 'format' => 'title first_name last_name',
  370. 'sort_by' => 'first_name',
  371. ],
  372. //yiddish
  373. 'yo' => [
  374. 'format' => 'title first_name last_name',
  375. 'sort_by' => 'first_name',
  376. ]
  377. //yoruba
  378. ];