wiki.techinc.nl/languages/messages/MessagesWa.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

85 lines
2.5 KiB
PHP

<?php
/** Walloon (walon)
*
* To improve a translation please visit https://translatewiki.net
*
* @ingroup Language
* @file
*
* @author Lucyin
* @author Srtxg
* @author Urhixidur
* @author לערי ריינהארט
*/
$fallback = 'fr';
# lists "no preferences", normall (long) walloon date,
# short walloon date, and ISO format
# MW_DATE_DMY is alias for long format, as it is dd mmmmm yyyy.
$datePreferences = [
'default',
'dmy',
'walloon short',
'ISO 8601'
];
$datePreferenceMigrationMap = [
0 => 'default',
2 => 'dmy',
4 => 'walloon short',
];
$defaultDateFormat = 'dmy';
$dateFormats = [
'walloon short time' => 'H:i'
];
$namespaceNames = [
NS_MEDIA => 'Media',
NS_SPECIAL => 'Sipeciås',
NS_TALK => 'Copene',
NS_USER => 'Uzeu',
NS_USER_TALK => 'Uzeu_copene',
NS_PROJECT_TALK => '$1_copene',
NS_FILE => 'Imådje',
NS_FILE_TALK => 'Imådje_copene',
NS_MEDIAWIKI => 'MediaWiki',
NS_MEDIAWIKI_TALK => 'MediaWiki_copene',
NS_TEMPLATE => 'Modele',
NS_TEMPLATE_TALK => 'Modele_copene',
NS_HELP => 'Aidance',
NS_HELP_TALK => 'Aidance_copene',
NS_CATEGORY => 'Categoreye',
NS_CATEGORY_TALK => 'Categoreye_copene',
];
// Remove French aliases
$namespaceGenderAliases = [];
$specialPageAliases = [
'Allpages' => [ 'Totes_les_pådjes' ],
'Block' => [ 'Bloker', 'Blocaedje' ],
'Categories' => [ 'Categoreyes' ],
'Listusers' => [ 'Djivêye_des_uzeus' ],
'Log' => [ 'Djournå', 'Djournås' ],
'Preferences' => [ 'Preferinces' ],
'Prefixindex' => [ 'Indecse_pa_betchete' ],
'Search' => [ 'Cweri' ],
'Specialpages' => [ 'Pådjes_sipeciåles' ],
'Statistics' => [ 'Sitatistikes' ],
'Undelete' => [ 'Rapexhî' ],
'Upload' => [ 'Eberweter', 'Eberwetaedje' ],
'Userlogin' => [ 'Elodjaedje' ],
'Userlogout' => [ 'Dislodjaedje' ],
'Version' => [ 'Modêye' ],
'Watchlist' => [ 'Pådjes_shuvowes' ],
];
# definixha del cogne po les limeros
# (number format definition)
# en: 12,345.67 -> wa: 12 345,67
$separatorTransformTable = [ ',' => "\u{00A0}", '.' => ',' ];
# $linkTrail = '/^([a-zåâêîôûçéèA-ZÅÂÊÎÔÛÇÉÈ]+)(.*)$/sDu';
$linkTrail = '/^([a-zåâêîôûçéè]+)(.*)$/sDu';