Return-Path: X-Original-To: apmail-roller-commits-archive@www.apache.org Delivered-To: apmail-roller-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8F5401743C for ; Tue, 28 Apr 2015 04:02:06 +0000 (UTC) Received: (qmail 55263 invoked by uid 500); 28 Apr 2015 04:02:06 -0000 Delivered-To: apmail-roller-commits-archive@roller.apache.org Received: (qmail 55194 invoked by uid 500); 28 Apr 2015 04:02:06 -0000 Mailing-List: contact commits-help@roller.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@roller.apache.org Delivered-To: mailing list commits@roller.apache.org Received: (qmail 55184 invoked by uid 99); 28 Apr 2015 04:02:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2015 04:02:06 +0000 Date: Tue, 28 Apr 2015 04:02:06 +0000 (UTC) From: "Kohei Nozaki (JIRA)" To: commits@roller.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ROL-2073) Move hard-coded date / timestamp formatting to ApplicationResources MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ROL-2073?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Kohei Nozaki updated ROL-2073: ------------------------------ Issue Type: Improvement (was: Bug) > Move hard-coded date / timestamp formatting to ApplicationResources > ------------------------------------------------------------------- > > Key: ROL-2073 > URL: https://issues.apache.org/jira/browse/ROL-2073 > Project: Apache Roller > Issue Type: Improvement > Components: Themes and Macros > Affects Versions: 5.1.2 > Reporter: Kohei Nozaki > Assignee: Roller Unassigned > Priority: Trivial > > There're some hard-coded date / timestamp formatting as follows: > In {{_day.vm}} or {{day.vm}} of templates: > {noformat} > $utils.formatDate($day, "EEEE MMM dd, yyyy") > $utils.formatDate($entry.pubTime, "hh:mma MMM dd, yyyy") > {noformat} > In {{CalendarTag#doStartTag()}}: > {noformat} > // formatter Month-Year title of calendar > SimpleDateFormat formatTitle =3D new SimpleDateFormat("MMMM yyyy", mLocal= e); > {noformat} > In Japanese locale, it produces following expressions: > # =E6=B0=B4=E6=9B=9C=E6=97=A5 4 22, 2015 > # Posted at 02:15=E5=8D=88=E5=BE=8C 4 22, 2015 by kyle in Technology | = =E6=8A=95=E7=A8=BF=E3=81=95=E3=82=8C=E3=81=9F=E3=82=B3=E3=83=A1=E3=83=B3=E3= =83=88 [0] > # 4=E6=9C=88 2015 > They looks pretty weird to Japanese people. I think Japanese people prefe= r following expressions instead: > # 2015=E5=B9=B44=E6=9C=8822=E6=97=A5 (=E6=B0=B4) > # Posted at 2015=E5=B9=B44=E6=9C=8822=E6=97=A5 =E5=8D=88=E5=BE=8C 02:15 (= this may better to move the fragment entirely, not only the date, but it mi= ght be too much for default templates) > # 2015=E5=B9=B44=E6=9C=88 > And I think these strange expressions may effect badly to first impressio= n of Japanese people who just installed Roller so give it a try. so I'd lik= e to move these expressions to ApplicationResources so that allow templates= to show locale specific expressions. any thoughts? -- This message was sent by Atlassian JIRA (v6.3.4#6332)