Duda con lenguaje de un theme

  • Autor Autor erpepee
  • Fecha de inicio Fecha de inicio
erpepee

erpepee

Beta
Verificado por Whatsapp
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Hola amigos,

Estoy utilizando una plantilla que por defecto venia en ingles y que yo he traducido al español con Poedit. El problema que me encuentro y que nunca me habia ocurrido es que cuando voy al archivo config. para cambiar el apartado define ('WPLANG', 'en_US'); no lo encuentro por ningún lado ni nada que haga referencia al idioma en ese archivo lo cual me tiene un poco liado.

En que otro sitio puede estar? Gracias!
 
Tu problema es que estás buscando el archivo config.php en el directorio de themes y no es allí donde va.

Generalmente, los themes los traduzco a mano. Es tedioso pero bastante divertido y es la mejor manera si este no viene con la opción de idioma.
 
El archivo que uso es el config.php de la carpeta /public_html y no hace referencias a idioma alguno


PHP:
<?php
/**
 * The base configurations of the WordPress.
 *
 * This file has the following configurations: MySQL settings, Table Prefix,
 * Secret Keys, WordPress Language, and ABSPATH. You can find more information
 * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
 * wp-config.php} Codex page. You can get the MySQL settings from your web host.
 *
 * This file is used by the wp-config.php creation script during the
 * installation. You don't have to use the web site, you can just copy this file
 * to "wp-config.php" and fill in the values.
 *
 * @package WordPress
 */
 
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('WP_CACHE', true); //Added by WP-Cache Manager
define( 'WPCACHEHOME', '/home/u906075910/public_html/wp-content/plugins/wp-super-cache/' ); //Added by WP-Cache Manager
define('DB_NAME', 'u906075910_heder');
 
/** MySQL database username */
define('DB_USER', 'u906075910_pehyj');
 
/** MySQL database password */
define('DB_PASSWORD', 'DuzyWuteMy');
 
/** MySQL hostname */
define('DB_HOST', '127.0.0.1');
 
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
 
/** 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
 */
define('AUTH_KEY',         'Z43Jut28o19fNrE40LnOol4HzYE6Zq04KWKxwYAA4x2dWZ9jW6SFjFwrp8ToaV8a');
define('SECURE_AUTH_KEY',  'FpjVLlEZMRNzMSnfYacuGZmFPiIAP7k61d6UjyYjxPmS1Rp7fts160E2ctpkJcjL');
define('LOGGED_IN_KEY',    'hCVFTLnyTuRYaGHZ3JzWFjnhxc24yNMUKzRZBxh4C6BSy3FK953zJx1GgUpT7cNn');
define('NONCE_KEY',        '2lIfQuoeRevYFnIkJsh4ANfjqKXFJNEk4zdiUz23JEBMgFkTcPSsTtdJylVFIWkg');
define('AUTH_SALT',        'E4L1bE5YqGv05dCv2kMpiGbJ3l2UIkeo26G3sy8kyCNQum8qwlUFsN8L5dVCYi8Q');
define('SECURE_AUTH_SALT', 'MUuVhDNp68U6c7FIJewIjCBH31sSV20rEqLt5KIXEM7PlK9Hx8s2wabOwhs8kz3d');
define('LOGGED_IN_SALT',   'KDOkJ5xZy4wpglEE7D4Fyqis4NhpvQm3V1rbZzyhfbRhco8E3IqLNmeMeFNHhudU');
define('NONCE_SALT',       'GvxebTSQp737l9Z5X7y0I3WHjIntnP5UaldSkMIiRqlGJfQub6a8hvv4ep6Cf51v');
 
/**
 * Other customizations.
 */
define('FS_METHOD','direct');define('FS_CHMOD_DIR',0777);define('FS_CHMOD_FILE',0666);
define('WP_TEMP_DIR',dirname(__FILE__).'/wp-content/uploads');
 
/**
 * Turn off automatic updates since these are managed upstream.
 */
define('AUTOMATIC_UPDATER_DISABLED', true);
 
 
/**#@-*/
/**
 * 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.
 */
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');
 
Seguramente te estás refiriendo a wp-config.php, porque Wordpress no trae el archivo confing.php.

Si no viene dicha linea, simplemente añádela en el wp-config.php antes de /* That's all, stop editing! Happy blogging. */.
 

Temas similares

Atrás
Arriba