aboutsummaryrefslogtreecommitdiffstats
path: root/romanian
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2018-06-08 02:45:59 +0100
committerSteve McIntyre <steve@einval.com>2018-06-08 02:45:59 +0100
commit71c961157c9050457b7420dea87838e2e1749154 (patch)
tree94770a19cf5b71cd69f5b6cb3ed07ed74ce228c4 /romanian
parent24a8bbc5bf2fd2fbe025f0baa536bf1126f83723 (diff)
Deal with translated pages including headers/footers/navbars etc.
If any of the included files use wml::debian::translation-check with a version, that over-rides the version defined in the start file and this can totally break the translation checks. The check is then made against the start file, but using the version defined in the included file. :-( Fix things up to allow for this *and* check the versions of both the start file *and* the included file: * Add a sym-link of translation-check.wml as "translation-check-inc.wml" to defeat wml's tracking of what files have been #use'd already. Otherwise we'll only check the included file and never check the start file. * Switch all the .inc files to use the new translation-check-inc.wml instead of translation-check.wml * Also add an extra argument "force_file" to allow the included files to declare their filename so *that* is checked instead of the start file Quite involved, but it works...
Diffstat (limited to 'romanian')
-rw-r--r--romanian/blends/gis/navbar.inc3
-rw-r--r--romanian/blends/hamradio/navbar.inc2
2 files changed, 3 insertions, 2 deletions
diff --git a/romanian/blends/gis/navbar.inc b/romanian/blends/gis/navbar.inc
index a8784bdb1d6..876f751ec83 100644
--- a/romanian/blends/gis/navbar.inc
+++ b/romanian/blends/gis/navbar.inc
@@ -1,5 +1,5 @@
#use wml::debian::blends::gis
-#use wml::debian::translation-check translation="ff9649c8aa2e1aa09d934c939de35d1476aabd4a" maintainer="Ana Custura"
+#use wml::debian::translation-check-inc translation="ff9649c8aa2e1aa09d934c939de35d1476aabd4a" maintainer="Ana Custura" force_file="blends/gis/navbar.inc"
{#alternate_navbar#:
<div id="second-nav">
<p><a href="$(HOME)/blends/gis/">Debian&nbsp;GIS&nbsp;Blend</a></p>
@@ -23,3 +23,4 @@
</ul>
</div>
:#alternate_navbar#}
+
diff --git a/romanian/blends/hamradio/navbar.inc b/romanian/blends/hamradio/navbar.inc
index f748692fe7e..555a5cf5a6e 100644
--- a/romanian/blends/hamradio/navbar.inc
+++ b/romanian/blends/hamradio/navbar.inc
@@ -1,5 +1,5 @@
#use wml::debian::blends::hamradio
-#use wml::debian::translation-check translation="6e56b4e2dbb6e975651897056c57191cdc6f00b4" maintainer="Ana Custura"
+#use wml::debian::translation-check-inc translation="6e56b4e2dbb6e975651897056c57191cdc6f00b4" maintainer="Ana Custura" force_file="blends/hamradio/navbar.inc"
{#alternate_navbar#:
<div id="second-nav">
<p><a href="$(HOME)/blends/hamradio/">Debian&nbsp;Hamradio&nbsp;Blend</a></p>

© 2014-2024 Faster IT GmbH | imprint | privacy policy