27 svi.

Kako natjerati qTranslate da radi sa WP 3.9.1

Kažu ovako:

1. Open your qtranslate.php file, find the line:
QT_SUPPORTED_WP_VERSION and in the brackets you should enter 3.9.1. For example, if the line is:

define('QT_SUPPORTED_WP_VERSION', '3.8.1')

you should change it to:

define('QT_SUPPORTED_WP_VERSION', '3.9.1')

2. You need to download three php files from here
qtranslate_hooks.php
qtranslate_javascript.php
qtranslate_wphacks.php

Then you need to upload these 3 php files in your qtranslate plugin folder and replace the existing ones.

Izvor: WordPress Support Forum – qTranslate

A ovaj qTranslate fix je za slučaj da se prikaže sljedeća greška:

PHP Catchable fatal error: Object of class WP_Post could not be converted to string in ../wp-content/plugins/qtranslate/qtranslate_core.php on line 455

Taj je prokušan i radi! Dakle u qtranslate_core.php treba zamjeniti

function qtrans_dateFromPostForCurrentLanguage($old_date, $format ='', $before = '', $after = '') {

sa

function qtrans_dateFromPostForCurrentLanguage($old_date, $format ='') {

i

return qtrans_strftime(qtrans_convertDateFormat($format), mysql2date('U',$post->post_date), $old_date, $before, $after);

sa

return qtrans_strftime(qtrans_convertDateFormat($format), mysql2date('U',$post->post_date), $old_date); }
16 svi.

Instalacija WPML plugina

Preporuča se automatizirana instalacija upotrebom Installer plugina.

  • preuzmi Installer plugin na: wp-compatibility.com/installer-plugin
  • u WordPress korisničkom sučelju idi na: Dodaci > Dodaj novi (Plugins > Add New)
  • klikni na Upload i izaberi zip fajl koji si preuzeo sa Installer web stranice
  • aktiviraj dodatak (plugin)

Nakon toga idi na Postavke > Repositories (Settings>Repositories) i logiraj se u svoj WPML.org korisnički račun. Sad možeš učitavati i nadograđivati WPML dodatak.
Klikni na Install plugins from WPML.org. Prikazat će se sve dostupne komponente i uz njih Install Now (instaliraj sad)  ili Installed (instalirano).

Ovo gore se izgleda više ne preporuča, automatski update-ovi se ne nude ako je stvar tako instalirana.
Sad treba sljediti korake na ovom linku:
http://wpml.org/faq/install-wpml/

A prije toga (ako već imate instaliran WPML na gornji način) treba napraviti ovo:

Backup your website and database.
-Deactivate/Delete installer plugin.
-Deactivate WPML plugins.
-Login via FTP to your wp-content/plugins/ folder.
-Delete all WPML folders.
-Go to http://wpml.org/my-account/downloads/ download WPML and addons you need then extract them.
-Upload them via FTP to wp-content/plugins/ folder.
-Activate WPML v3.1.7.2 and follow these steps to register it wpml.org/faq/install-wpml/