phpBB 3.2 Upgrade Notes for Extensions

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

Re: phpBB 3.2 Upgrade Notes for Extensions

Post by kasimi » Wed Jan 31, 2018 8:53 am

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
Registered User
Posts: 12773
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: phpBB 3.2 Upgrade Notes for Extensions

Post by 3Di » Wed Jan 31, 2018 11:08 pm

^^ That's it. Thank you :)
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

Post Reply

Return to “Extension Writers Discussion”

Who is online

Users browsing this forum: vipaka and 11 guests