Typo fix in error.php

Fixed silly typo in error.php that was causing an exception.

Also fixed gettext.rb (which seems to be broken in Ruby 2.0) by conforming to Ruby 2.1 [example code](http://ruby-doc.org/stdlib-2.1.0/libdoc/optparse/rdoc/OptionParser.html).