File: helloerb.rhtml

package info (click to toggle)
ruby-gettext 2.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,648 kB
  • sloc: ruby: 4,445; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 846 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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>