amette_: left #tikiwiki
joined #tikiwiki
montefuscolo: Polom! Can someone point me some nice Tiki sites?
Bernard told me sometime ago, but I forgot to note!
I think sites listed on https://tiki.org/Showcase are out dated.
fabricius: joined #tikiwiki
malwar3hun73r: Jyhem, you around?
amette_: left #tikiwiki
malwar3hun73r: anyone around?
redflo: joined #tikiwiki
amette_: joined #tikiwiki
luciash: polom
montefuscolo: besides avan.tech? :)
montefuscolo: do you want me to put them here or by email?
jonnyb: joined #tikiwiki
robertokir: joined #tikiwiki
Jyhem: polom
Is there any way of translating labels in pluginList?
I have tried this:
{LANG(lang="en")}{column field="nom" label="{tr}Competition{/tr}" mode="raw"}{LANG}
But {LANG(lang="en")} or {LANG(lang="fr")} are just ignored (both show up)
and it just displays '{tr}Competition{/tr}'
same without mode=raw
hi luciash: why not here? Let's share them in the irclogs :-)
chibaguy: joined #tikiwiki
polom
jonnyb: pompom
Jyhem: did oyu work out your tr on table labels?
you need to use a {FORMAT} block
i tihnk
fabricius: joined #tikiwiki
Jyhem: hi jonnyb
jonnyb: pompom
Jyhem: No, I did not. The label is not part of the FORMAT block
jonnyb: oh right, good point...
would be nice if "it just did that" :)
Jyhem: Right now I have 2 pages. On in french and one for en, but it seems like there should be another way…
There often is some undocumented one :-D
jonnyb: i guess we could add tr_if modifiers on the label in templates/search/list/table.tpl:44 and 46?
anf 49
Jyhem: ohh
-: Jyhem tries
jonnyb: so i would change the 3 {$col.label|escape} to {$col.label|tr_if|escape}
Jyhem: Oh? What is tr_if?
I just succeeded with {$col.label|tra|escape}
I'm going to fork templates/search/list/table.tpl in my theme for my project. I suspect *always* translating would cause other unintended weirdness for other use cases :-(
jonnyb: was wondering about that but for tiki 18 it would be a good fix i think - translating is good, no? ;)
maybe tr_if is pointless - i thought it was there for a reason lib/smarty_tiki/modifier.tr_if.php
Jyhem: is it easy to add a "translate label" option to {column} ? Or maybe as part of the mode?
jonnyb: just some smarty, it all happens in the tpl (LPH magic ;) )
Jyhem: translating is good until you find an acronym which happens to be an english word and then you need to add gratuitous spaces :-(
jonnyb: :P
Jyhem: BTW, the Xwiki guys suggested we do some online meeting some time or a meeting in Brussels and compare how we do some select stuff with Tiki, Xwiki and foswiki
jonnyb: sounds good
Jyhem: Maybe we can even plan one hour for it during the Japan Tikifest.
Or in Brussels on friday night at the airBnB instead of wanderng for restaurants :)
I just tried
{column field="nom" label="Concours" translatelabel="y" mode="raw"}
with {$col.label|tra|escape}{$col.translatelabel} in the tpl
→ Conclusion: it's harder than that :-(
nothing shows for {$col.translatelabel} (I cleared caches)
jonnyb: i thought that was how it worked... sorry, can't look into it more now
-: Jyhem also needs to shower and eat. Thanks for the solution
amette_: left #tikiwiki
joined #tikiwiki
Jyhem: jonnyb: It actually works! I was looking at the wrong place. Will commit later
jonnyb: woo! o/
fabricius: joined #tikiwiki
jonnyb: joined #tikiwiki
montefuscolo: luciash, we could update showcase on tiki.org
amette_: left #tikiwiki
joined #tikiwiki
robertokir: joined #tikiwiki
jonnyb: joined #tikiwiki
luciash: montefuscolo: yes, it is deeply outdated. Gary is working on https://tiki.org/featured+tikis so probably the page should be merged...
robertokir: joined #tikiwiki
Telesight: joined #tikiwiki
fabricius: joined #tikiwiki
Jyhem_: joined #tikiwiki