Read before updating: How to Update Kunena Templates - More detail

no constant for 'reason'

H Topic Author
Senior Member Senior Member
Han's Avatar
Han
  • Posts: 65
  • Thanks: 1

no constant for 'reason'

1 year 3 months ago
#16805
I found a non-translated 'reason' for editing a message in a pop-up. There is no constant available.
You might even hide the pop-up since the other text strings are clear enough
Can I change it?  If so where and what code.


 

Please Log in or Create an account to join the conversation.

Joomla!NL's Avatar
Senior Member Senior Member
  • Posts: 72
  • Thanks: 9

Re: no constant for 'reason'

1 year 3 months ago
#16809
They should be present in Kunena language files.
 
Did you turn on debug language - constants by accident? Then you don't see translated text.

Please Log in or Create an account to join the conversation.

H Topic Author
Senior Member Senior Member
Han's Avatar
Han
  • Posts: 65
  • Thanks: 1

Re: no constant for 'reason'

1 year 3 months ago
#16810
On purpose I turned on the debug language - constants to show that 'reason' in the pop-up has no constant, so it will never get a translation.

The COM_KUNENA_REASON (Reden) does exist in the language file.

Maybe you have noticed that the pop-up has no starting capital letter.

Please Log in or Create an account to join the conversation.

ntstore's Avatar
Administrator Administrator
  • Posts: 1213
  • Thanks: 239

Re: no constant for 'reason'

1 year 3 months ago
#16811
Hi Han,
You can see the above two language strings in the en-GB.com_kunena.templates.ini file (components/com_kunena/language/en-GB). Copy to your language files and translate them.

Regards,
Hung Pham
Email: 9themestore@gmail.com
Twitter: @9themestore

Please Log in or Create an account to join the conversation.

Joomla!NL's Avatar
Senior Member Senior Member
  • Posts: 72
  • Thanks: 9

Re: no constant for 'reason'

1 year 3 months ago - 1 year 3 months ago
#16815
The word reason is hardcoded in the template (but in Aurelia it's the same).
Code:
<input class="form-control" name="modified_reason" maxlength="200" type="text" value="<?php echo $this->modified_reason; ?>" data-bs-toggle="tooltip" title="reason" placeholder="<?php echo Text::_('COM_KUNENA_EDITING_ENTER_REASON') ?>" />
 
Last edit: 1 year 3 months ago by Joomla!NL.

Please Log in or Create an account to join the conversation.

H Topic Author
Senior Member Senior Member
Han's Avatar
Han
  • Posts: 65
  • Thanks: 1

Re: no constant for 'reason'

1 year 3 months ago
#16818
Joomla!NL
maybe that you make an issue in the Kunena forum?

Please Log in or Create an account to join the conversation.

Joomla!NL's Avatar
Senior Member Senior Member
  • Posts: 72
  • Thanks: 9

Re: no constant for 'reason'

1 year 3 months ago
#16820
It should be changed in KBee (and other NTS templates). I already made an override in KPraxis myself.
People using Aurelia should raise this issue themselves.

Please Log in or Create an account to join the conversation.

H Topic Author
Senior Member Senior Member
Han's Avatar
Han
  • Posts: 65
  • Thanks: 1

Re: no constant for 'reason'

1 year 3 months ago
#16823
Hi Hung Pham,

can you fix the hard-coded item 'reason' ? (low priority!)
After the update I like the pop-ups much better; they are not so dominant in the black color.

Please Log in or Create an account to join the conversation.

Time to create page: 0.501 seconds