summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/snac.826
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/snac.8 b/doc/snac.8
index 2951b42..d97218e 100644
--- a/doc/snac.8
+++ b/doc/snac.8
@@ -620,6 +620,32 @@ hashtags.
620Please take note that subscribing to relays can increase the traffic towards your instance 620Please take note that subscribing to relays can increase the traffic towards your instance
621significantly. In any case, lowering the "Maximum days to keep posts" value for the relay 621significantly. In any case, lowering the "Maximum days to keep posts" value for the relay
622special user is recommended (e.g. setting to just 1 day). 622special user is recommended (e.g. setting to just 1 day).
623.Ss Web interface language
624Since version 2.73, the web UI can be localized via simple .po files (they are directly
625parsed, no support for gettext is needed).
626.Pp
627No language file is installed by default; the administrator must copy any desired .po files
628to the
629.Pa lang/
630subdirectory in the base directory. Once the server is restarted, users can select the
631new language from the user settings. The
632.Nm
633source distribution may include .po files in the
634.Pa po/
635subdirectory. You don't need to copy the English language one, as it's the default.
636.Pp
637To create new language files, create a copy of
638.Pa en.po ,
639rename it to a reasonable value like
640.Pa pl.po
641or
642.Pa pt_BR.po ,
643change the translator to yourself and fill the msgstr strings with your translation. If
644you have any doubt on how to modify .po files, there are many tutorials out there.
645If you want your language file to be included in the standard
646.Nm
647distribution, please send it to me via the Fediverse as an attachment to @grunfink@comam.es
648or make a PR via the Git repository.
623.Sh ENVIRONMENT 649.Sh ENVIRONMENT
624.Bl -tag -width Ds 650.Bl -tag -width Ds
625.It Ev DEBUG 651.It Ev DEBUG