Subversion Repositories SvarDOS

Rev

Rev 1370 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1370 Rev 1371
Line 45... Line 45...
45
 * done yet. */
45
 * done yet. */
46
int svarlang_load(const char *fname, const char *lang);
46
int svarlang_load(const char *fname, const char *lang);
47
 
47
 
48
/* tries loading lang strings from a file located in the executable's
48
/* tries loading lang strings from a file located in the executable's
49
 * directory that is named like the executable but with an *.LNG extension.
49
 * directory that is named like the executable but with an *.LNG extension.
-
 
50
 * this is certainly the most practical way of loading svarlang.
50
 * selfexe should point to the executable's full filename path (either relative
51
 * selfexe should point to the executable's full filename path (either relative
51
 * or absolute). You may want to pass argv[0] or __argv[0] there. */
52
 * or absolute). You may want to pass argv[0] or __argv[0] there. example:
-
 
53
 *
-
 
54
 * svarlang_autoload_exepath(argv[0], getenv("LANG"));
-
 
55
 */
52
int svarlang_autoload_exepath(const char *selfexe, const char *lang);
56
int svarlang_autoload_exepath(const char *selfexe, const char *lang);
53
 
57
 
54
/* this looks in a list of paths separated by ';' to locate a translation file
58
/* this looks in a list of paths separated by ';' to locate a translation file
55
 * for progname. this is usually called only by "CORE" SvarDOS / FreeDOS
59
 * for progname. this might be called by some FreeDOS programs that rely on the
56
 * programs. typical example:
60
 * NLSPATH environment variable for locating strings. example:
57
 *
61
 *
58
 * svarlang_autoload_pathlist("myprog", getenv("NLSPATH"), getenv("LANG"));
62
 * svarlang_autoload_pathlist("myprog", getenv("NLSPATH"), getenv("LANG"));
59
 */
63
 */
60
int svarlang_autoload_pathlist(const char *progname, const char *pathlist, const char *lang);
64
int svarlang_autoload_pathlist(const char *progname, const char *pathlist, const char *lang);
61
 
65