Suporte » Desenvolvendo com WordPress » LANG não aparece

  • Olá,

    Ao acessar via ftp, public_html, opção wp-config.php, lá não existe a opção LANG, para mim colocar pt_BR.

    O que pode estar acontecendo?

    Atenciosamente,
    Ícaro

Visualizando 10 respostas - 1 até 10 (de um total de 10)
  • Criador do tópico Icaroferreira

    (@icaroferreira)

    Veja o que aparece para mim dentro deste arquivo:

    <?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(‘DB_NAME’, ‘adminsou_wp’);

    /** MySQL database username */
    define(‘DB_USER’, ‘adminsou_wp’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘Gz60u*1m’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    /** 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’, ‘rCY1WqgGuitlY320QSMLAbiWKuq2VV57F86GTLPCNvJ8Wf0Po7FGu3To1LACXneP’);
    define(‘SECURE_AUTH_KEY’, ‘Bnmj2P3O0qhLLYlwrONRrQnaFnar67r2NvGlcSiLr6WDboCzx3pimyWFMtJQllVs’);
    define(‘LOGGED_IN_KEY’, ‘CXxljn45Vzte0zH8YF1WmSXmsCGrt5jbgrcWn3L3t80_ciiT1LMnyVa7kEz5D1d5’);
    define(‘NONCE_KEY’, ‘eY93vrTjhEXrhJe5oJMaTgY7WCJtnIEujESuR6JnBTmh4i_wim8NspXDzKpI9oRv’);
    define(‘AUTH_SALT’, ‘KzB9JA4VwL7f2uoRfjbbCic2zZx7nvtT3BP1zaXZhek6ZuSKUUviZxgXjy5LA5Xx’);
    define(‘SECURE_AUTH_SALT’, ‘VcGiJBwQge_ZGdKKIJnzq7TzOqr9T6v7Pcm8PB6AzcngVtDqjkLwsuOziYPEXbHL’);
    define(‘LOGGED_IN_SALT’, ‘XgHXv0uX4Ca5_xUChZsjbTSyj9fRk5o9s71RqhgqFjidRlxNS81bPN2zulz6n7Qx’);
    define(‘NONCE_SALT’, ‘2he765vM2mzAW6DzGkv0Qoz6HeUXBkOX3H0KA4HmLbzFbsxUr6ZShAnCT7OIFWwx’);

    /**#@-*/

    /**
    * 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’);

    Moderador Míriam de Paula

    (@miriamdepaula)

    Já olhou nas configurações no painel? Agora tem essa opção por lá…

    Criador do tópico Icaroferreira

    (@icaroferreira)

    Obrigado pela resposta, mas, onde exatamente você se refere ?

    Moderador Míriam de Paula

    (@miriamdepaula)

    CONFIGURAÇÕES > GERAL
    Role a página até o final … e está lá a opção de troca de idiomas.

    Abs.
    Miriam de Paula

    Criador do tópico Icaroferreira

    (@icaroferreira)

    Não vi esta informação, esta se referindo ao painel do wordpress ?

    Poderia por favor me passar informações mais detalhadas ?

    Moderador Míriam de Paula

    (@miriamdepaula)

    Sim meu anjo! Painel do WordPress, menu CONFIGURAÇÕES > GERAL, rola a página até o final, pertinho do botão de Salvar, você vai ver um campo select com os idiomas.

    Mas, na boa… se a opção não existir no painel, por que você não insere a constante no wp-config.php, que já devia existir por padrão (não sei porque não está lá, mas enfim)

    define(‘WP_LANG’, ‘pt_BR’);

    Informações mais detalhadas você encontra no Codex: http://codex.wordpress.org/pt-br:Editando_wp-config.php#Idioma_e_Diret.C3.B3rio_de_Idioma

    Criador do tópico Icaroferreira

    (@icaroferreira)

    O meu não tem esta opção, ao rolar, antes de salvar, as opções que aparece são:

    Escolher o formato da data e escolher o dia que começa a semana. =(

    Moderador Míriam de Paula

    (@miriamdepaula)

    Então abra o wp-config.php e insira a constante que te falei acima…

    define(‘WP_LANG’, ‘pt_BR’);

    Informações mais detalhadas você encontra no Codex: http://codex.wordpress.org/pt-br:Editando_wp-config.php#Idioma_e_Diret.C3.B3rio_de_Idioma

    Criador do tópico Icaroferreira

    (@icaroferreira)

    Ao acessar o wp-config.php, aparece o seguinte conteúdo abaixo, então, onde eu deveria inserir: define(‘WP_LANG’, ‘pt_BR’); ?

    <?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(‘DB_NAME’, ‘adminsou_wp’);

    /** MySQL database username */
    define(‘DB_USER’, ‘adminsou_wp’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘Gz60u*1m’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    /** 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’, ‘rCY1WqgGuitlY320QSMLAbiWKuq2VV57F86GTLPCNvJ8Wf0Po7FGu3To1LACXneP’);
    define(‘SECURE_AUTH_KEY’, ‘Bnmj2P3O0qhLLYlwrONRrQnaFnar67r2NvGlcSiLr6WDboCzx3pimyWFMtJQllVs’);
    define(‘LOGGED_IN_KEY’, ‘CXxljn45Vzte0zH8YF1WmSXmsCGrt5jbgrcWn3L3t80_ciiT1LMnyVa7kEz5D1d5’);
    define(‘NONCE_KEY’, ‘eY93vrTjhEXrhJe5oJMaTgY7WCJtnIEujESuR6JnBTmh4i_wim8NspXDzKpI9oRv’);
    define(‘AUTH_SALT’, ‘KzB9JA4VwL7f2uoRfjbbCic2zZx7nvtT3BP1zaXZhek6ZuSKUUviZxgXjy5LA5Xx’);
    define(‘SECURE_AUTH_SALT’, ‘VcGiJBwQge_ZGdKKIJnzq7TzOqr9T6v7Pcm8PB6AzcngVtDqjkLwsuOziYPEXbHL’);
    define(‘LOGGED_IN_SALT’, ‘XgHXv0uX4Ca5_xUChZsjbTSyj9fRk5o9s71RqhgqFjidRlxNS81bPN2zulz6n7Qx’);
    define(‘NONCE_SALT’, ‘2he765vM2mzAW6DzGkv0Qoz6HeUXBkOX3H0KA4HmLbzFbsxUr6ZShAnCT7OIFWwx’);

    /**#@-*/

    /**
    * 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’);

    Moderador Míriam de Paula

    (@miriamdepaula)

    Meu anjo, você pode inserir o código depois de:

    define(‘WP_DEBUG’, false);

    Abs.

Visualizando 10 respostas - 1 até 10 (de um total de 10)
  • O tópico ‘LANG não aparece’ está fechado para novas respostas.