Titan-Framework
Titan-Framework copied to clipboard
Translation doesn't work
I've installed your plugin in my custom plugin with :
require_once dirname( __FILE__ ) . '/titan-framework/titan-framework-embedder.php';
//...
$adminPanel->createOption( array(
'type' => 'save',
) );
But the submit/restore button are in English instead French in my case.
i have the same problem :/
Same probleme here.
There is a simple workaround: Copy titan-framework.php line 137 *load_plugin_textdomain( TF_I18NDOMAIN, false, basename( dirname( FILE ) ) . '/languages/' ); to your plugin index file. Something like this if you have translations for your plugin.
function i2pcc_plugin_setup() { load_plugin_textdomain('i2pcc', false, dirname(plugin_basename(FILE)) . '/lang/'); load_plugin_textdomain( TF_I18NDOMAIN, false, basename( dirname( FILE ) ) . '/lang/' ); }
Disable it in the titan-framework.php. Change the path to your lang files. Copy the titan language files to your lang directory. There are not all transalation in the po files so you can do an refresh width poedit and transalate the missing texts.