Hello,
I'm trying to use the new Translation Set object to translate the choiceLabels of a multipleDropdownField, but I don't see a way to get several items from the translation object to assemble that array.
Does anyone know if it is possible to do this?
Discussion posts and replies are publicly visible
What did you try so far?
It'll look something like this:
I have the values of the choiceLabels in a database table, and I need to get them and translate them.Before I was doing them with a translation rule and translation files.But I have tried to make the change to the new object, to start using it and I have realized that it seems that it is only useful to make translations of labels of fields or multipleDropdownField creating by adding to the array of choiceLabels the elements one by one. This does not make sense in my case because as I said I have the values in a table and it is possible that more elements will be added.
One of the things I have tried is if I could do a search over all the object translations to get the translation you want but there is no function available at the moment or if it exists I can't find it.
Thanks for the help, but I have the values to translate in a table in the database, because it could be that the elements to show in the multipleDropdownField are increasing.
Create a array, use translation domain ex {translation!translationString1,translation!translationString2,...}
I think the point of the new Translation Set object is that you no longer need to visit a database to get the translations for your labels (whether those are filed labels or labels for your dropdown labels). Is the issue that you wanting to manage the labels and values as two correlating lists, rather than have them in separate resources?