After having slept peacefully with this solution, I realized this morning 
that there is still something that I did not think about.

After re-writing the MainMenu transclusion, what should happen next is to 
open the corresponding DefaultTiddler (English or Portuguese version). I 
could easily use the same technique but I doubt that DefaultTiddler will 
run again and open the right tiddler, as it is defined as the setting that 
opens the default tiddler when the app is first loaded, so I am thinking 
that isn't the way to go. There must be a macro that calls the right 
tiddler after the menu reloads, but I have not been able to find it in the 
Help.

On Tuesday, February 25, 2014 12:19:08 AM UTC-3, Joe Shirk wrote:
>
> This is great! Thank you so much! 
>
> 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
>>
>>
>> 

-- 
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.

Reply via email to