mkleine/magento-language-routes

This package is abandoned and no longer maintained. No replacement package was suggested.

Allows to translate the default magento routes into other languages

dev-master 2016-05-25 14:56 UTC

This package is auto-updated.

Last update: 2022-05-24 09:10:15 UTC


README

Build Status Code Climate Latest Stable Version Total Downloads Latest Unstable Version License

Features

  • Translate all URLs for each store (e.g. /customer/account/create -> /kunde/konto/erstellen)
  • Easy translation without development skills by using the backend
  • Translate third party extensions out of the box
  • Ability to translate URLs to CMS pages, too
  • Extension uses the Magento Cache to avoid performance issues
  • Manage permissions for translations by roles
  • Old URLs are still working (even if they translated)
  • Inline-Translation of URLs

Configuration

You can enable the translation module for each store in configuration:

  • System / Configuration / Web / Url Options / Enable route translation (default: Yes)

It is possible to forward the user automatically to the translated URL:

  • System / Configuration / Web / Url Options / Forward to translated route (default: No)

Usage

It is recommended, to install and test this extension in a test environment.

Example: You want translate "/customer/account/login" to "/kunde/konto/anmelden"

By using the Backend

This is recommended when adding translations in production environments

  1. Go to System / Language Routes
  2. Click Add
  3. Choose your store
  4. Select a route part
  • Route: customer is the route in this url
  • Controller: account is the controller
  • Action: login is the action
  1. Enter a translation
  2. Save
  3. Check the changes in Frontend

By using inline translation

This is recommended when adding translations in staging / development environments

  1. Go to System / Configuration
  2. Open the Developer menu
  3. Navigate to "Translate inline"
  4. Enabled for Frontend -> Yes
  5. Clear caches
  6. Open the frontend and translate every url step by step

Screenshots

Backend Grid

Backend Grid

Backend Grid

Dev

If you need an url which is not translated, you can add the parameter _notranslate (set it to true) This is the same behavior, as requesting secure urls by adding _secure.

This package is also available at Packagist

Requirements

  • PHP >= 5.3.0
  • Magento 1.6, 1.7, 1.8, 1.9

Contributors

Copyright (c) 2014 Matthias Kleine

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.