Wordpress: problems with translation

wordpress No Comments »
italiano

Recently i’ve installed localized WordPress italian version (downloaded from wordpress-it) but after the installation it was in english yet. I’ve checked the settings in the file wp-config.php but they were right:

define('WPLANG','it_IT');

in the folder wp-includes/languages/ there was it_IT.mo and it_IT.po so all were setting fine, but wordpress was in english yet. I’ve thinked that it could be a file’s permission problem but i was on fault.
After a research i discover that it could be a wordpress’ bug: if it run on a server with a 64bit CPU, it can’t set the right language.

To solve the problem edit gettext.php (it is in wp-includes/ ), move at line 116 and where you find

$this->STREAM = $Reader;
$magic = $this->readint();
if ($magic == ($MAGIC1 & 0xFFFFFFFF) || $magic == ($MAGIC3 & 0xFFFFFFFF)) {

substitute it with

$this->STREAM = $Reader;
$magic = $this->readint() & 0xFFFFFFFF;
if ($magic == ($MAGIC1 & 0xFFFFFFFF) || $magic == ($MAGIC3 & 0xFFFFFFFF)) {

Upload file on your webspace and WordPress will be translated in the languages that you have choosen.

, , , , ,


How to add easily Technorati’s tags to Wordpress

wordpress No Comments »
italiano

To add technorati tags to yours blog is very easy:

  • download here the SimpleTags plugin for Wordpress
  • extract
  • edit simpletags.php and substitute the string pre_replacement and post_replacement like this
    $pre_replacement = '<p class="technorati_tags"> ';
    $post_replacement = '</p><br>';
  • save and upload the folder in /wp-content/plugins
  • make a Technorati icons or download one from here
  • upload the icon in the images folder
  • now edit the CSS (Presentation > Themes Editor >style.css) and add at the end of file
    .technorati_tags {
    background: url(images/technorati_icon.gif) no-repeat left center;
    padding-left: 20px;
    }

Finish!

Now, to add technorati tags, you have two choice:

1) at the end of each post insert the keywords that you want between
[ tags ] [ / tags ]
2) into the post write the main words between
[ tag ] [ / tag ]

, ,


WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login