[Info] phpBB 3.2 Upgrade Notes for Extensions

Discussion forum for Extension Writers regarding Extension Development.
User avatar
kasimi
Former Team Member
Posts: 4900
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
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
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. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
Post Reply

Return to “Extension Writers Discussion”