From patchwork Mon Aug 21 03:55:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: RushingAlien X-Patchwork-Id: 1823482 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=o8VYCDZy; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RTdtz1ktzz1yNm for ; Mon, 21 Aug 2023 13:56:10 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6E1893856DE6 for ; Mon, 21 Aug 2023 03:56:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E1893856DE6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692590168; bh=fkSdHYVNVhf8df53otaxHc3LQlu49n1irSTAgRoIyHo=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=o8VYCDZy7cB851GClBbULOhwkLp2HNlmWPu7gw6FaMdgbMkS/u+jbH9RoU4nBH+T9 aN3kYg5zfJjPZbL4EPNWDatcXui8NriM74hosRzWbuJ4ELpZxlg1vIioBaDrbUaliw bswmdNPAtHObp26HzpaddlfoUYDFxFYGsHyVztCs= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by sourceware.org (Postfix) with ESMTPS id 64702385770F for ; Mon, 21 Aug 2023 03:55:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 64702385770F Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-3a85b9deeb3so376108b6e.1 for ; Sun, 20 Aug 2023 20:55:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692590151; x=1693194951; 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=fkSdHYVNVhf8df53otaxHc3LQlu49n1irSTAgRoIyHo=; b=X7c7sZb7kJYd2HE2AUCOScTJYJbllRVZlXzjO7G3ISKKKduvYgOXJPibGUQkQ36vrG zI6CzrNjE9WMNLrfixkz61f2p0E98qqYX1L5TwpxnKucvDUgOukxYJB55Ir6GZm+fcgb Yka3GdRxZnCafrVplCUw5S9+WCv0h3H/rjgm8tgrSkMLnSzehFPCsvL6ApJRq3PIdDVg VW5oAngpX8mO/DPCdZEnpGxeTy+Ssx+2X0SzSLayxXOhdyJeegqaliU+U3YRNISjzh+l mHwSSDBEID+cK3CczLLdGam3zq9A6MrGu4JFlWJzva8sGX5QVq/Uz/s1PI/TPVT23ZLc J6Ew== X-Gm-Message-State: AOJu0Yye9NUJXcTjYzZRIm3fRO9/2nLayir5x5Wh6ZAOODy3uEIUJ4G5 lxKabFz46NlkEol3lKz7XKDpJH5MDPY= X-Google-Smtp-Source: AGHT+IGY1gtZyugYs59Oh0xs75C9F8tbhBYXZ88zYfkObKkanjuiaV6W6vhfjQgDq/hs9c0YKjdHWA== X-Received: by 2002:a05:6871:707:b0:1bf:4a66:d54f with SMTP id f7-20020a056871070700b001bf4a66d54fmr8198971oap.56.1692590151273; Sun, 20 Aug 2023 20:55:51 -0700 (PDT) Received: from komputer-raambm.ub.ac.id ([175.45.191.254]) by smtp.gmail.com with ESMTPSA id j8-20020a170902690800b001bc56c1a384sm5830776plk.277.2023.08.20.20.55.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 20:55:50 -0700 (PDT) To: libc-alpha@sourceware.org Cc: srtxg@chanae.alphanet.ch, mdamt@cakraweb.com, RushingAlien Subject: [PATCH] id_ID: Update Time Locales Date: Mon, 21 Aug 2023 10:55:30 +0700 Message-ID: <20230821035530.9075-1-rushing27alien@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-7.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_BARRACUDACENTRAL, 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: RushingAlien via Libc-alpha From: RushingAlien Reply-To: RushingAlien Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" 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