Ciao Télumire

Thanks for that! It practically shows a way I could get what I need. 
Kudos!

Best wishes
TT

On Tuesday, 13 July 2021 at 17:38:03 UTC+2 Télumire wrote:

> Hello TiddlyTweeter,
>
> Expanding on cj.v elegant solution, you can also use a select widget if 
> you dont want to download a language plugin :
>
> <$select tiddler="$:/language">
>  <option value="fr-FR">fr-FR</option>
>  <option value="en-GB">en-GB</option>
> </$select>
>
>
>
>  <$text text={{{ 
> [[$:/language]get[text]regexp[fr-FR]then<currentTiddler>get[fr-fr]] 
> [[$:/language]get[text]regexp[en-GB]then<currentTiddler>get[en-gb]] }}} />
>
> Online demo : 
> https://telumire.github.io/TW-tips/#Conditional%20display%20based%20on%20language%20setting
> Le mardi 13 juillet 2021 à 15:10:14 UTC+2, [email protected] a écrit :
>
>> G'day TT,
>>
>> If adding language plugins and using TW's language button make for an 
>> alright solution,  then checking the value of $:/language makes for an easy 
>> way to set context based on currently selected language.
>>
>> It should be easy enough to show the language button anywhere you need it 
>> for the sake of convenience.
>>
>> Then just a matter of showing image labels based on currently selected 
>> language.  something like:
>>  <$text text={{{ 
>> [[$:/language]get[text]regexp[fr-FR]then<currentTiddler>get[field-fr-fr]] 
>> [[$:/language]get[text]regexp[en-GB]then<currentTiddler>get[field-en-gb]] 
>> }}} />
>>
>> [image: Screenshot 2021-07-13 9.55.44 AM.png]
>>
>> On Tuesday, July 13, 2021 at 7:06:15 AM UTC-3 TiddlyTweeter wrote:
>>
>>> Ciao cj.v
>>>
>>> It is not a silly question. It is helpful. Forces me to clarify.
>>>
>>> The situation is I have a gallery of 50+ images that each tiddler for 
>>> has four language fields for (German, English, Slovenian, Italian).
>>>
>>> What I am trying to sort out is WHETHER I should use BROWSER detection 
>>> of run context (which in TW ALSO means we can use [to a great extent?] the 
>>> "Info" plugin to ease its use) OR simply provide end users with a button on 
>>> startup to change what is shown.
>>>
>>> This is NOT really an issue about using the brilliant TW "lingo system" 
>>> because that relates most to UI elements. In the gallery those are MINIMAL 
>>> and it is not the issue.
>>>
>>> I am beginning to think I could use CSS to only show one language at a 
>>> time?
>>>
>>> Thankyou for your question! It pushed me on.
>>>
>>> Best wishes
>>> TT
>>>
>>> On Tuesday, 13 July 2021 at 02:19:05 UTC+2 [email protected] wrote:
>>>
>>>> G'day TT,
>>>>
>>>> Silly question: do you mean find out language setting chosen in TW, or 
>>>> do you mean language setting for the browser?
>>>>
>>>> On Monday, July 12, 2021 at 2:45:22 PM UTC-3 TiddlyTweeter wrote:
>>>>
>>>>> This is merely an early query. I need some ideas on an efficient 
>>>>> approach to the following problem ...
>>>>>
>>>>> *AIM:* Put on-line the 54 images of "LIberty" by Angela Weyersberg 
>>>>> <https://www.google.com/search?q=Angela+Weyersberg&newwindow=1&source=lnms&tbm=isch&sa=X&ved=2ahUKEwjIzKCziN7xAhWkwAIHHbjgBOUQ_AUoAXoECAEQAw&biw=1368&bih=808&dpr=2>
>>>>>  in 
>>>>> a self contained gallery.
>>>>>
>>>>> *THE CASE: *Each image of a painting has FOUR language variations for 
>>>>> its legend (English. Italian, Slovenian, German) FYI, the variants are 
>>>>> held 
>>>>> in fields of each image tiddler.
>>>>>
>>>>> *THE PROBLEM: *HOW do I in TW (1) Establish the language to invoke on 
>>>>> startup? (2) enable language switching?
>>>>>
>>>>> I realised the specific issue is not gonna be solved by the "lingo 
>>>>> mechanism" as is,  as in this particular case, its not UI buttons in 
>>>>> contest but actual content.
>>>>>
>>>>> I HOPE this is clear!
>>>>>
>>>>> At the moment I'm simply need some ideas about how to move forward.
>>>>> ANY ideas are most welcome
>>>>> TT
>>>>>
>>>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/031aab67-6fc9-47b3-a654-99b69c26d16bn%40googlegroups.com.

Reply via email to