diff options
Diffstat (limited to 'mbbsd/syspost.c')
-rw-r--r-- | mbbsd/syspost.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/mbbsd/syspost.c b/mbbsd/syspost.c index dfc3065f..f6b30551 100644 --- a/mbbsd/syspost.c +++ b/mbbsd/syspost.c @@ -17,8 +17,8 @@ post_msg(char *bname, char *title, char *msg, char *author) if (!fp) return -1; - fprintf(fp, SHM->i18nstr[cuser.language][2551], author, bname, title); - fprintf(fp, SHM->i18nstr[cuser.language][2552], ctime(&now)); + fprintf(fp, I18N[2551], author, bname, title); + fprintf(fp, I18N[2552], ctime(&now)); /* ¤å³¹ªº¤º®e */ fprintf(fp, "%s", msg); @@ -67,13 +67,13 @@ post_change_perm(int oldperm, int newperm, char *sysopid, char *userid) if (!(fp = fopen(genbuf, "w"))) return; - fprintf(fp, SHM->i18nstr[cuser.language][2553], ctime(&now)); + fprintf(fp, I18N[2553], ctime(&now)); for (i = 5; i < NUMPERMS; i++) { if (((oldperm >> i) & 1) != ((newperm >> i) & 1)) { - fprintf(fp, SHM->i18nstr[cuser.language][2554], + fprintf(fp, I18N[2554], sysopid, - (((oldperm >> i) & 1) ? SHM->i18nstr[cuser.language][2555] : SHM->i18nstr[cuser.language][2556]), - userid, SHM->i18nstr[cuser.language][str_permid[i]]); + (((oldperm >> i) & 1) ? I18N[2555] : I18N[2556]), + userid, I18N[str_permid[i]]); flag++; } } @@ -81,16 +81,16 @@ post_change_perm(int oldperm, int newperm, char *sysopid, char *userid) if (flag) { clrtobot(); clear(); - while (!getdata_str(5, 0, SHM->i18nstr[cuser.language][2557], - reason, sizeof(reason), DOECHO, SHM->i18nstr[cuser.language][2558])); - fprintf(fp, SHM->i18nstr[cuser.language][2559], + while (!getdata_str(5, 0, I18N[2557], + reason, sizeof(reason), DOECHO, I18N[2558])); + fprintf(fp, I18N[2559], cuser.userid, reason); fclose(fp); snprintf(fhdr.title, sizeof(fhdr.title), - SHM->i18nstr[cuser.language][2560], + I18N[2560], cuser.userid, userid); - strlcpy(fhdr.owner, SHM->i18nstr[cuser.language][2561], sizeof(fhdr.owner)); + strlcpy(fhdr.owner, I18N[2561], sizeof(fhdr.owner)); append_record("boards/S/Security/.DIR", &fhdr, sizeof(fhdr)); } else fclose(fp); @@ -124,12 +124,12 @@ post_violatelaw(char *crime, char *police, char *reason, char *result) stampfile(genbuf, &fhdr); if (!(fp = fopen(genbuf, "w"))) return; - fprintf(fp, SHM->i18nstr[cuser.language][2562], + fprintf(fp, I18N[2562], crime, ctime(&now), police, crime, reason, result); fclose(fp); snprintf(fhdr.title, sizeof(fhdr.title), - SHM->i18nstr[cuser.language][2563], crime); - strlcpy(fhdr.owner, SHM->i18nstr[cuser.language][2564], sizeof(fhdr.owner)); + I18N[2563], crime); + strlcpy(fhdr.owner, I18N[2564], sizeof(fhdr.owner)); append_record("boards/V/ViolateLaw/.DIR", &fhdr, sizeof(fhdr)); @@ -139,11 +139,11 @@ void post_newboard(char *bgroup, char *bname, char *bms) { char genbuf[256], title[128]; - snprintf(title, sizeof(title), SHM->i18nstr[cuser.language][2565], bname); + snprintf(title, sizeof(title), I18N[2565], bname); snprintf(genbuf, sizeof(genbuf), - SHM->i18nstr[cuser.language][2566], + I18N[2566], cuser.userid, bname, bgroup, bms); - post_msg("Record", title, genbuf, SHM->i18nstr[cuser.language][2567]); + post_msg("Record", title, genbuf, I18N[2567]); } void @@ -158,15 +158,15 @@ give_money_post(char *userid, int money) stampfile(genbuf, &fhdr); if (!(fp = fopen(genbuf, "w"))) return; - fprintf(fp, SHM->i18nstr[cuser.language][2568], cuser.userid, ctime(&now)); + fprintf(fp, I18N[2568], cuser.userid, ctime(&now)); clrtobot(); clear(); - fprintf(fp, SHM->i18nstr[cuser.language][2569], + fprintf(fp, I18N[2569], cuser.userid, userid, money); fclose(fp); - snprintf(fhdr.title, sizeof(fhdr.title), SHM->i18nstr[cuser.language][2570], + snprintf(fhdr.title, sizeof(fhdr.title), I18N[2570], cuser.userid); - strlcpy(fhdr.owner, SHM->i18nstr[cuser.language][2571], sizeof(fhdr.owner)); + strlcpy(fhdr.owner, I18N[2571], sizeof(fhdr.owner)); append_record("boards/S/Security/.DIR", &fhdr, sizeof(fhdr)); } |