Fix untranslatable translation string. #8926
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Instead of splitting the strings in two to encompass the variable, better to merge as one string and then pull the variable using sprintf.
Splitting as two means it would only be possible to translate the strings sensibly to languages which use the same SVO (Subject-Verb-Object) word order as English. For languages with different word order, subsequent translations would make no sense.
By merging as one string, word order doesn't matter anymore, because translations can be arranged however needed.
Because this file (
index.php
) doesn't include or require any other PHP files (most notably, thelocale/function.php
file, which is normally responsible for defining the__
function and loading any necessary locale data), and appears instead to define the__
function itself (where it simply returns the input value verbatim, without touching any locale data), it isn't entirely clear whether any of the apparent translation strings in this file are actually intended to ever be translated. However, given that the__
function is being called for the strings instead of just echoing or printing the strings directly, I assume the__
function as defined by this file is intended as either a temporary placeholder or as a fallback function, with plans to eventually have this file utilise existing locale data, either through including/requiringlocale/function.php
or some other means.