summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageEt.php
diff options
context:
space:
mode:
Diffstat (limited to 'languages/classes/LanguageEt.php')
-rw-r--r--languages/classes/LanguageEt.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/languages/classes/LanguageEt.php b/languages/classes/LanguageEt.php
new file mode 100644
index 00000000..92843406
--- /dev/null
+++ b/languages/classes/LanguageEt.php
@@ -0,0 +1,21 @@
+<?php
+/** Estonian (Eesti)
+ *
+ * @package MediaWiki
+ * @subpackage Language
+ *
+ */
+
+class LanguageEt extends Language {
+ /**
+ * Avoid grouping whole numbers between 0 to 9999
+ */
+ function commafy($_) {
+ if (!preg_match('/^\d{1,4}$/',$_)) {
+ return strrev((string)preg_replace('/(\d{3})(?=\d)(?!\d*\.)/','$1,',strrev($_)));
+ } else {
+ return $_;
+ }
+ }
+}
+?>