2017 © Pedro Peláez
 

symfony-bundle auto-fallback-translation-bundle

Make sure to use a translation service like Bing or Google to translate your missing messages

image

happyr/auto-fallback-translation-bundle

Make sure to use a translation service like Bing or Google to translate your missing messages

  • Sunday, January 14, 2018
  • by Nyholm
  • Repository
  • 1 Watchers
  • 2 Stars
  • 98 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Happyr Auto Fallback Translation Bundle

Latest Version Build Status Code Coverage Quality Score Total Downloads, (*1)

DEPRECATED: Use php-translation/symfony-bundle

This bundle uses Google to translate messages that you have not translated yet. So instead of using a fallback language you get a Google translated string. Sure, Google translate is not optimal but it is way better then using a different language. With this feature you can deploy a new version even before your translators have done their work., (*2)

To Install

Run the following in your project root, assuming you have composer set up for your project, (*3)

composer require happyr/auto-fallback-translation-bundle

Add the bundle to app/AppKernel.php, (*4)

class AppKernel extends Kernel
{
  public function registerBundles()
  {
    $bundles = array(
        // ...
        new Happyr\AutoFallbackTranslationBundle\HappyrAutoFallbackTranslationBundle(),
    }
  }
}

Configuration

// app/config/config.yml
happyr_auto_fallback_translation:
    enabled: false
    default_locale: en
    translation_service: "google"
    google_key: "%google_server_api_key%"
    http_client: httplug.client.auto_translation
    message_factory: httplug.message_factory # default

 // app/config/config_prod.yml
happyr_auto_fallback_translation:
    enabled: true # Only enabled in production

To easier configure the HTTP client and message factory, have a look at HttplugBundle., (*5)

The Versions

14/01 2018

dev-master

9999999-dev http://developer.happyr.com

Make sure to use a translation service like Bing or Google to translate your missing messages

  Sources   Download

MIT

The Requires

 

The Development Requires

14/01 2018

dev-Nyholm-patch-1

dev-Nyholm-patch-1 http://developer.happyr.com

Make sure to use a translation service like Bing or Google to translate your missing messages

  Sources   Download

MIT

The Requires

 

The Development Requires

12/11 2016

1.0.1

1.0.1.0 http://developer.happyr.com

Make sure to use a translation service like Bing or Google to translate your missing messages

  Sources   Download

MIT

The Requires

 

The Development Requires

04/11 2016

1.0.0

1.0.0.0 http://developer.happyr.com

Make sure to use a translation service like Bing or Google to translate your missing messages

  Sources   Download

MIT

The Requires

 

The Development Requires

26/02 2016

0.2.0

0.2.0.0 http://developer.happyr.com

Make sure to use a translation service like Bing or Google to translate your missing messages

  Sources   Download

MIT

The Requires

 

The Development Requires

30/01 2016
23/12 2015

0.1.1

0.1.1.0 http://developer.happyr.com

Make sure to use a translation service like Bing or Google to translate your missing messages

  Sources   Download

MIT

The Requires

 

The Development Requires

22/12 2015

0.1.0

0.1.0.0 http://developer.happyr.com

Make sure to use a translation service like Bing or Google to translate your missing messages

  Sources   Download

MIT

The Requires

 

The Development Requires