Skip to content

Commit 2c3dba2

Browse files
committed
skip extra's id when updating with workfile
1 parent b629901 commit 2c3dba2

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

BasicCAT/BasicCAT.b4j.meta

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,6 @@ ModuleClosedNodes8=
244244
ModuleClosedNodes80=
245245
ModuleClosedNodes81=
246246
ModuleClosedNodes9=
247-
NavigationStack=Main,init,170,3,Main,initializeNLP,201,0,Project,newProjectSetting,111,0,Project,open,97,5,Term,termsInASentence,274,0,ITP,getChunks,70,0,opennlp,Class_Globals,6,0,opennlp,Initialize,36,6,Term,termsInASentenceUsingIteration,323,0,Term,termsInASentenceUsingHashMap,287,4
247+
NavigationStack=opennlp,Initialize,36,6,Term,termsInASentenceUsingIteration,323,0,Term,termsInASentenceUsingHashMap,287,4,xliffFilter,createWorkFile,66,0,xliffFilter,generateFile,296,0,xliffFilter,updateTransUnit,391,0,xliffFilter,updateNode,381,0,xliffFilter,insertTranslation,375,0,xliffFilter,buildMrk,439,0,Project,updateWithWorkfileMI_Action,893,0,Project,updateSegmentsWithWorkfile,931,6
248248
SelectedBuild=0
249-
VisibleModules=10,45,51,72,60,25,46,42,41,47,35,23
249+
VisibleModules=10,45,51,72,60,25,46,42,41,47,75

BasicCAT/Files/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.10.1
1+
1.10.3

BasicCAT/Project.bas

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,9 +935,11 @@ Sub updateSegmentsWithWorkfile(workFilePath As String,segmentsToUpdate As List)
935935
Dim extraFromWorkfile As Map
936936
extraFromWorkfile=segmentFromWorkfile.Get(4)
937937
If extraFromWorkfile.GetDefault("createdTime",1)>=extra.GetDefault("createdTime",0) Then
938-
'only update translation and extra
938+
'only update translation and extra except id
939939
For Each key As String In extraFromWorkfile.Keys
940-
extra.Put(key,extraFromWorkfile.Get(key))
940+
If key<>"id" Then
941+
extra.Put(key,extraFromWorkfile.Get(key))
942+
End If
941943
Next
942944
segment.Set(1,segmentFromWorkfile.Get(1))
943945
End If

0 commit comments

Comments
 (0)