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
Value of key someKey in the current website language
with the given arguments (dog and fox) assigned for the specified %s conversions (:php:sprintf()) in the language file::
The text was updated successfully, but these errors were encountered:
The ViewHelper docs are actually part of the fluid repository, which is why you probably couldn't easily create a PR for it.
Good suggestion to enhance this.
Personally I wouldn't change the example to be more complicated, but rather adjust the sentence that points to sprintf, and state something like: "You can also use placeholders for ordering arguments loke %1$s or other formatting like %d and %f, as outlined in the PHP documentation for sprintf (link)"?
I could not change it directly.
Bad example:
{f:translate(key: 'someKey', arguments: {0: 'dog', 1: 'fox'}, default: 'default value')}
Value of key
someKey
in the current website languagewith the given arguments (dog and fox) assigned for the specified
%s
conversions (:php:sprintf()
) in the language file::The text was updated successfully, but these errors were encountered: