Module: Locale::SystemCGI

Module Locale::SystemCGI |
In: | lib/gettext/locale_cgi.rb

Locale::System module for Default OS (Unix) This is low-level class. Application shouldn’t use this directly.

Methods

- cgi
- cgi=
- default_locale
- default_locale=
- get_charset
- set_cgi
- set_default_locale
- system

Public Instance methods
cgi() [ source ]

Gets the CGI object. If it is nil, returns new CGI object.

- Returns: the CGI object

cgi=(cgi_) [ source ]

Sets a CGI object.

- cgi_: CGI object
- Returns: cgi_

default_locale() [ source ]

Gets the default Locale::Object.

- Returns: the default locale

default_locale=(locale) [ source ]

Sets a default locale. en.UTF-8 is the default value if not set.

- locale: Locale::Object
- Returns: locale

get_charset(locale) [ source ]

Gets the charset of the locale.

- locale: Locale::Object
- Returns: the charset of the locale

set_cgi(cgi_) [ source ]

Sets a CGI object.

- cgi_: CGI object
- Returns: self

set_default_locale(locale) [ source ]

Sets a default locale. en.UTF-8 is the default value if not set.

- locale: Locale::Object object. You can’t set nil.
- Returns: self

system() [ source ]

Gets the default locale using setlocale and nl_langinfo.

- Returns the system locale (Locale::Object).