Opened 2 years ago

Last modified 15 months ago

#243 new defect

BUG: Shortcode parameter only="y" does not work

Reported by: spennis Owned by: ofer
Priority: major Milestone: 0.7 - Coming Major
Component: Parser Version: 0.8.5
Keywords: shortcode Cc:


When using [tp lang="en" only="y"]This is in eglishtp, the text is still displayed in other languages.

However, when using [tp lang="en" not_in="x"]This is in eglishtp, the text is not displayed in language x (i.e. it works the way it should).

Change History (2)

comment:1 Changed 2 years ago by ofer

This sounds weird, should not happen, is English your default language? Does this work in other languages?

comment:2 Changed 15 months ago by niente0

I have the same problem. My default language is Italian. If I use this it does NOT work (in my default language I see both the Italian and the English strings, other languages work correctly):

[tp not_in="en"]Ciao Mondo /tp]
[tp lang="en" only="y"]Hello world /tp]

However this works (as suggested by Ofer):

[tp not_in="en"]Ciao Mondo /tp]
[tp lang="en" not_in="it,zh,zh-tw,ru"]Hello world /tp]

(square brackets not displaying correctly in this forum but correctly used in my code)

Note: See TracTickets for help on using tickets.