Making WordPress.org


Ignore:
Timestamp:
07/10/2015 05:29:36 PM (9 years ago)
Author:
ocean90
Message:

Translate: Improve custom routes.

  • Don't register custom routes for API request.
  • Move locale overview to translate.wordpress.org, no redirect anymore.
  • Replace /languages prefix with /locale.
  • Redirect old /languages URLs to the new route.
  • Rename custom templates.

see #994, #1091.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/public_html/gp-templates/locale-projects.php

    r1706 r1721  
    33
    44$breadcrumb   = array();
    5 $breadcrumb[] = gp_link_get( '/languages', __( 'Locales' ) );
     5$breadcrumb[] = gp_link_get( '/', __( 'Locales' ) );
    66$breadcrumb[] = esc_html( $locale->english_name );
    77gp_breadcrumb( $breadcrumb );
     
    2929                                '<option name="%s" data-project-url="%s"%s>%s</option>',
    3030                                $variant,
    31                                 esc_url( gp_url_join( '/languages', $locale_slug, $variant, $project->slug ) ),
     31                                esc_url( gp_url_join( '/locale', $locale_slug, $variant, $project->slug ) ),
    3232                                ( $set_slug == $variant ) ? ' selected="selected"' : '',
    3333                                ucfirst( $variant )
     
    5959            printf(
    6060                '<li><a href="%s"%s>%s</a></li>',
    61                 gp_url_join( '/languages', $locale_slug, $set_slug, $top_level_project->slug ),
     61                gp_url_join( '/locale', $locale_slug, $set_slug, $top_level_project->slug ),
    6262                ( $top_level_project->path == $project_path ) ? ' class="current"' : '',
    6363                $top_level_project->name
     
    8383        }
    8484
    85         $project_url = gp_url_join( '/languages', $locale_slug, $set_slug, $sub_project->path );
     85        $project_url = gp_url_join( '/locale', $locale_slug, $set_slug, $sub_project->path );
    8686
    8787        $project_icon = '';
Note: See TracChangeset for help on using the changeset viewer.