links

lynx-like text mode web browser
git clone anongit@rnpnr.xyz:links.git
Log | Files | Refs | Feed | README | LICENSE

language.c (443B)


      1 /* language.c
      2  * (c) 2002 Mikulas Patocka
      3  * This file is a part of the Links program, released under GPL.
      4  */
      5 #include "links.h"
      6 
      7 #include "language.h"
      8 #include "language.inc"
      9 
     10 unsigned char dummyarray[T__N_TEXTS];
     11 
     12 unsigned char *
     13 get_text_translation(unsigned char *text, struct terminal *term)
     14 {
     15 	if (!(text >= dummyarray && text < (dummyarray + T__N_TEXTS)))
     16 		return text;
     17 	return (unsigned char *)translation[text - dummyarray].name;
     18 }