wiki.techinc.nl/languages/messages/MessagesSe.php
Bartosz Dziewoński 0313128b10 Use PHP 7 "\u{NNNN}" Unicode codepoint escapes in string literals
In cases where we're operating on text data (and not binary data),
use e.g. "\u{00A0}" to refer directly to the Unicode character
'NO-BREAK SPACE' instead of "\xc2\xa0" to specify the bytes C2h A0h
(which correspond to the UTF-8 encoding of that character). This
makes it easier to look up those mysterious sequences, as not all
are as recognizable as the no-break space.

This is not enforced by PHP, but I think we should write those in
uppercase and zero-padded to at least four characters, like the
Unicode standard does.

Note that not all "\xNN" escapes can be automatically replaced:
* We can't use Unicode escapes for binary data that is not UTF-8
  (e.g. in code converting from legacy encodings or testing the
  handling of invalid UTF-8 byte sequences).
* '\xNN' escapes in regular expressions in single-quoted strings
  are actually handled by PCRE and have to be dealt with carefully
  (those regexps should probably be changed to use the /u modifier).
* "\xNN" referring to ASCII characters ("\x7F" and lower) should
  probably be left as-is.

The replacements in this commit were done semi-manually by piping
the existing "\xNN" escapes through the following terrible Ruby
script I devised:

  chars = eval('"' + ARGV[0] + '"').force_encoding('utf-8')
  puts chars.split('').map{|char|
    '\\u{' + char.ord.to_s(16).upcase.rjust(4, '0') + '}'
  }.join('')

Change-Id: Idc3dee3a7fb5ebfaef395754d8859b18f1f8769a
2018-06-04 16:20:13 +00:00

139 lines
7.1 KiB
PHP
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/** Northern Sami (sámegiella)
*
* To improve a translation please visit https://translatewiki.net
*
* @ingroup Language
* @file
*
* @author Gálaniitoluodda
* @author Jeblad
* @author Kaganer
* @author Laila
* @author Linnea
* @author Skuolfi
* @author Teak
* @author The Evil IP address
* @author Trondtr
* @author לערי ריינהארט
*/
$namespaceNames = [
NS_MEDIA => 'Media',
NS_SPECIAL => 'Erenoamáš',
NS_TALK => 'Ságastallan',
NS_USER => 'Geavaheaddji',
NS_USER_TALK => 'Geavaheaddjeságastallan',
NS_PROJECT_TALK => '$1-ságastallan',
NS_FILE => 'Fiila',
NS_FILE_TALK => 'Fiilaságastallan',
NS_MEDIAWIKI => 'MediaWiki',
NS_MEDIAWIKI_TALK => 'MediaWiki-ságastallan',
NS_TEMPLATE => 'Málle',
NS_TEMPLATE_TALK => 'Málleságastallan',
NS_HELP => 'Veahkki',
NS_HELP_TALK => 'Veahkkeságastallan',
NS_CATEGORY => 'Kategoriija',
NS_CATEGORY_TALK => 'Kategoriijaságastallan',
];
$namespaceAliases = [
'Doaimmat' => NS_SPECIAL,
];
$specialPageAliases = [
'Activeusers' => [ 'Aktiivvalaš_geavaheaddjit' ],
'Allmessages' => [ 'Buot_systemadieđáhusat', 'Buot_vuogádatdieđáhusat' ],
'Allpages' => [ 'Buot_siiddut' ],
'Ancientpages' => [ 'Dološ_siiddut' ],
'Badtitle' => [ 'Veadjemeahttun_bajilčála' ],
'Blankpage' => [ 'Guoros_siidu' ],
'Block' => [ 'Hehtte', 'Hehtte_geavaheaddji', 'Hehtte_IP' ],
'Booksources' => [ 'Girjegáldut' ],
'BrokenRedirects' => [ 'Boatkanan_stivremat', 'Boatkanan_ođđasitstivremat' ],
'Categories' => [ 'Kategoriijat' ],
'ChangeEmail' => [ 'Rievdat_E-poastta' ],
'ComparePages' => [ 'Veardit_siidduid' ],
'Confirmemail' => [ 'Sihkaraste_e-poastta' ],
'Contributions' => [ 'Rievdadusat' ],
'CreateAccount' => [ 'Ráhkat_dovddaldaga', 'Ráhkat_konttu' ],
'DeletedContributions' => [ 'Sihkkojuvvon_rievdadusat' ],
'DoubleRedirects' => [ 'Guoktegeardásaš_ođđasitstivremat' ],
'EditWatchlist' => [ 'Rievdat_čuovvunlisttu' ],
'Emailuser' => [ 'Sádde_e-poastta' ],
'Export' => [ 'Olggosfievrrit_siidduid' ],
'Import' => [ 'Sisafievrrit' ],
'BlockList' => [ 'Hehttenlistu', 'Listu_hehttemiin' ],
'Listadmins' => [ 'Administráhtorlistu', 'Listu_administráhtoriin' ],
'Listbots' => [ 'Bohttalistu', 'Listu_bohtain' ],
'Listfiles' => [ 'Fiilalogahallan' ],
'Listgrouprights' => [ 'Listu_joavkkuid_vuoigatvuođain' ],
'Listredirects' => [ 'Stivrenlistu', 'Listu_stivremiin', 'Listu_ođđasitstivremiin' ],
'Listusers' => [ 'Geavaheaddjelistu', 'Listu_geavaheddjiin' ],
'Log' => [ 'Loggat', 'Logga' ],
'Lonelypages' => [ 'Oarbbes_siiddut' ],
'Longpages' => [ 'Guhkes_siiddut' ],
'MIMEsearch' => [ 'MIME-ohcan' ],
'Movepage' => [ 'Sirdde_siiddu' ],
'Mycontributions' => [ 'Mu_rievdadusat' ],
'Mypage' => [ 'Mu_siidu' ],
'Mytalk' => [ 'Mu_ságastallan' ],
'Newimages' => [ 'Ođđa_govat', 'Ođđa_fiillat' ],
'Newpages' => [ 'Ođđa_siiddut' ],
'Preferences' => [ 'Válljemat', 'Ásahusat' ],
'Protectedpages' => [ 'Suodjaluvvon_siiddut' ],
'Protectedtitles' => [ 'Suodjaluvvon_bajilčállagat', 'Suodjaluvvon_siidonamat' ],
'Randompage' => [ 'Summal', 'Summal_siidu' ],
'Randomredirect' => [ 'Summal_ođđasitstivren' ],
'Recentchanges' => [ 'Varas_rievdadusat' ],
'Revisiondelete' => [ 'Sihko_veršuvnna' ],
'Search' => [ 'Oza' ],
'Shortpages' => [ 'Oanehis_siiddut' ],
'Specialpages' => [ 'Erenoamáš_siiddut', 'Doaibmasiiddut' ],
'Statistics' => [ 'Statistihkat' ],
'Unblock' => [ 'Sihko_hehttema' ],
'Uncategorizedcategories' => [ 'Klassifiserekeahtes_kategoriijat' ],
'Uncategorizedimages' => [ 'Klassifiserekeahtes_fiillat', 'Klassifiserekeahtes_govat' ],
'Uncategorizedpages' => [ 'Klassifiserekeahtes_siiddut' ],
'Uncategorizedtemplates' => [ 'Klassifiserekeahtes_mállet' ],
'Undelete' => [ 'Máhccat' ],
'Unusedcategories' => [ 'Geavatkeahtes_kategoriijat' ],
'Unusedimages' => [ 'Geavatkeahtes_govat', 'Geavatkeahtes_fiillat' ],
'Unusedtemplates' => [ 'Geavatkeahtes_mállet' ],
'Unwatchedpages' => [ 'Čuovotkeahtes_siiddut' ],
'Upload' => [ 'Sádde_fiilla' ],
'Userlogin' => [ 'Logge_sisa' ],
'Userlogout' => [ 'Logge_olggos' ],
'Userrights' => [ 'Geavaheaddjevuoigatvuođat' ],
'Version' => [ 'Veršuvdna' ],
'Wantedcategories' => [ 'Kategoriijasávaldagat' ],
'Wantedfiles' => [ 'Fiilasávaldagat', 'Govvasávaldagat' ],
'Wantedpages' => [ 'Siidosávaldagat' ],
'Wantedtemplates' => [ 'Mállesávaldagat' ],
'Watchlist' => [ 'Čuovvunlistu' ],
'Withoutinterwiki' => [ 'Interwikihis_siiddut', 'Giellaliŋkkahis_siiddut', 'Giellaleaŋkkahis_siiddut' ],
];
$magicWords = [
'redirect' => [ '0', '#STIVREN', '#OĐĐASITSTIVREN', '#REDIRECT' ],
'notoc' => [ '0', '__IISISDOALLU__', '__IISIS__', '__NOTOC__' ],
'nogallery' => [ '0', '__IIGALLERIIJA__', '__NOGALLERY__' ],
'toc' => [ '0', '__SISDOALLU__', ' __SIS__', '__TOC__' ],
'noeditsection' => [ '0', '__IIRIEVDADITOASI__', '__NOEDITSECTION__' ],
'numberofarticles' => [ '1', 'ARTIHKKALIIDMEARRI', ' ARTIHKALMEARRI', 'NUMBEROFARTICLES' ],
'numberoffiles' => [ '1', 'FIILLAIDMEARRI', 'FIILAMEARRI', ' GOVAIDMEARRI', ' GOVVAMEARRI', 'NUMBEROFFILES' ],
'numberofusers' => [ '1', 'GEAVAHEDDJIIDMEARRI', ' GEAVAHEADDJIMEARRI', ' GEAVAHEADDJEMEARRI', 'NUMBEROFUSERS' ],
'numberofactiveusers' => [ '1', 'AKTIIVAGEAVAHEDDJIIDMEARRI', ' AKTIIVAGEAVAHEADDJIMEARRI', ' AKTIIVAGEAVAHEADDJEMEARRI', 'NUMBEROFACTIVEUSERS' ],
'numberofedits' => [ '1', 'RIEVDADUSAIDMEARRI', ' RIEVDADUSMEARRI', 'NUMBEROFEDITS' ],
'subst' => [ '0', 'LIIBME:', 'SUBST:' ],
'img_thumbnail' => [ '1', 'mini', 'thumb', 'thumbnail' ],
'img_manualthumb' => [ '1', 'mini=$1', 'thumbnail=$1', 'thumb=$1' ],
'img_right' => [ '1', 'olgeš', 'right' ],
'img_left' => [ '1', 'gurut', 'left' ],
'img_center' => [ '1', 'gasku', 'center', 'centre' ],
'img_link' => [ '1', 'liŋka=$1', 'link=$1' ],
];
$separatorTransformTable = [ ',' => "\u{00A0}", '.' => ',' ];
$linkTrail = '/^(:?[a-zàáâçčʒǯđðéèêëǧǥȟíìîïıǩŋñóòôõßšŧúùûýÿüžþæøåäö]+)(.*)$/sDu';