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
0
votes
3 answers

How to display date names (day, month) in Turkish - Php5, Apache2, Intl

I have already installed Intl to my server. I'v changed my default_timezone to Europe/Istanbul and intl.default_locale to tr_TR. I'm still getting the date names in English. What am i missing? Should i change some other settings?
Canser Yanbakan
  • 3,780
  • 3
  • 39
  • 65
0
votes
2 answers

The intl example does not work for me

Running below example from the documentation returns false for me (other examples in this page have the same issue). Is it a bug? $fmt = new IntlDateFormatter( 'en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL, …
Handsome Nerd
  • 17,114
  • 22
  • 95
  • 173
0
votes
0 answers

PHP set timezone id using datefmt_set_timezone

I've come across a deprecated statement in a piece of code; $this->_dateTimeZone = new \DateTimeZone($timezone); $this->_dateFormatter->setTimeZoneId($timezone); Gives Deprecated: IntlDateFormatter::setTimeZoneId(): Use datefmt_set_timezone()…
Daniel
  • 3,726
  • 4
  • 26
  • 49
0
votes
1 answer

Deployment Symfony 2.4 on Microsoft Azure (git/composer)

For the last two days I'm trying to push my application on Azure but I'm facing problems about the Symfony 2.4 deps (with composer). The main error is : symfony/icu v1.2.1 requires lib-icu >=4.4 -> the requested linked library icu has the wrong…
AlixB
  • 1,208
  • 2
  • 10
  • 19
0
votes
1 answer

Install the Intl library in php on a windows system EasyPhp 14

I've to install a PHP extension on my system, (it is already installed on the host system machine but I've reinstalled the system so it is not working any more on my Windows machine). I've EasyPHP installed as a WAMP engine and the module intl.dll…
softwareplay
  • 1,379
  • 4
  • 28
  • 64
0
votes
2 answers

I get this error collator_create: unable to open ICU collator: U_FILE_ACCESS_ERROR on Mac os with php54 installed via brew

Some information about my system: $php -v PHP 5.4.26 (cli) (built: Apr 3 2014 04:46:38) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies $php -i | grep…
tavi
  • 594
  • 6
  • 15
0
votes
0 answers

Apache2.2 won't start after install intl and icu

Good day! I have Centos 5.0 where there was need to install ICU 4.0 or higher to install intl extension. System has had ICU 3.6 so I've searched a way to do this. Followed by this post…
Vdomah
  • 46
  • 1
  • 4
0
votes
1 answer

Zend Framework 2 - translate form errors with variable

I work on a multilingual web application with ZF2 (2.2.6). I've installed php5-intl and enabled it in the php.ini I've add this on my module config : array( 'type' => 'phparray', 'base_dir' => …
Jerob
  • 1
  • 2
0
votes
2 answers

locale_get_default() function issue on localhost

Im using wampserver on localhost with; PHP 5.3.13 Apache 2.2.22 Enabled php_intl.dll extension But i got following error while using locale_get_default() function Fatal error: Call to undefined function locale_get_default() in Or using…
Bora
  • 10,529
  • 5
  • 43
  • 73
0
votes
2 answers

How to make composer recognize intl php extension

I'm trying to install some symfony bundles to create an admin tool found in this tutorial: http://www.ens.ro/2012/07/13/symfony2-jobeet-day-12-the-admin-bundle/ I'm using symfony 2.3.* and am using composer for my dependencies as described here:…
john paul
  • 3
  • 1
  • 3
0
votes
1 answer

Do PHP 5.5' intl extension and PECL intl package origin from the same source code?

Recently I had to move from the PHP 5.5's native intl extension to the intl PECL package for the purpose of keeping intl/ICU up to date. But now I wonder if the behavior of intl code in my PHP code base has remained completely unchanged. My code…
Desmond Hume
  • 8,037
  • 14
  • 65
  • 112
0
votes
1 answer

Symfony 2.2 => symfony 2.3 error Deutsch locale

I have just done the upgrade from 2.2 to 2.3.2 version. Into the symfony 2.2, there was no error. WHen I have upgrading to 2.3.2 version I had this error. Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("[ERROR…
Sam
  • 779
  • 3
  • 18
  • 39
0
votes
1 answer

intlDateFormatter summer time

Symfony 2 use a intlDateFormatter in own DateTimeToLocalizedStringTransformer but is not work correctly. $tz = new DateTimeZone('Europe/Moscow'); $date = new DateTime('1 march', $tz); echo "PHP: " . phpversion() . "
\n"; echo "Intl: " .…
versh23
  • 149
  • 2
  • 12
0
votes
1 answer

Install intl.so with Mamp PRO

I follow this ticket : http://blog.geertvd.be/2011/05/18/installing-the-intl-extension-on-mamp/. When i reboot my MAMP server, and i execute a phpinfo(), the intl extension was not loaded. I don't understand why. I have completed the good php.ini…
djoo
  • 685
  • 1
  • 7
  • 24
0
votes
3 answers

Symfony2 date form type: Fatal error: Call to a member function setLenient() on a non-object

thanks to Stof on IRC i know the answer now. I just wanted to share it, in case someone stumbles upon the same problem. The problem When you have field type datetime: /** * @ORM\Column(type="datetime", name="released_at") */ protected…
ioleo
  • 4,697
  • 6
  • 48
  • 60
1 2 3
28
29