changeset 911:d2f07ff64b78

remove some outdated i18n code
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 07 Jul 2006 23:22:03 +0200
parents 1730c8e75ade
children 2f3395d42f93
files MoinMoin/i18n/Makefile MoinMoin/i18n/__init__.py
diffstat 2 files changed, 1 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/i18n/Makefile	Fri Jul 07 22:33:18 2006 +0200
+++ b/MoinMoin/i18n/Makefile	Fri Jul 07 23:22:03 2006 +0200
@@ -1,25 +1,15 @@
 POFILES = $(wildcard *.po)
 UPDATEPOFILES = $(POFILES:.po=.po-update)
-# CATALOGS = $(POFILES:.po=.mo)
 NOPFILES = $(POFILES:.po=.nop)
 DOMAIN = MoinMoin
 
-.SUFFIXES: .mo .po .po-update .nop
+.SUFFIXES: .po .po-update .nop
 
 -include POTFILES
 
-# both POTFILES.in and POTFILES are now generated by the same tool
-#POTFILES: POTFILES.in
-#	@echo "POTFILES = \\" > POTFILES
-#	@sed -e '/^#/d' -e "/^[ ]*\$$/d" -e 's,.*,	../& \\,' -e '$$s/\(.*\) \\/\1/' < POTFILES.in >> POTFILES
-
 POTFILES.in POTFILES:
 	tools/mk_POTFILES.py
 
-#.po.mo:
-#	@lang=`echo $@ | sed -e 's/\.mo$$//'`; \
-#	msgfmt $$lang.po -o mo/$$lang.$(DOMAIN).mo
-
 .nop.po-update:
 	@lang=`echo $@ | sed -e 's/\.MoinMoin\.po-update$$//'`; \
 	echo "$$lang:"; \
@@ -75,7 +65,6 @@
 update-po:
 	$(MAKE) $(DOMAIN).pot-update
 	$(MAKE) $(UPDATEPOFILES)
-#	$(MAKE) $(CATALOGS)
 
 stats:
 	@files="$(POFILES)"; \
--- a/MoinMoin/i18n/__init__.py	Fri Jul 07 22:33:18 2006 +0200
+++ b/MoinMoin/i18n/__init__.py	Fri Jul 07 23:22:03 2006 +0200
@@ -46,15 +46,6 @@
 
 translations = {}
 
-def mo_filename(request, language, domain):
-    """ we use MoinMoin/i18n/mo/<language>.<domain>.mo as filename for the binary
-        file generated by GNU gettext.
-    
-        TODO: later, when we have a farm scope plugin dir, we can also load
-              language data from there.
-    """
-    return os.path.join(request.cfg.moinmoin_dir, 'i18n', 'mo', "%s.%s.mo" % (language, domain))
-
 def po_filename(request, language, domain):
     """ we use MoinMoin/i18n/<language>[.<domain>].mo as filename for the PO file.