458 questions
4
votes
1
answer
47
views
Why does PHP setlocale not seem to accept a script subtag?
If I run the following code on a Linux server
<?php
declare(strict_types=1);
error_reporting(-1);
ini_set('display_errors', '1');
var_dump(Locale::acceptFromHttp('zh_Hant_TW'));
echo "<br&...
3
votes
0
answers
238
views
How to get canonical IANA timezone ids in javascript
How would I get a list containing only and all canonical IANA time zone ids in javascript?
While I fully intend to support all IANA time zone ids in my application, when users select a timezone, I ...
0
votes
3
answers
117
views
What is the difference between PHP's mb_strolower() and IntlChar::tolower()?
I have been testing PHP's mb_strtolower() and IntlChar::tolower() functions. By and large they give the same results, but I notice that they give different results for the Turkish dotted I 'İ': ...
0
votes
1
answer
259
views
Intl.NumberFormat not showing thousand separator on iOS 18.5 for values < 10000
I've recently updated my iOS device to version 18.5, and I noticed an unexpected behavior with Intl.NumberFormat.
Specifically, the thousands separator (".") is missing for values < ...
0
votes
1
answer
51
views
the following error occurred when running the ` flutter packages pub run build_runner build`
C:\Users\xxx\fvm\versions\3.7.12-ohos-1.0.4\bin\flutter.bat --no-color pub global run intl_utils:generate
intl_utils 2.8.8 doesn't support Dart 2.19.6.
something went error,here is my code(pubspec....
0
votes
1
answer
928
views
PHP 8.4.3 unable to load extension intl despite being uncommented and at the path specified
I am attempting to install the latest version of MediaWiki (1.43), and I am using PHP version 8.4.3. The OS is Windows Server 2022 Datacenter.
Here is the error I get from command-line:
PHP Warning: ...
1
vote
0
answers
151
views
How to split Flutter ARB localization files by feature in a clean code folder structure?
I am working on a Flutter project following a clean code architecture, and I use ARB files for localization. I’d like to organize the translation files within each feature and component, but I’m ...
2
votes
0
answers
242
views
How install intl extension on MacOS and enable it on XAMPP
Environment:
O.S.: macOS Sonoma 14.5
Xampp: 8.2.4-0
PHP Version:
php --version
PHP 8.2.4 (cli) (built: Apr 6 2023 04:12:41) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.4, Copyright (c) Zend ...
3
votes
0
answers
48
views
Why does Locale::acceptFromHttp give different result for same input?
I have a PHP (Symfony) project. This currently runs on fpm-alpine base, which all the files mounted in the /app dir.
I'm making a complete image, Nginx+phpFpm + the project in one go.
In the current ...
0
votes
1
answer
232
views
How do i set timezones with Symfony translation and the ICU message format?
I'm storing all my dates as UTC in the database. But I want to display them in the users timezone.
$mydate = new \DateTime('2024-08-07 12:00:00');
Displaying the dates in Twig with the date filter ...
0
votes
2
answers
569
views
How to format user input double in TextField as and when being entered by user in Flutter?
I'm trying to display the user input double (may be without decimal dot and that follows) number as a formatted value e.g. 123456789012.1234 as 12345,67,89,012.1234 using not the western numbering ...
0
votes
1
answer
46
views
Flutter Time Comparaison
How to format string only Time and compare it with the current Time.
var openTime = '08:00';
var closeTime = '20:00';
var now = DateTime.now();
var formatterTime = DateFormat('kk:mm');
var time = ...
0
votes
1
answer
2k
views
depends on intl ^0.19.0, version solving failed
Because the app depends on form_builder_validators ^9.1.0 which depends on intl ^0.18.1, intl ^0.18.1 is required.
So, because app depends on intl ^0.19.0, version solving failed.
Android Studio ...
3
votes
0
answers
1k
views
How to solve: Found unconstructed IntlDateFormatter while building Form in Symfony?
I creating a Symfony 6 form:
->add('startAt', DateType::class, [
'mapped' => false,
'required' => false,
])
I have an error, saying:
Found unconstructed IntlDateFormatter
I expecting ...
1
vote
0
answers
65
views
Intl.Collator sorting in Node, Chrome, Webkit, Firefox and Postgres Collation differences
I am comparing the collation of Intl.Collator in the three browsers, Node and Postgres Collation and realized that the order of most implementations are very different. The only two implementations ...