Questions tagged [intl]

Intl is a PHP extension which give ability to use Unicode, software internationalization (I18N) and globalization (G11N) from the ICU library.

Intl is the short description for Internationalization.

It's a PHP extension which create a wrapper for the library.

There are several modules available:

More information can be found on the PHP.net documentation.

434 questions
107
votes
20 answers

PHP Warning: Module already loaded in Unknown on line 0

On Mac OSX Mavericks using homebrew php55 whenever I run a a php command I get the following error message (everything runs fine it's just annoying) PHP Warning: Module 'intl' already loaded in Unknown on line 0 I ran php --ini and the output…
Drew Landgrave
  • 1,515
  • 3
  • 13
  • 23
83
votes
20 answers

intl extension: installing php_intl.dll

I'm trying to locate php_intl.dll and install it. Does anyone have any tips?
David
  • 3,075
  • 3
  • 26
  • 36
47
votes
12 answers

intl package and date formatting strange behaviour

I start to use intl package in my dart project. After start to use this package i use this code: DateTime now = new DateTime.now(); var formatter = new DateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); String nowFormatted = formatter.format(now); And…
Andrea Bozza
  • 1,374
  • 2
  • 12
  • 31
44
votes
4 answers

PHP intl extension in Docker container

I'm trying to load the intl PHP extension in my Docker container, but it doesn't seem to work. Have already tried this https://github.com/docker-library/php/issues/57 but I still get the same error message: configure: error: in…
Marcelo Noguti
  • 830
  • 1
  • 9
  • 17
37
votes
4 answers

React-Native and Intl polyfill required on Android device

I recently updated my Android Studio and many components/sdk and since then React-Intl complains about intl library missing, even though it was working fine before. I have installed the intl polyfill and I import it at the very top of my main file…
alexmngn
  • 9,107
  • 19
  • 70
  • 130
36
votes
3 answers

Could not find required `intl` object. needs to exist in the component ancestry

We keep getting random error messages via Airbreak from our React app while using React Intl for localization. Error message Invariant Violation: [React Intl] Could not find required intl object. needs to exist in the component ancestry. Our…
Rcls
  • 689
  • 2
  • 8
  • 13
33
votes
11 answers

Install intl PHP extension OSX High Sierra

How can I install intl PHP extension in PHP 7.1.7, which is delivered with osx high sierra?
Mondy
  • 2,055
  • 4
  • 19
  • 29
31
votes
7 answers

PHP intl country code 2 chars to country name

I'm trying to convert, using PHP, 2 characters country codes (ISO 3166-1) to country names, or intl country codes, so I can translate the country name. Using Locale::getDisplayRegion needs locale codes for languages (nl_NL) and all I have is the 2…
Surt
  • 581
  • 1
  • 5
  • 18
28
votes
2 answers

How to install the Intl extension for Twig

The Intl extension is an extension for Twig that adds the localizeddate, localizednumber and localizedcurrency filters. How can I install and set up the extension so that I can use those filters in my Twig templates?
julio
  • 2,762
  • 4
  • 22
  • 34
27
votes
4 answers

Flutter internationalization - Dynamic strings

I'm translating my app to spanish using the intl package. locales.dart class AppLocale { ... String get folder => Intl.message("Folder", name: 'folder'); ... } messages_es.dart class MessageLookup extends MessageLookupByLibrary { get…
Notheros
  • 2,137
  • 9
  • 23
  • 34
23
votes
5 answers

Can't get to install 'intl' extension for php on debian

I have a Debian server and I want to install the intl extension through pecl. During the installation it asks me: "Specify where ICU libraries and headers can be found [DEFAULT] :" Here I've been trying several options, including leaving it empty…
matubaum
  • 231
  • 1
  • 2
  • 3
17
votes
7 answers

How to solve the issue - please install the "intl" extension for full localization capabilities

What i Need I'm implementing currency symbol using symfony. I have referred this link : http://symfony.com/doc/current/components/intl.html. The code i have implemented: use Symfony\Component\Intl\Intl; …
user2818060
  • 835
  • 5
  • 19
  • 41
16
votes
6 answers

Mac OS: Intl extension is not loaded

macOS Mojave 10.14.3 PHP 7.1.23 Prestashop 1.7.5.1 I tried to install PHP intl extension on my local server in order to use Prestashop. I added extension=php_intl.so to etc/php.ini When I try to install Prestashop I get Intl extension is not…
Aliz
  • 377
  • 1
  • 3
  • 14
16
votes
8 answers

The requested PHP extension intl is missing from your system (SonataAdminBundle) in Symfony2

I try to install the sandbox but I get the following error from composer: Loading composer repositories with package information Installing dependencies from lock file Your requirements could not be resolved to an installable set of…
Krishna Ghodke
  • 589
  • 2
  • 6
  • 26
16
votes
6 answers

PHP NumberFormatter and Currency, can't set precision

I want to set a precision of 0 when using the NumberFormatter PHP class (from Intl extension) with currency. However I've got some strange result. Here: $numberFormatter = new NumberFormatter('en-US',…
Michael Gallego
  • 1,746
  • 1
  • 20
  • 29
1
2 3
28 29