Making WordPress.org

Ticket #1078: jumpstart-rosetta-themes.diff

File jumpstart-rosetta-themes.diff, 946 bytes (added by yoavf, 9 years ago)
  • wp-content/mu-plugins/translator-jumpstart.php

     
     1<?php
     2function prepare_translator_jumpstart() {
     3        require __DIR__ . '/../../translator/translator-jumpstart.php';
     4        Translator_Jumpstart::init();
     5}
     6
     7function setup_translator_project_paths( $paths ) {
     8        $paths[] = 'meta/rosetta';
     9
     10        //TODO - only add if on the theme browser
     11        $paths[] = 'meta/themes';
     12
     13        return $paths;
     14}
     15
     16add_filter( 'translator_project_paths', 'setup_translator_project_paths' );
     17add_action( 'init', 'prepare_translator_jumpstart' );