[resolved] using localized locale.php: possible? what happens in an upgrade? (4 posts)

  1. overflow
    Posted 7 years ago #

    I have WP 2.7.1 in the original version.

    I want dates to be displayed in Portuguese (pt_PT) and so I edited locale.php

    But then I thought, could I just replace it with the locale.php from the pt_PT version of WP 2.7.1 ?

    And what happens when I run an automatic WP upgrade, will this file be overwritten and what should I do about it?

    Thanks in advance all help is much appreciated.

  2. Oscar Gonzalez
    Posted 7 years ago #

    I probably missed this one... but why not use the built in date formatter field? is that what you're trying to change?

    General Settings -> date settings

    Use Custom and see this - http://codex.wordpress.org/Formatting_Date_and_Time

    Would that not do what you need?

  3. overflow
    Posted 7 years ago #

    Thanks @rakxzo

    I can change the way it is displayed, but not the names of the months for example. In Portuguese January is Janeiro, and so on. Any way I could specify that that would be upgrade-proof?

  4. overflow
    Posted 7 years ago #


    Downloaded the Portuguese version from pt.wordpress.org, unzipped, copied the folder languages from inside wp-content, pasted inside the wp-content in my original instalation.

    Then edited wp-config.php and found

    define ('WPLANG', '');

    which I turned into

    define ('WPLANG', 'pt_PT');

    And now all is in Portuguese which is an added bonus.

    I've been told in the Portuguese forum that editing the locale.php was a bad idea and that it would be overwritten in the next update.

    Done. ;)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.