setlocale for date

Use date_i18n( $format, $i ); echo date_i18n(‘j F Y’, strtotime( $event_date[0] ) ) . ‘ ‘ . date_i18n(‘j F Y’, strtotime( $event_from_time[0] ) ) . ‘ do ‘ . date_i18n(‘j F Y’, strtotime( $event_to_time[0] ) ); See also: How to integrate get_post_time with date_i18n function?

WordPress po files

The define(‘WPLANG’, ‘ru_RU’); in the wp-config.php is no longer needed, as WordPress stores this value in the database (starting from version 4.0). However, I suppose your problem is actually something different. Your Steps: Add a filter to locale To ensure your language is set correctly, use a code like this: add_filter( ‘locale’, ‘f711_set_language’ ); function … Read more

WPML Translated Term

Actually there is already in their API something for this: icl_object_id(ID, custom_taxonomy_name, return_original_if_missing,language_code) Works like a charm. More read on this : Language Dependent IDs

Is this a correct usage of esc_html_e?

You should always escape output. end of sentence, and end of story. The questions is like asking if you can use globals and goto. Sure they are part of the language and in some edge cases they are the only way to produce working and readable code, but the guide is to never use them … Read more

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