update translations

This commit is contained in:
Wengier
2021-07-21 02:52:46 -04:00
parent 9679ceccaf
commit 786227cd0d
4 changed files with 2017 additions and 625 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -212,7 +212,8 @@ template <class MT> bool String_SBCS_TO_HOST_UTF8(char *d/*CROSS_LEN*/,const cha
if (ic >= map_max) return false; // non-representable
MT wc = map[ic]; // output: unicode character
if (utf8_encode(&d,df,(uint32_t)wc) < 0) // will advance d by however many UTF-8 bytes are needed
if (morelen&&ic==10&&wc==0x25D9) *d++ = ic;
else if (utf8_encode(&d,df,(uint32_t)wc) < 0) // will advance d by however many UTF-8 bytes are needed
return false; // non-representable, or probably just out of room
}

View File

@@ -2817,7 +2817,8 @@ public:
handler=_handler;
defmod=_mod;
defkey=_key;
buttonname=_buttonname;
if (strlen(_buttonname)<100) strcpy(buttonname, _buttonname);
else {strncpy(buttonname, _buttonname, 99);buttonname[99]=0;}
handlergroup.push_back(this);
type = handler_event_t;
}
@@ -2847,7 +2848,8 @@ public:
}
void SetButtonName(const char *name) {
buttonname = name;
if (strlen(name)<100) strcpy(buttonname, name);
else {strncpy(buttonname, name, 99);buttonname[99]=0;}
}
//! \brief Generate a default binding from the MapKeys enumeration
@@ -3325,7 +3327,7 @@ protected:
Bitu defmod;
public:
//! \brief Button name
const char * buttonname;
char buttonname[100];
};
/* whether to run keystrokes through system but only to show how it comes out.