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

Appearance settings

[Intl] Fix LocaleDataGenerator #31301

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

Merged
merged 1 commit into from
Apr 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @internal to be removed in 5.0.
* @internal
*/
class LanguageDataProvider
{
Expand All @@ -38,11 +38,17 @@ public function __construct(string $path, BundleEntryReaderInterface $reader)
$this->reader = $reader;
}

/**
* @internal to be removed in 5.0.
*/
public function getLanguages()
{
return $this->reader->readEntry($this->path, 'meta', ['Languages']);
}

/**
* @internal to be removed in 5.0.
*/
public function getAliases()
{
return $this->reader->readEntry($this->path, 'root', ['Aliases']);
Expand All @@ -57,6 +63,9 @@ public function getName($language, $displayLocale = null)
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $language]);
}

/**
* @internal to be removed in 5.0.
*/
public function getNames($displayLocale = null)
{
if (null === $displayLocale) {
Expand All @@ -75,6 +84,9 @@ public function getNames($displayLocale = null)
return $languages;
}

/**
* @internal to be removed in 5.0.
*/
public function getAlpha3Code($language)
{
return $this->reader->readEntry($this->path, 'meta', ['Alpha2ToAlpha3', $language]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @internal to be removed in 5.0.
* @internal
*/
class RegionDataProvider
{
Expand All @@ -38,6 +38,9 @@ public function __construct(string $path, BundleEntryReaderInterface $reader)
$this->reader = $reader;
}

/**
* @internal to be removed in 5.0.
*/
public function getRegions()
{
return $this->reader->readEntry($this->path, 'meta', ['Regions']);
Expand All @@ -52,6 +55,9 @@ public function getName($region, $displayLocale = null)
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $region]);
}

/**
* @internal to be removed in 5.0.
*/
public function getNames($displayLocale = null)
{
if (null === $displayLocale) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @internal to be removed in 5.0.
* @internal
*/
class ScriptDataProvider
{
Expand All @@ -38,6 +38,9 @@ public function __construct(string $path, BundleEntryReaderInterface $reader)
$this->reader = $reader;
}

/**
* @internal to be removed in 5.0.
*/
public function getScripts()
{
return $this->reader->readEntry($this->path, 'meta', ['Scripts']);
Expand All @@ -52,6 +55,9 @@ public function getName($script, $displayLocale = null)
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $script]);
}

/**
* @internal to be removed in 5.0.
*/
public function getNames($displayLocale = null)
{
if (null === $displayLocale) {
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.