Jump to content
Korean Random

Macro {{flag}} returns non existing names


Napalm

Recommended Posts

Hello,

 

I found the following issue:

 

Sometimes the macro {{flag}} returns values which have no coresponding png-files in 'res\icons\flags' (e.g: 'CS'). I think the flag is not set for the player on xvm site so the macro returns client language. But abbreviations for languages are not allways equal to the countrys abbreviation (e.g: Czech Republic = 'CZ'; Czech ='CS').

 

I think there are two simple ways to solve it:

1. Copy the png-files (cz.png -> cs.png)

2. Establish a new variable in config for default name if png file is not found ( e.g: "flag_default": "unknown" )

 

Best regards

Napalm

Edited by Napalm
Link to comment
Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...