From patchwork Mon Aug 7 17:07:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: develop--- via Libc-alpha X-Patchwork-Id: 73768 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F133A3858284 for ; Mon, 7 Aug 2023 17:09:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F133A3858284 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691428160; bh=pkDeS6TCwVi9/DnS+eNpTFVnsmRblzz66NV4IHeIY8I=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=HOxExHm2evry0DX6he1RWzAGGhDp8m7mveezssC8ioEOJM+IcQC4CShiX+AtlI9jm 5MXNMQqsHIKkF9c19y305cnZPnLTVBDfeLbjnMNnim/yoqyUuoz8esNaJuXVlxUwgT fSU4vXEPTK/YTgstioncWnf4LDjs9iwLqzELXwqI= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by sourceware.org (Postfix) with ESMTPS id 8B7B03858D28 for ; Mon, 7 Aug 2023 17:08:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8B7B03858D28 Received: by mail-oi1-x22b.google.com with SMTP id 5614622812f47-3a5ad6087a1so2587392b6e.2 for ; Mon, 07 Aug 2023 10:08:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691428130; x=1692032930; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pkDeS6TCwVi9/DnS+eNpTFVnsmRblzz66NV4IHeIY8I=; b=cYDT1AF5ItRJw5SV6ZWGHz+qtw4m8BgJm4Cm5iXxsFN4TZOel22FM0ew4FIike9Wo0 BJFY62gn//x8IrLMgq+3E+XFsVs+9YvvTmWQQ+6cTpeWqVXrhf7B3of3GECzJ7yF2HB8 5kYBLLNbsVXKRAS9IvNkCgxBBcw7B5usMywnDVnbHdac6GPLL2OsH2j4FP/nqo/3xV24 TrZ5yBnpt6G9rqBQ7kuUHNcx3FrWoMrCOB3voAlPfy2fJbzMZ5Zy2EIM1Y4XnGe9CO6N QCjcQsaAoLsCIat2RszIePP48GFgxyS4gRvLP3OZiGklU6JO/oxxMykFuxD36Wif7w6W GAEQ== X-Gm-Message-State: AOJu0YxMnIE4tSC/NXvrbNM+831x8Rn1aNbXUJzElf1UEho8mtb4H1KC HQZl5PURvQ92U86IH65C94vzgu763Ek= X-Google-Smtp-Source: AGHT+IGVCvafUrWOmPhtxQeSjKPrDWF0EwDNtncb2tAYbBZKbu8KbzrXFRi6YvNmAcZpOz0svVQrvA== X-Received: by 2002:a05:6808:1382:b0:3a3:820e:2f05 with SMTP id c2-20020a056808138200b003a3820e2f05mr11256684oiw.1.1691428130308; Mon, 07 Aug 2023 10:08:50 -0700 (PDT) Received: from komputer-raambm.. ([118.99.125.7]) by smtp.gmail.com with ESMTPSA id 23-20020a17090a19d700b0025645ce761dsm9532095pjj.35.2023.08.07.10.08.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 10:08:49 -0700 (PDT) To: libc-alpha@sourceware.org Cc: RushingAlien Subject: [PATCH] id_ID: Update Time Locales Date: Tue, 8 Aug 2023 00:07:54 +0700 Message-ID: <20230807170753.63764-2-rushing27alien@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_ABUSEAT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, WEIRD_QUOTING autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: rushing27alien--- via Libc-alpha From: develop--- via Libc-alpha Reply-To: rushing27alien@gmail.com Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" From: RushingAlien 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 wiht Monday, let's comply --- 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..5957ebaf0f 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