Subversion Repositories SvarDOS

Rev

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

Rev 1290 Rev 1306
Line 24... Line 24...
24
 
24
 
25
#ifndef SVARLANG_H
25
#ifndef SVARLANG_H
26
#define SVARLANG_H
26
#define SVARLANG_H
27
 
27
 
28
/* library version */
28
/* library version */
29
#define SVARLANGVER "20230713"
29
#define SVARLANGVER "20230717"
30
 
30
 
31
/* returns a pointer to a string with the SvarLANG's library version,
31
/* returns a pointer to a string with the SvarLANG's library version,
32
 * independently of the SVARLANGVER string above. */
32
 * independently of the SVARLANGVER string above. */
33
const char *svarlang_getver(void);
33
const char *svarlang_getver(void);
34
 
34
 
Line 49... Line 49...
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
 * selfexe should point to the executable's full filename path (either relative
50
 * 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. */
51
 * or absolute). You may want to pass argv[0] or __argv[0] there. */
52
int svarlang_autoload_exepath(const char *selfexe, const char *lang);
52
int svarlang_autoload_exepath(const char *selfexe, const char *lang);
53
 
53
 
54
/* this relies on getenv() to pull LANG and NLSPATH variables and looks
54
/* this looks in a list of paths separated by ';' to locate a translation file
55
 * for a translation file named "%NLSPATH%\progname.lng".
55
 * for progname. this is usually called only by "CORE" SvarDOS / FreeDOS
-
 
56
 * programs. typical example:
-
 
57
 *
56
 * this call should be used only by "CORE" SvarDOS / FreeDOS programs. */
58
 * svarlang_autoload_pathlist("myprog", getenv("NLSPATH"), getenv("LANG"));
-
 
59
 */
57
int svarlang_autoload_nlspath(const char *progname);
60
int svarlang_autoload_pathlist(const char *progname, const char *pathlist, const char *lang);
58
 
61
 
59
/* Returns a pointer to the string "id". Does not require svalang_load() to be
62
/* Returns a pointer to the string "id". Does not require svalang_load() to be
60
 * executed, but then it will only return the reference language strings.
63
 * executed, but then it will only return the reference language strings.
61
 * a string id is the concatenation of the CATS-style identifiers, for example
64
 * a string id is the concatenation of the CATS-style identifiers, for example
62
 * string 1,0 becomes 0x0100, string 2.10 is 0x020A, etc.
65
 * string 1,0 becomes 0x0100, string 2.10 is 0x020A, etc.