> On 02/05/2024 4:48 PM EST Jim Hall via Freedos-devel > <freedos-devel@lists.sourceforge.net> wrote: > > > Gregory Pietsch wrote: > > Believe me, I've had a few headaches over the years regarding NLS. This > > led to the myriad of ways to do NLS in Edlin. Anyway, all the strings > > that would need to be translated are #defines in msgs.h, and I included > > a simple filter program to generate msgs.h files from the NLS files. I > > don't know if NLS was done the right way from the start (POSIX sus4, > > anyone?) but you shouldn't have to put a hundred FreeDOS programmers > > into a room and get 101 ways of doing NLS in a program. > > > > Edlin is supposed to be TINY, and I've turned into the guardian of bloat. > [..] > > I suppose one option is to go the ed(1) route and minimize the output > it produces. But that starts to tilt dangerously into "user > aggressive" territory. > > That said, maybe Edlin uses a bit too much text. For example, when you > start Edlin, it produces this copyright message (which should be > translated) > > edlin 2.23, copyright (c) 2003 Gregory Pietsch > > This program comes with ABSOLUTELY NO WARRANTY. > > It is free software, and you are welcome to redistribute it > > under the terms of the GNU General Public License -- either > > version 2 of the license, or, at your option, any later > > version. > > > > * > > ..where "*" is the prompt. > > Does it need to produce that much text? Or could Edlin just start with > a "*" prompt?
Normally, that kind of text is produced on a "show version" option. That's boilerplate for the GNU license. I wanted to have enough space for translations. > > When you ask for help with "?" Edlin produces this text: > > *? > > > > edlin has the following subcommands: > > > > # edit a single line [#],[#],#m move > > a append [#][,#]p page > > [#],[#],#,[#]c copy q quit > > [#][,#]d delete [#][,#][?]r$,$ replace > > e<> end (write & quit) [#][,#][?]s$ search > > [#]i insert [#]t<> transfer > > [#][,#]l list [#]w<> write > > > > where $ above is a string, <> is a filename, > > # is a number (which may be .=current line, $=last line, > > or either number + or - another number). > > I don't know if the first "edlin has the following subcommands" line > needs to be there. That saves 1 line of translation, which isn't much. > But every little bit, right? I wanted the help text to be thorough! Gregory > > Jim > > > _______________________________________________ > Freedos-devel mailing list > Freedos-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-devel _______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel