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
Merge "Fix the (un)watch token to include the namespace name."
[lhc/web/wiklou.git]
/
languages
/
classes
/
LanguageHy.php
diff --git
a/languages/classes/LanguageHy.php
b/languages/classes/LanguageHy.php
index
5079813
..
b7767eb
100644
(file)
--- a/
languages/classes/LanguageHy.php
+++ b/
languages/classes/LanguageHy.php
@@
-33,8
+33,8
@@
class LanguageHy extends Language {
* Convert from the nominative form of a noun to some other case
* Invoked with {{grammar:case|word}}
*
* Convert from the nominative form of a noun to some other case
* Invoked with {{grammar:case|word}}
*
- * @param
$word string
- * @param
$case string
+ * @param
string $word
+ * @param
string $case
* @return string
*/
function convertGrammar( $word, $case ) {
* @return string
*/
function convertGrammar( $word, $case ) {
@@
-49,17
+49,18
@@
class LanguageHy extends Language {
# join and array_slice instead mb_substr
$ar = array();
preg_match_all( '/./us', $word, $ar );
# join and array_slice instead mb_substr
$ar = array();
preg_match_all( '/./us', $word, $ar );
- if ( !preg_match( "/[a-zA-Z_]/us", $word ) )
+ if ( !preg_match( "/[a-zA-Z_]/us", $word ) )
{
switch ( $case ) {
case 'genitive': # սեռական հոլով
switch ( $case ) {
case 'genitive': # սեռական հոլով
- if ( join( '', array_slice( $ar[0], -1 ) ) == 'ա' )
+ if ( join( '', array_slice( $ar[0], -1 ) ) == 'ա' )
{
$word = join( '', array_slice( $ar[0], 0, -1 ) ) . 'այի';
$word = join( '', array_slice( $ar[0], 0, -1 ) ) . 'այի';
- elseif ( join( '', array_slice( $ar[0], -1 ) ) == 'ո' )
+ } elseif ( join( '', array_slice( $ar[0], -1 ) ) == 'ո' ) {
$word = join( '', array_slice( $ar[0], 0, -1 ) ) . 'ոյի';
$word = join( '', array_slice( $ar[0], 0, -1 ) ) . 'ոյի';
- elseif ( join( '', array_slice( $ar[0], -4 ) ) == 'գիրք' )
+ } elseif ( join( '', array_slice( $ar[0], -4 ) ) == 'գիրք' ) {
$word = join( '', array_slice( $ar[0], 0, -4 ) ) . 'գրքի';
$word = join( '', array_slice( $ar[0], 0, -4 ) ) . 'գրքի';
- else
+ } else {
$word .= 'ի';
$word .= 'ի';
+ }
break;
case 'dative': # Տրական հոլով
# stub
break;
case 'dative': # Տրական հոլով
# stub
@@
-74,13
+75,14
@@
class LanguageHy extends Language {
# stub
break;
}
# stub
break;
}
+ }
return $word;
}
/**
* Armenian numeric format is "12 345,67" but "1234,56"
*
return $word;
}
/**
* Armenian numeric format is "12 345,67" but "1234,56"
*
- * @param
$_ string
+ * @param
string $_
*
* @return string
*/
*
* @return string
*/