Skip to content

Commit

Permalink
Merge pull request #1109 from jtorjo/sdlcom-3994
Browse files Browse the repository at this point in the history
Sdlcom 3994 (TMX TM Provider)
  • Loading branch information
jtorjo authored Feb 2, 2023
2 parents 841c2f9 + c9fd6cc commit c8db20b
Show file tree
Hide file tree
Showing 128 changed files with 17,736 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -239,5 +239,6 @@ IATETerminologyProvider/IATETerminologyProvider/pluginpackage.manifest_LOCAL_178
/TM Optimizer/Sdl.Community.TMOptimizer/Properties/launchSettings.json

*.json
TMX_TranslationProvider/TMX_TranslationProviderWithUITest.sln
/InterpretBank/InterpretBankTests/Resources/SavedGlossary.xlsx
/InterpretBank/InterpretBankTests/Resources/exp2.tbx
1 change: 1 addition & 0 deletions TMX_TranslationProvider/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TMX_UI_Test/*
3 changes: 3 additions & 0 deletions TMX_TranslationProvider/MongoSchema/language table.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Language,Meta
en-GB,"anything, if needed"
es-XM,-
80 changes: 80 additions & 0 deletions TMX_TranslationProvider/MongoSchema/languages.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"fields": [
{
"name": "_id",
"path": "_id",
"count": 2,
"types": [
{
"name": "ObjectID",
"bsonType": "ObjectID",
"path": "_id",
"count": 2,
"values": [
"6377b7537ac6e68ae3bfe627",
"6377b7537ac6e68ae3bfe626"
],
"total_count": 0,
"probability": 1,
"unique": 2,
"has_duplicates": false
}
],
"total_count": 2,
"type": "ObjectID",
"has_duplicates": false,
"probability": 1
},
{
"name": "Language",
"path": "Language",
"count": 2,
"types": [
{
"name": "String",
"bsonType": "String",
"path": "Language",
"count": 2,
"values": [
"es-XM",
"en-GB"
],
"total_count": 0,
"probability": 1,
"unique": 2,
"has_duplicates": false
}
],
"total_count": 2,
"type": "String",
"has_duplicates": false,
"probability": 1
},
{
"name": "Meta",
"path": "Meta",
"count": 2,
"types": [
{
"name": "String",
"bsonType": "String",
"path": "Meta",
"count": 2,
"values": [
"-",
"anything, if needd"
],
"total_count": 0,
"probability": 1,
"unique": 2,
"has_duplicates": false
}
],
"total_count": 2,
"type": "String",
"has_duplicates": false,
"probability": 1
}
],
"count": 2
}
2 changes: 2 additions & 0 deletions TMX_TranslationProvider/MongoSchema/meta.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Type,Value
header,"<header creationtool=""SDL Language Platform"" creationtoolversion=""8.0"" o-tmf=""SDL TM8 Format"" datatype=""xml"" segtype=""sentence"" adminlang=""en-GB"" srclang=""en-GB"" creationdate=""20150326T162954Z"" creationid=""GLOBAL\pfilkin"">…"
77 changes: 77 additions & 0 deletions TMX_TranslationProvider/MongoSchema/meta.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"fields": [
{
"name": "_id",
"path": "_id",
"count": 1,
"types": [
{
"name": "ObjectID",
"bsonType": "ObjectID",
"path": "_id",
"count": 1,
"values": [
"6377b6187ac6e68ae3bfe613"
],
"total_count": 0,
"probability": 1,
"unique": 1,
"has_duplicates": false
}
],
"total_count": 1,
"type": "ObjectID",
"has_duplicates": false,
"probability": 1
},
{
"name": "Type",
"path": "Type",
"count": 1,
"types": [
{
"name": "String",
"bsonType": "String",
"path": "Type",
"count": 1,
"values": [
"header"
],
"total_count": 0,
"probability": 1,
"unique": 1,
"has_duplicates": false
}
],
"total_count": 1,
"type": "String",
"has_duplicates": false,
"probability": 1
},
{
"name": "Value",
"path": "Value",
"count": 1,
"types": [
{
"name": "String",
"bsonType": "String",
"path": "Value",
"count": 1,
"values": [
"<header creationtool=\"SDL Language Platform\" creationtoolversion=\"8.0\" o-tmf=\"SDL TM8 Format\" datatype=\"xml\" segtype=\"sentence\" adminlang=\"en-GB\" srclang=\"en-GB\" creationdate=\"20150326T162954Z\" creationid=\"GLOBAL\\pfilkin\">…"
],
"total_count": 0,
"probability": 1,
"unique": 1,
"has_duplicates": false
}
],
"total_count": 1,
"type": "String",
"has_duplicates": false,
"probability": 1
}
],
"count": 1
}
5 changes: 5 additions & 0 deletions TMX_TranslationProvider/MongoSchema/text table.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
TranslationUnit ID,Language ID,Text,Formatted Text
1,en-GB,I love this game,I love this game
1,de-DE,ti amo,ti amo - formatted
2,en-GB,this is cool,this is cool
2,de-DE,esto coolo,esto coolo - formatted
140 changes: 140 additions & 0 deletions TMX_TranslationProvider/MongoSchema/texts.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
{
"fields": [
{
"name": "_id",
"path": "_id",
"count": 4,
"types": [
{
"name": "ObjectID",
"bsonType": "ObjectID",
"path": "_id",
"count": 4,
"values": [
"6377b70b7ac6e68ae3bfe61a",
"6377b70b7ac6e68ae3bfe61b",
"6377b70b7ac6e68ae3bfe61d",
"6377b70b7ac6e68ae3bfe61c"
],
"total_count": 0,
"probability": 1,
"unique": 4,
"has_duplicates": false
}
],
"total_count": 4,
"type": "ObjectID",
"has_duplicates": false,
"probability": 1
},
{
"name": "Formatted Text",
"path": "Formatted Text",
"count": 4,
"types": [
{
"name": "String",
"bsonType": "String",
"path": "Formatted Text",
"count": 4,
"values": [
"I love this game",
"ti amo - formatted",
"esto coolo - formatted",
"this is cool"
],
"total_count": 0,
"probability": 1,
"unique": 4,
"has_duplicates": false
}
],
"total_count": 4,
"type": "String",
"has_duplicates": false,
"probability": 1
},
{
"name": "Language ID",
"path": "Language ID",
"count": 4,
"types": [
{
"name": "String",
"bsonType": "String",
"path": "Language ID",
"count": 4,
"values": [
"en-GB",
"de-DE",
"de-DE",
"en-GB"
],
"total_count": 0,
"probability": 1,
"unique": 2,
"has_duplicates": true
}
],
"total_count": 4,
"type": "String",
"has_duplicates": true,
"probability": 1
},
{
"name": "Text",
"path": "Text",
"count": 4,
"types": [
{
"name": "String",
"bsonType": "String",
"path": "Text",
"count": 4,
"values": [
"I love this game",
"ti amo",
"esto coolo",
"this is cool"
],
"total_count": 0,
"probability": 1,
"unique": 4,
"has_duplicates": false
}
],
"total_count": 4,
"type": "String",
"has_duplicates": false,
"probability": 1
},
{
"name": "TranslationUnit ID",
"path": "TranslationUnit ID",
"count": 4,
"types": [
{
"name": "Int32",
"bsonType": "Int32",
"path": "TranslationUnit ID",
"count": 4,
"values": [
1,
1,
2,
2
],
"total_count": 0,
"probability": 1,
"unique": 2,
"has_duplicates": true
}
],
"total_count": 4,
"type": "Int32",
"has_duplicates": true,
"probability": 1
}
],
"count": 4
}
Loading

0 comments on commit c8db20b

Please sign in to comment.