[Info] phpBB 3.2 Upgrade Notes for Extensions

Discussion forum for Extension Writers regarding Extension Development.
User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 4736
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: phpBB 3.2 Upgrade Notes for Extensions

Post by kasimi »

With lang being the @language service:

Code: Select all

$array = $this->lang->lang_raw('hlposts_tokens')

Code: Select all

/**
 * Returns the raw value associated to a language key or the language key no translation is available.
 * No parameter substitution is performed, can be a string or an array.
 *
 * @param string|array	$key	Language key
 *
 * @return array|string
 */
public function lang_raw($key)
User avatar
3Di
Former Team Member
Posts: 16091
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Name: Marco
Contact:

Re: phpBB 3.2 Upgrade Notes for Extensions

Post by 3Di »

^^ That's it. Thank you :)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
Post Reply

Return to “Extension Writers Discussion”