ExifTool Forum

ExifTool => Newbies => Topic started by: steflbert on September 27, 2013, 11:28:28 PM

Title: -php option change language
Post by: steflbert on September 27, 2013, 11:28:28 PM
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?
Title: Re: -php option change language
Post by: Phil Harvey on September 28, 2013, 08:55:07 AM
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
Title: Re: -php option change language
Post by: steflbert on September 28, 2013, 12:14:50 PM
Thanks a lot, it works well with the -l option.

steflbert