PHPackages                             josantonius/wp-language - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. josantonius/wp-language

AbandonedArchivedLibrary[Localization &amp; i18n](/categories/localization)

josantonius/wp-language
=======================

Load text domain plugin for translations.

1.0.2(8y ago)161MITPHPPHP ^5.6 || ^7.0

Since Feb 14Pushed 3y ago2 watchersCompare

[ Source](https://github.com/josantonius/wp-language)[ Packagist](https://packagist.org/packages/josantonius/wp-language)[ RSS](/packages/josantonius-wp-language/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

PHP WordPress Language
======================

[](#php-wordpress-language)

[![Latest Stable Version](https://camo.githubusercontent.com/3f2a60418041aef45dc38aca232b1dff8804a0198d90cee38b57c2034fa2b536/68747470733a2f2f706f7365722e707567782e6f72672f6a6f73616e746f6e6975732f77702d6c616e67756167652f762f737461626c65)](https://packagist.org/packages/josantonius/wp-language)[![License](https://camo.githubusercontent.com/e4e53a56c044b7fcf3183176b27394b9adeac08c654ff62ec7202a32d3e09f99/68747470733a2f2f706f7365722e707567782e6f72672f6a6f73616e746f6e6975732f77702d6c616e67756167652f6c6963656e7365)](https://packagist.org/packages/josantonius/wp-language)

[Versión en español](README-ES.md)

Load text domain plugin for translations.

---

- [Installation](#installation)
- [Requirements](#requirements)
- [Quick Start and Examples](#quick-start-and-examples)
- [Usage](#usage)
- [Sponsor](#Sponsor)
- [License](#license)

---

### Installation

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

To install PHP Wordpress Language library, simply:

```
composer require josantonius/wp-language

```

El comando anterior sólo instalará los archivos necesarios, si prefieres descargar todo el código fuente (incluyendo tests, directorio vendor, excepciones no utilizadas, documentos...) puedes utilizar:

```
composer require josantonius/wp-language --prefer-source

```

También puedes clonar el repositorio completo con Git:

git clone

### Requirements

[](#requirements)

This library is supported by PHP versions 5.6 or higher and is compatible with HHVM versions 3.0 or higher.

To use this library in HHVM (HipHop Virtual Machine) you will have to activate the scalar types. Add the following line "hhvm.php7.scalar\_types = true" in your "/etc/hhvm/php.ini".

### Quick Start and Examples

[](#quick-start-and-examples)

To use this class, simply:

```
require __DIR__ . '/vendor/autoload.php';

use Josantonius\WP_Language\WP_Language;
```

### Usage

[](#usage)

Example of use for this library:

```
