* Number format for Khmer (no thousand separator, ',' as decimal separator)
This commit is contained in:
parent
fcc3a7dbf2
commit
d6490bb56d
2 changed files with 21 additions and 0 deletions
17
languages/classes/LanguageKm.php
Normal file
17
languages/classes/LanguageKm.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
/** Khmer (ភាសាខ្មែរ)
|
||||
*
|
||||
* @ingroup Language
|
||||
*
|
||||
* @author Niklas Laxström
|
||||
*/
|
||||
class LanguageKm extends Language {
|
||||
function commafy($_) {
|
||||
/* NO-op for Khmer. Cannot use
|
||||
* $separatorTransformTable = array( ',' => '' )
|
||||
* That would break when parsing and doing strstr '' => 'foo';
|
||||
*/
|
||||
return $_;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -29,6 +29,10 @@ $digitTransformTable = array(
|
|||
'9' => '៩', # ៩
|
||||
);
|
||||
|
||||
$separatorTransformTable = array(
|
||||
'.' => ','
|
||||
);
|
||||
|
||||
$datePreferences = array(
|
||||
'default',
|
||||
'km',
|
||||
|
|
|
|||
Loading…
Reference in a new issue