TranslatedStrings trouble

Community Expert ,
Aug 22, 2022 Aug 22, 2022

Copy link to clipboard

Copied

I've been using a TranslatedStrings_Lr_en_US.txt file since February without any issues.

It sets the shortcut for the Masking panel to Shift + Z, and Redo to Ctrl + Shift + Z, instead of the awkward Ctrl + Y shortcut.

 

"$$$/AgDevelop/Menu/View/Mask/Key=Shift+Z"
"$$$/Application/Menu/Edit/RedoWin/Key=Ctrl+Shift+Z"

 

After installing version 11.5, both shortcuts stopped working.

By removing the first line, I was able to use the default shortcut, Shift + W, for Masking, which I can live with, but I would prefer Shift + Z.

Having to use Ctrl + Y for Redo is harder to live with.

TOPICS
Windows

Views

102

Likes

Translate

Translate

Report

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

correct answers 1 Correct answer

LEGEND , Sep 14, 2022 Sep 14, 2022

Interesting. I poked around some more on both Win and Mac and found more evidence that Z and Shift Z are weird.  This reinforces my guess that Z is hardwired into some parts of LR and there's a race condition when the app starts about which part of the code gets assigned Z.

 

Shift Z on Win correctly toggles between Loupe - Live and Loupe - Normal. But Shift Z on Mac toggles between Loupe - Live and Loupe - Normal exactly once, and then it stops working until you restart LR.

 

But on neither Win nor

...

Likes

Translate

Translate
Community Expert ,
Aug 23, 2022 Aug 23, 2022

Copy link to clipboard

Copied

Problem solved.

Changing uppercase Z to lowercase z fixed it.

Likes

Translate

Translate

Report

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
LEGEND ,
Aug 31, 2022 Aug 31, 2022

Copy link to clipboard

Copied

"Changing uppercase Z to lowercase z fixed it."

 

TranslatedStrings is messy.  One of the warts is that capital letters are interpreted differently on Mac than on Windows.  Another example:  Open Catalog is assigned "Cmd+O" in TranslatedStrings rather than "Cmd+o". On Windows, that is interpreted as Ctrl O, but on Mac it is interpreted as Cmd Shift O.   It's clearly a typo, since the convention in TranslatedStrings is to use lowercase letters and since Cmd O is the conventional Mac shortcut for opening files.  But that mistake has been present in LR for so many years that is now considered "as designed".

Likes

Translate

Translate

Report

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
Community Expert ,
Sep 02, 2022 Sep 02, 2022

Copy link to clipboard

Copied

John, I've been reading some of your recent posts on TranslatedStrings, and understand that it's far from perfect.

It seems that something changed in 11.5, since uppercase Z stopped working.

Likes

Translate

Translate

Report

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
LEGEND ,
Sep 02, 2022 Sep 02, 2022

Copy link to clipboard

Copied

Hmm, in my LR 11.5 / Windows 10 and Windows 11, using uppercase Z worked:

"$$$/AgDevelop/Menu/View/Mask/Key=Shift+Z"
"$$$/Application/Menu/Edit/RedoWin/Key=Ctrl+Shift+Z"

Ditto for LR 11.4 / Windows 10.

 

I'm guessing the different behavior you're observing has to do with the weird behavior of Z and Shift Z.  Z is assigned to Toggle Zoom (toggles between Fit and the last-selected percentage zoom), while Shift Z is assigned to New Depth Range. 

 

If you're editing an image that has a depth map, then Shift Z invokes New Depth Range. But if you're editing an image without a depth map, New Depth Range is greyed out in the Masking panel, and Shift Z invokes Toggle Zoom.

 

There may be some kind of race condition in LR's initialization that's causing this nondeterministic behavior of Shift Z.  You could test this hypothesis by using these lines in TranslatedStrings:

"$$$/AgLibrary/Menu/View/ToggleZoomView/Key="
"$$$/AgDevelop/Menu/View/DepthRange/Key="
"$$$/AgDevelop/Menu/View/Mask/Key=Shift+Z"
"$$$/Application/Menu/Edit/RedoWin/Key=Ctrl+Shift+Z"

(I can't test this, since uppercase Z works correctly on my systems.)

Likes

Translate

Translate

Report

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
Community Expert ,
Sep 14, 2022 Sep 14, 2022

Copy link to clipboard

Copied

My shortcuts stopped working yesterday, out of the blue. So I tried changing z back to Z, didn't work.

I also tried the lines you posted above, didn't work either.

Both shortcuts now invoke Live Loupe.

 

So I tried this (with both z and Z), but still getting LiveLoupe.

"$$$/MultiMonitor/LiveLoupeShortcut/Win="
"$$$/AgLibrary/Menu/View/ToggleZoomView/Key="
"$$$/AgDevelop/Menu/View/DepthRange/Key="
"$$$/AgDevelop/Menu/View/Mask/Key=Shift+z"
"$$$/Application/Menu/Edit/RedoWin/Key=Ctrl+Shift+z"

 

Likes

Translate

Translate

Report

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
LEGEND ,
Sep 14, 2022 Sep 14, 2022

Copy link to clipboard

Copied

Interesting. I poked around some more on both Win and Mac and found more evidence that Z and Shift Z are weird.  This reinforces my guess that Z is hardwired into some parts of LR and there's a race condition when the app starts about which part of the code gets assigned Z.

 

Shift Z on Win correctly toggles between Loupe - Live and Loupe - Normal. But Shift Z on Mac toggles between Loupe - Live and Loupe - Normal exactly once, and then it stops working until you restart LR.

 

But on neither Win nor Mac does Shift Z open the Secondary Display window, as Shift E (Loupe - Normal) does, even though the menu command Window > Secondary Display > Loupe - Live opens the window.

 

Maybe you'll have to give up on Z and use some other letter.  My recently released Any Shortcut plugin makes it much easier to assign shortcuts and see which shortcuts are currently being used.

Likes

Translate

Translate

Report

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
LEGEND ,
Sep 14, 2022 Sep 14, 2022

Copy link to clipboard

Copied

Another anomaly: Loupe - Live has a TranslatedStrings entry but Loupe - Normal and Loupe - Locked don't.  That means Loupe - Normal and Loupe - Locked are definitely hardwired into the app, and probably Loupe - Live is too.

Likes

Translate

Translate

Report

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
Community Expert ,
Sep 14, 2022 Sep 14, 2022

Copy link to clipboard

Copied

Hi John, I managed to create some easy-to-use shortcuts with your plugin.

I first tried Shift X for Masking, which took me to Crop, then Shift A, which did something with image brightness with no entry in the History panel, not sure what it was.

I ended up with Ctrl >, which is convenient – on a Scandinavian keyboard the > key is located between Shift and Z.

 

For Undo, I first tried Ctrl Shift Z, which took me to Live Loupe as before.

Ctrl Alt Z worked. Using the Shift key seems to be problematic.

Likes

Translate

Translate

Report

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
LEGEND ,
Sep 14, 2022 Sep 14, 2022

Copy link to clipboard

Copied

Shift A is Crop To Same Aspect Ratio:

johnrellis_0-1663218848581.png

 

 

Likes

Translate

Translate

Report

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
LEGEND ,
Sep 15, 2022 Sep 15, 2022

Copy link to clipboard

Copied

LATEST

Likes

Translate

Translate

Report

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