diff options
author | simonb <simonb> | 2006-05-20 15:08:14 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-05-20 15:08:14 (GMT) |
commit | 0861f3a9073ccd016302af26ff992fa19331a02d (patch) | |
tree | f1a2276449a5fc9b27f2d1afa5ffff4410141345 /nls/tr_TR/Makefile.am | |
parent | 5ddabb0f390f69db793b5a6e40be9f94b8f83136 (diff) | |
download | fluxbox-0861f3a9073ccd016302af26ff992fa19331a02d.zip fluxbox-0861f3a9073ccd016302af26ff992fa19331a02d.tar.bz2 |
improve native language handling, move messages and menu labels to
FbTk::FbString
Diffstat (limited to 'nls/tr_TR/Makefile.am')
-rw-r--r-- | nls/tr_TR/Makefile.am | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/nls/tr_TR/Makefile.am b/nls/tr_TR/Makefile.am index 0b24205..7966490 100644 --- a/nls/tr_TR/Makefile.am +++ b/nls/tr_TR/Makefile.am | |||
@@ -1,30 +1,46 @@ | |||
1 | # nls/tr_TR/Makefile.am for Fluxbox - www.fluxbox.org | 1 | # nls/tr_TR/Makefile.am for Fluxbox - www.fluxbox.org |
2 | 2 | ||
3 | THE_LANG = tr_TR | 3 | THE_LANG = tr_TR |
4 | SRC_CODESET = ISO-8859-1 | ||
5 | DEST_CODESETS = ISO-8859-1 UTF-8 | ||
4 | 6 | ||
5 | LOCALE_PATH = @LOCALE_PATH@ | 7 | LOCALE_PATH = @LOCALE_PATH@ |
6 | NLSTEST = @NLS@ | 8 | NLSTEST = @NLS@ |
7 | CLEANFILES = fluxbox.cat | ||
8 | MAINTAINERCLEANFILES = Makefile.in | ||
9 | MFILES = Translation.m | 9 | MFILES = Translation.m |
10 | EXTRA_DIST= $(MFILES) | 10 | GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) |
11 | MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) | ||
12 | CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) | ||
11 | 13 | ||
12 | all-local: fluxbox.cat | 14 | # We distribute the generated files so that users don't need iconv |
13 | install-data-local: fluxbox.cat | 15 | EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) |
16 | CLEANFILES = $(CATFILES) | ||
17 | |||
18 | all-local: $(CATFILES) | ||
19 | install-data-local: $(CATFILES) | ||
14 | @if test x$(NLSTEST) = "x-DNLS"; then \ | 20 | @if test x$(NLSTEST) = "x-DNLS"; then \ |
15 | echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG)"; \ | 21 | for codeset in $(DEST_CODESETS); do \ |
16 | $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG); \ | 22 | echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ |
17 | $(INSTALL_DATA) fluxbox.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG); \ | 23 | $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ |
24 | $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ | ||
25 | done; \ | ||
18 | fi | 26 | fi |
19 | 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 $* Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ | ||
33 | |||
20 | uninstall-local: | 34 | uninstall-local: |
21 | @if test x$(NLSTEST) = "x-DNLS"; then \ | 35 | @if test x$(NLSTEST) = "x-DNLS"; then \ |
22 | rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG)/fluxbox.cat; \ | 36 | for codeset in $(DEST_CODESETS); do \ |
23 | rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG); \ | 37 | rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ |
38 | rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ | ||
39 | done; \ | ||
24 | fi | 40 | fi |
25 | 41 | ||
26 | fluxbox.cat: Translation.m | 42 | fluxbox-%.cat: generated-%.m Translation.m |
27 | @if test x$(NLSTEST) = "x-DNLS"; then \ | 43 | @if test x$(NLSTEST) = "x-DNLS"; then \ |
28 | $(gencat_cmd) fluxbox.cat Translation.m; \ | 44 | echo "Creating catfile for $*"; \ |
45 | $(gencat_cmd) fluxbox-$*.cat generated-$*.m; \ | ||
29 | fi | 46 | fi |
30 | |||