no constant for 'reason'

  • Han
  • Han's Avatar Offline Topic Author
  • Senior Member
  • Senior Member
  • Thanks: 1
  • Posts: 64

no constant for 'reason' was created by Han

Posted 7 months 4 weeks 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.


 
Post by Han

Attachments:

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

Replied by Joomla!NL on topic no constant for 'reason'

Posted 7 months 4 weeks 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.
Post by Joomla!NL

Attachments:

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

  • Han
  • Han's Avatar Offline Topic Author
  • Senior Member
  • Senior Member
  • Thanks: 1
  • Posts: 64

Replied by Han on topic no constant for 'reason'

Posted 7 months 4 weeks 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.
Post by Han

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

Replied by ntstore on topic no constant for 'reason'

Posted 7 months 4 weeks 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

Post by ntstore

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

Replied by Joomla!NL on topic no constant for 'reason'

Posted 7 months 4 weeks 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:7 months 4 weeks ago Post by Joomla!NL

Attachments:

Last edit: 7 months 4 weeks ago by Joomla!NL.

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

  • Han
  • Han's Avatar Offline Topic Author
  • Senior Member
  • Senior Member
  • Thanks: 1
  • Posts: 64

Replied by Han on topic no constant for 'reason'

Posted 7 months 4 weeks ago #16818
Joomla!NL
maybe that you make an issue in the Kunena forum?
Post by Han

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

Replied by Joomla!NL on topic no constant for 'reason'

Posted 7 months 4 weeks 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.
Post by Joomla!NL

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

  • Han
  • Han's Avatar Offline Topic Author
  • Senior Member
  • Senior Member
  • Thanks: 1
  • Posts: 64

Replied by Han on topic no constant for 'reason'

Posted 7 months 3 weeks 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.
Post by Han

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

Time to create page: 0.649 seconds