Santhosh has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/374518 )

Change subject: bin/apertium-xhtml: Unbreak the Apertium path
......................................................................

bin/apertium-xhtml: Unbreak the Apertium path

Change-Id: Id568fc79d9f33abce9f30d9c18b2e97af30f044a
---
M bin/apertium-xhtml
1 file changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/cxserver 
refs/changes/18/374518/1

diff --git a/bin/apertium-xhtml b/bin/apertium-xhtml
index 56ec7f4..61cde1a 100755
--- a/bin/apertium-xhtml
+++ b/bin/apertium-xhtml
@@ -2,7 +2,7 @@
 var sourceLang, targetLang, sourceHtml, script, args, config, cxConfig,
        fs = require( 'fs' ),
        yaml = require( 'js-yaml' ),
-       Apertium = require( __dirname + '/../mt/Apertium.js' );
+       Apertium = require( __dirname + '/../lib/mt/Apertium.js' );
 
 config = yaml.load( fs.readFileSync( 'config.yaml' ) );
 if ( !config ) {
@@ -34,17 +34,17 @@
 
 sourceHtml = [];
 
-process.stdin.on( 'data', function( data ) {
+process.stdin.on( 'data', function ( data ) {
        sourceHtml.push( data );
 } );
-process.stdin.on( 'end', function() {
+process.stdin.on( 'end', function () {
        new Apertium( cxConfig ).translate(
                sourceLang,
                targetLang,
                sourceHtml.join( '' )
-       ).then( function( targetHtml ) {
+       ).then( function ( targetHtml ) {
                process.stdout.write( targetHtml + '\n' );
-       } ).catch( function( error ) {
+       } ).catch( function ( error ) {
                if ( error.stack ) {
                        console.error( 'error', error.stack );
                } else {

-- 
To view, visit https://gerrit.wikimedia.org/r/374518
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id568fc79d9f33abce9f30d9c18b2e97af30f044a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/cxserver
Gerrit-Branch: master
Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to