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

Make meta fields saved by log() method translation-independent #332

Closed
powelski opened this issue Mar 12, 2014 · 5 comments
Closed

Make meta fields saved by log() method translation-independent #332

powelski opened this issue Mar 12, 2014 · 5 comments
Labels

Comments

@powelski
Copy link

Currently, WP_Stream::log() method uses passed parameters (saved as meta) as translation tokens. This shouldn't work like that, because sometimes there's a need to do translations this way: "%1$s" setting was updated in the %2$sCustomizer%3$s

Where 2nd and 3rd tokens are anchor tag, respectively opening and closing. For English language exclusively, this way would be enough: "%1$s" setting was updated in the %2$s

Where second token would be translated Customizer text. For some languages (like Polish) this is not enough, because Customizer word is different depending on the context and that would be really confusing to have it separately. Saving those as meta is not wanted.

@powelski
Copy link
Author

I think this is a good place to discuss our policy about anchors in logs messages. I think messages are not the best place to keep links, instead it's better to have action links under it.

But even though, I think there could be additional parameter in log() method to keep translation tokens in regular, ordered array. Current way doesn't seem to be very stable and logical.

@shadyvb
Copy link
Contributor

shadyvb commented Apr 12, 2014

@powelski Can you propose the code change you have in mind via a PR so we can discuss it there ?

@lukecarbis
Copy link
Contributor

I think #380 would resolve this issue.

@shadyvb
Copy link
Contributor

shadyvb commented Apr 13, 2014

@lukecarbis I'm not sure if it is related, this here is discussing meta values and links within summaries, which i believe doesn't happen with any of the current connectors.

@frankiejarrett
Copy link
Contributor

Closing this until there is a proposed solution.

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

No branches or pull requests

4 participants