Subj : Help using gettext.js
To : vela025
From : Digital Man
Date : Mon Oct 14 2024 05:10 pm
Re: Help using gettext.js
By: vela025 to Digital Man on Mon Oct 14 2024 12:37 pm
> > To elaborate, in your text.bbcmicro.ini (root section, not [JS]):
> > YesNoQuestion = @exec:bbcyesno@
> > NoYesQuestion = @exec:bbsnoyes@
>
> > (but the "exec" must be uppercase). Then you can create your
> > mods/bbcyesno.js and bbcnoyes.js to do your thing. No change to
> > yesnobar.js or noyesbar.js should be needed.
>
> Brilliant thank you, that has worked great. Is it possible to do something
> similar with the main prompt in default.js?
>
> "\x01-\x01c\xfe \x01b\x01h" + gettext("Main") + " \x01n\x01c\xfe \x01h" +
> time_code +
> " \x01n\x01c[\x01h@GN@\x01n\x01c] @GRP@\x01\\
> [\x01h@SN@\x01n\x01c] @SUB@: \x01n",
>
> I can't see an exec for it in text.dat so assuming not quite as simple to
> customise?
There's no text.dat string for a specific command shell prompt, no. We could possibly pull that prompt from a JSON file as using a .ini file (e.g. modopts.ini) is likely a pain (or likely impossible, currently) due to all the escape sequences and extra quotes. JSON would likely work better for that case.
--
digital man (rob)
Breaking Bad quote #18:
All right, Operation: TBD, thanks for nothing Gomey. - Hank Schrader
Norco, CA WX: 73.1�F, 58.0% humidity, 10 mph SW wind, 0.00 inches rain/24hrs
---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net