From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2013) id 30D2F3858424; Mon, 18 Dec 2023 09:23:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30D2F3858424 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1702891386; bh=o8QTi0ft/4buK4aQauP2U8ISNBorAGegYs+POxTpQdY=; h=From:To:Subject:Date:From; b=ns0Ykn5Hh2zXlKxWd6p465BQoRQKEgIHcgpb/TJdEIZQvw7zcR6R9nD+2KiH/0afd 350yA1a0d86DUoKiuxJtv+4lD3ACkMDzwXpNJhCZHbS3WEfLmNhy9y2lp/uY3DCfXo R5gtEuICmpDEXHFsS99xnNe0lUGUx+G1p87SuLS0= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Mike Fabian To: glibc-cvs@sourceware.org Subject: [glibc] id_ID: Update Time Locales X-Act-Checkin: glibc X-Git-Author: RushingAlien X-Git-Refname: refs/heads/master X-Git-Oldrev: ad26c25137086b6e001ce1a7f82b4656724200da X-Git-Newrev: 12ab77e893479a1f7d4666082a48efad79777bb9 Message-Id: <20231218092306.30D2F3858424@sourceware.org> Date: Mon, 18 Dec 2023 09:23:06 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=12ab77e893479a1f7d4666082a48efad79777bb9 commit 12ab77e893479a1f7d4666082a48efad79777bb9 Author: RushingAlien Date: Mon Aug 21 10:55:30 2023 +0700 id_ID: Update Time Locales Hello! I am Indonesian, was born and raised in Indonesia and still do live in Indonesia. This patch brings a few changes to the time locales of id_ID, which includes : \- Defining am_pm and time_fmpt_ampm \- Changing time_fmt and d_t_fmt to use the 24-hour format \- Changing first_weekday to Monday This is a squashed version of what is previously a 5 patch set Here are reasons and details of the changes : Change 1 part 1 id_ID: Define `am_pm` string Current formatting does not define am_pm string, leading to AM and PM not being specified in 12 H time format. This change defines the string by changing it from an empty string to "AM";"PM". output of `date +%r`: before commit: 01:23 after commit: 01:23 PM Change 1 part 2 id_ID: Define time_fmt_ampm, change from an empty string Currently, time_fmpt_ampm is set to an empty string, causing some programs to not be able to display time in the 12-hour format, for example, glib: https://gitlab.gnome.org/GNOME/glib/-/issues/2967. This commit changes it from an empty string to "%I:%M:%S %p" Change 2 part 1 id_ID: Use 24-hour format for time_fmt Indonesian standard and formal time format uses the 24-hour format inst- ead of the 12-hour format. This commit aims to change the id_ID locale's time_fmt to match that accordingly. Change 2 part 2 id_ID: Use 24-hour format for d_t_fmt. Indonesian standard and formal time format uses the 24-hour format inst- ead of the 12-hour format. This commit aims to change the id_ID locale's d_t_fmt to match that accordingly. Change 3 id_ID: Change first_weekday to monday Indonesian calendar starts of the week with Monday, let's comply Message-ID: <20230821035530.9075-1-rushing27alien@gmail.com> Resolves: BZ # 30412 Reviewed-by: Mike Fabian Diff: --- localedata/locales/id_ID | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/localedata/locales/id_ID b/localedata/locales/id_ID index c10306deb7..16aba52999 100644 --- a/localedata/locales/id_ID +++ b/localedata/locales/id_ID @@ -115,13 +115,14 @@ mon "Januari";/ "Oktober";/ "November";/ "Desember" -d_t_fmt "%a %d %b %Y %r" -date_fmt "%a %d %b %Y %r %Z" +d_t_fmt "%a %d %b %Y %T" +date_fmt "%a %d %b %Y %T %Z" d_fmt "%d//%m//%y" t_fmt "%T" -am_pm "";"" -t_fmt_ampm "" +am_pm "AM";"PM" +t_fmt_ampm "%I:%M:%S %p" week 7;19971130;1 +first_weekday 2 END LC_TIME LC_MESSAGES