Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101143 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98166 invoked from network); 19 Nov 2017 21:55:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2017 21:55:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=markus.fasselt@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=markus.fasselt@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.44 as permitted sender) X-PHP-List-Original-Sender: markus.fasselt@gmail.com X-Host-Fingerprint: 74.125.82.44 mail-wm0-f44.google.com Received: from [74.125.82.44] ([74.125.82.44:41483] helo=mail-wm0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D5/60-17006-6CDF11A5 for ; Sun, 19 Nov 2017 16:55:19 -0500 Received: by mail-wm0-f44.google.com with SMTP id b189so15335448wmd.0 for ; Sun, 19 Nov 2017 13:55:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=ZaG72hBcivGVkA8RVFprWgCaCHQEQSKPjttj1OWwfSE=; b=b/AQIASDL5r2hVaZUu0cKsZKBHHn0KzXZ2apybB1oLpZEGLwdOBS/yXcuvihuqgYs5 IG2CRMZZ543ErKLTnHCo4/ktdHxsJyOC0ZfYV1K0krVwx0IysbNWDJ+j18zyDQE4FPG1 23qEBaSMItBjnDF59F4bsyhXSFaX+NXumN1dUwvtp65uDt5kIHaT/k5no6AZryVgkDvN VEawMmtQ+XmSg5fEOKRzJ3XP6qyFHNRtmFf9tce39Z9xxrE+hwh4FcyfqxCTN6SITxx9 M8UGv4DccDmrisOPoaDZyCajeTUUGvW4Skcp54mf3uTXszZJTbjrfRUSySRedAptRAvS +KFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=ZaG72hBcivGVkA8RVFprWgCaCHQEQSKPjttj1OWwfSE=; b=HaTei1fxOhg4H0jAY7QyjxxOXXbDfu7Rq6fSGGOBI2uSlGBX3HusAziHnMN2chnbKi +LtRctiuJBmv1D6uEqRP4kv17U5HgYvZq3TyeQ/ZycStc3SEY0cFNy2O8XqT1aO7SzcQ Dlj36xBV95915NxKszGk2IxFazNpPbVSiBoq8IPcyeCi7b0m74/hOkZNmCcUiwbWqHLI G+w6VlK8ndm5g0vLcmIvyxfKpfCyVps5wJMZ5UcXLNQDJ0iWRUYEYLphqUead0YtJYu7 trf9X8Fk4T1wAklqrbMGqPZmXtgy0jP49ON3PN+FcPGE6cNpHHL6KCNjyt6czftuy4cp A39A== X-Gm-Message-State: AJaThX5vk53hLvpZZx24METhQitkECSKMnIEbti9ndUXSAKnWvEFj+xH ybzvFMG6wLOZhgXe7dVJwerG6pOz X-Google-Smtp-Source: AGs4zMYYWaLl6323mjXnV5hWExYefUL7V3/YFF6QG5cuqKoK5neI2f4xq/Orj46IR2DonwXUEA1S/A== X-Received: by 10.28.206.142 with SMTP id e136mr9475664wmg.27.1511128516052; Sun, 19 Nov 2017 13:55:16 -0800 (PST) Received: from [192.168.178.29] (x4dbbef2b.dyn.telefonica.de. [77.187.239.43]) by smtp.googlemail.com with ESMTPSA id y15sm21631377wrc.96.2017.11.19.13.55.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Nov 2017 13:55:15 -0800 (PST) To: internals@lists.php.net Message-ID: <27be8912-b520-d70b-e2c0-49a194ce2ceb@gmail.com> Date: Sun, 19 Nov 2017 22:55:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Subject: Preposition in IntlDateFormatter From: markus.fasselt@gmail.com (Markus Fasselt) Hello internals, I just noticed an issue with PHP's DateFormatter and some locales. Consider this example code: > foreach (['en', 'de', 'da', 'pt', 'fr', 'cs'] as $locale) { > $df = new IntlDateFormatter($locale, IntlDateFormatter::LONG, IntlDateFormatter::SHORT); > var_dump($locale . ': ' . $df->format(new DateTime())); > } which will output the following: > string(33) "en: November 19, 2017 at 10:28 PM" > string(30) "de: 19. November 2017 um 22:28" > string(31) "da: 19. november 2017 kl. 22.28" > string(32) "pt: 19 de novembro de 2017 22:28" > string(29) "fr: 19 novembre 2017 à 22:28" > string(28) "cs: 19. listopadu 2017 22:28" As you can see, the first examples all have a preposition before the time. But there is none for the Czech language - there should be a "v". Some other languages are missing their prepositions as well, e.g. pl and se (and probably more). Is this a bug? I am no native speaker in these languages, but got a bug report from a user and did some research. In my opinion, the prepositions are missing. Thanks, Markus