• exec/load/gettext.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Monday, October 14, 2024 19:16:10
    https://gitlab.synchro.net/main/sbbs/-/commit/ef71a44d2d6c4033b48d8846
    Modified Files:
    exec/load/gettext.js
    Log Message:
    Add optional friendly-key name argument, pull text from [scriptname.js]

    Not all strings make good key names (e.g. those with control characters),
    so allow an additional, optional argument to gettext() that allows for
    more friendly key names to be used to specify/look-up (some) text strings.

    Also, in addition to the global [js] section for these text values, look (first) in [scriptfilename.js] - this allows more customization on a
    per-script basis (e.g. [default.js] can be used to override strings used
    in the Synchronet Classic command shell (default.js) but would not effect if/when those same strings are used in other scripts/shells.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Tuesday, February 11, 2025 18:44:41
    https://gitlab.synchro.net/main/sbbs/-/commit/eca397380e8dba5756bb0113
    Modified Files:
    exec/load/gettext.js
    Log Message:
    Convert charset to lowercase, don't depend on file_getcase() to fix

    ... cause it won't (fix directory case in path).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thursday, January 22, 2026 22:35:19
    https://gitlab.synchro.net/main/sbbs/-/commit/2b3160a39111174060f37047
    Modified Files:
    exec/load/gettext.js
    Log Message:
    Log a warning when gettext() is given an original string ending in colon

    Key values ending a colon a problematic for .ini file syntax, so pass a short/simple key to gettext() in this case.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net