Skip to content

Commit bb840c8

Browse files
committed
PBCKP-97: added localization of messages. Fixed some bugs.
1 parent 0699429 commit bb840c8

File tree

8 files changed

+2095
-3
lines changed

8 files changed

+2095
-3
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,18 @@ sudo wget -O - https://repo.postgrespro.ru/pg_probackup-forks/keys/GPG-KEY-PG_PR
140140
sudo apt-get install pg-probackup-{std,ent}-{13,12,11,10,9.6}
141141
sudo apt-get install pg-probackup-{std,ent}-{13,12,11,10,9.6}-dbg
142142

143+
#*.po files
144+
Description of how to add new translation languages.
145+
1. Add a flag --enable-nls in configure.
146+
2. Build postgres.
147+
3. Adding to nls.mk in folder pg_probackup required files in GETTEXT_FILES.
148+
4. In folder pg_probackup do 'make update-po'.
149+
5. As a result, the progname.pot file will be created. Copy the content and add it to the file with the desired language.
150+
6. Adding to nls.mk in folder pg_probackup required language in AVAIL_LANGUAGES.
151+
152+
For more information, follow the link below:
153+
https://postgrespro.ru/docs/postgresql/12/nls-translator
154+
143155
#DEB Astra Linix Orel
144156
sudo sh -c 'echo "deb [arch=amd64] https://repo.postgrespro.ru/pg_probackup-forks/deb/ stretch main-stretch" > /etc/apt/sources.list.d/pg_probackup.list'
145157
sudo wget -O - https://repo.postgrespro.ru/pg_probackup-forks/keys/GPG-KEY-PG_PROBACKUP | sudo apt-key add - && sudo apt-get update

nls.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# contrib/pg_probackup/nls.mk
2+
CATALOG_NAME = pg_probackup
3+
AVAIL_LANGUAGES = ru
4+
GETTEXT_FILES = src/help.c
5+
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS)
6+
GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS)

0 commit comments

Comments
 (0)