Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Intl] Fix root fallback locale#31411

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:3.4fromro0NL:intl-locale
May 8, 2019
Merged

[Intl] Fix root fallback locale#31411

fabpot merged 1 commit intosymfony:3.4fromro0NL:intl-locale
May 8, 2019

Conversation

@ro0NL
Copy link
Contributor

@ro0NLro0NL commentedMay 7, 2019
edited
Loading

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes (including intl-data group)
Fixed tickets#...
LicenseMIT
Doc PRsymfony/symfony-docs#...

We should never return "root" as a fallback locale for the "root" locale itself.

While at it, i realized the alias meta files are pointless :)

4.2)ro0NL@b9fc8b7
4.3)ro0NL@922a1eb

}catch (MissingResourceException$e) {
$displayFormat =$reader->readEntry($tempDir.'/lang','root', ['localeDisplayPattern']);
}
$displayFormat =$reader->readEntry($tempDir.'/lang',$displayLocale, ['localeDisplayPattern']);
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

defaulting to root during compile makes things like this more straightforward (the timezone generator in master also benefits)

i've verified it causes no side-effects in 4.2 / master 👍

{
// Apply generic notation using square brackets as described per http://cldr.unicode.org/translation/language-names
$name =str_replace(['(',')'], ['[',']'],$this->languageDataProvider->getName(\Locale::getPrimaryLanguage($locale),$displayLocale));
$name =str_replace(['(',')'], ['[',']'],$reader->readEntry($tempDir.'/lang',$displayLocale, ['Languages',\Locale::getPrimaryLanguage($locale)]));
Copy link
ContributorAuthor

@ro0NLro0NLMay 7, 2019
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

now usesIntlBundleReader instead ofJsonBundleReader ... total compilation time;

3.4real    1m40.170sPRreal    0m22.073s

moreover, this allows to keep the generators decoupled

jakzal reacted with heart emoji

echo"Starting resource bundle compilation. This may take a while...\n";

$filesystem->remove($workingDirs);
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

this is done in each generator already

@fabpot
Copy link
Member

Thank you@ro0NL.

@fabpotfabpot merged commit11ff24a intosymfony:3.4May 8, 2019
fabpot added a commit that referenced this pull requestMay 8, 2019
This PR was merged into the 3.4 branch.Discussion----------[Intl] Fix root fallback locale| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no| Tests pass?   | yes (including intl-data group)| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->We should never return "root" as a fallback locale for the "root" locale itself.While at it, i realized the alias meta files are pointless :)4.2)ro0NL@b9fc8b74.3)ro0NL@922a1ebCommits-------11ff24a [Intl] Fix root fallback locale
@ro0NLro0NL deleted the intl-locale branchMay 8, 2019 06:33
This was referencedMay 28, 2019
nicolas-grekas added a commit that referenced this pull requestMay 29, 2019
This PR was merged into the 4.3 branch.Discussion----------[Intl][4.3] Cleanup internal api| Q             | A| ------------- | ---| Branch?       | 4.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->Forgotten in#31411 (comment)Commits-------6eab5d2 [Intl][4.3] Cleanup internal api
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot left review comments

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@ro0NL@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp