File: generate-locales.sh

package info (click to toggle)
syncthing-gtk 0.9.4.4%2Bds%2Bgit20201209%2Bc46fbd8-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,260 kB
  • sloc: python: 7,592; sh: 259; xml: 115; makefile: 2
file content (12 lines) | stat: -rwxr-xr-x 261 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

# Constants
GETTEXT_DOMAIN="syncthing-gtk"
MESSAGES_PO="messages.po"

for lang in locale/* ; do
	filename=${lang}/LC_MESSAGES/${GETTEXT_DOMAIN}.po
	mo=${lang}/LC_MESSAGES/${GETTEXT_DOMAIN}.mo
	msgfmt ${filename} -o ${mo}
	echo "Created" ${mo}
done