summaryrefslogtreecommitdiff
path: root/camlibs/ptp2/config.c
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2021-10-31 11:53:38 +0100
committerMarcus Meissner <marcus@jet.franken.de>2021-10-31 11:53:38 +0100
commit6950d1681d4ba765a26b39c3dd3e7daf3b49d45d (patch)
treeb4ff90452ddfb4fe6917517aa4bd0cca6fa1604b /camlibs/ptp2/config.c
parent804198d3f1b2207940378c3eb274a03f63d9fe14 (diff)
downloadlibgphoto2-6950d1681d4ba765a26b39c3dd3e7daf3b49d45d.tar.gz
avoid duplicate mvoie / liveview prohibition code strings for translation
Diffstat (limited to 'camlibs/ptp2/config.c')
-rw-r--r--camlibs/ptp2/config.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/camlibs/ptp2/config.c b/camlibs/ptp2/config.c
index ae1136ce0..43504de2d 100644
--- a/camlibs/ptp2/config.c
+++ b/camlibs/ptp2/config.c
@@ -8342,7 +8342,7 @@ _get_Nikon_LiveViewProhibitCondition(CONFIG_GET_ARGS) {
value.u32 = 0;
LOG_ON_PTP_E (ptp_getdevicepropvalue (params, PTP_DPC_NIKON_LiveViewProhibitCondition, &value, PTP_DTC_UINT32));
if (value.u32) {
- strcpy(buf,N_("Movie prohibit conditions: "));
+ strcpy(buf,N_("Live View prohibit conditions: "));
#define X(bit,str) \
if (value.u32 & (1<<bit)) { \
value.u32 &= ~(1<<bit); \
@@ -8425,17 +8425,17 @@ _put_Nikon_Movie(CONFIG_PUT_ARGS)
value.u32 = 0;
LOG_ON_PTP_E (ptp_getdevicepropvalue (params, PTP_DPC_NIKON_MovRecProhibitCondition, &value, PTP_DTC_UINT32));
if (value.u32) {
- if (value.u32 & (1<<14)) { gp_context_error (context, _("Movie recording cannot start: Camera is not in application mode.")); return GP_ERROR; }
- if (value.u32 & (1<<13)) { gp_context_error (context, _("Movie recording cannot start: Set liveview selector is enabled.")); return GP_ERROR; }
- if (value.u32 & (1<<12)) { gp_context_error (context, _("Movie recording cannot start: In enlarged liveview.")); return GP_ERROR; }
- if (value.u32 & (1<<11)) { gp_context_error (context, _("Movie recording cannot start: Card protected.")); return GP_ERROR; }
- if (value.u32 & (1<<10)) { gp_context_error (context, _("Movie recording cannot start: Already in movie recording.")); return GP_ERROR; }
- if (value.u32 & (1<< 9)) { gp_context_error (context, _("Movie recording cannot start: Images / movies not yet record in buffer.")); return GP_ERROR; }
- if (value.u32 & (1<< 3)) { gp_context_error (context, _("Movie recording cannot start: Card full.")); return GP_ERROR; }
- if (value.u32 & (1<< 2)) { gp_context_error (context, _("Movie recording cannot start: Card not formatted.")); return GP_ERROR; }
- if (value.u32 & (1<< 1)) { gp_context_error (context, _("Movie recording cannot start: Card error.")); return GP_ERROR; }
- if (value.u32 & (1<< 0)) { gp_context_error (context, _("Movie recording cannot start: No card.")); return GP_ERROR; }
- gp_context_error (context, _("Movie recording cannot start: code 0x%08x"), value.u32);
+ if (value.u32 & (1<<14)) { gp_context_error (context, _("Movie recording cannot start: %s."),_("Camera is not in application mode")); return GP_ERROR; }
+ if (value.u32 & (1<<13)) { gp_context_error (context, _("Movie recording cannot start: %s."),_("Set liveview selector is enabled")); return GP_ERROR; }
+ if (value.u32 & (1<<12)) { gp_context_error (context, _("Movie recording cannot start: %s."),_("In enlarged liveview")); return GP_ERROR; }
+ if (value.u32 & (1<<11)) { gp_context_error (context, _("Movie recording cannot start: %s."),_("Card protected")); return GP_ERROR; }
+ if (value.u32 & (1<<10)) { gp_context_error (context, _("Movie recording cannot start: %s."),_("Already in movie recording")); return GP_ERROR; }
+ if (value.u32 & (1<< 9)) { gp_context_error (context, _("Movie recording cannot start: %s."),_("Images / movies not yet record in buffer")); return GP_ERROR; }
+ if (value.u32 & (1<< 3)) { gp_context_error (context, _("Movie recording cannot start: %s."),_("Card full")); return GP_ERROR; }
+ if (value.u32 & (1<< 2)) { gp_context_error (context, _("Movie recording cannot start: %s."),_("Card not formatted")); return GP_ERROR; }
+ if (value.u32 & (1<< 1)) { gp_context_error (context, _("Movie recording cannot start: %s."),_("Card error")); return GP_ERROR; }
+ if (value.u32 & (1<< 0)) { gp_context_error (context, _("Movie recording cannot start: %s."),_("No card")); return GP_ERROR; }
+ gp_context_error (context, _("Movie recording cannot start: code 0x%08x."), value.u32);
return GP_ERROR;
}
}