summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageBg.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2006-10-11 20:21:25 +0000
committerPierre Schmitz <pierre@archlinux.de>2006-10-11 20:21:25 +0000
commitd81f562b712f2387fa02290bf2ca86392ab356f2 (patch)
treed666cdefbe6ac320827a2c6cb473581b46e22c4c /languages/classes/LanguageBg.php
parent183851b06bd6c52f3cae5375f433da720d410447 (diff)
Aktualisierung auf Version 1.8.1
Diffstat (limited to 'languages/classes/LanguageBg.php')
-rw-r--r--languages/classes/LanguageBg.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/languages/classes/LanguageBg.php b/languages/classes/LanguageBg.php
new file mode 100644
index 00000000..4884c2a8
--- /dev/null
+++ b/languages/classes/LanguageBg.php
@@ -0,0 +1,25 @@
+<?php
+/** Bulgarian (Български)
+ *
+ * @package MediaWiki
+ * @subpackage Language
+ */
+
+/**
+ * @package MediaWiki
+ * @subpackage Language
+ */
+class LanguageBg extends Language {
+ /**
+ * ISO number formatting: 123 456 789,99.
+ * Avoid tripple grouping by numbers with whole part up to 4 digits.
+ */
+ function commafy($_) {
+ if (!preg_match('/^\d{1,4}$/',$_)) {
+ return strrev((string)preg_replace('/(\d{3})(?=\d)(?!\d*\.)/','$1,',strrev($_)));
+ } else {
+ return $_;
+ }
+ }
+}
+?>