Garulfo schrieb am 30.06.2020 um 23:09:
The cause for the missing translations is this line in
x-setups-basics.mkiv
replace('cd:instances/cd:constant', 'value', variables)
which works only when the instances are listed in the command entry
like this
<cd:command name="itemgroup" type="environment" ... >
...
<cd:instances>
<cd:constant value="itemize"/>
</cd:instances>
</cd:command>
which is never the case because I load the entries with cd:resolve
like here:
<cd:define name="instance-itemgroup">
<cd:constant value="itemize"/>
</cd:define>
<cd:command name="itemgroup" type="environment" ... >
...
<cd:instances>
<cd:resolve name="instance-itemgroup"/>
</cd:instances>
</cd:command>
Thanks a lot Wolfgang for the explanations.
A remaining question, due to the fact that I am not sure to understand
all the implications:
Is there some hope to find a solution to also translate the
"cd:resolve" entries for the setup-xx.pdf files ? or does it mean that
such a request is not compatible with the basic structure of the data
/ of the translation process ?
Thanks again, for your help and for your time.
You can try to replace the line
replace('cd:instances/cd:constant', 'value', variables)
with
replace('cd:constant', 'value', variables)
in x-setups-basics.mkiv and check if this replaces the texts.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________