Re: Makefile.common and translation-check
On Sun, Oct 01, 2000 at 10:41:56AM +0200, Javier Fdz-Sanguino Pen~a wrote:
>
>
> ?Could you include it in CVS (cvs/webml/webml) when you are done?
I have committed 'touch-translations.wml'. I tested it, but in a somewhat
limited environment (only english and polish directories). Please give it
some more testing. The attached patch is required for it to work properly.
I haven't been able to use the %langs hash, since it's included in a wml
file, and perl doesn't like it. The only way to define it in a single place
seems to be: put the hash in a separate file and require it in the .pl and
<perl></perl>. What do you think?
regards
Marcin
--
+--------------------------------+ The reason we come up with new versions
|Marcin Owsiany | is not to fix bugs. It's the stupidest
|porridge@pandora.info.bielsko.pl| reason to buy a new version
+--------------------------------+ I ever heard. - Bill Gates
Index: Makefile
===================================================================
RCS file: /cvs/webwml/webwml/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- Makefile 2000/09/30 18:03:57 1.20
+++ Makefile 2000/10/02 20:37:47
@@ -1,6 +1,6 @@
# Top-level Makefile for the Debian Web pages
-LANGUAGES := arabic chinese croatian danish dutch english esperanto finnish \
+LANGUAGES := english arabic chinese croatian danish dutch esperanto finnish \
french german hungarian italian japanese korean norwegian \
polish portuguese romanian russian spanish swedish turkish
LANGUAGES-install := $(addsuffix -install,$(LANGUAGES))
Index: Makefile.common
===================================================================
RCS file: /cvs/webwml/webwml/Makefile.common,v
retrieving revision 1.11
diff -u -r1.11 Makefile.common
--- Makefile.common 2000/09/30 18:10:13 1.11
+++ Makefile.common 2000/10/02 20:38:00
@@ -116,6 +116,12 @@
%.$(LANGUAGE).html : %.wml $(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml \
$(HTMLDEP)
$(WML) $(<F)
+ifeq "$(LANGUAGE)" "en"
+ $(WMLBASE)/../touch_translations.pl $(CURDIR)/$(<F) $(LANGUAGE)
+endif
+ifeq "$(findstring /international/,$(CURDIR))" "/international/"
+ $(WMLBASE)/../touch_translations.pl $(CURDIR)/$(<F) $(LANGUAGE)
+endif
endif
endif
Reply to: