Closed pStyl3 closed 2 years ago
The way I currently see it is, that we can't do every single of the above tasks all at once, at least not until a new LOOT version has been released that includes the updated libloot, or not?
We probably can start with adding the prelude/common
node(s) to the masterlist, including the new short definitions of the Message Anchors.
But once we remove the Message Anchors from masterlist.yaml
's common
node (as they have been moved to prelude.yaml
), and also try to replace the masterlist.yaml
's globals
's localised messages with Sub-Anchors (that reference newly defined Message Anchors in prelude.yaml
's common
section) - we try to do something, which the current LOOT v0.16.1 cannot handle.
Is my reasoning wrong here?
The way I currently see it is, that we can't do every single of the above tasks all at once, at least not until a new LOOT version has been released that includes the updated libloot, or not?
I think you could do almost everything now, if you moved the localised messages in masterlist.yaml
into the prelude:
section (so like you have above, but not only the English content strings), because then everything is still self-contained in the masterlist but the localised messages will be replaced by what's in the prelude file when/if that is loaded. Once v0.17 is released, you can then remove the localised strings from the masterlist's prelude section.
That leads to duplicate localisations in the prelude file and the masterlist, but that's always going to be the case for masterlists earlier than v0.17 anyway.
The Part 1 PR has been merged. If no issues get reported until tomorrow evening, I will do the same for the other masterlists, as well.
When moving the global messages to the prelude
node in the form of new anchors, you should leave behind aliases of those anchors so they're still displayed in the meantime. For instance, there should be a '*latestLOOTThread' in the globals
node of each masterlist after migration.
Right, you are correct. If I use my definitions from here, so e.g.
# Latest LOOT Thread
- &lootThread
<<: *latestLOOTThread
subs: [ 'https://loot.github.io/latest-thread/' ]
in masterlist.yaml
's globals
node, the message will be correctly displayed. I will fix that in the masterlists I already updated in a bit.
I've also updated the opening post of this issue to reflect that, the last point for Part 1
was previously listed for Part 2
.
Thanks
Part 1
of the migration is finished for all masterlists.
The v0.17
branches have been created for the different masterlists. The next step is "Part 2" from the first post, within v0.17
that is.
The needed changes have been applied.
Closing this issue as the needed changes have been done in the v0.17
branches.
Under https://github.com/loot/loot/issues/1492
In order for the masterlists to make use of the newly created prelude.yaml, a few things must be adjusted.
Part 1
The first step is to introduce changes on the existing
v0.15
branch to start the migration process.prelude
node - with it's owncommon
sub-node - before the existing masterlistcommon
nodecommon: bash_tags: globals: groups: plugins:
as well as Sub-Anchors that reference Message Anchors such as e.g.
[x] Move these existing localised messages from
masterlist.yaml
'sglobals
sectionto
masterlist.yaml
'sprelude/common
section too. Do this by creating newGlobal Anchors
like described here, but use the correct, non-generic & game-specificsubs
andconditions
like they are already defined in eachmasterlist.yaml
file (unlike what the genericsubs
andconditions
inprelude.yaml
might look like).[x] Add the new Sub-Anchors that reference the newly created
Global Anchors
inmasterlist.yaml
'sglobals
section like described here.Part 2
The following steps will need to performed, once the next LOOT version, that amongst other things has full support for
prelude.yaml
, has been released.masterlist.yaml
'sprelude/common
section with the their new (English only) short definition counterparts like this:prelude.yaml
every Message Anchors becomes available for each of the masterlists.