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
98ca5625
Commit
98ca5625
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
7b58a06d
No related branches found
No related tags found
5 merge requests
!12802
Issue #3537193 by opauwlo: Add enable absolute path option for CKEditor5 image uploads
,
!12684
Issue #3220784
,
!12523
Issue #3493858 by vidorado, xavier.masson, smustgrave: Extend ViewsBlockBase...
,
!12235
3526426-warning-for-missing
,
!8559
#3450868 Add ViewsConfigUpdater deprecation support for default_argument_skip_url
Pipeline
#488217
passed
3 months ago
Stage: 🪄 Lint
Stage: 🗜️ Test
Pipeline: drupal
#488218
Changes
1
Pipelines
16
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 @
98ca5625
...
...
@@ -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