Date substitution in French (20/05/2000 => 20/05/2000)

Hello,

I am looking for a way to have dates being translated automatically into French, with no changes in terms of format. So for instance "20/05/2000" would remain "20/05/2000" in French (and not "20-05-2000").

Trados Studio screenshot showing the 'Dates and Times' settings window with an error message indicating the date format 'dd-MM-yyyy' cannot be changed.

I need to be able to personalize the format as the format I want isn't available in the options (see picture enclosed, I cannot change the "dd-MM-yyyy" format.

How do I solve this?

Best regards,
Amandine



Generated Image Alt-Text
[edited by: Trados AI at 11:15 PM (GMT 0) on 28 Feb 2024]
emoji
Parents Reply Children
  • What is your source language for this?  I'm trying with Dutch, based on your other post, and the problem I have is that this date format isn't recognised by Studio as being correct at all:

    This of course will lead to problems since the date is seen as three separate numbers as opposed to being a date.  It feels a like a bug in 2017 though as the date substitution should be fine based on what's available in the settings.  So I tested in 2021 where it will work correctly:

    The fact 2017 behaves the way it does make workarounds quite tricky too, unless they are date only segments, in which case the workaround is simple... just copy source to target.  But for segments with dates mixed into the sentences it's a little harder.

    So I then went back into 2017 to try something and the interesting thing is it's now working.  I think this may be because in 2021 I can change the order in which the date recognition should work.  I did that so it worked in 2021 and this change seems to have been reflected in 2017 when I use the same TM.  Interesting.

    However... I digress as you don't have 2021.  So, your workarounds are these seeing as you seem to be getting some date recognition even if it's not what you want:

    1. allow Studio to do it's thing and search replace afterwards.  This would be by far the best solution I think as it should avoid date transposition errors.  So search for this using regular expressions:
      (\d+)-(\d+)-(\d+)
      Replace with this:
      $1/$2/$3
    2. But you could also try using the Regex Autosuggest provider from the appstore.  This will work nicely but only interactively.  So autopropagation won't work:
      https://appstore.sdl.com/language/app/regex-match-autosuggest-provider/412/
    3. Or the terminjector which will work with autopropagation:
      https://appstore.sdl.com/language/app/terminjector/759/

    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