[pmwiki-users] multilanguage redesign

Jiri Hladůvka / OBUTEX admin at obutex.com
Thu Feb 15 02:44:32 CST 2007


I thik there are 3 columns because of the last row where 3 columns are 
defined unconditionally
IMHO a better and more readable solution is

(:if userlang de:)(:title Willcommen:)
(:if userlang en:)(:title Welcome:)
(:ifend:) 

(:table border=1 cellpadding=3 cellspacing=0:)
 (:cellnr:)link & logo
(:cell:)
(:if userlang de:)Q: [++bla bla...++](:ifend:)
(:if userlang en:)Q: [++foo bar...++](:ifend:)
(:cellnr width=30%:)'''[+ [[DY/|$[groupDY] ]] +]''' 
[[DY/|Path:/DY/images/logo.gif]]
(:cell:)(:include News/:)
(:tableend:)

Best regards
Jiri

sgp napsal(a):
> Patrick R. Michaud wrote:
>
>   
>> Many thanks for the details, they are very helpful.  If anyone
>> has anything further to add, now is a good time to do it.  :-)
>>     
>
> Here's another good one, Multilanguage within table:
>   

This row has 2 columns (1st column is always empty) the 2nd is or German 
or English text
> (:table border=1 cellpadding=3 cellspacing=0:)
> (:cellnr:)
> (:if userlang de:)
> (:title Willcommen:)
> (:cell:)
> Q: [++bla bla...++]
> (:if userlang en:)
> (:title Welcome:)
> (:cell:)
> Q: [++foo bar...++]
> (:if:)
>   

this is the 2nd row with 3 cells (1st is always empty)
> (:cellnr:)
> (:cell width=30%:)'''[+ [[DY/|$[groupDY] ]] +]''' [[DY/|Path:/DY/images/logo.gif]]
> (:cell:)(:include News/:)
> (:tableend:)
>
> results in 3 columns instead of the intended 2 because (:if userlang XX:) is substituted twice by (:table:)
> I haven't succeeded refactoring the source so that the first empty column disappears, perhaps it can be 
> done, but anyway this situation could be improved with new design...
>
>
>
>
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
> __________ Informace od NOD32 2061 (20070214) __________
>
> Tato zprava byla proverena antivirovym systemem NOD32.
> http://www.nod32.cz
>
>
>
>   

-- 
OBUTEX s.r.o
Ing.Jiří Hladůvka
Zlatovská 22
911 01 Trenčín

tel.: +421 (0)32 6587000
mailto:admin at obutex.com

http://www.obutex.com





More information about the pmwiki-users mailing list