Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4109866
ru.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
866 B
Referenced Files
None
Subscribers
None
ru.js
View Options
/**
* Russian (Русский) language functions
*/
(
function
(
$
)
{
'use strict'
;
$
.
i18n
.
languages
.
ru
=
$
.
extend
(
{},
$
.
i18n
.
languages
[
'default'
],
{
convertGrammar
:
function
(
word
,
form
)
{
if
(
form
===
'genitive'
)
{
// родительный падеж
if
(
word
.
slice
(
-
1
)
===
'ь'
)
{
word
=
word
.
slice
(
0
,
-
1
)
+
'я'
;
}
else
if
(
word
.
slice
(
-
2
)
===
'ия'
)
{
word
=
word
.
slice
(
0
,
-
2
)
+
'ии'
;
}
else
if
(
word
.
slice
(
-
2
)
===
'ка'
)
{
word
=
word
.
slice
(
0
,
-
2
)
+
'ки'
;
}
else
if
(
word
.
slice
(
-
2
)
===
'ти'
)
{
word
=
word
.
slice
(
0
,
-
2
)
+
'тей'
;
}
else
if
(
word
.
slice
(
-
2
)
===
'ды'
)
{
word
=
word
.
slice
(
0
,
-
2
)
+
'дов'
;
}
else
if
(
word
.
slice
(
-
3
)
===
'ник'
)
{
word
=
word
.
slice
(
0
,
-
3
)
+
'ника'
;
}
}
return
word
;
}
}
);
}(
jQuery
)
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 21:17 (5 d, 13 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
10/e6/fba9a14bf2a0a203cad16f974da8
Default Alt Text
ru.js (866 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment