Subj : Re: src/sbbs3/js_user.c load_cfg.c load_cfg.h logon.cpp prntfile.cpps To : Ragnarok From : Digital Man Date : Thu Oct 26 2023 13:24:06 Re: Re: src/sbbs3/js_user.c load_cfg.c load_cfg.h logon.cpp prntfile.cppsb By: Ragnarok to Rob Swindell (on Windows 11) on Thu Oct 26 2023 01:02 pm > El 25/10/23 a las 23:23, Rob Swindell (on Windows 11) escribi¢: > > https://gitlab.synchro.net/main/sbbs/-/commit/d89f7d49f9dd90c66c98f92b > > Modified Files: > > src/sbbs3/js_user.c load_cfg.c load_cfg.h logon.cpp prntfile.cpp > > sbbs.h sbbsdefs.h str.cpp text.h text_defaults.c text_id.c userdat.c > > useredit.cpp userfields.h > > Log Message: > > Initial support or multiple (user-selectable) languages in the terminal > > server > > > Uses the new ctrl/text.??.ini files (just a few words translated so far). > > Adds the new "lang" user property (to user.tab and JS User class). > > The language code is the 2-3 char (e.g. ISO 639-1) abbreviation of a > > language. > > really good! language support for user is a very cool feature. > > just a question, why not use locales definition like lang_COUNTRY > instead of ISO 639-1 I use es_AR and is exactly not same to es_ES ... There's no requirement that the lang files or user property values are ISO 639-1 abbreviations (i.e. "spa" is just as valid as "es"). It can be any (up to 3) letters you like. I can extend the lang string maximum length (to 5?) very easily, if that helps you. -- digital man (rob) Synchronet "Real Fact" #99: The Synchronet Wiki (wiki.synchro.net) went online in April of 2010 Norco, CA WX: 69.6øF, 62.0% humidity, 0 mph ENE wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .