summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-17 10:24:49 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-17 10:24:49 -0400
commit46e9c1fb2ce969caec85df64b2b1d364e39a149c (patch)
tree49472956b412880aa11d3f14b26f9f752ad02765
parentf04d9016a36973b4480704f0347da3d0de459f3b (diff)
Fix bug when creating project in Dutch
-rw-r--r--app/Locale/nl_NL/translations.php2
-rw-r--r--tests/units/ProjectTest.php14
2 files changed, 15 insertions, 1 deletions
diff --git a/app/Locale/nl_NL/translations.php b/app/Locale/nl_NL/translations.php
index 88c55155..4ddedc7b 100644
--- a/app/Locale/nl_NL/translations.php
+++ b/app/Locale/nl_NL/translations.php
@@ -166,7 +166,7 @@ return array(
'Ready' => 'Klaar',
'Backlog' => 'En attente',
'Work in progress' => 'In behandeling',
- 'Done' => 'Klaar',
+ 'Done' => 'Afgewerkt',
'Application version:' => 'Applicatie versie :',
'Completed on %B %e, %Y at %k:%M %p' => 'Voltooid op %d/%m/%Y à %H:%M',
'%B %e, %Y at %k:%M %p' => '%d/%m/%Y op %H:%M',
diff --git a/tests/units/ProjectTest.php b/tests/units/ProjectTest.php
index 9f49af8a..fec53c2b 100644
--- a/tests/units/ProjectTest.php
+++ b/tests/units/ProjectTest.php
@@ -2,6 +2,7 @@
require_once __DIR__.'/Base.php';
+use Core\Translator;
use Subscriber\ProjectModificationDateSubscriber;
use Model\Project;
use Model\ProjectPermission;
@@ -15,6 +16,19 @@ use Model\Category;
class ProjectTest extends Base
{
+ public function testCreationForAllLanguages()
+ {
+ $c = new Config($this->container);
+ $p = new Project($this->container);
+
+ foreach ($c->getLanguages() as $locale => $language) {
+ Translator::load($locale);
+ $this->assertNotFalse($p->create(array('name' => 'UnitTest '.$locale)), 'Unable to create project with '.$locale.':'.$language);
+ }
+
+ Translator::load('en_US');
+ }
+
public function testCreation()
{
$p = new Project($this->container);