-php option change language

Started by steflbert, September 27, 2013, 11:28:28 PM

Previous topic - Next topic

steflbert

Hello

I want to read out the tags of jpg files with php using -php, using the command exiftool -php some_file. I also want to have a German version of my program, so to avoid translating everything by hand, I tried doing it with the -lang argument with the command exiftool -php -lang de some_file, I had the same problem trying to output in json format. If I use the command exiftool -lang de some_file the output is in German. I also tried it on different files.
I'm using the version 9.37 on a Mac OS X
I tried changing it myself, but sadly I'm not good enough in perl. So do I have to type the command differently or does this feature not exist?

Phil Harvey

The keys in the -php option output are tag names, which are always english (for other options too).  It is the tag descriptions and some converted values that are affected by the -lang option.  To see the descriptions with the -php option, add -l to the command.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

steflbert

Thanks a lot, it works well with the -l option.

steflbert