Localize strings from db

There are multiple ways to do this: 1. Add multiple columns to the table with the strings you have to localize. E.g. one column for German, one for English, and so on. And then get the string from the appropriate column. This is perfect if the number of languages stays more or less constant (you … Read more

translate_user_role doesn’t work

Please note that translate_user_role doesn’t work in the front-end currently. Here is a workaround, you can place this in your theme: add_action( ‘init’, ‘load_admin_textdomain_in_front’ ) function load_admin_textdomain_in_front() { if ( ! is_admin() ) { load_textdomain( ‘default’, WP_LANG_DIR . ‘/admin-‘ . get_locale() . ‘.mo’ ); } }

Plugin localization persistance (woocommerce)

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)