Download the PHP package kolev/multilingual-extension without Composer

On this page you can find all versions of the php package kolev/multilingual-extension. 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 multilingual-extension

Behat MutlilingualExtension

Write tests once, test on multiple languages

Behat extension to help you do less work when you have multilanguage environment.

MultilingualExtension is a Behat extension designed to ease the work with multilingual sites. English language is used as a base and translations for each string are stored in a user defined file. The main idea is to write your tests in English language and then run them against sites with different language than English. The website language is defined in YML profile.

Note that it is in very early version so some features may not work properly.

Latest Stable Version License Coverage Status Quality Score Build Status Total Downloads

Installation

Usage

MultilingualExtension is easy to use. First you need to add the extension to your profile in behat.yml configuration file.

The default_language variable is used to define the website's default language. The translations variable is used to define the path to the translations file. The path is relative to the files_path variable. So in this case the translations.yml file should be placed in /files folder.

The translations.yml file structure is easy to read too.

The user can list as many words as he/she wants. Also many different languages for each word can be added.

It is important to use the same language prefix in translations.yml file and when configuring the profile. For example define site's language as de and add translations with de.

Then it's time to write your test porperly in order to use the localized version of the string. For example:

In this case if your run the test with german_profile it will open the homepage and look for de version of the word carrot which in our case is karrote.

FAQ

What if I have more than one language installed?

Language detection based on URL is introduced with version 0.0.2. The extension tries to detect site's language based on URL. For example if you go to page http://example.com/de/ it will look for German translation of the string, if no language code found it will use the default_language. It works for both clean and non-clean URLs.

What are the availabe languages supported?

List of all languages ISO codes can be found here

Author

Contributors


All versions of multilingual-extension with dependencies

PHP Build Version
Package Version
Requires behat/environment-loader Version *
behat/mink-extension 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 kolev/multilingual-extension contains the following files

Loading the files please wait ...