2017 © Pedro Peláez
 

library translator

A Polylang helper for WordPlate

image

wordplate/translator

A Polylang helper for WordPlate

  • Friday, May 12, 2017
  • by vinkla
  • Repository
  • 2 Watchers
  • 2 Stars
  • 262 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

Polylang

A Polylang helper for WordPlate., (*1)

Build Status StyleCI Coverage Status Latest Version License, (*2)

Installation

Require this package, with Composer, in the root directory of your project., (*3)

$ composer require hoy/polylang

Login to the WordPress administrator dashboard and activate the Polylang plugin. Go to the Polylang settings page and add at least one language., (*4)

Usage

Register the translations with the pll_translations function. They will now be available for translation on the 'Strings translations' page in the WordPress administrator dashboard., (*5)

pll_translations([
    'group' => [
        'String that should be translatable by Polylang' => 'Explanation of how the string is used',
    ],
    'general' => [
        'English' => 'The english language',
        'Swedish' => 'The swedish language',
    ],
    'cookie-bar' => [
        'This website uses cookies to ensure you get the best experience on our website.' => 'Cookie bar message',
        'I understand' => 'Cookie bar button text'
    ],
]);

Then to fetch and print a translation you can use the trans function like you would use regular __() function., (*6)

echo trans('I understand');

Documentation

Please visit Polylang's documentation to find out more about translating your post types., (*7)

License

MIT © Hoy Multimedia AB, (*8)

The Versions

12/05 2017

dev-master

9999999-dev

A Polylang helper for WordPlate

  Sources   Download

MIT

The Requires

  • php ^7.0
  • wpackagist-plugin/polylang ^2.1

 

wordpress translator polylang wordplate

29/01 2017

1.2.0

1.2.0.0

A translations helper for WordPlate

  Sources   Download

MIT

The Requires

  • php ^7.0
  • wpackagist-plugin/polylang ^1.9

 

wordpress translator wordplate

11/07 2016

1.1.0

1.1.0.0

A translations helper for WordPlate

  Sources   Download

MIT

The Requires

  • php ^5.6.4 || ^7.0
  • wpackagist-plugin/polylang ^1.9

 

wordpress translator wordplate

20/05 2016

1.0.2

1.0.2.0

A translations helper for WordPlate

  Sources   Download

MIT

The Requires

  • php ^5.5.9 || ^7.0
  • wpackagist-plugin/polylang ^1.9

 

wordpress translator wordplate

20/05 2016

1.0.1

1.0.1.0

A translations helper for WordPlate

  Sources   Download

MIT

The Requires

  • php ^5.5.9 || ^7.0
  • wpackagist-plugin/polylang ^1.9

 

wordpress translator wordplate

11/05 2016

1.0.0

1.0.0.0

A translations helper for WordPlate

  Sources   Download

MIT

The Requires

  • php ^5.5.9 || ^7.0
  • wpackagist-plugin/polylang ^1.9

 

wordpress translator wordplate