photoprism/assets/locales
2020-12-02 01:34:39 +01:00
..
de Update german translations 2020-10-06 09:40:58 +02:00
en Backend: Count login attempts and localize error messages 2020-09-21 09:40:35 +02:00
es Spanish Backend Translation 2020-10-08 00:02:04 -03:00
fr Update french translations (#671) 2020-12-02 01:34:39 +01:00
hi Added Hindi Translation 2020-10-16 03:39:17 +05:30
nb i18n: Added 🇳🇴 Norwegian Bokmål 2020-10-07 10:28:08 +02:00
nl add backend translations 2020-10-20 21:37:59 +02:00
pl Update polish translation #515 2020-10-01 17:16:15 +02:00
pt_BR Created Brazilian Portuguese Translation 2020-10-08 00:38:53 -03:00
ru Update Russian translation (#531) 2020-10-05 07:42:50 +02:00
zh update chinese translations #514 2020-10-26 21:52:17 -04:00
messages.pot Update german translations 2020-11-30 14:46:28 +01:00
README.md Translations: Add README.md files 2020-07-16 10:20:09 +02:00

Backend Translations

PhotoPrism uses gettext for localizing frontend and backend. It's one of the most widely adopted standards for translating user interfaces.

Human readable messages like File not found are used as ids for finding matching translations, and used as defaults whenever there is no translation available.

Messages may optionally contain placeholders, like Found %d files, for numbers and other variables.

We strongly recommend Poedit for creating and updating translations. Download is free for Mac, Windows and Linux. It's source code can be obtained on GitHub.

Only asynchronous notifications and certain API responses need translation to provide a consistent user experience. Technical log messages should be in English to avoid ambiguities and (even slightly) wrong translations.

default.po files in sub directories contain localized messages for each language, identified by their two-letter locale, like de/default.po for German. You can open, edit and save them with Poedit. Please also add and commit binary *.mo files, which will be automatically created by Poedit.

To add a new translation, open messages.pot, click on "Create New Translation" at the bottom, select the language, and start translating. When done, create a new directory (using the locale as name) and save your translation there as default.po.

The POT file /assets/locales/messages.pot will be automatically updated when running go generate in /internal/i18n or make generate in the main project directory. Note that this will only work when you have gettext installed on your system. We recommend using our latest development image as described in the Developer Guide.

Apply changes to existing translations by clicking on "Catalogue" > "Update from POT File..." in the Poedit app menu.