diff options
Diffstat (limited to 'nls/bg_BG')
-rw-r--r-- | nls/bg_BG/Makefile.am | 45 | ||||
-rw-r--r-- | nls/bg_BG/Translation.m | 2 |
2 files changed, 4 insertions, 43 deletions
diff --git a/nls/bg_BG/Makefile.am b/nls/bg_BG/Makefile.am index b457b23..7028636 100644 --- a/nls/bg_BG/Makefile.am +++ b/nls/bg_BG/Makefile.am | |||
@@ -1,46 +1,7 @@ | |||
1 | # nls/bg_BG/Makefile.am for Fluxbox - www.fluxbox.org | 1 | # nls/bg_BG/Makefile.am for Fluxbox - www.fluxbox.org |
2 | 2 | ||
3 | THE_LANG = bg_BG | 3 | THE_LANG = bg_BG |
4 | SRC_CODESET = ISO-8859-1 | 4 | SRC_CODESET = CP1251 |
5 | DEST_CODESETS = ISO-8859-1 UTF-8 | 5 | DEST_CODESETS = CP1251 UTF-8 |
6 | 6 | ||
7 | LOCALE_PATH = @LOCALE_PATH@ | 7 | include $(top_srcdir)/nls/nls.mk |
8 | NLSTEST = @NLS@ | ||
9 | MFILES = Translation.m | ||
10 | GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) | ||
11 | MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) | ||
12 | CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) | ||
13 | |||
14 | # We distribute the generated files so that users don't need iconv | ||
15 | EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) | ||
16 | CLEANFILES = $(CATFILES) | ||
17 | |||
18 | all-local: $(CATFILES) | ||
19 | install-data-local: $(CATFILES) | ||
20 | @if test x$(NLSTEST) = "x-DNLS"; then \ | ||
21 | for codeset in $(DEST_CODESETS); do \ | ||
22 | echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ | ||
23 | $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ | ||
24 | $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ | ||
25 | done; \ | ||
26 | fi | ||
27 | |||
28 | # not part of the normal build process | ||
29 | translations: $(GENERATED_MFILES) | ||
30 | |||
31 | generated-%.m: Translation.m | ||
32 | iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ | ||
33 | |||
34 | uninstall-local: | ||
35 | @if test x$(NLSTEST) = "x-DNLS"; then \ | ||
36 | for codeset in $(DEST_CODESETS); do \ | ||
37 | rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ | ||
38 | rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ | ||
39 | done; \ | ||
40 | fi | ||
41 | |||
42 | fluxbox-%.cat: generated-%.m Translation.m | ||
43 | @if test x$(NLSTEST) = "x-DNLS"; then \ | ||
44 | echo "Creating catfile for $*"; \ | ||
45 | $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ | ||
46 | fi | ||
diff --git a/nls/bg_BG/Translation.m b/nls/bg_BG/Translation.m index 3c8130f..7b46956 100644 --- a/nls/bg_BG/Translation.m +++ b/nls/bg_BG/Translation.m | |||
@@ -1,4 +1,4 @@ | |||
1 | $ codeset=ISO-8859-1 | 1 | $ codeset=CP1251 |
2 | 2 | ||
3 | $set 1 #Align | 3 | $set 1 #Align |
4 | 4 | ||