Skip to content

Parameterized localization key reference #340

Description

@kaiser-chris

This is a question and feature request.

Situation

This effect in EU5 has a set_loc_key parameter:

give_loan = {
	target = scope:pol_requesting_nation
	amount = local_var:spisz_price
	interest = 0.02
	months = 60
	set_loc_key = pledge_of_spisz
}

that references ALL of these loc keys:

 LOAN_TITLE_pledge_of_spisz: "Pledge of Spisz"
 LOAN_SHORT_NAME_pledge_of_spisz_L: "Pledge of Spisz"
 LOAN_SHORT_NAME_pledge_of_spisz_B: "Pledge of Spisz"
 LOAN_NAME_pledge_of_spisz_L: "Pledge of Spisz"
 LOAN_NAME_pledge_of_spisz_B: "Pledge of Spisz"
 LOAN_TOOLTIP_pledge_of_spisz: "An agreement between two parties, whereas the [lender|e], [LOAN.GetLender.GetName], gets to hold the [location|e] of [ShowLocationName('lubica')] until the [borrower|e], [LOAN.GetBorrower.GetName], repays the loan."

Question

Can I map this somehow in the current limitations of CWT?

Request

If we can not map these, then I would propose adding support for this:

set_loc_key = localisation[LOAN_TITLE_,]

This way I can at least show the name loc key in the editor and validate that exists.

Activity

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

Metadata

Metadata

Labels

config-systemInvolves the plugin's config systemenhancementNew feature or requestlanguage-constructsSupport for various language constructs (e.g., complex expressions)

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions