Help localizing dates

Hi all!


I'm trying to localize the formatting of dates to follow a client's preferred style. They use the UN date format (day/month/year), for example: 18 June 2015.

Using Studio 2014 SP2, the closest I can get to that is 18 June, 2015. Is there a way around that?

Also, the settings let you change formatting for a specific language pair. Is there a way to change the Dates and Times settings so that they only apply to a specific TM?

thanks!

Becky

Parents Reply
  • Hi Becky,

    I don't think you can do this in a single expression because you'd need two different back references... one for the 1 in 01 and one for any double digit day that didn't start with 0.

    Why not just create two rules? That would be the easiest way to handle this I think. So search for these:

    0(\d)\sde\s(#Spanish_Months#)\sde\s(\d{4})

    ([1-9]{2})\sde\s(#Spanish_Months#)\sde\s(\d{4})

    The first one will catch the ones starting with zero, and the second one will catch the rest. I didn't test it in Studio but I think this will work.

    Regards

    Paul Filkin | RWS Group

    ________________________
    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

Children