Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101147 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67481 invoked from network); 22 Nov 2017 21:30:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Nov 2017 21:30:07 -0000 Authentication-Results: pb1.pair.com header.from=markus.fasselt@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=markus.fasselt@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.174 as permitted sender) X-PHP-List-Original-Sender: markus.fasselt@gmail.com X-Host-Fingerprint: 209.85.128.174 mail-wr0-f174.google.com Received: from [209.85.128.174] ([209.85.128.174:41864] helo=mail-wr0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 82/F3-01384-B5CE51A5 for ; Wed, 22 Nov 2017 16:30:06 -0500 Received: by mail-wr0-f174.google.com with SMTP id z14so15825514wrb.8 for ; Wed, 22 Nov 2017 13:30:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=PAjgKmKPCi3u4gNbWrEDKJvQT0n1h3aDS8U53VqYXL4=; b=NqSxMYId8eI8Opwio5JczyhgED8QYaPbjhiJYTyxfHxDXVUsv/Hqi3bX1/cPgvlyq9 Ad9NApRt5AXruHOOO9xg9BYGJ2MnLPku3EradGim3kDs1rHDHpXMmFSdF5u1X7fjY5Hd ES8kCi9whjcclst0pbipTNKzTwXp2ufJwodbpG4DGFF5qsnBLaNFhsDvFakgzREQdPZj 3Bdp7i6M48uUudVbuzQEXQDE0gDJdD4LhCEItr7wK475rKXKPbdAdSsXc1tSYINuzieu J2FyktaOAItsYKA5bO/M3g4IJhBXpJ9Vg6oeW2m9BpzTR7U1hN5lhudd7Yy2TkNtYFWr fG3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PAjgKmKPCi3u4gNbWrEDKJvQT0n1h3aDS8U53VqYXL4=; b=XOwkAw97f44HoW0wcGo0KQRmJ0hH8k+6wSBNlh6/OJASjD8lheYp9Md7i191gMOAK0 vlHhDJi+H5HnKainBzrhsLaWSIlXghkf0lEtT8ASdZHwWpif/prh7hfrDLLoSrqEjPX/ c+Yapi1QHNpH8PDNhB3X3Mr7FcWxRot3MFZRkCTQH0iUJ+6X2RF6TFm1qQgVGvo7EFJx vWunJeCaafvCKyq9KMVCMh1O4EQj2E+XDH4jGdL8Msi5rYHotlGxMU1gevLb9KRSP06s 00tVAQ3KUKPLxgQxI9OLD7YvVHcEphM0rcyTBYaaNeenhZO0e+B2EIlSeaPPLC7hdnAG QMCQ== X-Gm-Message-State: AJaThX4wKd3r6F2o7oSyZBsnXZHsuBHAstW1KSFsf0LiEBXni2gHg4GJ Nuc96E2qvIp7MaPUrVLnNmYh/f2j X-Google-Smtp-Source: AGs4zMYsZJc647V8Q3WObgXl2F7LkpbHzI4Oedkc354akBYvBH1rUzpJhF26XcGLycI+jVaNWs5hBg== X-Received: by 10.223.130.17 with SMTP id 17mr19515372wrb.131.1511386200125; Wed, 22 Nov 2017 13:30:00 -0800 (PST) Received: from [192.168.178.29] (x4e333f23.dyn.telefonica.de. [78.51.63.35]) by smtp.googlemail.com with ESMTPSA id d9sm11805319wrf.45.2017.11.22.13.29.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Nov 2017 13:29:59 -0800 (PST) To: Derick Rethans Cc: PHP Developers Mailing List References: <27be8912-b520-d70b-e2c0-49a194ce2ceb@gmail.com> Message-ID: <2c8f627e-432c-4567-68ef-35a6a2e91f29@gmail.com> Date: Wed, 22 Nov 2017 22:29:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Preposition in IntlDateFormatter From: markus.fasselt@gmail.com (Markus Fasselt) Thank you Derick, I will report it there. Regards, Markus On 20.11.2017 11:03, Derick Rethans wrote: > On Sun, 19 Nov 2017, Markus Fasselt wrote: > >> 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. > > The information used for this is not part of the PHP source or code, but > comes out of ICU, which uses CLDR for its localisation information. > > CLDR doesn't include the "v" for Cs. > > From common/main/cs.xml: > > > > > {1} {0} > > From common/main/de.xml: > > > > > {1} 'um' {0} > > CLDR can be downloaded at http://cldr.unicode.org/index/downloads, and > bugs can be file at http://cldr.unicode.org/index/bug-reports > > cheers, > Derick >