Forums

Translating months in "Archive" menu (4 posts)

  1. tom23
    Member
    Posted 1 year ago #

    I dont have any desire to install localization on my WordPress, I dont see the use of it. It may sound weird, but I cant figure my way on WordPress dashboard when I see it in my own language, I only understand english when Im on computer.

    That being said, the only part of my blog that I would want to "adjust" to my language are the month names displayed in Archive drop down.

    This;

    http://img717.imageshack.us/img717/8186/archmonth.jpg

    Back when I first set up my blog, Ive edited one php file and it changed the way months are displayed when I post a new blog entry, but archive category stayed in english.

    I presume I have to edit it manually?

    Also, are there ways to safely style the archive drop down using css and jquery or is it safer to just use css?

  2. keesiemeijer
    moderator
    Posted 1 year ago #

    Put this in your theme's functions.php:

    function admin_in_english_locale( $locale ) {
    	if ( is_admin() || false !== strpos($_SERVER['REQUEST_URI'], '/wp-includes/js/tinymce/tiny_mce_config.php')
    		|| false !== strpos($_SERVER['REQUEST_URI'], '/wp-login.php' ) ) {
    		return 'en_US';
    	}
    	return $locale;
    }
    add_filter( 'locale', 'admin_in_english_locale' );

    or use this plugin: http://wordpress.org/extend/plugins/admin-in-english/

    Localize wordpress like you normally would: http://codex.wordpress.org/WordPress_in_Your_Language

  3. tom23
    Member
    Posted 1 year ago #

    Theres no way for me just to edit the archive months display language?

  4. keesiemeijer
    moderator
    Posted 1 year ago #

    I dont have any desire to install localization on my WordPress, I dont see the use of it

    This is how wordpress and localization works. If you want to hack wordpress core files and theme files you can of course do this but I would advise against it.

Topic Closed

This topic has been closed to new replies.

About this Topic