Write Latin and other scripts with captial letter
authorFomafix <fomafix@googlemail.com>
Fri, 5 Oct 2018 16:37:53 +0000 (18:37 +0200)
committerFomafix <fomafix@googlemail.com>
Fri, 5 Oct 2018 16:49:08 +0000 (18:49 +0200)
Change-Id: I16c660e54191b63cd6eb3407cb00504665930c4e

14 files changed:
UPGRADE
includes/DefaultSettings.php
includes/collation/IcuCollation.php
includes/search/SearchMySQL.php
includes/search/SearchSqlite.php
languages/classes/LanguageOs.php
languages/classes/LanguageTg.php
languages/data/Names.php
maintenance/language/generateCollationData.php
maintenance/updateDoubleWidthSearch.php
resources/src/jquery/jquery.highlightText.js
resources/src/mediawiki.language/languages/os.js
tests/phpunit/languages/classes/LanguageSrTest.php
tests/phpunit/languages/classes/LanguageUzTest.php

diff --git a/UPGRADE b/UPGRADE
index 8fb187d..6b38b09 100644 (file)
--- a/UPGRADE
+++ b/UPGRADE
@@ -107,7 +107,7 @@ will probably want to update the search index.
 
 In the "maintenance" directory, run the updateDoubleWidthSearch.php
 script.  This will update the searchindex table for those pages that
-contain double-byte latin characters.
+contain double-byte Latin characters.
 
 == Upgrading from 1.10 or earlier ==
 
index 2668cd7..4fee5d7 100644 (file)
@@ -3117,7 +3117,7 @@ $wgDisableTitleConversion = false;
 $wgDefaultLanguageVariant = false;
 
 /**
- * Whether to enable the pig latin variant of English (en-x-piglatin),
+ * Whether to enable the pig Latin variant of English (en-x-piglatin),
  * used to ease variant development work.
  */
 $wgUsePigLatinVariant = false;
index ad94d47..b23085d 100644 (file)
@@ -75,8 +75,8 @@ class IcuCollation extends Collation {
         * letters (denoted by keys starting with '-').
         *
         * These are additions to (or subtractions from) the data stored in the
-        * first-letters-root.php data file (which among others includes full basic latin,
-        * cyrillic and greek alphabets).
+        * first-letters-root.php data file (which among others includes full basic Latin,
+        * Cyrillic and Greek alphabets).
         *
         * "Separate letter" is a letter that would have a separate heading/section
         * for it in a dictionary or a phone book in this language. This data isn't
index 806db7d..9f10697 100644 (file)
@@ -144,7 +144,7 @@ class SearchMySQL extends SearchDatabase {
                } else {
                        // For Chinese, words may legitimately abut other words in the text literal.
                        // Don't add \b boundary checks... note this could cause false positives
-                       // for latin chars.
+                       // for Latin chars.
                }
                return $regex;
        }
index 0bc2d37..6332ea2 100644 (file)
@@ -137,7 +137,7 @@ class SearchSqlite extends SearchDatabase {
                } else {
                        // For Chinese, words may legitimately abut other words in the text literal.
                        // Don't add \b boundary checks... note this could cause false positives
-                       // for latin chars.
+                       // for Latin chars.
                }
                return $regex;
        }
index d374c85..60b3953 100644 (file)
@@ -34,10 +34,10 @@ class LanguageOs extends Language {
         * Invoked with {{grammar:case|word}}
         *
         * Depending on word there are four different ways of converting to other cases.
-        * 1) Word consist of not cyrillic letters or is an abbreviation.
+        * 1) Word consist of not Cyrillic letters or is an abbreviation.
         *              Then result word is: word + hyphen + case ending.
         *
-        * 2) Word consist of cyrillic letters.
+        * 2) Word consist of Cyrillic letters.
         * 2.1) Word is in plural.
         *              Then result word is: word - last letter + case ending. Ending of allative case here is 'æм'.
         *
@@ -77,7 +77,7 @@ class LanguageOs extends Language {
                        $jot = 'й';
                } elseif ( preg_match( "/у$/u", $word ) ) {
                        # Checking if $word ends on 'у'. 'У'
-                       # can be either consonant 'W' or vowel 'U' in cyrillic Ossetic.
+                       # can be either consonant 'W' or vowel 'U' in Cyrillic Ossetic.
                        # Examples: {{grammar:genitive|аунеу}} = аунеуы, {{grammar:genitive|лæппу}} = лæппуйы.
                        if ( !preg_match( "/[аæеёиоыэюя]$/u", mb_substr( $word, -2, 1 ) ) ) {
                                $jot = 'й';
index ebc0d6c..93333f8 100644 (file)
@@ -22,7 +22,7 @@
  */
 
 /**
- * Converts Tajiki to latin orthography
+ * Converts Tajiki to Latin orthography
  *
  * @ingroup Language
  */
index 4a648f9..b038f08 100644 (file)
@@ -193,7 +193,7 @@ class Names {
                'he' => 'עברית', # Hebrew
                'hi' => 'हिन्दी', # Hindi
                'hif' => 'Fiji Hindi', # Fijian Hindi (multiple scripts - defaults to Latin)
-               'hif-latn' => 'Fiji Hindi', # Fiji Hindi (latin)
+               'hif-latn' => 'Fiji Hindi', # Fiji Hindi (Latin script)
                'hil' => 'Ilonggo', # Hiligaynon
                'ho' => 'Hiri Motu', # Hiri Motu
                'hr' => 'hrvatski', # Croatian
index 97b46f7..a105920 100644 (file)
@@ -263,7 +263,7 @@ class GenerateCollationData extends Maintenance {
                // character has a longer primary weight sequence with an initial
                // portion equal to the first character, then remove the second
                // character. This avoids having characters like U+A732 (double A)
-               // polluting the basic latin sort area.
+               // polluting the basic Latin sort area.
 
                foreach ( $this->groups as $weight => $group ) {
                        if ( preg_match( '/(\.[0-9A-F]*)\./', $weight, $m ) ) {
index 810af57..d28ae27 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Normalize double-byte latin UTF-8 characters
+ * Normalize double-byte Latin UTF-8 characters
  *
  * Usage: php updateDoubleWidthSearch.php
  *
@@ -26,7 +26,7 @@
 require_once __DIR__ . '/Maintenance.php';
 
 /**
- * Maintenance script to normalize double-byte latin UTF-8 characters.
+ * Maintenance script to normalize double-byte Latin UTF-8 characters.
  *
  * @ingroup Maintenance
  */
@@ -34,7 +34,7 @@ class UpdateDoubleWidthSearch extends Maintenance {
 
        public function __construct() {
                parent::__construct();
-               $this->addDescription( 'Script to normalize double-byte latin UTF-8 characters' );
+               $this->addDescription( 'Script to normalize double-byte Latin UTF-8 characters' );
                $this->addOption( 'q', 'quiet', false, true );
                $this->addOption(
                        'l',
index 782d711..7205620 100644 (file)
@@ -35,7 +35,7 @@
                        var i, match, pos, spannode, middlebit, middleclone;
                        if ( node.nodeType === Node.TEXT_NODE ) {
                                // TODO - need to be smarter about the character matching here.
-                               // non latin characters can make regex think a new word has begun: do not use \b
+                               // non Latin characters can make regex think a new word has begun: do not use \b
                                // http://stackoverflow.com/questions/3787072/regex-wordwrap-with-utf8-characters-in-js
                                // look for an occurrence of our pattern and store the starting position
                                match = node.data.match( pat );
index 14c9840..b7367b2 100644 (file)
@@ -26,7 +26,7 @@ mw.language.convertGrammar = function ( word, form ) {
                // Checking if word ends on one of the vowels: е, ё, и, о, ы, э, ю, я.
                jot = 'й';
        } else if ( word.match( /у$/i ) ) {
-               // Checking if word ends on 'у'. 'У' can be either consonant 'W' or vowel 'U' in cyrillic Ossetic.
+               // Checking if word ends on 'у'. 'У' can be either consonant 'W' or vowel 'U' in Cyrillic Ossetic.
                // Examples: {{grammar:genitive|аунеу}} = аунеуы, {{grammar:genitive|лæппу}} = лæппуйы.
 
                if ( !word.slice( -2, -1 ).match( /[аæеёиоыэюя]$/i ) ) {
index 30b4df8..b846c56 100644 (file)
@@ -41,11 +41,11 @@ class LanguageSrTest extends LanguageClassesTestCase {
        public function testMixedConversions() {
                $this->assertCyrillic(
                        'шђчћжШЂЧЋЖ - šđčćž',
-                       'Mostly cyrillic characters'
+                       'Mostly Cyrillic characters'
                );
                $this->assertLatin(
                        'šđč枊ĐČĆŽ - шђчћж',
-                       'Mostly latin characters'
+                       'Mostly Latin characters'
                );
        }
 
@@ -54,11 +54,11 @@ class LanguageSrTest extends LanguageClassesTestCase {
         */
        public function testSameAmountOfLatinAndCyrillicGetConverted() {
                $this->assertConverted(
-                       '4 latin: šđčć | 4 cyrillic: шђчћ',
+                       '4 Latin: šđčć | 4 Cyrillic: шђчћ',
                        'sr-ec'
                );
                $this->assertConverted(
-                       '4 latin: šđčć | 4 cyrillic: шђчћ',
+                       '4 Latin: šđčć | 4 Cyrillic: шђчћ',
                        'sr-el'
                );
        }
@@ -211,7 +211,7 @@ class LanguageSrTest extends LanguageClassesTestCase {
 
        /**
         * Verifiy the given Cyrillic text is not converted when using
-        * using the cyrillic variant and converted to Latin when using
+        * using the Cyrillic variant and converted to Latin when using
         * the Latin variant.
         * @param string $text Text to convert
         * @param string $msg Optional message
index 367226d..18b2031 100644 (file)
@@ -90,7 +90,7 @@ class LanguageUzTest extends LanguageClassesTestCase {
 
        /**
         * Verifiy the given Cyrillic text is not converted when using
-        * using the cyrillic variant and converted to Latin when using
+        * using the Cyrillic variant and converted to Latin when using
         * the Latin variant.
         * @param string $text Text to convert
         * @param string $msg Optional message