2017 © Pedro Peláez
 

library wp_language

Load text domain plugin for translations.

image

josantonius/wp_language

Load text domain plugin for translations.

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

PHP WordPress Language

Latest Stable Version License, (*1)

Versión en español, (*2)

Load text domain plugin for translations., (*3)



Installation

The preferred way to install this extension is through composer., (*4)

To install PHP Wordpress Language library, simply:, (*5)

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:, (*6)

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

También puedes clonar el repositorio completo con Git:, (*7)

git clone https://github.com/josantonius/wp-language.git, (*8)

Requirements

This library is supported by PHP versions 5.6 or higher and is compatible with HHVM versions 3.0 or higher., (*9)

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"., (*10)

Quick Start and Examples

To use this class, simply:, (*11)

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

use Josantonius\WP_Language\WP_Language;

Usage

Example of use for this library:, (*12)

<?php
require __DIR__ . '/vendor/autoload.php';

use Josantonius\WP_Language\WP_Language;

WP_Language::load('textdomain', dirname(plugin_basename(__FILE__)).'/languages/');

echo __('Text to translate', 'textdomain');

If this project helps you to reduce your development time, you can sponsor me to support my open source work :blush:, (*13)

License

This repository is licensed under the MIT License., (*14)

Copyright © 2017-2022, Josantonius, (*15)

The Versions

15/10 2017

dev-master

9999999-dev

Load text domain plugin for translations.

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

plugin wordpress language php translation hhvm text domain

15/10 2017

1.0.2

1.0.2.0

Load text domain plugin for translations.

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

plugin wordpress language php translation hhvm text domain

18/03 2017

1.0.1

1.0.1.0

Load text domain plugin for translations.

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

plugin wordpress language php translation hhvm text domain

14/02 2017

1.0.0

1.0.0.0

Load text domain plugin for translations.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

plugin wordpress language php translation hhvm text domain