-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f112e2e
Showing
12 changed files
with
151 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# IDE stuffs | ||
.settings | ||
.idea | ||
.project | ||
nbproject/ | ||
|
||
|
||
# NodeJs stuff | ||
nodejs/*.log | ||
node_modules | ||
static/build | ||
|
||
# Development env config files | ||
.agignore | ||
.vagrant | ||
|
||
vendor | ||
composer.phar | ||
|
||
config.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = function (grunt) { | ||
|
||
grunt.initConfig({}) | ||
|
||
// Define your tasks here | ||
grunt.registerTask('default', []) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Kudo plugin | ||
MateCat plugin for Kudo workflow management |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: vincenzoruffa | ||
* Date: 09/04/2018 | ||
* Time: 14:57 | ||
*/ | ||
|
||
namespace Features; | ||
|
||
use Features; | ||
|
||
class Kudo extends BaseFeature { | ||
|
||
const FEATURE_CODE = "kudo"; | ||
|
||
public static $dependencies = [ | ||
Features::TRANSLATION_VERSIONS, | ||
Features::REVIEW_EXTENDED | ||
]; | ||
|
||
/** | ||
* @see \Engines_MyMemory::get() | ||
* | ||
* @param $parameters | ||
* | ||
* @return mixed | ||
*/ | ||
public function filterMyMemoryGetParameters( $parameters ){ | ||
|
||
$parameters[ 'cid' ] = self::FEATURE_CODE; | ||
|
||
return $parameters; | ||
|
||
} | ||
|
||
} |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: vincenzoruffa | ||
* Date: 09/04/2018 | ||
* Time: 16:56 | ||
*/ | ||
|
||
|
||
return [ | ||
'FEATURE_CODE' => 'kudo', | ||
'PLUGIN_CLASS' => '\\Features\\Kudo', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "matecat-kudo-plugin", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "Gruntfile.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "MateCat Team", | ||
"license": "LGPL", | ||
"dependencies": { | ||
"grunt": "^1.4.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"model": { | ||
"version" : 1, | ||
"label": "MateCat default", | ||
|
||
"categories": [ | ||
{ | ||
"label": "Style (readability, consistent style and tone)", | ||
"code": "STY", | ||
"dqf_id" : 4 | ||
} | ||
,{ | ||
"label": "Tag issues (mismatches, whitespaces)", | ||
"code": "TAG", | ||
"dqf_id" : 5 | ||
}, | ||
{ | ||
"label": "Translation errors (mistranslation, additions or omissions)", | ||
"code": "TER", | ||
"dqf_id" : 1 | ||
}, | ||
{ | ||
"label": "Terminology and translation consistency", | ||
"code": "TRM", | ||
"dqf_id" : 3 | ||
}, | ||
{ | ||
"label": "Language quality (grammar, punctuation, spelling)", | ||
"code": "LQ", | ||
"dqf_id" : 2 | ||
} | ||
], | ||
"severities": [ | ||
{ | ||
"label": "Neutral", | ||
"dqf_id" : 0, | ||
"penalty": 0 | ||
},{ | ||
"label": "Minor", | ||
"dqf_id" : 1, | ||
"penalty": 0.5 | ||
}, | ||
{ | ||
"label": "Major", | ||
"dqf_id" : 2, | ||
"penalty": 2 | ||
} | ||
], | ||
|
||
"passfail" : { | ||
"type" : "points_per_thousand", | ||
"options" : { | ||
"limit" : [ 12, 12 ] | ||
} | ||
} | ||
} | ||
} |