[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: translation-check.wml



On Tue, Oct 17, 2000 at 10:44:52PM +0200, Josip Rodin wrote:
> On Tue, Oct 17, 2000 at 07:30:25PM +0200, peter karlsson wrote:
> > > Now I have written the perl script. It turned out a little longer
> > > than I suspected it would be, because it has to take care of a
> > > certain situation, when the build never occurs at the time, when the
> > > translation is "properly" outdated.
> > 
> > So, is this script activated on www.debian.org yet, or is it still
> > pending?
> 
> Did Marcin ever send patches for current state of affairs (the exact patches
> from the message you replied to wouldn't apply)? I lost track...

Yes, I did. You asked why you can't find the script, and Peter answered that
there was indeed a typo in the filename (a '_' instead of '-'), but the
patches were otherwise OK I guess.

Anyway, here they are again.

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
--- Begin Message ---
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
 

--- End Message ---

Reply to: