Con Loco-Translate ho tradotto un plugin ed la traduzione in locale funziona. Ho poi copiato i file .mo e .po nella cartella Languages del plugin sul server, ma qui non traduce, come mai?
Printable View
Con Loco-Translate ho tradotto un plugin ed la traduzione in locale funziona. Ho poi copiato i file .mo e .po nella cartella Languages del plugin sul server, ma qui non traduce, come mai?
Quale sarebbe il plugin in questione? Riporta anche l'indirizzo dei file PO ed MO che hai caricato.
Il plugin è Subscribe2 i file subscribe2-it_IT.po subscribe2-it_IT.mo
Ho già provato anche a disattivare i plugin tranne questi 2. In Loco-translate la traduzione risulta, quindi i file li trova.
Non riesco a riprodurre il problema, io visualizzo la traduzione correttamente su un blog di prova.
Hai provato a disabilitare tutti gli altri plugin (lasciando attivo anche Loco-Translate)?
In rete ho lasciato attivo solo Loco-translate e Subscribe2, ma non funziona lo stesso. In locale funziona tutto senza problemi con i plugin attivi.
Hai inserito la traduzione come custom, con questo plugin sembra non sia possibile questo tipo di caricamento. Inseriscila come traduzione di sistema.
Inoltre, visto che hai tradotto le varie stringhe del plugin, perché non contatti l'autore affinché integri la tua traduzione in modo che sia disponibile a tutti gli utilizzatori italiani del plugin?
Anche in locale è Custom. Il plugin era già tradotto l'ho scaricato dal suo sito, io l'ho completato.
C'è il file, eccolo:
Codice PHP:
<?php
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the
* installation. You don't have to use the web site, you can
* copy this file to "wp-config.php" and fill in the values.
*
* This file contains the following configurations:
*
* * MySQL settings
* * Secret keys
* * Database table prefix
* * ABSPATH
*
* @link https://codex.wordpress.org/Editing_wp-config.php
*
* @package WordPress
*/
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'DB');
/** MySQL database username */
define('DB_USER', 'USER');
/** MySQL database password */
define('DB_PASSWORD', 'XXXXX');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8mb4');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
/**#@+
* Authentication Unique Keys and Salts.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
*
* @since 2.6.0
*/
/*-------CHIAVI--------*/
/**#@-*/
/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = 'wp_';
/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*
* For information on other constants that can be used for debugging,
* visit the Codex.
*
* @link https://codex.wordpress.org/Debugging_in_WordPress
*/
define('WP_DEBUG', false);
/* That's all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');