intl

FLUTTER: Localization of a multi-screen app

♀尐吖头ヾ 提交于 2020-02-29 04:23:36
问题 i'm creating a multi screen app on android using Flutter. I'm using intl to localize it, but i don't understand how to procede to create the arb file. Should i run the following commaand flutter pub pub run intl_translation:extract_to_arb --output-dir=lib\l10n lib\main.dart command for every "page/activity/fragment" of my app? 回答1: Are you trying to implement in-app localization? i.e. just changing the app's locale without it being affected by the phone's locale? Then you can refer to this

Symfony 2.2 => symfony 2.3 error Deutsch locale

梦想的初衷 提交于 2020-01-16 17:26:47
问题 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 94] Validation failed: no DTD found ! (in n/a - line 2, column 21) [ERROR 9] Input is not proper UTF-8, indicate encoding ! Bytes: 0xFC 0x67 0x65 0x6E (in n/a - line 51, column 23)") in "MyAppBundle:Controler:index.html.twig". For your information

Symfony 2.2 => symfony 2.3 error Deutsch locale

▼魔方 西西 提交于 2020-01-16 17:26:46
问题 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 94] Validation failed: no DTD found ! (in n/a - line 2, column 21) [ERROR 9] Input is not proper UTF-8, indicate encoding ! Bytes: 0xFC 0x67 0x65 0x6E (in n/a - line 51, column 23)") in "MyAppBundle:Controler:index.html.twig". For your information

Posix and intl extension on windows

时光怂恿深爱的人放手 提交于 2020-01-13 16:22:50
问题 When I installed Symfony2 sandbox and try to check requirements by check.php I had 2 problems. My server don't have posix and intl extensions. I'm using WampServer 2.1e (32 bits) on Windows 7 32bit so my versions of apache and php are: Apache 2.2.17 VC6 ThreadSafe Php 5.3.5 I was trying to apply intl extension from http://windows.php.net/downloads/releases/php-5.3.5-Win32-VC6-x86.zip but i have weird error in apache log: "Can't find extension in c:/wamp/..." I'm sure that extension is in

Preserve trailing zeroes using NumberFormatter in PHP

对着背影说爱祢 提交于 2020-01-11 07:30:41
问题 I'm working on upgrading a legacy system from PEAR's i18nv2 class to PHP's built-in INTL library. When I specify a pattern like #,##0.## and run NumberFormatter::format() on a number like 12345.1000 I get 12,345.1 shouldn't trailing zeroes be preserved? Is there a good way to add trailing zeroes after the fact taking into consideration that in many locales, a decimal is represented by a comma instead of the decimal character? Explained with code: $n = new NumberFormatter('en_CA',

gettext() equivalent in Intl library?

只愿长相守 提交于 2020-01-10 14:10:36
问题 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 translated'); I know that there is Intl library built into PHP now, and I've been told that I should use it instead of gettext() . After reading through everything there is about Intl on php.net, I see that it has some nice features like locale handling, string

PHP IntlDateFormatter format returns wrong date

Deadly 提交于 2020-01-04 05:14:31
问题 I'm getting incorrect results using IntlDateFormatter: $dateFormater = \IntlDateFormatter::create( 'en_EN', \IntlDateFormatter::LONG, \IntlDateFormatter::NONE ); $a = date('Y/m/d H:i:s',1332712800); //2012/03/26 00:00:00 $b = $dateFormater->format(1332712800); //March 25, 2012 But this only happens for dates between 2012/03/26 and 2012/10/28 and without hour (00:00:00). I can't find out what is the problem. Thanks for the help. 回答1: http://userguide.icu-project.org/datetime/timezone#TOC

install php intl extension on mountain lion

让人想犯罪 __ 提交于 2020-01-01 15:47:09
问题 I'm trying to install rubedo cms, and get an error in the php application: Zend\I18n\Validator component requires the intl PHP extension These are the steps I've taken to install the extension sudo port install php5-intl sudo cp /opt/local/lib/php54/extensions/no-debug-non-zts-20100525/intl.so /usr/lib/php/extensions/no-debug-non-zts-20090626/ sudo pico /private/etc/php.ini add extension=intl.so then sudo apachectl restart 回答1: I found the problem. I needed the right version of intl. I'm

No releases available for package “pecl.php.net/intl”

試著忘記壹切 提交于 2019-12-31 04:20:08
问题 I'm trying to install intl for php. When I'm running sudo pecl install intl it gives me an error No releases available for package "pecl.php.net/intl" . I have tried to clear cache and also I tried to upgrade pear and pecl . Nothing. Here my pear and php versions: PEAR Version: 1.9.4 PHP Version: 5.6.3 Zend Engine Version: 2.6.0 Running on: Darwin iMac-bvc.local 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep 1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64 Any ideas? Thanks in

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

非 Y 不嫁゛ 提交于 2019-12-29 07:27:12
问题 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; \Locale::setDefault('en'); $currencies = Intl::getCurrencyBundle()->getCurrencyNames(); $currency = Intl::getCurrencyBundle()->getCurrencyName('INR'); $symbol = Intl::getCurrencyBundle()->getCurrencySymbol('INR'); $fractionDigits = Intl::getCurrencyBundle()->getFractionDigits('INR');