File: README

package info (click to toggle)
ruby-locale 2.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 444 kB
  • ctags: 293
  • sloc: ruby: 3,203; makefile: 4
file content (20 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Sample script for CGI/ERB and Ruby/Locale.

Run the http server.
$ ruby http.rb

Access the http server from WWW browser:

http://localhost:10080/

or

If you want to set locale(lang) forcely, then:

http://localhost:10080/?lang=ja
     #ja is a target locale in this sample.

http.rb        - an http server for samples using WEBrick
index.cgi      - a sample menu (CGI sample)
cookie.cgi     - Set lang to cookie value.
locale.css     - CSS file.