Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make translations with parameters work? #65

Open
ppazos opened this issue Dec 27, 2019 · 1 comment
Open

How to make translations with parameters work? #65

ppazos opened this issue Dec 27, 2019 · 1 comment

Comments

@ppazos
Copy link

ppazos commented Dec 27, 2019

In the doc, there is this example:

echo L::last_modified("today");

That seems to output a text with the "today" replaced using some kind of variable name, but in the sample lang files, an example for that is missing.

What's the format of the lang files to support parameters?

@Philipp15b
Copy link
Owner

The string is formatted with PHP's vsprintf. I am happy to accept a pull request to add the missing example string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants