Req #78649 [Com]: Provide ICU RELATIVE_ constants
| From: | kocsismate@php.net | Date: | Tue, 21 Jan 2020 23:18:12 +0000 |
| Subject: | Req #78649 [Com]: Provide ICU RELATIVE_ constants | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-225034@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78649&edit=1
ID: 78649
Comment by: kocsismate@php.net
Reported by: math dot lechat at gmail dot com
Summary: Provide ICU RELATIVE_ constants
Status: Assigned
Type: Feature/Change Request
Package: I18N and L10N related
PHP Version: Irrelevant
Assigned To: kocsismate
Block user comment: N
Private report: N
New Comment:
I opened the following PR for fixing the issue: https://github.com/php/php-src/pull/5105
Previous Comments:
------------------------------------------------------------------------
[2019-10-08 18:17:19] math dot lechat at gmail dot com
Description:
------------
ICU currently provides limited support for formatting dates using a ârelativeâ style,
specified using RELATIVE_SHORT, RELATIVE_MEDIUM, RELATIVE_LONG. or RELATIVE_FULL whose value is
their absolute counterpart ORed by 128.
Intl currently only provides the absolute formats as constants. One can use a relative format by
setting the correct numerical value though.
Could relative formats be added as constants?
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78649&edit=1