Titan-Framework icon indicating copy to clipboard operation
Titan-Framework copied to clipboard

Translation doesn't work

Open florentsorel opened this issue 9 years ago • 3 comments

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.

florentsorel avatar Mar 12 '15 16:03 florentsorel

i have the same problem :/

miladd3 avatar Jul 04 '15 08:07 miladd3

Same probleme here.

Realmaker avatar Mar 11 '16 09:03 Realmaker

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.

Realmaker avatar Mar 11 '16 09:03 Realmaker