Commit f0665828 authored by Denis Barbier's avatar Denis Barbier

nm.d.o uses the same templates, but is built on satie on which

mp4h 1.3.0 is not installed.  So common_translation.wml conditiannally
calls intl:gettext, and define <gettext> tag if mp4h < 1.3.0

CVS version numbers

po/template/debian/common_translation.wml: 1.10 -> 1.11 
po/template/patches/common_translation.wml.patch: 1.8 -> 1.9
parent 9cdf075a
<use name="intl:gettext" />
<when <symbol-info printf />>
# mp4h >= 1.3.0
<use name="intl:gettext" />
<mp4h-l10n LC_MESSAGES="<or "$(CUR_LOCALE)" <downcase $(CUR_LANG) /> />" />
<textdomain domain="templates" />
<bindtextdomain domain="templates" path="$(ENGLISHDIR)/../locale" />
<bind_textdomain_codeset domain="templates" codeset="<or $(CHARSET_WML) $(CHARSET) />" />
<mp4h-l10n LC_MESSAGES="<or "$(CUR_LOCALE)" <downcase $(CUR_LANG) /> />" />
<textdomain domain="templates" />
<bindtextdomain domain="templates" path="$(ENGLISHDIR)/../locale" />
<bind_textdomain_codeset domain="templates" codeset="<or $(CHARSET_WML) $(CHARSET) />" />
</when>
<when <not <symbol-info printf /> />>
# mp4h < 1.3.0, intl:gettext is not available
# <gettext> is defined in order not to break nm.d.o.
<define-tag gettext endtag=required>%body</define-tag>
</when>
# Add <void id="foo"> to make msgids unique
<define-tag void></define-tag>
......
--- template/debian/common_translation.wml Sat Jul 6 00:07:52 2002
+++ template/debian/common_translation.wml Sat Jul 6 00:09:28 2002
@@ -1,4 +1,12 @@
@@ -1,4 +1,20 @@
-#use wml::debian::common_tags
+<use name="intl:gettext" />
+<when <symbol-info printf />>
+ # mp4h >= 1.3.0
+ <use name="intl:gettext" />
+
+<mp4h-l10n LC_MESSAGES="<or "$(CUR_LOCALE)" <downcase $(CUR_LANG) /> />" />
+<textdomain domain="templates" />
+<bindtextdomain domain="templates" path="$(ENGLISHDIR)/../locale" />
+<bind_textdomain_codeset domain="templates" codeset="<or $(CHARSET_WML) $(CHARSET) />" />
+ <mp4h-l10n LC_MESSAGES="<or "$(CUR_LOCALE)" <downcase $(CUR_LANG) /> />" />
+ <textdomain domain="templates" />
+ <bindtextdomain domain="templates" path="$(ENGLISHDIR)/../locale" />
+ <bind_textdomain_codeset domain="templates" codeset="<or $(CHARSET_WML) $(CHARSET) />" />
+</when>
+<when <not <symbol-info printf /> />>
+ # mp4h < 1.3.0, intl:gettext is not available
+ # <gettext> is defined in order not to break nm.d.o.
+ <define-tag gettext endtag=required>%body</define-tag>
+</when>
+
+# Add <void id="foo"> to make msgids unique
+<define-tag void></define-tag>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment