Skip to content

Social Network Badges

TranslatedStrings.Txt Explained – Customizing the File Structure in Adobe Lightroom

Tuesday night, I came across a question at the Photography Stack Exchange asking how to customize the folder structure of imports in Lightroom. After some research, I figured out that you can do this with a special file called “TranslatedStrings.txt,” and I posted some basic instructions for that last night.

I’ve had a little more time to experiment with the TranslatedStrings.txt file, so here’s a little more information to help you if you want to customize your own directory / folder structure.

What Is TranslatedStrings.txt?

This file includes localization information for Lightroom. If you change the language to Spanish, for example, Lightroom will look for a TranslatedStrings.txt file full of Spanish strings, and it will use those to replace the English strings throughout the software. It can also alter templates for things like the organize “By date” options in the Import dialog.

Within your Adobe Lightroom program directory, there is a folder called “Resources.” Within that, you need to create a folder called “en.” The TranslatedStrings.txt file should be placed in that folder. [Note: If you use a different language, you should instead edit the appropriate language - i.e. the file in the "es" folder for Spanish, the file in the "de" folder for German.]

How Do I Change the Directory Structure?

Here’s an example of what you can customize. To change the options in the dropdown menu for organizing files by date, insert the line (with quotations):

“$$$/AgImportDialog/ShootArrangement_1/Template=%Y/%m/%d”

This will change the first option in the dropdown menu to be something like “2011/08/04.” This actually is already one of the standard options, but you can create any format you like by altering the string of characters that comes after the equal sign.

What Values Can I Use in the Date String?

Here’s the tricky part. To customize the date format, you need to customize the string that comes after the equal sign. However, I’m not sure what format Adobe used for this replacement. Through trial and error, though, I have identified the 16 possible variables that you can use in the date. To use the variable, insert a % sign and the letter into the string.

  • a – Abbreviated day of the week (“Wed”)
  • A – Full day of the week (“Wednesday”)
  • b – Abbreviated month (“Aug”)
  • B – Full month (“August”)
  • d – Date, leading zero (“03″)
  • e – Date, no leading zero (“3″)
  • H – Hour, 24-hour format (“15″)
  • I – Hour, 12-hour format (“07″)
  • j – Date, leading zero
  • m – Month number, leading zero (“08″)
  • M – Minute, leading zero (“06″)
  • p – “AM” or “PM”
  • P – Also creates “AM” or “PM,” but when I tried this it broke another part of the string; I’d advise against using it
  • S – Seconds, leading zero (“05″)
  • y – 2 Digit Year (“11″)
  • Y – 4 Digit Year (“2011″)

To my knowledge, these are the only variables / values that you can put into the date string. If you try to use another letter or number as a variable, Lightroom will crash on start-up.

You can, however, put in constant characters. Any character that is not immediately preceded by a % will simply appear in the template as it is. For example, maybe you wanted to sort all of your photos first by year, then by personal / business, and then into YYYY-MM-DD folders. You could create two options.

“$$$/AgImportDialog/ShootArrangement_1/Template=%Y/Personal/%Y-%m-%d”

“$$$/AgImportDialog/ShootArrangement_2/Template=%Y/Business/%Y-%m-%d”

Depending on the type of import you’re doing, select one of these two templates and let Lightroom do the rest automagically.

What Else Can TranslatedStrings.txt Do?

Well, that’s a good question. I would have assumed that it simply performed a localization function, but this functionality to create templates is pretty cool.

I’m sure there are other cool things this file can do, it’ll just take some time to research and experiment. For starters, I want to know what numbers are useable in the “ShootArrangement” value, and how that affects the placement of a template within the dropdown menu.

Filed Under: How to Process Your Images

Tagged: ,

Comments

Tell us what do you think.

  1. Paul Atherton says: February 21, 2012

    Thanks for the invaluable info. Very educational!
    I am interested to know if its possible to customize LR in some way which will allow the ‘Into Subfolder’ functionality to be tweaked slightly. By default, this option puts a parent folder above your selected date-formated folder structure, and allows you to enter a name for this parent folder. What I would prefer is for it to allow the subfolder to appear below the date-formatted folder structure.
    In my work I shoot sometimes upward of 10 different sets of images in a single day, so I format my folder structure something like this: /2012-02-20 ModelName/SetX/
    I somehow imagine this could be beyond the tweaking capabilities of TranslatedStrings.txt but wondered if there was some other template area of LR3 which could be customized to provide this.

    At the moment, in windows I find myself using an external app (Breeze Downloader Pro) to copy images from CF card to HDD but I just moved to a MacBook for location shoots and my windows app isn’t available for Mac. So was maybe hoping for a half way measure of getting somewhere close to my preferred folder structure via the LR3 import dialog. Any help would be invaluable.

    Thanks again, Paul A

  2. alpipego says: December 14, 2014

    Thanks for the tip. If you are on a mac the subfolders’ name is en.lproj however. So the full path is: “/Application/Adobe\ Photoshop\ Lightroom \4/Contents/Resources/en.lproj/TranslatedStrings.txt”
    For LR4 that is.
    alex

Add a Comment

Fill in the form and submit.

About Digital Photography How To

Digital Photography How To is intended to be a guide to people learning how to use their digital SLR cameras. Three years ago, I had never picked up a camera; now, I produce a yearbook every year and I moonlight as a professional photographer.

I write this website to share what I've learned in that time. The topics will range from truly beginners topics, to tutorials for post processing, to resources for yearbook and graphic design, to thoughts on transitioning from a hobbyist to a professional. Keep up to date by subscribing to the RSS feed.

About the Author

Digital Photography How To is written by Brian Rock. In addition to being a photographer, he's an educator. He teaches high school history, he's the advisor of the school yearbook, and he trains his kids to do all of the photography for the yearbook.

You can connect with him directly on Google Plus.