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

wml::std::lang generated tags



Hi,

today I found, that wml::std::lang provides (for example) either
<de: >, <en: > Tags (if one uses the option "short") or
<lang:de> </lang:de>,  <lang:en> </lang:en> Tags 
- but never both variants. Is this intentional or a bug? If it is
intentional one should clarify that in the documentation, but I think it
would be better if the "short" Variant would provide the "long" tags in
addition - so that one can switch to the "short" variant without having
to change all the "long" tags.

As a small demonstration the following wml-File
-----------------------------------------------------
#!wml -o (ALL-LANG_*)+LANG_EN:%BASE-en.html \
      -o (ALL-LANG_*)+LANG_DE:%BASE.html

#use wml::std::lang
# <lang:new id=en>
# <lang:new id=de>
<lang:new id=en short>
<lang:new id=de short>

<de: Test 1 deutsch  >
<en: Test 1 englisch >
<lang:de> Test 2 deutsch </lang:de>
<lang:en> Test 2 englisch </lang:en>
----------------------------------------------------

produces the following 2 html-Files:

---------- 1st output file -------------------------
Test 1 englisch
<lang:de> Test 2 deutsch </lang:de>
<lang:en> Test 2 englisch </lang:en>
-----------2nd output file -------------------------
Test 1 deutsch

<lang:de> Test 2 deutsch </lang:de>
<lang:en> Test 2 englisch </lang:en>
----------------------------------------------------

(it would produce for example 
---------------------------------------------------
<de: Test 1 deutsch>
<en: Test 1 englisch>

 Test 2 englisch
---------------------------------------------------
if one uses the <lang:new> without the "short" flag.

I use wml-1.7.4 (but I found no relevant changes in the changelog).

Bye, Wolfgang

--
Diese Mail kommt von: Wolfgang Dautermann
WWW-Homepage: http://oeh.tu-graz.ac.at/~dauti/


______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com