Skip to main content
Participating Frequently
Sep 19, 2007 7:39 AM UTC
Question

How to add localized (english, french, etc) metadata

I found that i can access localized versions of an image metadata tag with Bridge scripting.
This is great, except i don't know how to add different language tags in Bridge.
I am exporting the metadata to an xml file and it would be great if i could have the title tag in two or three different languages.

Thank you

Balint
This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Participating Frequently
Sep 19, 2007 8:42 AM UTC
Thanks Chanandler, it is clear now.

I was wondering if it's possible to add the localized tags through the basic Bridge UI (without scripting)?

Thank you for the help

Balint
Translate
Participating Frequently
Sep 19, 2007 8:12 AM UTC
Hi,

You can add localized text via the XMPScript API. Use SetLocalizedText() on the alt-text property. For example:

xmp.setLocalizedText(XMPConst.NS_DC, "title", "en", "en-US", "SomeEnglish);

xmp.setLocalizedText(XMPConst.NS_DC, "title", "fr", "fr-FR", "SomeFrench");

If you always supply both the generic, fr, and specific, fr-FR, tags then you should have no problems and a new entry will be added to the array unless there is already an exact match - in which case you would modify the entry.

Hope that makes sense.
Translate