Download the PHP package yoast/i18n-module without Composer

On this page you can find all versions of the php package yoast/i18n-module. 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 i18n-module

CS Lint Code Climate

⚠️ Update September 28th 2023 ⚠️

We have discontinued development on this project. If you're interested in this module, we happily refer you to a well-maintained fork by @mte90 at https://github.com/WPBP/i18n-notice.

Yoast i18n module

Promote your own translation site for people who are using your plugin in another language than en_US.

Example of the rendered promo box

Example promo box 1

Example promo box 2

The image, the name of your plugin and the name of your translation project are all configurable (see example below). The name of the language is retrieved from your GlotPress install, as is the percentage translated. The box doesn't display when a language has been translated for 90% or more.

How to use this module

Include it in your project using composer:

Alternatively you can include the library as a submodule. Make sure the class is loaded and instantiate it like this:

If the service you are using doesn't follow the GlotPress conventions for the URLs, you may want to pass directly the full api_url to get the list of available translations, instead of letting the class build it from glotpress_url:

Because translate.wordpress.org is also a GlotPress installation you can use the i18n-module to promote translation your plugin on there. To do this you can use the dedicated wordpress.org class:

Customize where and when to render the message

Since 3.0.0 you can also decide to render the message in a message-box of your own, just provide the second argument to the constructor as false to disable the showing of the box by the module itself.


All versions of i18n-module with dependencies

PHP Build Version
Package Version
Requires php Version >=5.2
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 yoast/i18n-module contains the following files

Loading the files please wait ....