Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Switch to de_DE
nl_NL doesn't seem to exist on the ci server.
  • Loading branch information
markstory committed Jun 19, 2012
1 parent 001e89b commit 77fc8a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Utility/CakeNumberTest.php
Expand Up @@ -491,7 +491,7 @@ public function testToReadableSize() {
*/
public function testReadableSizeLocalized() {
$restore = setlocale(LC_NUMERIC, 0);
setlocale(LC_NUMERIC, 'nl_NL');
setlocale(LC_NUMERIC, 'de_DE');
$result = $this->Number->toReadableSize(1321205);
$this->assertEquals('1,26 MB', $result);

Expand Down

2 comments on commit 77fc8a9

@renan
Copy link
Contributor

@renan renan commented on 77fc8a9 Jun 19, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps you need to install the locale on the server.

Once I was trying to use nl_NL.UTF8 but only the nl_NL was installed. Check this out: http://serverfault.com/questions/54591/how-to-install-change-locale-on-debian

@markstory
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its not a huge deal as nl_NL and de_DE have the same number formatting rules, which is what I wanted.

Please sign in to comment.