Using keys as links to external PDF files - profiling based on language
Posted: Thu Jun 13, 2024 4:41 pm
Hello,
In our company, we use keys as references to external PDF files (COTS) via clickable links. But now we are in a situation where some of the external PDF files are in different languages and when translating the documentation e.g. into German, we would need to use a referential document (COTS) in that particular language. Is it possible to set the key to modify the pdf reference link according to the language of the ditamap that is published?
For example, we have two pdf files:
HPserver_en
HPserver_ger
According to the ditamap language setting (either en or ger), the correct link would then be selected, so the GER documentation would contain a link to the GER pdf.
I understand this could be done also with the DITAVAL file via setting both keys with audience parameter (en or ger) and the DITAVAL file would exclude one of them. However, this requires setting the audience parameter for each key manually.
Isn't there any workaround how to make this easy?
Thanks a lot for your time!
Petr
In our company, we use keys as references to external PDF files (COTS) via clickable links. But now we are in a situation where some of the external PDF files are in different languages and when translating the documentation e.g. into German, we would need to use a referential document (COTS) in that particular language. Is it possible to set the key to modify the pdf reference link according to the language of the ditamap that is published?
For example, we have two pdf files:
HPserver_en
HPserver_ger
According to the ditamap language setting (either en or ger), the correct link would then be selected, so the GER documentation would contain a link to the GER pdf.
I understand this could be done also with the DITAVAL file via setting both keys with audience parameter (en or ger) and the DITAVAL file would exclude one of them. However, this requires setting the audience parameter for each key manually.
Isn't there any workaround how to make this easy?
Thanks a lot for your time!
Petr