"Number is missing in target segment or is not properly localized"

Hi, I am a free lance translator for Czech language, and my very important question about Studio 2019 is: How can I manage the message: "Number is missing in target segment or is not properly localized". In fact the Studio 2019 (as all previous versions of Trados/Studio) doesn't know the rules to respect using the numbers in the documents in Czech. So, the above mentioned message is very null and void/disturbing/ineffective.

As translator, am I able teach the Studio to manage the numbers as needed?

If not, should it be possibile for the SDL make known to everybody this very fatal failure?

Many thanks in advance for all useful reactions

Miroslava

Parents
  • Hi all,

    In general it's worth knowing how to get the best from Studio when you work with it.  It does have some strong points when working with numbers/dates/units/etc. but it can also be a complete pain in the neck.  For example, Studio uses the language cultures in your operating system to be able to recognise these things.  This means you never have to create paterns for anything you need as long as they are written in one of the ways your operating system would expect them.  This applies to your source and your target.  This is a nice feature and was put there for the right reasons which was making it easier for the user.

    However, the drawback is that if these patterns don't match what your operating system expects then there is no mechanism for adding your own custom recognizers.  Tools like memoQ for example don't have this ability to automatically recognise them but it does come with a built in set of patterns that cover most things, and if you need anything else you can add them.

    So the way to work with Studio, in my opinion, would be this:

    1. Create your project
    2. Check to see whether the source patterns are recognised as expected
    3. If not then use something like the SDLXLIFF toolkit to "correct" these patterns so that the source patterns are recognised by Studio
    4. Check to see whether the target output when autotranslated is what you expected.
    5. If it is then you can now translate the project and the QA checks built in should give you better results
    6. If it isn't then allow Studio to do its thing and translate anyway so you can properly QA the consistency of the values of your patterns.  Then search replace the target when the translation is complete with the patterns formatted as required

    This is obviously not ideal, and I would prefer that we had more ability in the core product to cope with non-recognised patterns of any kind.  But until we do I would always work like this to avoid frustrations from not having control over what's happenning in the project.

    Another thing that sometimes works is to add the patterns you need to your languages in Windows.  Then restart your computer and you may find that Studio now recognises the new pattern you wanted.  The only problem with this approach is that it doesn't transfer with a project for another user, but if you're working on your own it may be the best solution as it avoids the workflow outlined above.

    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

  • Hi Paul,

    Here is my situation in a nutshell:

    It doesn't look like I should have to change the Windows 10 default date format. But I have tried to change it before and have tried it again and the change doesn't "stick".

    So, when you say "Another thing that sometimes works is to add the patterns you need to your languages in Windows," what exactly do you mean?

    If I look at the Windows 10 default long date formats for German and Austrian they are both "dddd, d. MMMM yyyy". Studio nevertheless recognises German dates in the format "d. MMMM yyyy" -- but it does not recognise Austrian dates in this format.

    Okay, two languages -- probably handled by two coders, or the code for one was changed somewhere along the line while the other wasn't.

    I really shouldn't need to change the Windows 10 format ...

    ... but, what the heck, I'll just change the Windows 10 long date format for Austrian to "d. MMMM yyyy".

    The problem is that Windows 10 seems to forget the format as soon as I set my region back to English.

    Control Panel -> Region, drop down the "Format" box and select German (Austrian), change long date from "dddd, d. MMMM yyyy" to "d. MMMM yyyy", then click Apply. Then reset the regional format drop down to English and click OK.

    Now go to Control Panel -> Region again and check the regional long date format for Austrian again and, lo and behold, it is back to "dddd, d. MMMM yyyy". I imagine that Windows only expects me to be using one language at a time, and reverts everything back to the defaults for the languages that are not being used. Or?

    Okay, so I shouldn't need to change the Windows 10 date format. But when I try to change it, I can't make it stick. What am I doing wrong?

    I am not a Windows expert and I doubt most translators are, so I may be looking in the wrong place to change Windows 10 date formats.

    I used the Control Panel in the example above, but I have also tried the Windows 10 Settings. This ultimately led me to the same Region dialog box. (Settings -> Time and Language -> Date, time & regional formatting -> Additional date, time & regional settings -> Change date, time or number formats)

    By the way, if I use Alt-F2 to edit the Austrian source segment in Studio, for example changing "1. Jänner 2019" to "Dienstag, 1. Jänner 2019", then Studio recognises the date properly. So Studio is, as you say, using the Windows 10 default long date format for Austrian.

    But Studio is not using the Windows 10 default long date format for German, because it is the same as the long date format for Austrian. Maybe a user made a big fuss about German date recognition in the past and someone went in and hacked the code for German -- but not for Austrian and probably not the other varieties of German.

    I haven't looked at number formats, but I would be curious to know if the same "stickiness" problem applies to numbers in languages other than your current Windows 10 region setting.

    Or am I doing everything wrong?

    Best regards,
    Bruce Campbell
    ASAP Language Services

  • Hi  

    Unknown said:
    So, when you say "Another thing that sometimes works is to add the patterns you need to your languages in Windows," what exactly do you mean?

    I specifically said "sometime works" because some people have no problem making this work and others don't.  In many ways Windows seems to be a bit of a black box.

    Unknown said:
    Or am I doing everything wrong?

    The only thing you didn't mention (I think... and I didn't read through all of this slowly) is you went back into Studio after restarting and changed the date recogniser pattern in your settings.  I'd like to think that if this worked you now have your new pattern available to you for selection.

    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

  • Hi Paul,

    As I mentioned, I have tried changing the Windows 10 date format for Austrian, but after changing the format for Austrian, I then change my regional language back to English and Windows 10 reverts Austrian back to its default date format.

    I imagine Windows only expects me to be using one language at a time and "cleans up" any changes I have made when I switch back to English as my Windows 10 region. But, then again, it could be a bug in Windows 10.

    In spite of this, I did actually reboot my computer and restart Studio and check Austrian date recognition again. I just didn't mention it in the previous post because it was already too long.

    However, this still does not answer the question of why German date recognition works when the default long date format is the same as in Austrian.

    But I doubt we are going to get anywhere with this now. If there was a solution I think I would have found it years ago when I first encountered this problem.

    Thanks for your help anyway :-)

    Bruce

  • Hi  

    Unknown said:
    However, this still does not answer the question of why German date recognition works when the default long date format is the same as in Austrian.

    I spent a little time to look at this today, in particular this part (although I only have W8.1 so there may be differences):

    Unknown said:
    If I look at the Windows 10 default long date formats for German and Austrian they are both "dddd, d. MMMM yyyy". Studio nevertheless recognises German dates in the format "d. MMMM yyyy" -- but it does not recognise Austrian dates in this format.

    Let’s start with what I see for Windows.  I see this with German:

    So this would be, for example:

    Sonntag, 17. Februar 2019
    17. Februar 2019
    17. Feb. 2019
    Freitag, 1. Februar 2019
    1. Februar 2019
    1. Feb. 2019

    I see this for Austrian German:

    This could be this:

    Sonntag, 17. Februar 2019
    17.Februar 2019
    Freitag, 01. Februar 2019
    1.Februar 2019

    If I put these into Studio with the appropriate TMs then I see this.  I picked a long date for localization in target, the important part is recognition in source:

    de(DE)

    It seems to pick up all the formats apart from d. MMM. yyyy and I have no idea why this is not seen, but I will find out.  This is a good example of the problems some users have though and whilst it’s a pain the solution can be achieved by converting the source with a search replace regex in the source so Studio recognises the dates and handles them correctly.

    The Austrian however works exactly as expected for me:

    de(AT)

    What language pairs are you using for your TMs?  perhaps this is adding a variable I'm using differently to you?

    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

  • Hi Paul,

    That is bizarrre. I have the same default long date format for both German and Austrian in Windows 10, but Austrian dates in the "d. MMMM yyyy" format are not recognized in Studio, while German dates in that format are recognized.

    de(AT)->en(GB)

    Windows 10 language preferences showing German (Austria) selected with date formats 'dd.MM.yyyy' for short date and 'dddd, d. MMMM yyyy' for long date.

    Trados Studio screenshot showing an unrecognized Austrian date 'Sonntag, 17. Februar 2019' in the source column and a blank target column.

    Trados Studio screenshot showing an unrecognized Austrian date '17. Februar 2019' in the source column and a blank target column.

    de(DE)->en(GB)

    Windows 10 language preferences showing German (Germany) selected with date formats 'dd.MM.yyyy' for short date and 'dddd, d. MMMM yyyy' for long date.

    Trados Studio screenshot showing a recognized German date 'Sonntag, 17. Februar 2019' in the source column and '17 February 2019' in the target column.

    Trados Studio screenshot showing a recognized German date '17. Februar 2019' in the source column and '17 February 2019' in the target column.

     

    Does this make any sense to you? I tried changing the Austrian long date format to "d. MMMM yyyy", but Windows 10 reverts it back to "dddd, d. MMMM yyyy" when I change my regional language back to English.

    Best regards,
    Bruce Campbell
    ASAP Language Services

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 3:37 PM (GMT 0) on 28 Feb 2024]
  • Hi  

    You are not showing the relevant date in your regional settings, but perhaps note that in mine anyway there is no space between the date and the month. It does seem pretty odd, but I reproduced faithfully what windows was looking for and it's recognised. This is a great example of the flaw in our rather prescriptive recognition system.

    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

  • Hi  what you have shown above, i.e. automatic substitution, is determined not by the Windows settings, but by the Studio Auto-substition settings:

    Trados Studio project settings window showing Language Pairs, with a focus on English (United Kingdom) to German (Germany) auto-substitution settings for date formats.

     

     as for recognition (as well for date/time Recognize function and QA date/time check) I think it doesn't matter if any date/time format is set as default in Windows. It is only important that this format is defined for a given language in Windows.
    Windows (I guess AllDateTimePatters from given .NET Culture) may have more formats than those displayed in the regional settings.

    By default (no changes made by the user) for de-GE:
    AllDateTimePatterns: dd.MM.yyyyyy 17.02.2019
    AllDateTimePatterns: dd.MM.yy 17.02.19
    AllDateTimePatterns: yyyy-MM-dd 2019-02-17
    AllDateTimePatterns: dd. MMM. yyyyy 17. Feb. 2019
    AllDateTimePatterns: dddd, d. MMMM yyyy Sonntag, 17. Februar 2019
    AllDateTimePatterns: d. MMMM yyyyyy 17. Februar 2019
    AllDateTimePatterns: d. MMM. yyyyy 17. Feb. 2019

    By default (no changes made by the user) for de-AT:
    AllDateTimePatterns: dd.MM.yyyyyy 17.02.2019
    AllDateTimePatterns: dddd, d. MMMM yyyy Sonntag, 17. Februar 2019
    AllDateTimePatterns: d. MMMM yyyyyy 17. Februar 2019
    AllDateTimePatterns: dddd, d. MMMM yyyyy HH:mm Sonntag, 17. Februar 2019 17:00
    AllDateTimePatterns: d. MMMM yyyyy HH:mm 17. Februar 2019 17:00

    I can confirm that the format "dd. MMM. yyyyy" for de-GE is not recognized in Studio. Additionally, the format "d MMM yyyyy" is not recognized for the Polish language. I thought that maybe there is something wrong with abbreviated month names, but "dd-MMM-yyy" for en-US is recognized correctly.

    I also checked that the format "dd. MMM. yyyyy" for de-GE is correctly substituted by the Auto-substition function. So you can see that the problem is with parsing, because formatting works well.

    Comparison of date and time formats between English (United Kingdom) and German (Germany) in Trados Studio, highlighting the recognition of '17 Feb 2019' but not '17. Feb. 2019' for German.

    DArek



    Generated Image Alt-Text
    [edited by: Trados AI at 3:36 PM (GMT 0) on 28 Feb 2024]
Reply
  • Hi  what you have shown above, i.e. automatic substitution, is determined not by the Windows settings, but by the Studio Auto-substition settings:

    Trados Studio project settings window showing Language Pairs, with a focus on English (United Kingdom) to German (Germany) auto-substitution settings for date formats.

     

     as for recognition (as well for date/time Recognize function and QA date/time check) I think it doesn't matter if any date/time format is set as default in Windows. It is only important that this format is defined for a given language in Windows.
    Windows (I guess AllDateTimePatters from given .NET Culture) may have more formats than those displayed in the regional settings.

    By default (no changes made by the user) for de-GE:
    AllDateTimePatterns: dd.MM.yyyyyy 17.02.2019
    AllDateTimePatterns: dd.MM.yy 17.02.19
    AllDateTimePatterns: yyyy-MM-dd 2019-02-17
    AllDateTimePatterns: dd. MMM. yyyyy 17. Feb. 2019
    AllDateTimePatterns: dddd, d. MMMM yyyy Sonntag, 17. Februar 2019
    AllDateTimePatterns: d. MMMM yyyyyy 17. Februar 2019
    AllDateTimePatterns: d. MMM. yyyyy 17. Feb. 2019

    By default (no changes made by the user) for de-AT:
    AllDateTimePatterns: dd.MM.yyyyyy 17.02.2019
    AllDateTimePatterns: dddd, d. MMMM yyyy Sonntag, 17. Februar 2019
    AllDateTimePatterns: d. MMMM yyyyyy 17. Februar 2019
    AllDateTimePatterns: dddd, d. MMMM yyyyy HH:mm Sonntag, 17. Februar 2019 17:00
    AllDateTimePatterns: d. MMMM yyyyy HH:mm 17. Februar 2019 17:00

    I can confirm that the format "dd. MMM. yyyyy" for de-GE is not recognized in Studio. Additionally, the format "d MMM yyyyy" is not recognized for the Polish language. I thought that maybe there is something wrong with abbreviated month names, but "dd-MMM-yyy" for en-US is recognized correctly.

    I also checked that the format "dd. MMM. yyyyy" for de-GE is correctly substituted by the Auto-substition function. So you can see that the problem is with parsing, because formatting works well.

    Comparison of date and time formats between English (United Kingdom) and German (Germany) in Trados Studio, highlighting the recognition of '17 Feb 2019' but not '17. Feb. 2019' for German.

    DArek



    Generated Image Alt-Text
    [edited by: Trados AI at 3:36 PM (GMT 0) on 28 Feb 2024]
Children