Tutorial: rename korap to devlopment also internally

This has to be done in a separate second step because it's pretty error-prone.

Follow up to I05dbd6d938324151e5eb1cbe15a66790da13c63c

Change-Id: Ib0b7e546f2a9dd5c321516774cf95bab74c42962
diff --git a/t/doc.t b/t/doc.t
index 15ca9d0..b0f15c9 100644
--- a/t/doc.t
+++ b/t/doc.t
@@ -108,6 +108,18 @@
   ->text_is('#api-service-uri', 'https://korap.ids-mannheim.de/test/api/v1.0/');
 
 
+# Languages of dev pages
+$t->get_ok('/doc/development/kalamar')
+  ->status_is(200)
+  ->text_is("title", "KorAP: Kalamar")
+  ->content_like(qr!Main developer!);
+
+$t->get_ok('/doc/development/kalamar' => { 'Accept-Language' => 'de-DE, en-US, en' })
+  ->status_is(200)
+  ->text_is("title", "KorAP: Kalamar")
+  ->content_like(qr!Hauptentwickler!);
+
+
 # Check mail_to_chiffre
 like($t->app->mail_to_chiffre('korap@korap.example'),qr!rel="nofollow"!);
 like($t->app->mail_to_chiffre('korap@korap.example'),qr!class="PArok"!);
diff --git a/t/navigation.t b/t/navigation.t
index 45cc832..a15792d 100644
--- a/t/navigation.t
+++ b/t/navigation.t
@@ -35,18 +35,18 @@
 
 my $navi = [
   {
-    id => 'korap',
+    id => 'development',
     title => 'KorAP'
   }
 ];
 
 my $render = $app->navigation('doc', $navi);
-like($render, qr!/doc/korap!, 'Path matches doc/korap');
+like($render, qr!/doc/development!, 'Path matches doc/development');
 like($render, qr!KorAP!, 'Title matches');
 
 $navi = [
   {
-    id => 'korap',
+    id => 'development',
     title => 'KorAP'
   },
   {
@@ -56,14 +56,14 @@
 ];
 
 $render = $app->navigation('doc', $navi);
-like($render, qr!/doc/korap!, 'Path matches doc/korap');
+like($render, qr!/doc/development!, 'Path matches doc/development');
 like($render, qr!KorAP!, 'Title matches');
 like($render, qr!/doc/krill!, 'Path matches doc/krill');
 like($render, qr!Krill!, 'Title matches');
 
 $navi = [
   {
-    id => 'korap',
+    id => 'development',
     title => 'KorAP',
     items => [
       {
@@ -79,13 +79,13 @@
 ];
 
 $render = $app->navigation('doc', $navi);
-like($render, qr!/doc/korap!, 'Path matches doc/korap');
-like($render, qr!/doc/korap/krill!, 'Path matches korap/krill');
+like($render, qr!/doc/development!, 'Path matches doc/development');
+like($render, qr!/doc/development/krill!, 'Path matches development/krill');
 like($render, qr!/doc/faq!, 'Path matches doc/faq');
 
 $navi = [
   {
-    id => 'korap',
+    id => 'development',
     title => 'KorAP',
     items => [
       {
@@ -129,9 +129,9 @@
 ];
 
 $render = $app->navigation('doc', $navi);
-like($render, qr!/doc/korap!, 'Path matches doc/korap');
-like($render, qr!/doc/korap/krill!, 'Path matches korap/krill');
-like($render, qr!/doc/korap/koral!, 'Path matches korap/koral');
+like($render, qr!/doc/development!, 'Path matches doc/development');
+like($render, qr!/doc/development/krill!, 'Path matches development/krill');
+like($render, qr!/doc/development/koral!, 'Path matches development/koral');
 like($render, qr!/doc/ql!, 'Path matches doc/ql');
 like($render, qr!/doc/ql/cosmas2!, 'Path matches doc/ql/cosmas2');
 like($render, qr!/doc/ql/poliqarp-plus!, 'Path matches doc/ql/poliqarp-plus');
@@ -147,10 +147,10 @@
 
 
 my $c = $app->build_controller;
-$c->stash(page => 'korap');
+$c->stash(page => 'development');
 $render = $c->navigation('doc', $navi);
-like($render, qr!/doc/korap!, 'Path matches doc/korap');
-like($render, qr!/doc/korap/krill!, 'Path matches korap/krill');
+like($render, qr!/doc/development!, 'Path matches doc/development');
+like($render, qr!/doc/development/krill!, 'Path matches development/krill');
 like($render, qr!/doc/ql!, 'Path matches doc/ql');
 like($render, qr!/doc/ql/poliqarp-plus#segments!,
      'Path matches doc/ql/poliqarp-plus#segments');
@@ -160,8 +160,8 @@
 
 $c->stash(page => 'poliqarp-plus');
 $render = $c->navigation('doc', $navi);
-like($render, qr!/doc/korap!, 'Path matches doc/korap');
-like($render, qr!/doc/korap/krill!, 'Path matches korap/krill');
+like($render, qr!/doc/development!, 'Path matches doc/development');
+like($render, qr!/doc/development/krill!, 'Path matches development/krill');
 like($render, qr!/doc/ql!, 'Path matches doc/ql');
 like($render, qr!/doc/ql/poliqarp-plus#segments!,
      'Path matches doc/ql/poliqarp-plus#segments');
@@ -172,7 +172,7 @@
 
 $navi = [
   {
-    id => 'korap',
+    id => 'development',
     title => 'KorAP',
     items => [
       {
@@ -217,8 +217,8 @@
 ];
 $render = $c->navigation('doc', $navi);
 
-like($render, qr!/doc/korap!, 'Path matches doc/korap');
-like($render, qr!/doc/korap/krill!, 'Path matches korap/krill');
+like($render, qr!/doc/development!, 'Path matches doc/development');
+like($render, qr!/doc/development/krill!, 'Path matches development/krill');
 like($render, qr!/doc/ql!, 'Path matches doc/ql');
 like($render, qr!/doc/ql/poliqarp-plus#segments!,
      'Path matches doc/ql/poliqarp-plus#segments');
@@ -230,7 +230,7 @@
 # Test for translations
 $navi = [
   {
-    id => 'korap',
+    id => 'development',
     title => 'KorAP',
     items => [
       {
@@ -246,10 +246,10 @@
 ];
 
 $render = $app->navigation('doc', $navi);
-like($render, qr!/doc/korap!, 'Path matches doc/korap');
-like($render, qr!/doc/korap/krill!, 'Path matches korap/krill');
-like($render, qr!<a href="/doc/korap/krill(?:#[^"]+)?">Krill</a>!,
-     'Path matches korap/krill');
+like($render, qr!/doc/development!, 'Path matches doc/development');
+like($render, qr!/doc/development/krill!, 'Path matches development/krill');
+like($render, qr!<a href="/doc/development/krill(?:#[^"]+)?">Krill</a>!,
+     'Path matches development/krill');
 like($render, qr!<a href="/doc/faq(?:#[^"]+)?">FAQ</a>!,
      'Path matches FAQ');
 
@@ -257,10 +257,10 @@
 $languages = [qw/de en/];
 
 $render = $app->navigation('doc', $navi);
-like($render, qr!/doc/korap!, 'Path matches doc/korap');
-like($render, qr!/doc/korap/krill!, 'Path matches korap/krill');
-like($render, qr!<a href="/doc/korap/krill(?:#[^"]+)?">Krill</a>!,
-     'Path matches korap/krill');
+like($render, qr!/doc/development!, 'Path matches doc/development');
+like($render, qr!/doc/development/krill!, 'Path matches development/krill');
+like($render, qr!<a href="/doc/development/krill(?:#[^"]+)?">Krill</a>!,
+     'Path matches development/krill');
 like($render, qr!<a href="/doc/faq(?:#[^"]+)?">FAQ</a>!,
      'Path matches FAQ');
 
diff --git a/t/page.t b/t/page.t
index 0be13c8..0ebd0fa 100644
--- a/t/page.t
+++ b/t/page.t
@@ -12,7 +12,7 @@
 is($app->under_construction, '<p>Under Construction!</p>');
 
 is($app->embedded_link_to('doc', 'privacy', 'privacy'), '<a class="embedded-link" href="/doc/privacy">privacy</a>');
-is($app->embedded_link_to('doc', 'privacy', 'korap', 'privacy'), '<a class="embedded-link" href="/doc/korap/privacy">privacy</a>');
+is($app->embedded_link_to('doc', 'privacy', 'development', 'privacy'), '<a class="embedded-link" href="/doc/development/privacy">privacy</a>');
 
 
 my $c = $app->build_controller;