Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4124688
fi.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
984 B
Referenced Files
None
Subscribers
None
fi.js
View Options
/**
* Finnish (Suomi) language functions
*
* @author Santhosh Thottingal
*/
(
function
(
$
)
{
'use strict'
;
$
.
i18n
.
languages
.
fi
=
$
.
extend
(
{},
$
.
i18n
.
languages
[
'default'
],
{
convertGrammar
:
function
(
word
,
form
)
{
// vowel harmony flag
var
aou
=
word
.
match
(
/[aou][^äöy]*$/i
),
origWord
=
word
;
if
(
word
.
match
(
/wiki$/i
)
)
{
aou
=
false
;
}
// append i after final consonant
if
(
word
.
match
(
/[bcdfghjklmnpqrstvwxz]$/i
)
)
{
word
+=
'i'
;
}
switch
(
form
)
{
case
'genitive'
:
word
+=
'n'
;
break
;
case
'elative'
:
word
+=
(
aou
?
'sta'
:
'stä'
);
break
;
case
'partitive'
:
word
+=
(
aou
?
'a'
:
'ä'
);
break
;
case
'illative'
:
// Double the last letter and add 'n'
word
+=
word
.
slice
(
-
1
)
+
'n'
;
break
;
case
'inessive'
:
word
+=
(
aou
?
'ssa'
:
'ssä'
);
break
;
default
:
word
=
origWord
;
break
;
}
return
word
;
}
}
);
}(
jQuery
)
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 07:00 (2 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e1/a8/4ee49b281cecb1c5cdc505c91280
Default Alt Text
fi.js (984 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment