From bf1be5cb500abbe3b42f6555e8f8f921c21cf5dc Mon Sep 17 00:00:00 2001 From: clanmills Date: Thu, 11 Mar 2021 11:02:10 +0000 Subject: [PATCH] fix_1473_LocationShown --- src/properties.cpp | 2 +- tests/bugfixes/github/test_issue_1473.py | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tests/bugfixes/github/test_issue_1473.py diff --git a/src/properties.cpp b/src/properties.cpp index ff00bbdb..fa62200b 100644 --- a/src/properties.cpp +++ b/src/properties.cpp @@ -986,7 +986,7 @@ namespace Exiv2 { { "RegItemId", N_("Registry Entry-Item Identifier"), "Text", xmpText, xmpExternal, N_("A unique identifier created by a registry and applied by the creator of the digital image. This value shall not be changed after being applied. This identifier is linked to a corresponding Registry Organisation Identifier.") }, { "RegOrgId", N_("Registry Entry-Organisation Identifier"), "Text", xmpText, xmpExternal, N_("An identifier for the registry which issued the corresponding Registry Image Id.") }, { "IptcLastEdited", N_("IPTC Fields Last Edited"), "Date", xmpText, xmpExternal, N_("The date and optionally time when any of the IPTC photo metadata fields has been last edited.") }, - { "LocationShown", N_("Location shown"), "bag LocationDetails", xmpBag, xmpExternal, N_("A location shown in the image.") }, + { "LocationShown", N_("Location Shown"), "bag LocationDetails", xmpBag, xmpExternal, N_("A location shown in the image.") }, { "LocationCreated", N_("Location Created"), "bag LocationDetails", xmpBag, xmpExternal, N_("The location the photo was taken.") }, { "City", N_("Location-City"), "Text", xmpText, xmpExternal, N_("Name of the city of a location.") }, { "CountryCode", N_("Location-Country ISO-Code"), "Text", xmpText, xmpExternal, N_("The ISO code of a country of a location.") }, diff --git a/tests/bugfixes/github/test_issue_1473.py b/tests/bugfixes/github/test_issue_1473.py new file mode 100644 index 00000000..18adf2c5 --- /dev/null +++ b/tests/bugfixes/github/test_issue_1473.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- + +from system_tests import CaseMeta, CopyTmpFiles, path +@CopyTmpFiles("$data_path/Stonehenge.exv") + +class test_issue_1473(metaclass=CaseMeta): + url = "https://github.com/Exiv2/exiv2/issues/1473" + filename = path("$tmp_path/Stonehenge.exv") + commands = [ "$exiv2 -g shown/i $filename" + , "$exiv2 -M\"set Xmp.iptc.LocationShown Lost\" $filename" + , "$exiv2 -g shown/i $filename" + ] + stdout = ["","","""Xmp.iptc.LocationShown XmpText 4 Lost +"""] + stderr = [""]*len(commands) + retval = [ 1,0,0]