Project

General

Profile

Feature #16484 » 0001-Default-time-zone-for-new-users.patch

Jan from Planio www.plan.io, 2016-12-17 12:38

View differences:

app/models/user.rb
366 366
  end
367 367

  
368 368
  def pref
369
    self.preference ||= UserPreference.new(:user => self)
369
    self.preference ||= UserPreference.new(:user => self, :time_zone => Setting.default_time_zone)
370 370
  end
371 371

  
372 372
  def time_zone
app/views/settings/_general.html.erb
27 27

  
28 28
<p><%= setting_text_field :feeds_limit, :size => 6 %></p>
29 29

  
30
<p><%= setting_select :default_time_zone, ActiveSupport::TimeZone.all.collect {|z| [ z.to_s, z.name ]}, :blank => :label_none %></p>
31

  
30 32
<%= call_hook(:view_settings_general_form) %>
31 33
</div>
32 34

  
config/locales/de.yml
994 994
  setting_date_format: Datumsformat
995 995
  setting_default_issue_start_date_to_creation_date: Aktuelles Datum als Beginn für neue Tickets verwenden
996 996
  setting_default_language: Standardsprache
997
  setting_default_time_zone: Standardzeitzone für neue Benutzer
997 998
  setting_default_notification_option: Standard Benachrichtigungsoptionen
998 999
  setting_default_projects_modules: Standardmäßig aktivierte Module für neue Projekte
999 1000
  setting_default_projects_public: Neue Projekte sind standardmäßig öffentlich
config/locales/en.yml
371 371
  setting_app_subtitle: Application subtitle
372 372
  setting_welcome_text: Welcome text
373 373
  setting_default_language: Default language
374
  setting_default_time_zone: Default time zone for new users
374 375
  setting_login_required: Authentication required
375 376
  setting_self_registration: Self-registration
376 377
  setting_attachment_max_size: Maximum attachment size
config/locales/fr.yml
383 383
  setting_app_subtitle: Sous-titre de l'application
384 384
  setting_welcome_text: Texte d'accueil
385 385
  setting_default_language: Langue par défaut
386
  setting_default_time_zone: Fuseau horaire pour nouveaux utilisateurs
386 387
  setting_login_required: Authentification obligatoire
387 388
  setting_self_registration: Inscription des nouveaux utilisateurs
388 389
  setting_attachment_max_size: Taille maximale des fichiers
config/locales/ru.yml
852 852
  setting_cross_project_issue_relations: Разрешить пересечение задач по проектам
853 853
  setting_date_format: Формат даты
854 854
  setting_default_language: Язык по умолчанию
855
  setting_default_time_zone: Часовой пояс по-умолчанию для новых пользователей
855 856
  setting_default_notification_option: Способ оповещения по умолчанию
856 857
  setting_default_projects_public: Новые проекты являются общедоступными
857 858
  setting_diff_max_lines_displayed: Максимальное число строк для diff
config/locales/sv.yml
383 383
  setting_app_subtitle: Applikationsunderrubrik
384 384
  setting_welcome_text: Välkomsttext
385 385
  setting_default_language: Standardspråk
386
  setting_default_time_zone: Standardtidzon för nya användare
386 387
  setting_login_required: Kräver inloggning
387 388
  setting_self_registration: Självregistrering
388 389
  setting_attachment_max_size: Maxstorlek på bilaga
config/settings.yml
90 90
  default: ""
91 91
default_language:
92 92
  default: en
93
default_time_zone:
94
  default: ""
93 95
force_default_language_for_anonymous:
94 96
  default: 0
95 97
force_default_language_for_loggedin:
    (1-1/1)