File: mini18n_set_locale.3

package info (click to toggle)
mini18n 0.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 280 kB
  • ctags: 100
  • sloc: ansic: 729; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 696 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.TH mini18n_set_domain 3 "August 30, 2011" "mini18n-0.2" "mini18n manual"
.SH NAME
mini18n_set_locale, mini18n_set_domain \- load translations
.SH SYNOPSIS
.B #include <mini18n.h>

.BI "int mini18n_set_locale(const char * filepath);"

.BI "int mini18n_set_domain(const char * dirpath);"

.SH DESCRIPTION
.BR mini18n_set_locale()
loads a translation from the specified \fIfilepath\fP.
.PP
.BR mini18n_set_domain()
loads a translation matching the system language. The translation file is searched in the directory specified by \fIdirpath\fP.
If \fIdirpath\fP is NULL, the translation is searched in the current directory.

.SH RETURN VALUE
These functions return 0 if successful and -1 otherwise.