return $string;
}
- /*
+ /**
* Truncate a string of valid HTML to a specified length in bytes,
* appending an optional string (e.g. for ellipses), and return valid HTML
*
return $skipCount;
}
- /*
+ /**
* truncateHtml() helper function
* (a) push or pop $tag from $openTags as needed
* (b) clear $tag value
class LanguageBe_tarask extends Language {
/**
- * Plural form transformations
- *
- * $wordform1 - singular form (for 1, 21, 31, 41...)
- * $wordform2 - plural form (for 2, 3, 4, 22, 23, 24, 32, 33, 34...)
- * $wordform3 - plural form (for 0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 25, 26...)
- */
+ * Plural form transformations
+ *
+ * $wordform1 - singular form (for 1, 21, 31, 41...)
+ * $wordform2 - plural form (for 2, 3, 4, 22, 23, 24, 32, 33, 34...)
+ * $wordform3 - plural form (for 0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 25, 26...)
+ */
function convertPlural( $count, $forms ) {
if ( !count( $forms ) ) { return ''; }
}
}
- /*
+ /**
* The Belarusian language uses apostrophe sign,
* but the characters used for this could be both U+0027 and U+2019.
* This function unifies apostrophe sign in search index values
return $s;
}
- /*
+ /**
* Four-digit number should be without group commas (spaces)
* So "1 234 567", "12 345" but "1234"
*/
return ( abs( $count ) <= 1 ) ? $forms[0] : $forms[1];
}
- /*
+ /**
* Armenian numeric format is "12 345,67" but "1234,56"
*/
-
function commafy( $_ ) {
if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) );
return parent::parserConvert( $text, $parser );
}
- /*
+ /**
* A function wrapper:
* - if there is no selected variant, leave the link
* names as they were
$link = $oldlink;
}
- /*
+ /**
* We want our external link captions to be converted in variants,
* so we return the original text instead -{$text}-, except for URLs
*/
return $text;
}
- /*
+ /**
* An ugly function wrapper for parsing Image titles
* (to prevent image name conversion)
*/
/* Full code of function convertGrammar() is in development. Updates coming soon. */
return $word;
}
- /*
+
+ /**
* It fixes issue with ucfirst for transforming 'i' to 'İ'
- *
*/
function ucfirst ( $string ) {
if ( substr( $string, 0, 1 ) === 'i' ) {
}
}
- /*
+ /**
* It fixes issue with lcfirst for transforming 'I' to 'ı'
- *
*/
function lcfirst ( $string ) {
if ( substr( $string, 0, 1 ) === 'I' ) {
return $carray;
}
- /*
+ /**
* A function wrapper:
* - if there is no selected variant, leave the link
* names as they were
$link = $oldlink;
}
- /*
+ /**
* An ugly function wrapper for parsing Image titles
* (to prevent image name conversion)
*/
}
}
- /*
+ /**
* We want our external link captions to be converted in variants,
* so we return the original text instead -{$text}-, except for URLs
*/
}
}
- /*
+ /**
* It fixes issue with ucfirst for transforming 'i' to 'İ'
- *
*/
function ucfirst ( $string ) {
$variant = $this->getPreferredVariant();
return $string;
}
- /*
+ /**
* It fixes issue with lcfirst for transforming 'I' to 'ı'
- *
*/
function lcfirst ( $string ) {
$variant = $this->getPreferredVariant();
);
}
- /*
+ /**
* A function wrapper:
* - if there is no selected variant, leave the link
* names as they were
$link = $oldlink;
}
- /*
+ /**
* We want our external link captions to be converted in variants,
* so we return the original text instead -{$text}-, except for URLs
*/
return $text;
}
- /*
+ /**
* An ugly function wrapper for parsing Image titles
* (to prevent image name conversion)
*/
}
}
- /*
+ /**
* Four-digit number should be without group commas (spaces)
* See manual of style at http://ru.wikipedia.org/wiki/Википедия:Оформление_статей
* So "1 234 567", "12 345" but "1234"
return $carray;
}
- /*
+ /**
* A function wrapper:
* - if there is no selected variant, leave the link
* names as they were
$link = $oldlink;
}
- /*
+ /**
* We want our external link captions to be converted in variants,
* so we return the original text instead -{$text}-, except for URLs
*/
return $text;
}
- /*
+ /**
* An ugly function wrapper for parsing Image titles
* (to prevent image name conversion)
*/
}
}
- /*
+ /**
* Ukrainian numeric format is "12 345,67" but "1234,56"
*/
function commafy( $_ ) {