summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageCy.php
diff options
context:
space:
mode:
Diffstat (limited to 'languages/classes/LanguageCy.php')
-rw-r--r--languages/classes/LanguageCy.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/languages/classes/LanguageCy.php b/languages/classes/LanguageCy.php
new file mode 100644
index 00000000..aea24019
--- /dev/null
+++ b/languages/classes/LanguageCy.php
@@ -0,0 +1,21 @@
+<?php
+/** Welsh (Cymraeg)
+ *
+ * @addtogroup Language
+ *
+ * @author Niklas Laxström
+ */
+class LanguageCy extends Language {
+ function convertPlural( $count, $forms ) {
+ if ( !count($forms) ) { return ''; }
+ $forms = $this->preConvertPlural( $forms, 6 );
+ $count = abs( $count );
+ if ( $count >= 0 && $count <= 3 ) {
+ return $forms[$count];
+ } elseif ( $count == 6 ) {
+ return $forms[4];
+ } else {
+ return $forms[5];
+ }
+ }
+}