• src/sbbs3/js_user.c load_cfg.c load_cfg.h logon.cpp prntfile.cpp sbbs.

    From Rob Swindell (on Windows@VERT to Git commit to main/sbbs/master on Wednesday, October 25, 2023 19:23:00
    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. A "blank" language property value (the default), just means to use the ctrl/text.dat contents.
    User-selected alternate language file is loaded upon logon and in the built-in/hard-coded user default settings menu.
    More on the user default settings menu:
    - AutoLogin via IP option ('I') to make room for new (I) Language option.
    - The cold-keys menu option was removed to make room for Language option
    (via text.dat change to UserDefaultsHotKey)
    - Any options disabled via blank text.dat strings will no longer result in
    supported command keys (that could accidentally be struck with hidden
    consequences/effect)
    - The user_settings.js will need similar treatment

    text/menu/<lang>/* is where alternate language menu files should be stored

    New UserDefaultsLanguage text.dat string (inserted before new PasswordChar string).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Ragnarok@VERT/DOCKSUD to Rob Swindell (on Windows 11) on Thursday, October 26, 2023 13:02:00
    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 ...

    thanks!
    ---
    þ Synchronet þ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
  • From Digital Man@VERT to Ragnarok on Thursday, October 26, 2023 13:24:00
    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 ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net