-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[2.2] [Locale] add StubResourceBundle #4081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -11,6 +11,7 @@ if (!function_exists('intl_get_error_code')) { | |||
$loader->add('Collator', __DIR__.'/src/Symfony/Component/Locale/Resources/stubs'); | |||
$loader->add('Locale', __DIR__.'/src/Symfony/Component/Locale/Resources/stubs'); | |||
$loader->add('NumberFormatter', __DIR__.'/src/Symfony/Component/Locale/Resources/stubs'); | |||
$loader->add('ResourceBundle', __DIR__.'/src/Symfony/Component/Locale/Resources/stubs'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add this in the composer.json files too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah sorry, the stub is not in composer because the functions cannot be autoloaded
ping @eriksencosta |
* @author stealth35 | ||
* @see Symfony\Component\Locale\Stub\StubResourceBundle | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This docblock is misplaced. It should be before the class declaration line.
@eriksencosta you probably missed my update. In that same PR the format switch does still make files icu 4.2 is unable to read. |
@eriksencosta Thank, the ICU res, is a docless format, but now I fully understand it
It's a missing feature, when this PR will be OK for all, we could merge this in the 2.0
Yes and No, There is also the
I have made the Translation |
Ping me when everybody thinks this is mergeable. |
@stealth35 I just think this could have some more tests, specially testing against the intl implementation too since this helps a lot to identify and document the differences in the implementation (as you did when you enhanced the error handling in And about the script to update the binary files, I was just thinking in calling @mvrhov Yes, I missed, I was sleepy :) @fabpot Could we backport this to 2.0 if merged in master? |
@eriksencosta If you want this to be in 2.0, the PR must be done on the 2.0 branch. |
@fabpot Ok. So @stealth35, this needs to be made in 2.0. |
@stealth35 Do you have time to make the last changes before I can merge? |
@fabpot, sorry I'm busy for now, but it's fonctionnal for the |
@stealth35 @eriksencosta what is the status here ? |
@stof I finalize it this next week |
@stealth35 Ping me if you need help. I'll be online on #symfony-dev in the weekend. I have a setup with PHP 5.3.2 and 5.3.13 with ICU from 4.2 to 49. A good way to have this installed is using phpenv/php-build to easily compile different versions of PHP. |
@stealth35 @eriksencosta It would be good to have this PR merged before 2.1.0 beta2. Do you know when it will be ready? |
correct CS correct CS correct CS prettify getLocales Add some docs, check the magic number
@stealth35 @eriksencosta what is the status here (except for the fact that rebasing is needed) ? 2.1beta2 is already out there, and 2.1beta3 too |
@stof I can only assist @stealth35 on this for now, I am concentrating my time on the ICU data update (#3528) and other minor fixes on Locale. |
Rescheduling this PR for 2.2. |
@stealth35 @eriksencosta What is the status here ? The lack of the ResourceBundle stub means that the CountryType and the LocaleType have a hard dependency to intl currently. |
I'm without free time until late november. I can help after it in time for 2.2. |
@eriksencosta Will you have some free time in December to work on this PR? |
Looks like this PR is now obsolete (see #7386). @bschussek Can we close this PR? |
Wow, I didn't see someone actually reimplemented ResourceBundle! I'm impressed. This PR is not obsolete, because #7386 also does not provide a PHP implementation of this class. The code should be moved to |
@stealth35 Do you think you can make these changes? In how far is your implementation complete? |
Closing as it is obsolete now, but I've created an issue to keep track of the code (see #8704). |
res
file, version1.2
Locale::getFallbackLocale
is nowpublic
StubCollator
inLocale::getDisplayLanguages
,getDisplayLocales
,getDisplayCountries
Next Step : I think this can be useful for
StubIntlDateFormatter