[NTG-context] Translation of ConTeXt interface
Wolfgang Schuster
wolfgang.schuster.lists at gmail.com
Tue Jun 30 23:53:08 CEST 2020
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
More information about the ntg-context
mailing list