Download the PHP package clockworkgeek/magei18n without Composer

On this page you can find all versions of the php package clockworkgeek/magei18n. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magei18n

Magento Internationalization

For module developers who want to keep track of locale strings. MageI18n works by statically scanning for uses of ->__("...") method in PHP or translate="..." in XML files and adding to/removing from CSV files as necessary.

Recommended Installation

Make sure $COMPOSER_HOME/vendor/bin is in the include path. Usually this means adding PATH=$PATH:~/.composer/vendor/bin to your .bashrc file and logging out then in. Next just enter:

composer global require clockworkgeek/magei18n

First use on an existing project

Begin by testing in your module's project directory. The following command should list all translatable files in CSV format.

magei18n scan

If your module doesn't yet have a locale file then it can be generated like this:

mkdir -p app/locale/en_US
magei18n scan > app/locale/en_US/Example_Module.csv

If a locale file does exist and needs to be preserved then it is better to use:

magei18n update

The update command will remove any strings it cannot identify and add any which are missing. Those strings which are identified are not changed which will leave existing translations intact.

Git workflow

MageI18n is intended to work in the background as a pre-commit hook. Add the command magei18n git-diff to any existing hook script. Alternatively, if one does not exist, enter:

cat > .git/hooks/pre-commit
#!/bin/sh
magei18n git-diff

<Ctrl+D>
chmod +x .git/hooks/pre-commit

This command will only add/remove strings which have changed with the latest commit. This is helpful if you are intentionally leaving some entries out of your module's locale file.

Concerning multiple locales

MageI18n will add newly found strings to all CSV files it can find. This is deliberate so that translators can see which entries still need to be fixed.


All versions of magei18n with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
nikic/php-parser Version ^1.3
symfony/console Version ^2.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package clockworkgeek/magei18n contains the following files

Loading the files please wait ....