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