diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2016-04-10 18:49:20 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2016-04-10 18:49:20 +0200 |
commit | 42891b9cad36d37de44e1794df755675ed105c41 (patch) | |
tree | f0f8c26db112226a97e1ec549e76d927e04d3d34 /camlibs/canon | |
parent | 4d4e48bf169d14a08de4c837de515bad7523eba2 (diff) | |
download | libgphoto2-42891b9cad36d37de44e1794df755675ed105c41.tar.gz |
compare translated strings in set_config (we translate them during get_config)
fixes https://github.com/gphoto/libgphoto2/issues/49
Diffstat (limited to 'camlibs/canon')
-rw-r--r-- | camlibs/canon/library.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/camlibs/canon/library.c b/camlibs/canon/library.c index 872a604a8..8f3238136 100644 --- a/camlibs/canon/library.c +++ b/camlibs/canon/library.c @@ -2070,7 +2070,7 @@ camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) /* Map the menu option setting to the camera binary value */ i = 0; while (shootingModeStateArray[i].label) { - if (strcmp (shootingModeStateArray[i].label, wvalue) == 0) { + if (strcmp (_(shootingModeStateArray[i].label), wvalue) == 0) { shooting_mode = shootingModeStateArray[i].value; break; } @@ -2127,7 +2127,7 @@ camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) /* Map the menu option setting to the camera binary value */ i = 0; while (apertureStateArray[i].label) { - if (strcmp (apertureStateArray[i].label, wvalue) == 0) { + if (strcmp (_(apertureStateArray[i].label), wvalue) == 0) { aperture = apertureStateArray[i].value; break; } @@ -2155,7 +2155,7 @@ camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) /* Map the menu option setting to the camera binary value */ i = 0; while (exposureBiasStateArray[i].label) { - if (strcmp (exposureBiasStateArray[i].label, wvalue) == 0) { + if (strcmp (_(exposureBiasStateArray[i].label), wvalue) == 0) { expbias = exposureBiasStateArray[i].value; break; } @@ -2183,7 +2183,7 @@ camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) /* Map the menu option setting to the camera binary value */ i = 0; while (imageFormatStateArray[i].label) { - if (strcmp (imageFormatStateArray[i].label, wvalue) == 0) + if (strcmp (_(imageFormatStateArray[i].label), wvalue) == 0) break; i++; @@ -2211,7 +2211,7 @@ camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) /* Map the menu option setting to the camera binary value */ i = 0; while (focusModeStateArray[i].label) { - if (strcmp (focusModeStateArray[i].label, wvalue) == 0) { + if (strcmp (_(focusModeStateArray[i].label), wvalue) == 0) { focus_mode = focusModeStateArray[i].value; break; } |