• Resolved overflow

    (@overflow)


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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 – https://codex.www.ads-software.com/Formatting_Date_and_Time

    Would that not do what you need?

    Thread Starter overflow

    (@overflow)

    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?

    Thread Starter overflow

    (@overflow)

    Solved.

    Downloaded the Portuguese version from pt.www.ads-software.com, 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. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘using localized locale.php: possible? what happens in an upgrade?’ is closed to new replies.