• Hi!
    I have added a custom field to the category form. It works corectly and it is OK. My question is how to translate title and description of that field. There is a part of my php code from functions.php file:

    function content_block_name_on_category_add_form() {
      ?>
      <div class="form-field term-content-block-name-wrap">
        <label for="tag-content-block-name"><?php _e('Blok tre?ci'); ?></label>
        <input type="text" size="40" name="content-block-name" id="tag-content-block-name" value="">
        <p><?php _e('Wpisz tytu? bloku tre?ci.'); ?></p>
      </div>
      <?php
    }
    
    add_action('category_add_form_fields', 'content_block_name_on_category_add_form', 10, 2);

    As you can see title (Blok tre?ci) and description (Wpisz tytu? bloku tre?ci.) are in Polish.
    I would like the title and description to be displayed in English if I swich to English in the admin user profile.

    Probably I should do something with .po and .mo files. But I have no idea what. Could somebody give me clear steps how to do it?

    I would be very grateful for your help!
    Grzegorz

    • This topic was modified 2 years, 6 months ago by Jan Dembowski.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Translating title and description of custom field in category form’ is closed to new replies.