プロジェクト

全般

プロフィール

Vote #76019

完了

Mail notification is formatting dates with changer's locale

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
I18n_37
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
37
version_id:
80
issue_org_id:
19039
author_id:
5905
assigned_to_id:
1
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
81
ステータス-->[Closed]

説明

Our installation default language is PT-BR but some users have EN configured as user language for their personal accounts.

The date formats are: @pt-BR: "DD/MM/YYYY"@ and @en: "MM/DD/YYYY"@

When someone makes a change in the dates (start date/due date) using Redmine in EN, the email notifications for those users using PT-BR come almost completely localized with the exception of the dates that are coming in the changers locale format.

This can lead to problems with dates like 10/mar/2015 which will be formatted as 10/03/2015 for PT-BR and 03/10/2015 for EN.

The dates seem to be correctly saved in the database as opening the issue in the browser shows the dates correctly localized.

My environment is as follows:


Environment:
Redmine version 2.6.0.stable
Ruby version 2.1.1-p76 (2014-02-24) [x86_64-linux]
Rails version 3.2.19
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.10
Mercurial 1.3.1
Cvs 1.12.13
Git 1.8.0
Filesystem

Redmine plugins:
redmine_better_gantt_chart 0.9.0


journals

When sending email notifications, Redmine uses the default locale defined in application settings (Settings / Display / Default language). Which one is yours, EN or PT-BR?
--------------------------------------------------------------------------------
My default language is is set to PT-BR, and I'm not forcing the default language anywhere.

But these are the date and time settings:

Start calendars on: Based on user's language
Date format: Based on user's language
Time format: Based on user's language

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This is fixed in r13978, thanks for pointing this out.
--------------------------------------------------------------------------------
Thanks for the quick fix and for the great software!

As a note, shouldn't the notification emails be localized according to the user receiving those emails?
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリI18n_37 にセット
  • 対象バージョン3.0.0_80 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0