Permalink
Browse files

Update i18n fetching script and i18n from cucumber

  • Loading branch information...
1 parent 51e48df commit b04e2293326a21d9864672b74b7995725f214088 @everzet everzet committed Sep 26, 2012
Showing with 4 additions and 8 deletions.
  1. +2 −6 bin/update_i18n
  2. +2 −2 i18n.php
View
@@ -1,12 +1,8 @@
#!/usr/bin/env php
<?php
-require_once __DIR__.'/../vendor/autoload.php';
-
-use Symfony\Component\Yaml\Yaml;
-
-$yaml = file_get_contents('https://raw.github.com/cucumber/gherkin/master/lib/gherkin/i18n.yml');
-$array = Yaml::parse($yaml);
+$json = file_get_contents('https://raw.github.com/cucumber/gherkin/master/lib/gherkin/i18n.json');
+$array = json_decode($json, true);
foreach ($array as $lang => $keywords) {
foreach (array('given', 'when', 'then', 'and', 'but') as $type) {
View
@@ -36,8 +36,8 @@
'feature' => 'Fungsi',
'background' => 'Latar Belakang',
'scenario' => 'Senario',
- 'scenario_outline' => 'Menggariskan Senario',
- 'examples' => 'Contoh',
+ 'scenario_outline' => 'Menggariskan Senario ',
+ 'examples' => 'Contoh ',
'given' => 'Bagi',
'when' => 'Apabila',
'then' => 'Kemudian',

0 comments on commit b04e229

Please sign in to comment.