Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-translation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-translation
Commits
0b597381
Commit
0b597381
authored
Jan 15, 2018
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Change from LuP for new Studio 2017 fields
parent
5efad7bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
trados-xml-import.tcl
www/trans-tasks/trados-xml-import.tcl
+9
-9
No files found.
www/trans-tasks/trados-xml-import.tcl
View file @
0b597381
...
@@ -88,7 +88,7 @@ switch $encoding_hex {
...
@@ -88,7 +88,7 @@ switch $encoding_hex {
set
target_language_ids
[
im_target_language_ids
$project
_id
]
set
target_language_ids
[
im_target_language_ids
$project
_id
]
if
{
0 ==
[
llength
$target
_language_ids
]}
{
if
{
0 ==
[
llength
$target
_language_ids
]}
{
ad_return_complaint 1
"<li>
[
_ intranet-translation.lt_The_project_has_no_ta
]
<BR>
ad_return_complaint 1
"<li>
[
_ intranet-translation.lt_The_project_has_no_ta
]
<BR>
Please back up to the project page and add at least one target language to the project.#>"
Please back up to the project page and add at least one target language to the project.#>"
return
return
}
}
...
@@ -317,6 +317,12 @@ for {set i 0} {$i < $trados_files_len} {incr i} {
...
@@ -317,6 +317,12 @@ for {set i 0} {$i < $trados_files_len} {incr i} {
"total"
{
"total"
{
# ignore
# ignore
}
}
"newbaseline"
{
# ignore
}
"newlearnings"
{
# ignore
}
"internalfuzzy"
{
"internalfuzzy"
{
#going through all
"fuzzy"
elements
#going through all
"fuzzy"
elements
set fuzzy_min_attribute
[
$analyse
ChildElement getAttribute
$attr
_min
]
set fuzzy_min_attribute
[
$analyse
ChildElement getAttribute
$attr
_min
]
...
@@ -478,7 +484,7 @@ for {set i 0} {$i < $trados_files_len} {incr i} {
...
@@ -478,7 +484,7 @@ for {set i 0} {$i < $trados_files_len} {incr i} {
:source_language_id, -- source_language_id
:source_language_id, -- source_language_id
:target_language_id, -- target_language_id
:target_language_id, -- target_language_id
:task_uom_id -- task_uom_id
:task_uom_id -- task_uom_id
)"
]
)"
]
db_dml update_task
"
db_dml update_task
"
UPDATE im_trans_tasks SET
UPDATE im_trans_tasks SET
...
@@ -506,27 +512,21 @@ for {set i 0} {$i < $trados_files_len} {incr i} {
...
@@ -506,27 +512,21 @@ for {set i 0} {$i < $trados_files_len} {incr i} {
locked = :locked_words
locked = :locked_words
WHERE
WHERE
task_id = :new_task_id
task_id = :new_task_id
"
"
}
}
}
err_msg
]
}
{
}
err_msg
]
}
{
# Failed to create translation task
# Failed to create translation task
incr err_count
incr err_count
append page_body
"
append page_body
"
<tr><td colspan=10>
$insert
_sql</td></tr>
<tr><td colspan=10>
$insert
_sql</td></tr>
<tr><td colspan=10><font color=red>
$err
_msg</font></td></tr>
<tr><td colspan=10><font color=red>
$err
_msg</font></td></tr>
"
"
}
else
{
}
else
{
# Successfully created translation task
# Successfully created translation task
# Call user_exit to let TM know about the event
# Call user_exit to let TM know about the event
im_user_exit_call trans_task_create
$new
_task_id
im_user_exit_call trans_task_create
$new
_task_id
im_audit -object_type
"im_trans_task"
-action after_create -object_id
$new
_task_id -status_id
$task
_status_id -type_id
$task
_type_id
im_audit -object_type
"im_trans_task"
-action after_create -object_id
$new
_task_id -status_id
$task
_status_id -type_id
$task
_type_id
}
}
}
}
# end of foreach
# end of foreach
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment