Copy link to clipboard
Copied
Hi!
I have a huge leaflet with around 4000 different text frames (names, descriptions, prices of different products), and I need to translate it into couple different languages. I have translations in the XLS file, so I figured out I can import it and mass replace the content of the text frames. I did sth similar in Photoshop once, but it seems much more complicated in Indesign. So I need help:
Thanks!
Copy link to clipboard
Copied
Hi there,
This can be done by script. Here I posted a function which gets data from Excel: only plain text without formatting.
I would create an InDesign template (indt-file) with labeled text frames (using the script label panel) so the script would know which data where to place.
— Kas
Copy link to clipboard
Copied
This sounds awesome! I'm installing the script now, but just to make - from what I understood from the example described on the script page - the number in my case would be the language, and A, B, C... are the different data fields. So A1 is for example the name of the product in Polish, B1 is description in Polish, A2 is name in German, B2 is the description in German, and so on. So is it possible to mass switch between these languages?
Copy link to clipboard
Copied
Another question - I've tried to use your script, but it stops at: http://prntscr.com/jpvt9f . The bottom error says sth like "inconsistency of types: 'matrix(...)'. I'm using Indesign CS6.
Copy link to clipboard
Copied
And if I use the 2.0 version of the script - it does something, even excel opens for a second (and closes immediately) when I run the script, but I don't see any results and in JS console it says "Result: undefined"
PS. Sorry for third post in a row!
Copy link to clipboard
Copied
Moving to InDesign Scripting forum