2017 © Pedro Peláez
 

library traduttore-registry

Allows loading translation files from a custom GlotPress site running Traduttore

image

wearerequired/traduttore-registry

Allows loading translation files from a custom GlotPress site running Traduttore

  • Sunday, July 29, 2018
  • by wearerequired
  • Repository
  • 3 Watchers
  • 2 Stars
  • 99 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Traduttore Registry

PHPUnit Lint codecov Latest Stable Version Latest Unstable Version, (*1)

Allows loading translation files from a custom GlotPress site running Traduttore., (*2)

Installation

If you're using Composer to manage dependencies, you can use the following command to add the plugin to your site:, (*3)

composer require wearerequired/traduttore-registry

After that, you can use \Required\Traduttore_Registry\add_project( $type, $slug, $api_url ) in your theme or plugin., (*4)

Parameters:, (*5)

  • $type: either plugin or theme.
  • $slug: must match the theme/plugin directory slug.
  • $api_url: the URL to the Traduttore project translation API.

Note: On a multisite install it's recommended to use it in a must-use plugin., (*6)

Usage

Here's an example of how you can use that function:, (*7)

\Required\Traduttore_Registry\add_project(
    'plugin',
    'example-plugin',
    'https://translate.example.com/api/translations/acme/acme-plugin/'
);

\Required\Traduttore_Registry\add_project(
    'theme',
    'example-theme',
    'https://translate.example.com/api/translations/acme/acme-theme/'
);


, (*8)

a required open source product - let's get in touch, (*9)

The Versions

29/07 2018

dev-master

9999999-dev https://github.com/wearerequired/traduttore-registry

Allows loading translation files from a custom GlotPress site running Traduttore

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

wordpress translations glotpress

29/07 2018

1.0.1

1.0.1.0 https://github.com/wearerequired/traduttore-registry

Allows loading translation files from a custom GlotPress site running Traduttore

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

wordpress translations glotpress

18/06 2018

1.0.0

1.0.0.0 https://github.com/wearerequired/traduttore-registry

Allows loading translation files from a custom GlotPress site running Traduttore

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

wordpress translations glotpress