Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Latest commit

 

History

History
68 lines (54 loc) · 2.16 KB

README.org

File metadata and controls

68 lines (54 loc) · 2.16 KB

Q-Translate Client

This Drupal module implements a client based on the Q-Translate API. For more info about Q-Translate see: http://info.qtranslate.org

Installation

  1. Put these lines on the make file of your profile:
    projects[qtrclient][version] = "1.0-dev"
    ;projects[qtrClient][type] = "module"
    ;projects[qtrClient][subdir] = "custom"
    ;projects[qtrClient][download][type] = "git"
    ;projects[qtrClient][download][url] = "https://github.com/Q-Translate/qtrClient.git"
    ;;projects[qtrClient][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[qtrclient][version] = "1.0-dev"
    ;projects[qtrClient][type] = "module"
    ;projects[qtrClient][subdir] = "custom"
    ;projects[qtrClient][download][type] = "git"
    ;projects[qtrClient][download][url] = "https://github.com/Q-Translate/qtrClient.git"
    ;;projects[qtrClient][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 qtrClient (all its dependencies will be installed as well):
    drush en qtrClient
        
  6. Optionally, install also the feature qcl_disqus (to add support for disqus comments).

Configuration

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