4
Copyright (C) 2007,2008 Masao Mutoh
6
You may redistribute it and/or modify it under the same
9
Original: Ruby-GetText-Package-1.92.0.
11
$Id: jruby.rb 27 2008-12-03 15:06:50Z mutoh $
14
require File.join(File.dirname(__FILE__), 'env')
19
# Locale::Driver::JRuby module for JRuby
20
# Detect the user locales and the charset.
21
# This is a low-level class. Application shouldn't use this directly.
23
$stderr.puts self.name + " is loaded." if $DEBUG
25
if java.lang.System.getProperties['os.name'].downcase =~ /windows/
26
require 'locale/driver/win32_table'
28
extend ::Locale::Driver::Win32Table
33
locales = ::Locale::Driver::Env.locales
35
locale = java.util.Locale.getDefault
36
variant = Locale.getVariant
38
if valiant != nil and variant.size > 0
41
locales = TagList.new([Locale::Tag::Common.new(locale.getLanguage, nil,
49
charset = ::Locale::Driver::Env.charset
51
charset = java.nio.charset.Charset.defaultCharset.name
57
@@locale_driver_module = Driver::JRuby