No Code Attached Yet bug
avatar counterpoint
counterpoint
12 Aug 2022

Steps to reproduce the issue

Install an ultra simple mod_helloworld that has a configuration item such as shown in the attached XML,
and a corresponding language file, similar to attached.

Expected result

Label field and default field translated using the language file

Actual result

Label field is translated, but default field is left as the language string MOD_HELLOWORLD_DEFAULT

System information (as much as possible)

Any recent Joomla, Linux, PHP 8

Additional comments

I did try attaching a complete package, but zip files not allowed

avatar counterpoint counterpoint - open - 12 Aug 2022
avatar counterpoint counterpoint - change - 12 Aug 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 12 Aug 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 12 Aug 2022
avatar counterpoint counterpoint - change - 12 Aug 2022
The description was changed
avatar counterpoint counterpoint - edited - 12 Aug 2022
avatar counterpoint counterpoint - change - 12 Aug 2022
The description was changed
avatar counterpoint counterpoint - edited - 12 Aug 2022
avatar chmst chmst - change - 12 Aug 2022
Labels Added: Information Required
avatar chmst chmst - labeled - 12 Aug 2022
avatar brianteeman
brianteeman - comment - 12 Aug 2022

Please post the xml or close this. No one can help without the information

avatar counterpoint
counterpoint - comment - 12 Aug 2022

I did post it as a text file. But it wasn't saved. The issue is clear enough without an example - any configuration XML for a module that uses the "default" tag and enters a language symbol will fail to have the symbol translated. mod_remositorytree.txt


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38444.

avatar counterpoint
counterpoint - comment - 12 Aug 2022

The file above was the workaround. The problem is exemplified here.mod_remositorytree.txt


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38444.

avatar zero-24
zero-24 - comment - 12 Aug 2022

On a quick look it seams to be the expected / documented behavior: https://docs.joomla.org/Text_form_field_type

default (optional) (not translatable) is the default value

When you need that within your extension the easiest workaround would be an fork of the text field and add support for translation. To me it looks like an inherited field from other places where translation is not relevant or useful.

avatar chmst chmst - change - 13 Aug 2022
Labels Removed: Information Required
avatar chmst chmst - unlabeled - 13 Aug 2022
avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 22 Feb 2023
avatar brianteeman
brianteeman - comment - 27 Feb 2023

This should be closed as the expected and documented behaviour

Add a Comment

Login with GitHub to post a comment