Changeset 723

Show
Ignore:
Timestamp:
11/12/07 10:24:40 (1 year ago)
Author:
markku
Message:

Closes #499

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/controllers/customer_controller.rb

    r718 r723  
    1616  def initialize(*args) 
    1717    super(*args) 
    18     @language_options = [['Suomi', 'fi_FI'], ['English', 'en']] 
     18    @language_options = CMMS_LANGUAGE_OPTIONS 
    1919  end 
    2020 
  • trunk/app/controllers/customer_interface_controller.rb

    r717 r723  
    214214                [_('City'), :text_field, 'city', { :size => 30, :maxlength => 40 } ], 
    215215                [_('Country'), :text_field, 'country', { :size => 30, :maxlength => 40 } ], 
    216                 [_('Language'), :select, 'lang', [['Suomi', 'fi_FI'], ['English', 'en']]
     216                [_('Language'), :select, 'lang', CMMS_LANGUAGE_OPTIONS
    217217              ] 
    218218 
  • trunk/app/controllers/user_controller.rb

    r718 r723  
    2020  def initialize(*args) 
    2121    super(*args) 
    22     @language_options = [['Suomi', 'fi_FI'], ['English', 'en']] 
     22    @language_options = CMMS_LANGUAGE_OPTIONS 
    2323  end 
    2424 
  • trunk/config/environment.rb

    r687 r723  
    106106require File.join(::RAILS_ROOT, 'config', 'version') 
    107107 
     108CMMS_LANGUAGE_OPTIONS=[] 
     109require File.join(::RAILS_ROOT, 'config', 'language_options') 
     110 
    108111# Initialize the available extensions 
    109112for extension in ['custom', 'commercial'] 

© 2004-2007 Norfello Oy All Rights Reserved