Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
b7f8d6d9
Commit
b7f8d6d9
authored
3 months ago
by
catch
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Issue
#3478408
by jaydev bhatt, quietone, goonerw: Fix errors in update-countries.sh"
This reverts commit
61dfd43e
. (cherry picked from commit
85836e3c
)
parent
c6ae57bf
No related branches found
No related tags found
2 merge requests
!12745
Fixed: Path alias language doesn't changes on changing of node language
,
!12537
Add ViewsConfigUpdater deprecation support for default_argument_skip_url
Pipeline
#487932
passed with warnings
3 months ago
Stage: 🪄 Lint
Stage: 🗜️ Test
Pipeline: drupal
#487965
Pipeline: drupal
#487959
Pipeline: drupal
#487951
+1
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/scripts/update-countries.sh
+1
-11
1 addition, 11 deletions
core/scripts/update-countries.sh
with
1 addition
and
11 deletions
core/scripts/update-countries.sh
+
1
−
11
View file @
b7f8d6d9
...
...
@@ -35,16 +35,6 @@
exit
(
'CLDR data file not found. ('
.
$uri
.
")
\n\n
"
.
$usage
.
"
\n
"
)
;
}
// Fake the t
()
function
used
in
CountryManager.php instead of attempting a full
// Drupal bootstrap of core/includes/bootstrap.inc
(
where t
()
is declared
)
.
if
(!
function_exists
(
't'
))
{
function
t
(
$string
)
: string
{
return
$string
;
}
}
// Read
in
existing codes.
// @todo Allow to remove previously existing country codes.
// @see https://www.drupal.org/node/1436754
...
...
@@ -103,7 +93,7 @@ function t($string): string {
foreach
(
$countries
as
$code
=>
$name
)
{
// For .po translation file
's sake, use double-quotes instead of escaped
// single-quotes.
$name = str_contains($name, '
\'
'
)
? '
"' .
$name
. '"
' : "'
" .
$name
. "
'";
$name = str_contains($name, '
\'
' ? '
"' .
$name
. '"
' : "'
" .
$name
. "
'"
)
;
$out .= '
' . var_export($code, TRUE) . '
=>
t
(
' . $name . '
)
,
' . "\n";
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment