fix type_name for localization
type_name() returns a localized string, so type_name comparisions should compare against type_name() of a known quantity instead
This commit is contained in:
@@ -16,12 +16,12 @@ include file: /magic-modules.mse-include/corners/card_fields_tfc
|
||||
#### Finally, the template script must be adjusted like so:
|
||||
|
||||
template := {
|
||||
if type_name(harder_script[type] or else nil) != "nothing"
|
||||
if type_name(harder_script[type] or else nil) != type_name(nil)
|
||||
then harder_script[type](input, land:false)
|
||||
else template_prefix[type] + input + template_suffix[type]
|
||||
}
|
||||
land_template := {
|
||||
if type_name(harder_script[type] or else nil) != "nothing"
|
||||
if type_name(harder_script[type] or else nil) != type_name(nil)
|
||||
then harder_script[type](input, land:true)
|
||||
else template_prefix[type] + input + (if input == "a" then "" else "l") + template_suffix[type]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user