2017 © Pedro Peláez
 

library polylang

A Polylang helper for WordPlate

image

hoy/polylang

A Polylang helper for WordPlate

  • Monday, March 12, 2018
  • by Pandan
  • Repository
  • 4 Watchers
  • 2 Stars
  • 504 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 10 Versions
  • 87 % 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/03 2018

dev-master

9999999-dev

A Polylang helper for WordPlate

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

The Development Requires

wordpress polylang wordplate

12/03 2018

4.0.0

4.0.0.0

A Polylang helper for WordPlate

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

The Development Requires

wordpress polylang wordplate

12/03 2018

dev-rename

dev-rename

A Polylang helper for WordPlate

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

The Development Requires

wordpress polylang wordplate

19/09 2017

3.0.0

3.0.0.0

A Polylang helper for WordPlate

  Sources   Download

MIT

The Requires

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

 

The Development Requires

wordpress polylang wordplate

14/05 2017

2.0.0

2.0.0.0

A Polylang helper for WordPlate

  Sources   Download

MIT

The Requires

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

 

The Development Requires

wordpress 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