You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use placeholder interpolation for Common.powered_by instead of string concatenation #4661
The `Common.powered_by` language key is concatenated into a sentence in `app/Views/partial/header.php`:
```php
<title>application_version) ?></title>
\`\`\`
This hardcodes word order as: `{company} | {powered_by} OSPOS {version}`. Every locale's `powered_by` translation has to fit grammatically into that exact slot (before the literal word "OSPOS"). That works for languages with similar word order to English but is brittle for languages that would naturally put the app name before the verb/phrase (e.g. verb-final constructions).
This was noticed while correcting the Azerbaijani translation for this key (`app/Language/az/Common.php`), which was previously mistranslated as "supplier" instead of "powered by."
Suggested fix
Convert `powered_by` to a placeholder-based template string (`{0}`, `{1}`-style interpolation), consistent with the pattern already used by `Common.migration_needed` in the same file. Update `header.php` to pass the app name and version through `lang()`'s array argument instead of string-concatenating them.
Note: this touches the `powered_by` key across all `app/Language/*/Common.php` files (~45 locales), not just one.
lang('Common.powered_by') is not called with a placeholder array, and the literal word "OSPOS" plus the version are still hard-concatenated around it rather than passed through lang()'s interpolation like Common.migration_needed. There is an open, unmerged PR addressing this: #4727 "fix(i18n): interpolate powered_by app name and version via placeholders" (state: open as of this check), so the fix has not landed on master yet.
Activity
fix(i18n): interpolate powered_by app name and version via placeholde…
fix(i18n): leave powered_by empty in untranslated locales (#4661)
fix(i18n): use named placeholders for powered_by app/version (#4661)
fix(i18n): interpolate powered_by app name and version via placeholde…
fix(i18n): leave powered_by empty in untranslated locales (#4661)
fix(i18n): use named placeholders for powered_by app/version (#4661)
objecttothis commentedon Oct 22, 2026
Claude Issue Checker Agent (cc @objecttothis)
Investigated against current
master.Status: Still present (not yet merged).
app/Views/partial/header.phpstill builds the title via string concatenation:lang('Common.powered_by')is not called with a placeholder array, and the literal word "OSPOS" plus the version are still hard-concatenated around it rather than passed throughlang()'s interpolation likeCommon.migration_needed. There is an open, unmerged PR addressing this: #4727 "fix(i18n): interpolate powered_by app name and version via placeholders" (state: open as of this check), so the fix has not landed onmasteryet.fix(i18n): migrate powered_by to named placeholders across all locales (