plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

In the upcoming flighting, we've changed the behaviour of the content.xml file. If your addon uses this file, please read this article!

Please take a moment to read the platform’s guidelines before you get started!


question

Steve avatar image
Steve asked

Can checklists be localized?

I am in the process of creating a package which adds checklists to an existing aircraft, but I'm having trouble referencing strings provided in my package's locPak files in the checklist XML. Strings defined in the locPaks in the fs-base package resolve correctly but I'm unable to get any other string to display as expected.

For example:

<my-package>\en-US.locPak:

{
  "LocalisationPackage": {
    "Language": "en-US",
    "Strings": {
      "GAME.CHECKLIST_MY_CHECKLIST_ITEM": "Checklist Item"
    }
  }
}

<my-package>\SimObjects\Airplanes\AirplaneType\Checklist\Checklist.xml

<?xml version="1.0" encoding="UTF-8"?>
<SimBase.Document Type="Checklist" version="1,0">
  <Checklist.Checklist>
    <IncludeCheckpointLibrary FileName="CheckpointsLibrary\\Asobo_DefaultCheckpointLibrary.xml"/>
    <Step ChecklistStepId="PREFLIGHT_GATE">
      <Page SubjectTT="TT:GAME.CHECKLIST_PREFLIGHT_INSPECTION">
        <Checkpoint Id="CHECKPOINT_TEST">
          <CheckpointDesc SubjectTT="TT:GAME.CHECKLIST_MY_CHECKLIST_ITEM" ExpectationTT="TT:GAME.CHECKLIST_NORMAL"/>
        </Checkpoint>
      </Page>
    </Step>
  <Checklist.Checklist>
</SimBase.Document>


The result of this setup in the checklist window is the following:


Preflight inspection
GAME.CHECKLIST_MY_CHECKLIST_ITEM - - - - - - - - - - - - - - - - - Normal


The two strings defined in the fs-base package are correctly resolved (the page title and the expectation text) but the subject text is not correctly resolved.

Is this behaviour that is expected to work? Am I missing something from my setup here?

aircraft
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.