This is great! Thank you so much! Two notes:
While executing your directions, I discovered that my site anatomy was wrong, the thing I really need to change is the MainMenu - so I just did everything you said exchanging SiteSubtitle for MainMenu (I discovered that the siteSubtitle is obscured by the mainMenu - this is probably because I must have moved it to the top if it was by default to the left side - I don't really remember from a year ago.) In SetMainMenu, the parameters names for the button had to be swapped: title="$1" value="$2" because they came out swapped on rendering the button (and setting the tiddler suffix. Not exactly sure why (at this late hour) but the bottom line: This works beautifully! On Mon, Feb 24, 2014 at 11:03 PM, Eric Shulman <[email protected]> wrote: > On Monday, February 24, 2014 6:27:58 AM UTC-8, Joe Shirk wrote: >> >> Now that I want to add the English version, I thought it would be best to >> put an [[EN]] link in the SiteSubtitle that swaps the SiteSubtitle for one >> with links in English to tiddlers in English (that includes a link to >> switch it back to Portuguese). I don't know how to do that. >> >> To make matters complicated, the current default is the Portuguese but >> now I would rather make the English version the default. What needs to be >> done to accomplish this? >> > > Here's a quick way to achieve the results you want: > > 1) Create a tiddler called [[SetSiteSubtitle]] with the following HTML > content: > ------------------------------ > <html><input type="button" value="$1" title="$2" style="cursor:pointer" > onclick=" > store.setValue('SiteSubtitle','text','<<tiddler SiteSubtitle$1>>'); > "></html> > ------------------------------ > > 2) Create [[SiteSubtitleEN]] containing: > ------------------------------ > This is in English <<tiddler SetSiteSubtitle with: "PT" "Change to > Portuguese">> > ------------------------------ > > 3) Create [[SiteSubtitlePT]] containing: > ------------------------------ > Isto é em Português <<tiddler SetSiteSubtitle with: "EN" "Mudar para > Inglês">> > ------------------------------ > > 4) Set the content of [[SiteSubtitle]] to transclude the desired default, > like this: > <<tiddler SiteSubtitleEN>> > > That's it. You should now be able to toggle between the two alternative > SiteSubtitleEN and SiteSubtitlePT definitions with a single click! > > enjoy, > -e > Eric Shulman > TiddlyTools / ELS Design Studios > > YOUR DONATIONS ARE VERY IMPORTANT! > HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"... > http://TiddlyTools.github.com/fundraising.html#MakeADonation > > Professional TiddlyWiki Consulting Services... > Analysis, Design, and Custom Solutions: > http://www.TiddlyTools.com/#Contact > > -- > You received this message because you are subscribed to a topic in the > Google Groups "TiddlyWiki" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/tiddlywiki/ZUF4csFHri4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywiki. > For more options, visit https://groups.google.com/groups/opt_out. > -- -------------------------------------------- If you are a human being and not a robot, please note that I am vacating gmail gradually and permanently. If you don't know why, please see: *EFF* *Surveillance* Self-Defense Project <https://ssd.eff.org/tech/email> Please note my new preferred secure email address: infomaniac(at)i2pmail(dot)org For more information, please see: *About I2P <http://www.i2p2.de/intro.html>* If you prefer to send to this gmail account, I strongly encourage using OpenPGP plugin for Thunderbird. My Public key is: -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org mQENBE0JK8gBCAC9k+1SReyXF2fw3IDddKKfGH7ELUhewwTN58VmLTxHuYgxU/Af DTbnG5x66sUqoqqiWoGqJpo+291ksuszDkTPq29VxHjNjOPPcRf9UxpMgU734npY pxR0JMVZh9BuKVVYhTecd4B2Qni/uUm4btE8eqf3fzUEFFO0rhhbsYvpZF/nWB7R gliXSOgpAc1heMUit5kzSQAKHMHJErGO57BVWQQZxtSdhXjIbuT8prF4/iqfgdYU ZHB85rIh0K/2AWk67LYX5heD6ApCOXlzuzoLbEb+LFEIOQ1lVP3WXoUhMO0mkD6P 4AcyKfaunaFK1RMDdlBD3HoKnOkLWt+yomzBABEBAAG0H0pvZSBTaGlyayA8ai5i LnNoaXJrQGdtYWlsLmNvbT6JARwEEwECAAYFAk2CBRkACgkQhyblkhfw5vl9Egf/ fOCtZYkY8wRg7e38M0tn7ara7jUpZ6Vb06FSgEHTYQlHrs7jDAbit9fHf4h4PpJP WzFaA90ghC3o7Ya6YKQFQK115xUmJuoLug+QsBaoRebQTVWGHhb6YTbE2uM/FCXz KPNZaMtRU5bXAJRiIh0kE6J4J770PxIzAHHFjLGu+3V6AG8iz7Jr/m+hNFHxy3S1 AL491fj5AvUjbcDXNk+VKvk5y0UnX2B431Gl6nJTvGJ6dlbVKGA8Zq4j5TeQVZA4 +EmXw3sgtLkwdzRnRlaBNX7p+ufqyuW8C5nbYM4vv18m53Yv8iedpGnpGGNteSJ1 5S1R4VboC+kcG2hKeJswSIkBMAQTAQIAGgUCTYIFGQKbDwaLCQgHAwIElQIIAwSW AgMBAAoJEIcm5ZIX8Ob5/UcIAKDtp8x8cNkEqLxE5eT+VqJIsVjJO+3zYqLPodjr dsI+G8H0gso+pfzUbf86sfx94QPhhNRq1OsRkNRa4zp44KwpHbyKevy9sPl8Nta+ 8E1zHMmmCFZzres2moe9CRcyWfsvlynUM+Kr+fcB2OtaqysFowaVaMfmTnVob1Kf COCLQw/M/TGT26Fi+7nGRkBvyqeiuO0lR5uOuu7IpthgDZSDlQlVA/ztIAYBkHRa puAH5fJP8oQOWGnc5MuxcIH7Sc7GPj+TyKKfgCG+II4KBkgh9X29E25iLnc6/nnh FCSqaETiwZWVUNrD0nvPWFlna9GRHJElYFoB0JICmEqC1wQ= =Sgmo -----END PGP PUBLIC KEY BLOCK----- -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.

