Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Sep 19, 2007 Sep 19, 2007
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
TOPICS
Scripting
500
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 19, 2007 Sep 19, 2007
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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 19, 2007 Sep 19, 2007
LATEST
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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines