Understanding WordPress Default Theme – twentyfifteen.1.4 >> Languages Folder
Understanding WordPress Default Theme – twentyfifteen.1.4 >> Languages Folder
Understanding WordPress Default Theme – twentyfifteen.1.4 >> Languages Folder
In wordpress a translation is part of the code. If you change translations you should track the .po files in “git” as if it was any other kind of code. An alternative option is to override the textdomain used for translation and use another one that uses another .mo file located at some “safe” location. … Read more
444 would not stop a file being deleted. Deletion observes the permissions of the containing directory only. Whether the file is writable is irrelevant, because you’re not writing to it. Other people have posted they results using the filter approach. I suggest you have a look through their follow ups. Please note that 1.x version … Read more
I ended up having to switch to arrays instead of objects. Even that hasn’t worked out as well as I hoped.
gettext filter does nothing
issue in translating a wordpress them
i have fix this just put renaming the languages files in the plugin to realia-ar.po and realia-ar.mo
Custom post type translation
If anybody else is looking for the anwser , Here it is function load_txtdomain() { $locale = apply_filters( ‘plugin_locale’, get_locale(), ‘my-plugin’ ); load_textdomain( ‘my-plugin’, WP_LANG_DIR . ‘/my-plugin-‘ . $locale . ‘.mo’ ); } add_action(‘plugins_loaded’,’load_txtdomain’);
Problem is that events callendar is inited before qtranslate, Tribe__Events__Main::instance() : // let’s initialize tec silly-early to avoid fatals with upgrades from 3.x to 4.x add_action( ‘plugins_loaded’, array( $this, ‘plugins_loaded’ ), 0 ); simple hack was to create a plugin named 1fix with code: add_action( ‘plugins_loaded’, ‘__fix_tribe_init’, 0 ); function __fix_tribe_init(){ global $locale; if(preg_match(‘/^\/ru\//’,$_SERVER[‘REQUEST_URI’])) { … Read more