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
Normally, after setting a language for a post, it should stick and should not change unless the author modifies it again. However if you edit the post and (re)publish it again it causes the language field to reset back to English.
Steps to reproduce
Go to a post and click 'Edit.' Go into the metadata and change the Language to something else and save your changes. Publish the post.
Now edit the post again, this time the body of the post, and publish.
Go back to the metadata of the post. Note how it is now 'English.'
Expected behavior
Post should keep the metadata language after edited, not revert to English.
The text was updated successfully, but these errors were encountered:
Thanks for copying that over. Off the top of my head, this happens because we include the lang parameter every time we publish or update a post, which passes along the browser's default language (which is likely English in this user's case).
The fix should be simple: in templates/pad.tmpl, only pass lang when initially creating a post. When editing / updating a post, don't pass the lang parameter.
Since this is pretty straightforward, this would be a great first task for anyone interested in contributing to WriteFreely!
For information, I write in french but all my apps and browser are setup in english.
It might be nice to have a choice in the "customize" page of a blog to leave it as-is or overide it to a language of our choice.
I have already written in the forum but it's been nearly year since this issue was reported. I think at this point it would be better if one of the active developers implemented this fix if it is so simple instead of waiting for a new contributor.
Brought up originally on the forum:
Steps to reproduce
Expected behavior
Post should keep the metadata language after edited, not revert to English.
The text was updated successfully, but these errors were encountered: