dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Localisation updates from https://translatewiki.net.
[lhc/web/wiklou.git]
/
languages
/
Language.php
diff --git
a/languages/Language.php
b/languages/Language.php
index
9db7dec
..
8d3984d
100644
(file)
--- a/
languages/Language.php
+++ b/
languages/Language.php
@@
-167,7
+167,7
@@
class Language {
* The form is '/(?:([strong ltr codepoint])|([strong rtl codepoint]))/u' .
*
* Generated by UnicodeJS (see tools/strongDir) from the UCD; see
* The form is '/(?:([strong ltr codepoint])|([strong rtl codepoint]))/u' .
*
* Generated by UnicodeJS (see tools/strongDir) from the UCD; see
- * https://
git.wikimedia.org/summary/unicodejs.git
.
+ * https://
phabricator.wikimedia.org/diffusion/GUJS/
.
*/
// @codingStandardsIgnoreStart
// @codeCoverageIgnoreStart
*/
// @codingStandardsIgnoreStart
// @codeCoverageIgnoreStart
@@
-178,6
+178,7
@@
class Language {
/**
* Get a cached or new language object for a given language code
* @param string $code
/**
* Get a cached or new language object for a given language code
* @param string $code
+ * @throws MWException
* @return Language
*/
static function factory( $code ) {
* @return Language
*/
static function factory( $code ) {
@@
-3267,7
+3268,7
@@
class Language {
}
}
}
}
- return $number;
+ return
(string)
$number;
}
/**
}
/**
@@
-4279,7
+4280,7
@@
class Language {
*
* @since 1.28
* @param Language $lang
*
* @since 1.28
* @param Language $lang
- * @return bool
ean
+ * @return bool
*/
public function equals( Language $lang ) {
return $lang->getCode() === $this->mCode;
*/
public function equals( Language $lang ) {
return $lang->getCode() === $this->mCode;
@@
-4309,7
+4310,7
@@
class Language {
*/
public function getHtmlCode() {
if ( is_null( $this->mHtmlCode ) ) {
*/
public function getHtmlCode() {
if ( is_null( $this->mHtmlCode ) ) {
- $this->mHtmlCode =
wfBCP
47( $this->getCode() );
+ $this->mHtmlCode =
LanguageCode::bcp
47( $this->getCode() );
}
return $this->mHtmlCode;
}
}
return $this->mHtmlCode;
}
@@
-4343,7
+4344,7
@@
class Language {
/**
* @param string $code
/**
* @param string $code
- * @param bool
ean
$fallback Whether we're going through language fallback chain
+ * @param bool $fallback Whether we're going through language fallback chain
* @return string Name of the language class
*/
public static function classFromCode( $code, $fallback = true ) {
* @return string Name of the language class
*/
public static function classFromCode( $code, $fallback = true ) {