Displaying Aux:lens and flash info
Posted: 05 Jun 2013, 22:52
Hi
I have been working with Pascal ( a friend who also posted in this forum) on correcting some typo remaining in the rendering of image information. Pascal was also interestd in displaying Aux:Lens (lens info) as flash info.
We propose a simple solution which :
code to be added to en-GB.com_phocagallery.ini
Sorry but this message was containig more than 3000 characters so see other codes are available on (french website, english commented code)
http://forum.valroc.net/viewtopic.php?f ... 1854#p1854
I have been working with Pascal ( a friend who also posted in this forum) on correcting some typo remaining in the rendering of image information. Pascal was also interestd in displaying Aux:Lens (lens info) as flash info.
We propose a simple solution which :
- maintain the normal behaviour of Phoca Gallery even when the proposed hook (phocagallery_hook_exif_info.php) is not present or damaged
- almost resist to future Phoca upgrade excepted if the Phoca Gallery code is completely changed. (*)
- correct some typo errors due to rational fields
- add Aux:Lens and flash info.
- Add Translation in appropriate file : language/en-GB/en-GB.com_phocagallery.ini for english (language/fr-FR/fr-FR.com_phocagallery.ini for french )
- add php file phocagallery_hook_exif_info.php in components/com_phocagallery/views/info folder
- Modify php file com_phocagallery/views/info/view.html.php according too diif (patch) file (2 lines to suppress ( - sign at line beginning) and 8 new lines ... line number may differ according to Phoca Gallery version (we used 3.2.3) )
- apply patch
- add translations string
code to be added to en-GB.com_phocagallery.ini
Code: Select all
;[Adaptations Christophe SEGUINOT]
COM_PHOCAGALLERY_EXIF_FLASH_FIRED="Flash did not fire"
COM_PHOCAGALLERY_EXIF_FLASH_NOT_FIRED="Flash fired"
COM_PHOCAGALLERY_EXIF_FLASH_MODE_UNKNOWN="flash mode unknown"
COM_PHOCAGALLERY_EXIF_FLASH_MODE_COMPULSARY="compulsory flash mode"
COM_PHOCAGALLERY_EXIF_FLASH_MODE_OFF="flash unactivated"
COM_PHOCAGALLERY_EXIF_FLASH_MODE_AUTO="auto mode"
COM_PHOCAGALLERY_EXIF_FLASH_RED_EYE_ON="red-eye reduction mode"
COM_PHOCAGALLERY_EXIF_FLASH_RED_EYE_OFF="no red-eye reduction"
COM_PHOCAGALLERY_AUX_LENS="Lens"
http://forum.valroc.net/viewtopic.php?f ... 1854#p1854
- phocagallery_hook_exif_info.php
- code to be added to fr-FR.com_phocagallery.ini
- patch allowing to modify components/com_phocagallery/views/info/view.html