Giter Club home page Giter Club logo

diglin_languagecsv's Introduction

Diglin LanguageCsv

Developer Magento module to extract strings to be translated of your module from PHP and XML files like layout files, config.xml, system.xml, ...

This module is based on the original module of OSDave https://bitbucket.org/OSdave/languagecsv. My version improves some behavior and fixes some bug (refer to the changelog).

Documentation

Installation

  • Use modman modman clone https://github.com/diglin/Diglin_LanguageCsv.git

Via modman

  • Install modman
  • Use the command from your Magento installation folder: modman clone https://github.com/diglin/Diglin_LanguageCsv.git

Via composer

  • Install composer
  • Create a composer.json into your project like the following sample:
{
    ...
    "require": {
        "diglin/diglin_languagecsv":"*"
    },
    "repositories": [
	    {
            "type": "composer",
            "url": "http://packages.firegento.com"
        }
    ],
    "extra":{
        "magento-root-dir": "./"
    }
}
  • Then from your composer.json folder: php composer.phar install or composer install

Manually

  • You can copy the files from the folders of this repository to the same folders of your installation

Use

  • After to have refresh your cache and to have log out / log in from the backend,
  • Go to the backend of Magento, menu System > Tools > Language CSV. If you don't see it, check that the module is enabled: app/etc/modules/Osdave_LanguageCsv.xml
  • Click on the button "Create CSV language file"
  • Select the module to translate and the admin and frontend template folders of the module. Layout and other XML files should be automatically detected.
  • You can then download the file or lookup into the folder var/languagecsv/ to get the CSV file with strings to translate

Change Log

  • Format the code following Zend Framework Coding Standards
  • Parse also all XML files of a module (config.xml, system.xml, api.xml, layout XML files - frontend and backend, etc) to extract strings to be translated, Improved XML parsing
  • Exclude SVN and git hidden folders
  • Fix wrong filesize logic for CSV file in controller. It makes some trouble to download the file.
  • Improve drop down menu display for template files cause of display errors on Safari (padding not working in drop down)
  • Some code improvements to prevent modules code pool discovery errors

diglin_languagecsv's People

Contributors

sylvainraye avatar

Watchers

James Cloos avatar Mikel Martin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.