Jump to content
Fórum Script Brasil
  • 0

Adicionar "WP Translatable strings" em "Multidimensiona


fabrix

Question

Estou tentando adicionar suporte a multi-idiomas em um plugin wordpres com "Translatable strings" http://codex.wordpress.org/I18n_for_WordPress_Developers

Isto é feito colocando todo o texto visivel em:

__('texto aqui', 'text_domain')
ou
_e('String', 'text_domain')
So que stou tentando fazer isso em Arrays multimensional e não não estou conseguindo de forma alguma:
<?php
class fdx_tests extends fdx_class {

static $security_tests = array(
          'ver_check' => array('title' => 'Check if WordPress core is up to date',
          'msg_ok' => '<span class="sn-success">You are using the latest version of WordPress.</span>',
           'msg_bad' => '<span class="sn-error">You are not using the latest version of WordPress.</span>'
          ),

),
.
.
.....

Onde esta por exemplo o texto "Check if WordPress core is up to date" substituir esse texto por "Translatable strings"

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...