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.

343 questions
80
votes
18 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,195
  • 2
  • 11
  • 22
76
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,001
  • 3
  • 22
  • 29
31
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
  • 1,351
  • 3
  • 12
  • 22
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?
julestruong
  • 2,303
  • 3
  • 18
  • 29
27
votes
3 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
  • 7,551
  • 14
  • 57
  • 117
24
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
  • 620
  • 1
  • 6
  • 17
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
23
votes
10 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,038
  • 2
  • 9
  • 30
21
votes
8 answers

PHP intl country code 2 chars to country name

I'm triying to convert, using PHP, 2 characters country code (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
  • 482
  • 1
  • 4
  • 18
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
  • 569
  • 2
  • 5
  • 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,595
  • 1
  • 15
  • 27
15
votes
5 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
  • 795
  • 2
  • 16
  • 40
13
votes
1 answer

Failed to write error when installing intl extension on Os x El Capitan

I'm trying to install intl extension on Os x El Capitan. Every time i run sudo pecl install intl, i'm getting following error on the last step. I don't know why the copy operation failed. Is it a bug or am i missing something? Any help is really…
mocak
  • 406
  • 2
  • 5
  • 11
12
votes
3 answers

gettext() equivalent in Intl library?

I'm looking for a way to to do i18n and l10n. I've used gettext before and it was good: I would simply create .mo files in different languages and everything that needed to be translated would be in this notation: echo __('string to be…
Stann
  • 12,029
  • 18
  • 60
  • 72
12
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
  • 317
  • 1
  • 3
  • 13
1
2 3
22 23