TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: Vela025
from: Digital Man
date: 2024-10-17 12:04:00
subject: Help using gettext.js

  Re: Help using gettext.js
  By: Vela025 to Digital Man on Thu Oct 17 2024 02:40 pm

 >   Re: Help using gettext.js
 >   By: Digital Man to vela025 on Mon Oct 14 2024 19:35:51
 >
 >  > I ended up doing something different/better, still using the
 >  > text[.lang].ini file. See my commits > and wiki updates for details. Let
 >  > me > know if you have any questions.
 >
 > Sorry to bother you again (again). I have no js knowledge but would it be
 > possible to add a prompt just post
 > the password entry during the logon process (but pre-loading logon.*) asking
 > the user for their language preferences. A bit of a hack I know, but that
 > would allow me to store the different menus in their own respectivefolders:
 > /menu/ansi
 > /menu/ascii
 > /menu/mode7
 > So that when swapping from a Mode 7 terminal to a 40 Col ASCII terminal
 > theuser doesn't need to go through a few
 > screens of Mode 7 control codes before they can access D from the Main Menu
 > tochange their Language preferences back
 > to English (or in this case ASCII).

This sounds like something you could add to the top of your logon.js file.

if(confirm("Are you using a BBC Micro Mode 7 terminal"))
        user.lang = "bbcmicro";
else
        user.lang = "";
-- 
                                            digital man (rob)

Synchronet "Real Fact" #22:
The second ever Synchronet BBS was the Mid-Nite Hacker BBS (sysop: The Zapper)
Norco, CA WX: 66.3øF, 71.0% humidity, 4 mph WSW wind, 0.00 inches rain/24hrs
--- SBBSecho 3.20-Linux
                                                                                    
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.