Opened 5 years ago

Last modified 2 years ago

#243 new defect

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

Reported by: spennis Owned by: ofer
Priority: major Milestone: 0.9 - Current 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 (5)

comment:1 Changed 5 years ago by ofer

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

comment:2 Changed 4 years 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)

comment:3 Changed 2 years ago by RobK20

I have the same problem. Ticket #243 is two years old. When will the "0.7 - Coming Major" be released with the fix? Thanks.

comment:4 Changed 2 years ago by ofer

  • Milestone changed from 0.7 - Coming Major to 0.9 - Current Major


Must ask, is "translate in default language" enabled?

comment:5 Changed 2 years ago by RobK20

Yes. "translation in default language" is enabled. When checking the "Edit Translation" box in the default language nothing becomes editable. A language other than default must be selected to get to edit phrase by phrase.

The (only="y") still doesn't work with "translation in default language" enabled. The website displays the English version followed by the Spanish version when the default language "English" is selected. When I select "Spanish" the English version correctly disappears.

Note: See TracTickets for help on using tickets.