Hi
I always seem to have problems with language files . . . thanks to ceford in 2012 for sorting out the J4 version.
The installation works fine and is properly translated. It is the update which is failing.
I note that the instructions have changed in J5.
https://manual.joomla.org/docs/building ... /manifest/
The <name> and <description> fields are translatable. If you use language strings for these elements then they should be defined in your language .sys.ini file AND your .ini file.
So they are:
but see attached screen shot.
My update xml code is:
<?xml version="1.0" encoding="utf-8"?>
<!-- 12th May 2024 Upgade to J5 per Robbie Jackson - see viewtopic.php?f=833&t=1008461 -->
<!-- 2nd January 2025 Fixed bug in Robbie's Code, allowed single quotes on kml path for ver 4, updated sha -->
<updates>
<update>
<type>plugin</type>
<element>tdocgmap</element>
<folder>content</folder>
<name>PLG_CONTENT_TDOCGMAP</name>
<description>PLG_CONTENT_TDOCGMAP_XML_DESCRIPTION</description>
<client>0</client>
<version>5.5.1</version>
<infourl title="tdoc">http://www.tdocplus.co.uk</infourl>
<downloads>
<downloadurl type="full" format="zip">https://www.tdocplus.co.uk/tdoc_j5_dev/ ... ownloadurl>
</downloads>
the ini file reads [with two lines copied from the sys.ini]:
;; TDOC Gmap
;; Ver 5.5.1 of 2nd Jan 2025
;
; Language file for Options: plg_content_tdocgmap.ini
; https://manual.joomla.org/docs/building ... /manifest/
; The <name> and <description> fields are translatable. If you use language strings for these elements then they should be defined in your language .sys.ini file AND your .ini file.
;
PLG_CONTENT_TDOCGMAP="TDOC Google Maps KML Display"
PLG_CONTENT_TDOCGMAP_XML_DESCRIPTION="Plugin to display a KML file in Google Maps.<br>Version 5.5.1 of 2nd Jan 2025 for Joomla 5."
PLG_CONTENT_TDOCGMAP_MANDATORY="<b>Mandatory</b>"
PLG_CONTENT_TDOCGMAP_GOOGLE_MAPS_API_KEY="Google Maps API key"
PLG_CONTENT_TDOCGMAP_GOOGLE_MAPS_API_KEY_DESC="Your unique API key provided by Google Maps"
PLG_CONTENT_TDOCGMAP_DEFAULTS="<b>Default Settings</b>"
PLG_CONTENT_TDOCGMAP_WIDTH="Width"
PLG_CONTENT_TDOCGMAP_WIDTH_DESC="The width which will be used if not specified in the definition of the map in the article"
PLG_CONTENT_TDOCGMAP_HEIGHT="Height"
PLG_CONTENT_TDOCGMAP_HEIGHT_DESC="The height which will be used if not specified in the definition of the map in the article"
any ideas would be appreciated.
Richard
I always seem to have problems with language files . . . thanks to ceford in 2012 for sorting out the J4 version.
The installation works fine and is properly translated. It is the update which is failing.
I note that the instructions have changed in J5.
https://manual.joomla.org/docs/building ... /manifest/
The <name> and <description> fields are translatable. If you use language strings for these elements then they should be defined in your language .sys.ini file AND your .ini file.
So they are:
but see attached screen shot.
My update xml code is:
<?xml version="1.0" encoding="utf-8"?>
<!-- 12th May 2024 Upgade to J5 per Robbie Jackson - see viewtopic.php?f=833&t=1008461 -->
<!-- 2nd January 2025 Fixed bug in Robbie's Code, allowed single quotes on kml path for ver 4, updated sha -->
<updates>
<update>
<type>plugin</type>
<element>tdocgmap</element>
<folder>content</folder>
<name>PLG_CONTENT_TDOCGMAP</name>
<description>PLG_CONTENT_TDOCGMAP_XML_DESCRIPTION</description>
<client>0</client>
<version>5.5.1</version>
<infourl title="tdoc">http://www.tdocplus.co.uk</infourl>
<downloads>
<downloadurl type="full" format="zip">https://www.tdocplus.co.uk/tdoc_j5_dev/ ... ownloadurl>
</downloads>
the ini file reads [with two lines copied from the sys.ini]:
;; TDOC Gmap
;; Ver 5.5.1 of 2nd Jan 2025
;
; Language file for Options: plg_content_tdocgmap.ini
; https://manual.joomla.org/docs/building ... /manifest/
; The <name> and <description> fields are translatable. If you use language strings for these elements then they should be defined in your language .sys.ini file AND your .ini file.
;
PLG_CONTENT_TDOCGMAP="TDOC Google Maps KML Display"
PLG_CONTENT_TDOCGMAP_XML_DESCRIPTION="Plugin to display a KML file in Google Maps.<br>Version 5.5.1 of 2nd Jan 2025 for Joomla 5."
PLG_CONTENT_TDOCGMAP_MANDATORY="<b>Mandatory</b>"
PLG_CONTENT_TDOCGMAP_GOOGLE_MAPS_API_KEY="Google Maps API key"
PLG_CONTENT_TDOCGMAP_GOOGLE_MAPS_API_KEY_DESC="Your unique API key provided by Google Maps"
PLG_CONTENT_TDOCGMAP_DEFAULTS="<b>Default Settings</b>"
PLG_CONTENT_TDOCGMAP_WIDTH="Width"
PLG_CONTENT_TDOCGMAP_WIDTH_DESC="The width which will be used if not specified in the definition of the map in the article"
PLG_CONTENT_TDOCGMAP_HEIGHT="Height"
PLG_CONTENT_TDOCGMAP_HEIGHT_DESC="The height which will be used if not specified in the definition of the map in the article"
any ideas would be appreciated.
Richard
Statistics: Posted by rgtr — Sun Jan 12, 2025 11:53 am