×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Missing Language Contant

Missing Language Contant 9 years 2 months ago #32131

  • Simon Wells
  • Simon Wells's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 40
  • Thank you received: 0
I tried to override the language for the text "Organizer" which appears as the tile above the organisers box, but could not find it.
In components/com_matukio/views/event/tmpl/bootstrap3.php,
<?php echo JText::_("COM_MATUKIO_Organizer"); ?>
is called, but I could not find it in language files.
Shouldn't this be
COM_MATUKIO_ORGANIZER
instead?

Missing Language Contant 9 years 2 months ago #32137

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi Simon,

yes it should - corrected that.

But it's not a bug or so, JText::_ does a to uppercase internally:

self::$strings[strtoupper($string)] = JFactory::getLanguage()->_($string, $jsSafe, $interpretBackSlashes);

So it is still working.. :-)

Cheers,
Yves

Missing Language Contant 8 years 11 months ago #32897

  • Dainis Stikuts
  • Dainis Stikuts's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
I have problem to translate this constant and <?php echo JText::_("COM_MATUKIO_INFORMATIONS"); ?>
Only with overrides I can do it.
  • Page:
  • 1
Time to create page: 0.100 seconds