Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Really helpfull! ??

    Althought I had to add some lines to the initialization (probably depending on the plug-ins activated).

    Here’s what I am using:

    add_filter('admin_head','myplugin_tinymce');
    
    function myplugin_tinymce()
    {
      wp_enqueue_script('common');
      wp_enqueue_script('jquery-color');
      wp_admin_css('thickbox');
      wp_print_scripts('post');
      wp_print_scripts('media-upload');
      wp_print_scripts('jquery');
      wp_print_scripts('jquery-ui-core');
      wp_print_scripts('jquery-ui-tabs');
      wp_print_scripts('tiny_mce');
      wp_print_scripts('editor');
      wp_print_scripts('editor-functions');
      add_thickbox();
      wp_tiny_mce();
      wp_admin_css();
      wp_enqueue_script('utils');
      do_action("admin_print_styles-post-php");
      do_action('admin_print_styles');
      remove_all_filters('mce_external_plugins');
    }

    Maybe it’s possible to tweak it a bit. And the HTML:

    <div id="poststuff">
    <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"><?php the_editor("<strong>hello world strong!</strong>"); ?>
    <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
    <?php wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
    </div>
    </div>

    Thanks!
    Carl

    Thread Starter calleo

    (@calleo)

    Thank you! Ok, this seems to apply (from the link above):

    echo "We deleted $count spams."
    
    It won't work! Remember, the strings for translation are extracted from the sources, so the translators will see work on the phrase: We deleted $count spams.. However in the application _e will be called with an argument like We deleted 49494 spams. and gettext  won't find a suitable translation of this one and will return its argument: We deleted 49494 spams.. Unfortunately, it isn't translated correctly.

    How does one translate the category names properly then?

Viewing 2 replies - 1 through 2 (of 2 total)