Updating files in mid-project - what is actually happening?

Hi,

I am a bit confused about the "Update file" function (this is for Studio 2019 SR2). The manual is not very in-depth about this funciton at all. (See here)

I a current project, I had to update several files. It resulted in three subfolders being created and both old and updated files being in the project. That is mildly confusing for a bear of little brain.

To gain more clarity, I created a fresh project and added a text file with the content "Old content." Then I updated it with a text file with a different name and the content "New content.". Contrary to what I expected, no new folder is generated and the content of the old file is simply replaced by the new file.

So my questions are:

  1. Why were folders created in the first project and old and new content are part of the project? Why not in the second?
  2. Does it matter whether I do the right-click-update-file action in the source or in the target language view?
  3. Is there a way to control this behavior?

Any help is welcome!

Daniel

Parents
  • Did your original project have subfolders?  I had a very quick play with this to try and reproduce the behaviour you mentioned and when I started with files within folders I did experience some strange results.  I started with this:

    Screenshot of Trados Studio showing files within subfolders named 1, 2, 3 under the project folder '008 - update project files'. Language is set to German (Germany).

    I then updated the files and ended up with this:

    Screenshot of Trados Studio displaying an updated file structure with additional alphanumeric subfolder names under the '008 - update project files' folder. Language remains German (Germany).

    If I don't use folders it's fine and just replaces the files which is what should happen.  Perhaps this is what you did?

    I will report this in case it's not already a known issue.

    Thanks.

    Paul.

    Paul Filkin | RWS

    Design your own training!
    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 12:06 AM (GMT 0) on 29 Feb 2024]
  • Hi Paul,  that must have gotten fixed with a recent CU.  On my Studio 2019, I do see these folders with GUID numbers being created during the process, but when the update process completes, they are actually deleted now, and the old version of the file is renamed with a  (xx), where xx is the version of the file, starting with 1, and continuing with as many versions as you did updates.  The file without the parenthesis is the latest file.

    One thing that I have noticed

    1. Translation count is not re-run

    2. Analysis is not re-run

    So you end up with the wrong progress bar and the wrong analysis for the file unless you run these tasks by hand.

    I do have some follow up questions for you:

    1.  Is this "Update File" a feature that is exposed through the API?

    2. Does "Update File" work in the case of a project that has been published to GroupShare?

    3. Any chance SDL plans to make this "update" feature available to a group of files or a folder, rather than 1 by 1 update?

    Copying  for her information.

    Thanks.

Reply
  • Hi Paul,  that must have gotten fixed with a recent CU.  On my Studio 2019, I do see these folders with GUID numbers being created during the process, but when the update process completes, they are actually deleted now, and the old version of the file is renamed with a  (xx), where xx is the version of the file, starting with 1, and continuing with as many versions as you did updates.  The file without the parenthesis is the latest file.

    One thing that I have noticed

    1. Translation count is not re-run

    2. Analysis is not re-run

    So you end up with the wrong progress bar and the wrong analysis for the file unless you run these tasks by hand.

    I do have some follow up questions for you:

    1.  Is this "Update File" a feature that is exposed through the API?

    2. Does "Update File" work in the case of a project that has been published to GroupShare?

    3. Any chance SDL plans to make this "update" feature available to a group of files or a folder, rather than 1 by 1 update?

    Copying  for her information.

    Thanks.

Children
  • 1. Translation count is not re-run

    2. Analysis is not re-run

    So you end up with the wrong progress bar and the wrong analysis for the file unless you run these tasks by hand.

    Correct.  It's just a simple update so you need to run these by hand.  Professional users could always do this sort of thing using Perfect Match and then have this as part of a batch task complete with the count and analysis if required.  This was mainly a feature introduced for the Freelance user so they had a better way of updating source files mid-project.

    1.  Is this "Update File" a feature that is exposed through the API?

    Yes.  Better a question for the dev forum so please move any follow up questions to that forum.  There is a method available:

    /// <summary>
       /// Adds the new file version.
       /// </summary>
       /// <param name="fileId">The file id.</param>
       /// <param name="localFilePath">The local file path.</param>
       public void AddNewFileVersion(Guid fileId, string localFilePath)
    2. Does "Update File" work in the case of a project that has been published to GroupShare?

    Have you tried it?  I'd say no without trying it myself as this is a mechanism aimed for Studio use only.

    3. Any chance SDL plans to make this "update" feature available to a group of files or a folder, rather than 1 by 1 update?

    Perfect Match as previously noted.  I realise this feature is a lot simpler and retains the same project structure.  But it would lose all auditability, hence the reason Prfect Match is the normal choice for this.  If you still want more based on this feature I think http://ideas.sdl.com is the way to go.

    Paul Filkin | RWS

    Design your own training!
    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

  • It still does the same thing to me (Studio 2021 SR1). But you are right, the folders are temporary folders, I seem to be able to delete them and work on as normal.

    Daniel