Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
potx
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
potx
Commits
0f993cc8
Commit
0f993cc8
authored
2 years ago
by
Gábor Hojtsy
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2822761
by Gábor Hojtsy: minor PHP syntax followup fix
parent
bb7d5c0a
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!23
Issue #2611298 by herom, sanduhrs, idebr, Kgaut, DuneBL, Gábor Hojtsy,...
,
!19
Allow to hook into translatebles discovery
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/potx_test_8.module.txt
+1
-1
1 addition, 1 deletion
tests/potx_test_8.module.txt
with
1 addition
and
1 deletion
tests/potx_test_8.module.txt
+
1
−
1
View file @
0f993cc8
...
...
@@ -32,7 +32,7 @@ function potx_test_8_example() {
$g = new TranslatableMarkup('TranslatableMarkup string with complicated option tokens', [], ['foo' => potx_test_8_sample([4]), 'bar' => [12, 14, []], 'context' => 'With context', 'eek' => 'ook']);
// Test with @placeholders and short array context
$z = new TranslatableMarkup('TranslatableMarkup string with a @placeholder', array(@placeholder => 'foo'));
$z = new TranslatableMarkup('TranslatableMarkup string with a @placeholder', array(
'
@placeholder
'
=> 'foo'));
$h = new TranslatableMarkup('TranslatableMarkup string with a @placeholder and context',
array('@placeholder' => $foo),
array('context' => 'Test context')
...
...
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