I am working to find a solution for a wiki with different languages.
One of my Ideas is to put the information I want to show in different Tiddlers.
Than to select them by the $:/language and the information in the fields set in the in the Tiddler.
Ok, sounds strange. Here the Tiddler what is “selectiing”
de-DE: Tiddler (Deutsch)
en-GB: Tiddler (English)
modified: 20240516073947457
modifier: cISMS Team
tags:
title: Result
Display here the Tiddler (Deutsch) if Language is set to de-DE or Tiddler (English) if Language is en-GB and other ....
And here the content Tiddlers
title: Tiddler (English)
This is English
title: Tiddler (Deutsch)
Dies ist Deutsch
I hope someone is able to help here, or to offer another solution.
Click on the parameters tab, then on main parameters, finally change the language (in two ways : 1) only for this app; 2) for the whole TW if you check the checkbox)
All the non TW sentences in a tiddler are replaced by a field name:
<$button>Click me</$button>
is replaced by:
<$button>{{!!btn_lbl_clickme}}</$button>
Add a field named btn_lbl_clickme with the desired value.
The changes are done in LANG_English_en_GB and LANG_Français_fr_FR tiddlers.
that is not solving my problem.
I don’t want to have a button or similar.
If the tiddler will be selected the repective content from the Tiddler, named in the field, selected by the language, should be displayed.
do you have also an idea to select the filter from the $./language setting?
My target is that the user select only once the language and the content will be selected automatically.
The $:/tags/ViewTemplateBodyFilter blesses your filter as a cascading ViewTemplateBody filter
The empty list-before field puts your filter tiddler on top of the cascade
The text field defines a filter that searches for a field in your main “selection” tiddler that matches the language set in $:/language. If it finds one, the filter result is set to the value of the matching field, otherwise the cascade goes on with the next ViewTemplateBodyFilter.
hopefully not
What I am looking for is, the possibility if a user is switching from english to german (or an other language), the content will change automatically, not to have all available langauges displayed the same time.