Skip to content

Translate PreStartup strings before translation system is loaded #879

@SadPencil

Description

@SadPencil

Description

Image

Solution 1:

  • Load the translation system first, even before the logger launches. Don't know if it is technically possible or not

Solution 2:

  1. Introduce resx and Resource.Embedder to translated these PreStartup string literals (less than 10 strings perhaps) in a similar way as in Introduce translation support and add Chinese (Simplified) translation xna-cncnet-client-launcher#25
  2. Provide a different HandleException method to use resx string, and optionally invoke one of the two methods depending on whether the translation is loaded
  3. Delay the CultureInfo.CurrentUICulture = new CultureInfo(ProgramConstants.HARDCODED_LOCALE_CODE); as a fallback when the translation failed to load

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions