Sha256: 8f5eb726c6ddbb7c0da066e6e9d9a8dd1dc11a841247bc25e072bb7b9aea25e2

Contents?: true

Size: 833 Bytes

Versions: 61

Compression:

Stored size: 833 Bytes

Contents

<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 gettext") %></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>

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
gettext-3.5.0 samples/cgi/helloerb.rhtml
gettext-3.4.9 samples/cgi/helloerb.rhtml
gettext-3.4.8 samples/cgi/helloerb.rhtml
gettext-3.4.7 samples/cgi/helloerb.rhtml
gettext-3.4.6 samples/cgi/helloerb.rhtml
gettext-3.4.5 samples/cgi/helloerb.rhtml
gettext-3.4.4 samples/cgi/helloerb.rhtml
gettext-3.4.3 samples/cgi/helloerb.rhtml
gettext-3.4.2 samples/cgi/helloerb.rhtml
gettext-3.4.1 samples/cgi/helloerb.rhtml
gettext-3.4.0 samples/cgi/helloerb.rhtml
gettext-3.3.9 samples/cgi/helloerb.rhtml
gettext-3.3.8 samples/cgi/helloerb.rhtml
gettext-3.3.7 samples/cgi/helloerb.rhtml
gettext-3.3.6 samples/cgi/helloerb.rhtml
gettext-3.3.5 samples/cgi/helloerb.rhtml
gettext-3.3.4 samples/cgi/helloerb.rhtml
gettext-3.3.3 samples/cgi/helloerb.rhtml
gettext-3.3.2 samples/cgi/helloerb.rhtml
gettext-3.3.1 samples/cgi/helloerb.rhtml