Re: [tw] [TW5] change "hint" of core button w/ multi-language support

2016-10-12 Thread Jeremy Ruston
Hi Tobias > For example, say I had a TiddlyWiki based flavour called Foo, > and I wanted to have the button read: "Save your Foo". > That's it. OK, that’s helpful. It’s a request that has come up before, particularly people who want to change the word “tiddler” across the user interface to

Re: [tw] [TW5] change "hint" of core button w/ multi-language support

2016-10-12 Thread Mat
@Tobias If(!) the button, or better yet the label, is css targettable, you can possibly style the label to (1) not show and (2) add a pseudo :after element with content:"Foo". The content property is - if(!) usable here - IMO particularly suitable because it is made to show pure text strings,

Re: [tw] [TW5] change "hint" of core button w/ multi-language support

2016-10-10 Thread Tobias Beer
Hi Jeremy, Of course, I'm not trying to make it hard for you, just trying to give a button a different title or tooltip, thinking it should be possible and that it shouldn't be hard. For example, say I had a TiddlyWiki based flavour called Foo, and I wanted to have the button read: "Save your

Re: [tw] [TW5] change "hint" of core button w/ multi-language support

2016-10-10 Thread Jeremy Ruston
Hi Tobias > I believe the title of this thread states the objective quite clearly. Just to be absolutely clear, the title of the thread, and your posts so far have categorically not clarified your objective, at least not to me, and since your question is presumably directed at me, you might

Re: [tw] [TW5] change "hint" of core button w/ multi-language support

2016-10-10 Thread Tobias Beer
Hi again, I'm starting to think that all localisations need to be fetched via macro. rather than transclusion, e.g.: $:/core/ui/Buttons/home contains: tooltip={{$:/language/Buttons/Home/Hint}} Whereas it should contain: tooltip=<>

Re: [tw] [TW5] change "hint" of core button w/ multi-language support

2016-10-10 Thread Tobias Beer
Hi Jeremy, > As ever, it would help enormously to understand your objective > I believe the title of this thread states the objective quite clearly. What I wish to do is to override the displayed hint, for each language that I wish to avail to a visitor. Of course, I could create an entire

Re: [tw] [TW5] change "hint" of core button w/ multi-language support

2016-10-10 Thread Jeremy Ruston
Hi Tobias I don't quite understand what you're trying to do. If you're changing the sidebar "Home" button to have a different hint text in each language, then perhaps it's best just to override the entire button? As ever, it would help enormously to understand your objective, Best wishes

Re: [tw] [TW5] change "hint" of core button w/ multi-language support

2016-10-10 Thread Tobias Beer
Hi Jeremy, > Are you transcluding $:/core/ui/Buttons/home, > or do you wish to change the tooltip of the button in the sidebar? > As of now, I tried the latter but I didn't find a way to have it adapt to a language change. One extensible way could perhaps be, to allow an override pattern like

Re: [tw] [TW5] change "hint" of core button w/ multi-language support

2016-10-10 Thread Riz
To an extend this also affects picking colors in the palette, especially the general background. Being able to see the change applied dynamically is cool, but the lag produced is underwhelming. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.

Re: [tw] [TW5] change "hint" of core button w/ multi-language support

2016-10-10 Thread Jeremy Ruston
Hi Tobias > I do not wish to define an entire language plugin. > I simple want to override individual keys, > i.e. for each language, of course. Are you transcluding $:/core/ui/Buttons/home, or do you wish to change the tooltip of the button in the sidebar? Best wishes Jeremy > > Could it

Re: [tw] [TW5] change "hint" of core button w/ multi-language support

2016-10-10 Thread Tobias Beer
Hi Jeremy, I do not wish to define an entire language plugin. I simple want to override individual keys, i.e. for each language, of course. Could it be that that's not possible, atm? Best wishes, Tobias. -- You received this message because you are subscribed to the Google Groups

Re: [tw] [TW5] change "hint" of core button w/ multi-language support

2016-10-10 Thread Jeremy Ruston
Hi Tobias > How can I override / define something like... > > $:/language/Buttons/Home/Hint > > for each of the languages I want to support? The usual way would be to use a different language plugin for each language. The language plugin switching mechanism takes care of switching in and out

[tw] [TW5] change "hint" of core button w/ multi-language support

2016-10-10 Thread Tobias Beer
Hi everyone, How can I override / define something like... *$:/language/Buttons/Home/Hint* for each of the languages I want to support? Apparently, I cannot use any macro or markup as that gets rendered as is. Best wishes, Tobias. -- You received this message because you are subscribed to