Skip to content

Commit 79f8162

Browse files
committed
Manpage localization and version bump.
1 parent 0d3f66c commit 79f8162

10 files changed

+893
-29
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/.venv
22
/__pycache__
33
/po/*.po~
4+
/*.pot~
45
/po/*.mo

Makefile

+33-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,42 @@
1+
VERSION = 1.1.0
12
LINGUAS = pl
3+
PREFIX ?=
24

3-
.PHONY: allmos
4-
allmos: $(LINGUAS:%=po/%.mo)
5+
.PHONY: all-mo
6+
all-mo: $(LINGUAS:%=po/%.mo)
7+
8+
.PHONY: all
9+
all: all-mo all-manpages
10+
11+
.PHONY: all-manpages
12+
all-manpages: $(LINGUAS:%=bambam.%.6)
13+
14+
.PHONY: install-mo
15+
install-mo: $(LINGUAS:%=install-mo-%)
16+
17+
.PHONY: install-mo-%
18+
install-mo-%: po/%.mo
19+
install -o root -g root -m 0644 -D $< $(PREFIX)/usr/share/locale/$*/LC_MESSAGES/bambam.mo
520

621
po/%.mo: po/%.po
722
msgfmt -o $@ $<
823

924
po/%.po: bambam.pot
1025
msgmerge -U $@ $<
26+
touch $@
27+
28+
bambam.pot: bambam-py.pot bambam-man.pot
29+
msgcat $^ > $@
30+
31+
bambam-py.pot: bambam.py
32+
xgettext -d bambam --msgid-bugs-address=marcin@owsiany.pl --package-name bambam --package-version $(VERSION) -o $@ -kN_ -c $<
33+
34+
bambam-man.pot: bambam.6
35+
po4a-gettextize -f man -m $< -p $@
36+
37+
bambam.%.6: po/%.po bambam.6
38+
po4a-translate -f man -m bambam.6 -p $< -l $@
1139

12-
bambam.pot: bambam.py
13-
xgettext -d bambam --msgid-bugs-address=marcin@owsiany.pl --package-name bambam --package-version 1.0.2 -o $@ -kN_ -c $^
40+
.PHONY: clean
41+
clean:
42+
rm -f $(LINGUAS:%=po/%.mo)

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ bambam
1818
```
1919

2020
If not, you can install it manually as follows:
21-
1. [Download](https://github.com/porridge/bambam/releases) the bambam-1.0.2.zip or bambam-1.0.2.tar.gz file.
22-
1. Unzip bambam-1.0.2.zip or "tar zxvf bambam-1.0.2.tar.gz" to create the bambam-1.0.2 directory.
23-
1. Move into the 'bambam-1.0.2' directory
21+
1. [Download](https://github.com/porridge/bambam/releases) the bambam-1.1.0.zip or bambam-1.1.0.tar.gz file.
22+
1. Unzip bambam-1.1.0.zip or "tar zxvf bambam-1.1.0.tar.gz" to create the bambam-1.1.0 directory.
23+
1. Move into the 'bambam-1.1.0' directory
2424
```
25-
cd bambam-1.0.2
25+
cd bambam-1.1.0
2626
```
2727
1. Execute
2828
```

bambam-man.pot

+228
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,228 @@
1+
# SOME DESCRIPTIVE TITLE
2+
# Copyright (C) YEAR Free Software Foundation, Inc.
3+
# This file is distributed under the same license as the PACKAGE package.
4+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5+
#
6+
#, fuzzy
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: PACKAGE VERSION\n"
10+
"POT-Creation-Date: 2020-12-30 13:29+0100\n"
11+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13+
"Language-Team: LANGUAGE <LL@li.org>\n"
14+
"Language: \n"
15+
"MIME-Version: 1.0\n"
16+
"Content-Type: text/plain; charset=CHARSET\n"
17+
"Content-Transfer-Encoding: 8bit\n"
18+
19+
#. type: TH
20+
#: bambam.6:1
21+
#, no-wrap
22+
msgid "bambam"
23+
msgstr ""
24+
25+
#. type: TH
26+
#: bambam.6:1
27+
#, no-wrap
28+
msgid "30 December 2020"
29+
msgstr ""
30+
31+
#. type: TH
32+
#: bambam.6:1
33+
#, no-wrap
34+
msgid "version 1.1.0"
35+
msgstr ""
36+
37+
#. type: SH
38+
#: bambam.6:2
39+
#, no-wrap
40+
msgid "NAME"
41+
msgstr ""
42+
43+
#. type: Plain text
44+
#: bambam.6:4
45+
msgid "bambam - a keyboard mashing and doodling game for babies"
46+
msgstr ""
47+
48+
#. type: SH
49+
#: bambam.6:4
50+
#, no-wrap
51+
msgid "SYNOPSIS"
52+
msgstr ""
53+
54+
#. type: Plain text
55+
#: bambam.6:7
56+
msgid "B<bambam> [I<OPTIONS>]"
57+
msgstr ""
58+
59+
#. type: SH
60+
#: bambam.6:7
61+
#, no-wrap
62+
msgid "DESCRIPTION"
63+
msgstr ""
64+
65+
#. type: TP
66+
#: bambam.6:8
67+
#, no-wrap
68+
msgid "B<-u>, B<--uppercase>"
69+
msgstr ""
70+
71+
#. type: Plain text
72+
#: bambam.6:11
73+
msgid "Show UPPER-CASE letters."
74+
msgstr ""
75+
76+
#. type: TP
77+
#: bambam.6:11
78+
#, no-wrap
79+
msgid "B<-d>, B<--deterministic-sounds>"
80+
msgstr ""
81+
82+
#. type: Plain text
83+
#: bambam.6:14
84+
msgid "Produce same sounds on same key presses."
85+
msgstr ""
86+
87+
#. type: TP
88+
#: bambam.6:14
89+
#, no-wrap
90+
msgid "B<-D>, B<--dark>"
91+
msgstr ""
92+
93+
#. type: Plain text
94+
#: bambam.6:17
95+
msgid "Use a dark background instead of a light one."
96+
msgstr ""
97+
98+
#. type: TP
99+
#: bambam.6:17
100+
#, no-wrap
101+
msgid "B<-m>, B<--mute>"
102+
msgstr ""
103+
104+
#. type: Plain text
105+
#: bambam.6:20
106+
msgid "Do not play any sounds."
107+
msgstr ""
108+
109+
#. type: TP
110+
#: bambam.6:20
111+
#, no-wrap
112+
msgid "B<--sound_blacklist>=I<GLOB>"
113+
msgstr ""
114+
115+
#. type: Plain text
116+
#: bambam.6:23
117+
msgid "List of sound filename patterns to never play."
118+
msgstr ""
119+
120+
#. type: TP
121+
#: bambam.6:23
122+
#, no-wrap
123+
msgid "B<--image_blacklist>=I<GLOB>"
124+
msgstr ""
125+
126+
#. type: Plain text
127+
#: bambam.6:26
128+
msgid "List of image filename patterns to never show."
129+
msgstr ""
130+
131+
#. type: Plain text
132+
#: bambam.6:33
133+
msgid ""
134+
"bambam is a keyboard and mouse game for babies written in Python. Pressing "
135+
"letter keys prints them in random locations and colours. Pressing any other "
136+
"key draws little pictures in random locations. Dragging the mouse while the "
137+
"mouse button is pressed draws in randomly changing colours. The screen is "
138+
"cleared at random."
139+
msgstr ""
140+
141+
#. type: SH
142+
#: bambam.6:33
143+
#, no-wrap
144+
msgid "NOTES"
145+
msgstr ""
146+
147+
#. type: Plain text
148+
#: bambam.6:35
149+
msgid ""
150+
"B<To quit, directly type the command mentioned in the upper left-hand corner "
151+
"of the window. In the English locales, this is the word: quit.>"
152+
msgstr ""
153+
154+
#. type: Plain text
155+
#: bambam.6:37
156+
msgid ""
157+
"To turn the sound off and on, type mute and unmute, respectively, in the "
158+
"game."
159+
msgstr ""
160+
161+
#. type: Plain text
162+
#: bambam.6:40
163+
msgid ""
164+
"bambam loads images (GIF, JPEG, PNG and TIFF files) and sounds (WAV and OGG "
165+
"files) from the following directories:"
166+
msgstr ""
167+
168+
#. type: IP
169+
#: bambam.6:40 bambam.6:42 bambam.6:50 bambam.6:58
170+
#, no-wrap
171+
msgid "\\(bu"
172+
msgstr ""
173+
174+
#. type: Plain text
175+
#: bambam.6:42
176+
msgid "the B<data> directory distributed with the game,"
177+
msgstr ""
178+
179+
#. type: Plain text
180+
#: bambam.6:44
181+
msgid "B<$XDG_DATA_HOME> (usually ~/.local/share/bambam/data)"
182+
msgstr ""
183+
184+
#. type: Plain text
185+
#: bambam.6:48
186+
msgid ""
187+
"When scanning directories for files, bambam B<does> follow symbolic links "
188+
"and descend directories. This makes is easy to have bambam use files located "
189+
"elsewhere."
190+
msgstr ""
191+
192+
#. type: Plain text
193+
#: bambam.6:50
194+
msgid ""
195+
"B<Be aware> that there are ways to switch to another application from "
196+
"bambam:"
197+
msgstr ""
198+
199+
#. type: Plain text
200+
#: bambam.6:58
201+
msgid ""
202+
"some window environments (maintainer suspects this may be true for wayland) "
203+
"do not make it possible for bambam to grab all key presses. When using "
204+
"GNOME Shell, pressing the Windows (a.k.a. Super) key will activate the "
205+
"activities overview. Please check your environment. If that is the case, "
206+
"then you can try running bambam in a dedicated X session, for example by "
207+
"running B<startx bambam> from a text console;"
208+
msgstr ""
209+
210+
#. type: Plain text
211+
#: bambam.6:62
212+
msgid ""
213+
"bambam does not block virtual terminal switching (e.g. CTRL+ALT+F1). See "
214+
"the example 50-dont-vt-switch.conf file if you would like to block that."
215+
msgstr ""
216+
217+
#. type: SH
218+
#: bambam.6:62
219+
#, no-wrap
220+
msgid "AUTHOR"
221+
msgstr ""
222+
223+
#. type: Plain text
224+
#: bambam.6:65
225+
msgid ""
226+
"Spike Burch E<lt>spikeb@gmail.comE<gt> Marcin Owsiany "
227+
"E<lt>marcin@owsiany.plE<gt>"
228+
msgstr ""

0 commit comments

Comments
 (0)