mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Support for language aliases.
Some languages have identifiers that gettext can't determine automatically in all OS'es. An example is Norwegian (no_NO, deprecated) with its Bokmål (nb_NO) and Nynorsk (nn_NO) form. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9dc667e883
commit
f45285d461
4 changed files with 12 additions and 3 deletions
12
Makefile
12
Makefile
|
@ -157,9 +157,9 @@ install-macosx: $(NAME)
|
|||
$(INSTALL) $(MACOSXFILES)/Info.plist $(MACOSXINSTALL)/Contents/
|
||||
$(INSTALL) $(ICONFILE) $(MACOSXINSTALL)/Contents/Resources/
|
||||
$(INSTALL) $(MACOSXFILES)/Subsurface.icns $(MACOSXINSTALL)/Contents/Resources/
|
||||
$(INSTALL) -d -m 755 $(addprefix $(MACOSXINSTALL)/Contents/Resources/,$(dir $(MSGOBJS)))
|
||||
for MSG in $(MSGOBJS); do\
|
||||
install $$MSG $(MACOSXINSTALL)/Contents/Resources/$$MSG;\
|
||||
for LOC in $(wildcard locale/*/LC_MESSAGES); do \
|
||||
$(INSTALL) -d -m 755 $(MACOSXINSTALL)/Contents/Resources/$$LOC; \
|
||||
$(INSTALL) $$LOC/subsurface.mo $(MACOSXINSTALL)/Contents/Resources/$$LOC/subsurface.mo; \
|
||||
done
|
||||
|
||||
install-cross-windows: $(NAME)
|
||||
|
@ -235,6 +235,12 @@ $(OSSUPPORT).o: $(OSSUPPORT).c display-gtk.h
|
|||
locale/%.UTF-8/LC_MESSAGES/subsurface.mo: po/%.po
|
||||
mkdir -p $(dir $@)
|
||||
msgfmt -c -o $@ po/$*.po
|
||||
if test -s po/$*.aliases; then \
|
||||
for ALIAS in `cat po/$*.aliases`; do \
|
||||
mkdir -p locale/$$ALIAS/LC_MESSAGES; \
|
||||
cp $@ locale/$$ALIAS/LC_MESSAGES; \
|
||||
done; \
|
||||
fi
|
||||
|
||||
doc:
|
||||
$(MAKE) -C Documentation doc
|
||||
|
|
1
po/de_CH.aliases
Normal file
1
po/de_CH.aliases
Normal file
|
@ -0,0 +1 @@
|
|||
gsw
|
1
po/de_DE.aliases
Normal file
1
po/de_DE.aliases
Normal file
|
@ -0,0 +1 @@
|
|||
de
|
1
po/nb_NO.aliases
Normal file
1
po/nb_NO.aliases
Normal file
|
@ -0,0 +1 @@
|
|||
nb nn no
|
Loading…
Add table
Reference in a new issue