Sorry for asking another dumb question... but i'm trying to make my component translation friendly by making use of the locale files and ossnprint. I have a file named: ossnen.php in the component/locale folder as below:
$en = array(
'webchat' => 'Web Chat',
'com:webchat:menu' => 'Web Chat',
'com:webchat:homebutton' => 'Home',
'com:webchat:input:placeholder' => 'Type a message',
'com:webchat:menu:settings' => 'Settings',
'com:webchat:menu:addcontact' => 'Add contact'
);
ossnregisterlanguages('en', $en);
I've then added the following into the PHP page template:
<a href="<?php echo ossn_site_url('home'); ?>" class="button"><i class="fa fa-home fa-fw" aria-hidden="true"></i> <span><?php ossn_print('com:webchat:homebutton'); ?></span></a>
For some reason the ossn_print is not working, just returns empty. Even using some core ossn keys like 'photos:ossn' are still coming back blank.
Does the ossnprint() not work on custom pages?
ossnsite_url() works fine.
I said it was a dumb question! Lol. Sorry. I'll go hide in my corner again!
Does the ossn_print() not work on custom pages?
It would if you just echo
the returned string of ossn_print().
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)