commit 332e28b
default
·
2025-02-28 08:49:41 +0000 UTC
parent 5374426
Updated documentation.
1 files changed,
+26,
-0
+26,
-0
1@@ -620,6 +620,32 @@ hashtags.
2 Please take note that subscribing to relays can increase the traffic towards your instance
3 significantly. In any case, lowering the "Maximum days to keep posts" value for the relay
4 special user is recommended (e.g. setting to just 1 day).
5+.Ss Web interface language
6+Since version 2.73, the web UI can be localized via simple .po files (they are directly
7+parsed, no support for gettext is needed).
8+.Pp
9+No language file is installed by default; the administrator must copy any desired .po files
10+to the
11+.Pa lang/
12+subdirectory in the base directory. Once the server is restarted, users can select the
13+new language from the user settings. The
14+.Nm
15+source distribution may include .po files in the
16+.Pa po/
17+subdirectory. You don't need to copy the English language one, as it's the default.
18+.Pp
19+To create new language files, create a copy of
20+.Pa en.po ,
21+rename it to a reasonable value like
22+.Pa pl.po
23+or
24+.Pa pt_BR.po ,
25+change the translator to yourself and fill the msgstr strings with your translation. If
26+you have any doubt on how to modify .po files, there are many tutorials out there.
27+If you want your language file to be included in the standard
28+.Nm
29+distribution, please send it to me via the Fediverse as an attachment to @grunfink@comam.es
30+or make a PR via the Git repository.
31 .Sh ENVIRONMENT
32 .Bl -tag -width Ds
33 .It Ev DEBUG