Skip to content

Consider to remove all localized error messages #4243

Closed

Description

@forki

This is not intended as trolling. Seriously.

We should revisit the idea to have localized compiler error messages. At least in german case they are usually not very helpful.

  • You can't google with localized errors
  • You can't ask on stackoverflow with localized errors
  • The message are really really hard to understand since established english terms like "assembly binding redirect" are translated as well to something noone has ever heard of.
  • Contributors have now much more pain to maintain all these languages, when they actually just want to patch the english message.

I know MS employees /VF# team might see this differently - but they don't have to use the localized versions and don't see the pain.

Activity

  1. auduchinok commented on Jan 23, 2018

    @auduchinok
    Member

    The problem is not in F# compiler/FCS only, I was never able to (quickly/easily) understand what localized .NET exceptions were about and have even forgotten how bad it was after switching to English as an OS language.
    I'd be happy if all .NET tooling used English language only so it'd be possible to get help online.

  2. cartermp commented on Jan 23, 2018

    @cartermp
    Contributor

    This is about compliance with accessibility requirements. The recent switch to bring the localized files to the repo was done for three reasons:

    • Allow someone to patch one of these strings when they previously had no ability to do so
    • Significantly reduce our build times (4 hrs -> 90 mins) and allow us to remove the copy of this repo that we had to maintain in VSTS, thus making it far easier for us to get something critical into VS in a short time span
    • Be available for a pilot program run by Bing to offer better machine translation on OSS assets.

    Until our policy for accessibility changes and does not mandate localized resources, we won't be changing this.

  3. forki commented on Jan 23, 2018

    @forki
    ContributorAuthor
  4. KevinRansom commented on Jan 23, 2018

    @KevinRansom
    Contributor

    @ forki
    The option you need is already in the product:

    use: fsc --preferreduilang:us-EN

    in projects add $(OtherFlags);--preferreduilang:us-EN

    There is a bug, it doesn't seem to set it for FSI, and that needs to be fixed.

    fsc.exe" --preferreduilang:de-DE
    Microsoft (R) F# Compiler version 10.1.0 for F# 4.1
    Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.
    
    error FS0207: Keine Eingaben angegeben.
    
    fsc.exe" --preferreduilang:us-EN
    Microsoft (R) F# Compiler version 10.1.0 for F# 4.1
    Copyright (c) Microsoft Corporation. All Rights Reserved.
    
    error FS0207: No inputs specified
    
    

    Kevin

  5. forki commented on Jan 23, 2018

    @forki
    ContributorAuthor

    Thanks! Does this work for fsi and FCS as well? If so we can close it and defer to downstream.

  6. cartermp commented on Jan 23, 2018

    @cartermp
    Contributor

    It looks like this isn't listed as an option in the F# Compiler Options docs page. I created an issue for that here: dotnet/docs#4183

    I'll probably add it to the table by the end of the day unless someone gets to it first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions