Download the PHP package xelax90/zf-doctrine-orm-translation-loader without Composer

On this page you can find all versions of the php package xelax90/zf-doctrine-orm-translation-loader. 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 zf-doctrine-orm-translation-loader

Doctrine database translation loader for Zend Framework 3

This module adds an additional translation loader that uses Doctrine ORM to store translations.

Installation

Installation of LanguageRoute uses composer. For composer documentation, please refer to getcomposer.org.

Then add DoctrineORMTranslationLoader to your config/application.config.php and run the doctrine schema update to create the database table:

Usage

This module uses the DoctrineORMTranslationLoader\Entity\Translation entity to store translations. To add new translations, simply add new entities using Doctrine or directly add them into the translation database table. The default translator will automatically use the provided loader and the translate() function/view helper will search the database for translations.

Translation Keys should not start with __META__ since this prefix is used for storing metadata. Using __META__plural_forms in particular will lead to unwanted side-effects.

Plural translations

You can store plural translations by using the translationPluralNumber property of the DoctrineORMTranslationLoader\Entity\Translation entity. Provide a translation for each plural form in your plural rule and use the translator's translatePlural function to choose the correct form.

Meta data

You can also store meta data (such as the plural forms) for each locale and domain. Each meta entry must have a translation key starting with __META__ followed by the meta identifier. Meta rules are not deleted from the translator which makes it possible to use them as translation keys, although it is not recommended. As of now, only the plural_forms identifier is interpreted.

The DoctrineORMTranslationLoader\I18n\Translator\Loader\DoctrineEntity class provides constants for the meta prefix and the plural_forms identifier which you might find useful when adding or reading metadata in a PHP script.

To store the plural rules for a local and domain, use __META__plural_forms as the translation key. For details about the plural rule syntax, please refer to the Zend_i18n documentation.


All versions of zf-doctrine-orm-translation-loader with dependencies

PHP Build Version
Package Version
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 xelax90/zf-doctrine-orm-translation-loader contains the following files

Loading the files please wait ...