Skip to content

Commit

Permalink
Kudo plugin first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostico committed Apr 6, 2022
0 parents commit f112e2e
Show file tree
Hide file tree
Showing 12 changed files with 151 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .gitignore
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
8 changes: 8 additions & 0 deletions Gruntfile.js
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', [])

}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Kudo plugin
MateCat plugin for Kudo workflow management
37 changes: 37 additions & 0 deletions lib/Features/Kudo.php
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 added lib/Features/Kudo/Model/.keep
Empty file.
Empty file added lib/Features/Kudo/Utils/.keep
Empty file.
Empty file added lib/Features/Kudo/View/.keep
Empty file.
13 changes: 13 additions & 0 deletions manifest.php
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',
];
14 changes: 14 additions & 0 deletions package.json
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"
}
}
57 changes: 57 additions & 0 deletions qa_model.json
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 ]
}
}
}
}

0 comments on commit f112e2e

Please sign in to comment.