Drupal Module B-Translator Client.
PHP JavaScript CSS Other
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
callback
css
editor
features/bcl_disqus
lib
project
services
tests
translations
vocabulary
README.org
btrClient.info
btrClient.install
btrClient.module
btrclient.make

README.org

B-Translator Client

This Drupal module implements a client based on the B-Translator API. For more info about B-Translator see: http://info.btranslator.org

Installation

  1. Put these lines on the make file of your profile:
    projects[btrclient][version] = "1.0-dev"
    ;projects[btrClient][type] = "module"
    ;projects[btrClient][subdir] = "custom"
    ;projects[btrClient][download][type] = "git"
    ;projects[btrClient][download][url] = "https://github.com/B-Translator/btrClient.git"
    ;;projects[btrClient][download][branch] = "7.x-1.x"
        

    For example, if you have installed the standard Drupal profile create the file standard.make with a content like this:

    api = 2
    core = 7.x
    
    defaults[projects][subdir] = "contrib"
    
    projects[btrclient][version] = "1.0-dev"
    ;projects[btrClient][type] = "module"
    ;projects[btrClient][subdir] = "custom"
    ;projects[btrClient][download][type] = "git"
    ;projects[btrClient][download][url] = "https://github.com/B-Translator/btrClient.git"
    ;;projects[btrClient][download][branch] = "7.x-1.x"
        
  2. Install drush_remake: drush dl drush_remake
    drush dl drush_remake
        
  3. Run the drush command remake to download all the required components (modules, libraries, etc.):
    drush remake <profile_name>
    drush remake standard
        
  4. Make sure that the module libraries is installed:
    drush en libraries
        
  5. Install the module btrClient (all its dependencies will be installed as well):
    drush en btrClient
        
  6. Optionally, install also the feature bcl_disqus (to add support for disqus comments).

Configuration

Set the B-Translator Server URL on admin/config/bcl/client, and set the OAuth2 Login parameters (Client ID and Client Secret) on admin/config/bcl/oauth2_login. You have to register first an oauth2 client on the B-Translator server.