~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to lib/irb/locale.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
#   irb/locale.rb - internationalization module
3
3
#       $Release Version: 0.9.6$
4
 
#       $Revision: 31201 $
 
4
#       $Revision: 31573 $
5
5
#       by Keiju ISHITSUKA(keiju@ruby-lang.org)
6
6
#
7
7
# --
10
10
#
11
11
module IRB
12
12
  class Locale
13
 
    @RCS_ID='-$Id: locale.rb 31201 2011-03-28 13:40:53Z yugui $-'
 
13
    @RCS_ID='-$Id: locale.rb 31573 2011-05-15 11:55:52Z nobu $-'
14
14
 
15
15
    LOCALE_NAME_RE = %r[
16
16
      (?<language>[[:alpha:]]{2,3})
136
136
    end
137
137
 
138
138
    # @param paths load paths in which IRB find a localized file.
139
 
    # @param dir directory 
 
139
    # @param dir directory
140
140
    # @param file basename to be localized
141
141
    #
142
142
    # typically, for the parameters and a <path> in paths, it searches