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

Re: webwml failed, catalan strings in arch.data ("d'IBM")



Hi!

On Thu, 2018-07-12 at 19:46:25 +0200, Laura Arjona Reina wrote:
> We are receiving the error below in the last builds, I believe it is
> because your last changes in distrib.ca.po included a translated string
> "Systema z d'IBM" and it seems the website Makefile does not like that
> "'" character.
> 
> For now, I have changed the string to "Systema z (IBM)" and committed:
> 
> https://salsa.debian.org/webmaster-team/webwml/commit/0acc982ac1230723ab7a3680bbc152458ad4606d
> 
> I hope the Catalan pages now will build correctly, but I have three
> concerns:

Sorry, and thanks!

> * I couldn't reproduce the issue locally (and cannot connect this days
> easily to www-master.debian.org to try there). Maybe some Perl library
> is required in www-master? (I run debian stable too...)

I cannot reproduce this either on unstable.

> * I fear my "fix" is not correct language-wise (sorry, my Catalan
> knowledge is very basic!)

It's ok, but perhaps not ideal. :)

> * I guess we (webmaster team) should do something to allow these kind of
> characters in those strings, but I cannot research more about this for
> now, hence my CC to the web team list for the case anybody knows a
> better solution.

I was staring at the code, and the only thing I noticed was some
suspect quoting in the embedded perl near the gettext definitions
in english/releases/arches.data. I got the following patch, but not
sure if that will make any difference:

,---
diff --git i/english/releases/arches.data w/english/releases/arches.data
index b8d28ec25b0..eef0bd576ad 100644
--- i/english/releases/arches.data
+++ w/english/releases/arches.data
@@ -32,9 +32,9 @@

 # list of install manual output formats
 %formats = (
-       html => "<gettext domain="doc">HTML</gettext>",
-       pdf  => "<gettext domain="doc">PDF</gettext>",
-       txt  => "<gettext domain="doc">plain text</gettext>",
+       html => '<gettext domain="doc">HTML</gettext>',
+       pdf  => '<gettext domain="doc">PDF</gettext>',
+       txt  => '<gettext domain="doc">plain text</gettext>',
 );

 </perl>
`---

> ePerl:Error: Perl parsing error (interpreter rc=255)
> 
> ---- Contents of STDERR channel: ---------
> Bad name after IBM' at /tmp/wml.DvBHjW/wml.9575.tmp1.wml line 3324.
> ------------------------------------------
> ** WML:Break: Error in Pass 3 (rc=1).
> ../../../Makefile.common:119: recipe for target 'index.ca.html' failed
> make[3]: *** [index.ca.html] Error 1

Getting the contents of the temporary wml file might shed some light
into the problem.

Thanks,
Guillem


Reply to: