Skip to content

Enable Translate Inline only per-session #183

Closed
@colinmollenhour

Description

@colinmollenhour

The Translate Inline feature is awesome. However, to use it in production is a little problematic since it uses an ip filter to enable it. In an office environment there are easily multiple users using the site simultaneously, some of which should not be allowed to use the inline translate feature and some of which need it disabled so they can use the site. It would be better if the inline translate feature required a specific admin user permission and was enabled by perhaps visiting a special url, or clicking a url/button in the backend that forwarded to a page with the feature enabled only for the given session.

Example:

  1. Admin user clicks "Start Translate Inline" with a given store scope specified.
  2. A nonce key is generated and stored in the database.
  3. The user is forwarded to the selected store home page with the nonce key in a get parameter.
  4. The nonce key is verified and deleted and inline translation is enabled for the user via a session flag.
  5. The user clicks a "Stop Translating" button to return to normal usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions