Skip to content

Commit

Permalink
whatever i changed
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchy committed Oct 10, 2015
1 parent ac61ff3 commit 50c4f8d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/jisho2.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
{
$out=$out."(".($j+1).") ";
}
$out=$out."word: ".$results["data"][$i]["japanese"][$j]["word"].", reading: ".$results["data"][$i]["japanese"][$j]["reading"].", ";
$out=$out.$results["data"][$i]["japanese"][$j]["word"]." (".$results["data"][$i]["japanese"][$j]["reading"].")";
}
if (count($results["data"][$i]["senses"])>0)
{
$out=$out."meanings: ";
$out=$out." ";
}
$senses=$results["data"][$i]["senses"];
for ($j=0;$j<count($senses);$j++)
Expand All @@ -66,9 +66,8 @@
{
if ($j>0)
{
$meanings=$meanings.", ";
$meanings=$meanings." | ";
}
$meanings=$meanings."sense ".($j+1).": ";
}
}
for ($k=0;$k<count($senses[$j]["english_definitions"]);$k++)
Expand Down

0 comments on commit 50c4f8d

Please sign in to comment.