aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gems/gettext-2.1.0/samples/cgi/helloerb.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gems/gettext-2.1.0/samples/cgi/helloerb.rhtml')
-rw-r--r--vendor/gems/gettext-2.1.0/samples/cgi/helloerb.rhtml28
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/gems/gettext-2.1.0/samples/cgi/helloerb.rhtml b/vendor/gems/gettext-2.1.0/samples/cgi/helloerb.rhtml
new file mode 100644
index 000000000..576a21e40
--- /dev/null
+++ b/vendor/gems/gettext-2.1.0/samples/cgi/helloerb.rhtml
@@ -0,0 +1,28 @@
+<html>
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=<%= GetText.output_charset %>">
+ <link rel="stylesheet" type="text/css" href="gettext.css" media="all">
+<title><%= _("Sample script for CGI/ERB and Ruby-GetText-Package") %></title>
+</head>
+<body>
+<%
+ require 'hellolib'
+ require 'cgi'
+ lib = HelloLib.new
+%>
+<h1><%= _("Hello World") %> - <%= @domainname %></h1>
+<p><%= description %></p>
+<div class="locale">
+<p><%= _("locale") %>: <%= Locale.get %></p>
+<p><%= _("output_charset") %>: <%= GetText.output_charset %></p>
+<p><%= _("QUERY_STRING") %>: <%= cgi.query_string %></p>
+</div>
+<p><%= _("Call a library method which has another textdomain.") %></p>
+<div class="locale"><%= lib.hello %></div>
+<p><a href="/"><%= _("Back") %></a></p>
+
+<div class="copyright">
+Copyright (C) 2005 Masao Mutoh
+</div>
+</body>
+</html>