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 edited

Legend:

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

    r1685 r1721  
    33
    44$breadcrumb   = array();
    5 $breadcrumb[] = gp_link_get( '/languages', __( 'Locales' ) );
    6 $breadcrumb[] = gp_link_get( gp_url_join( '/languages', $locale_slug, $set_slug), esc_html( $locale->english_name ) );
     5$breadcrumb[] = gp_link_get( '/', __( 'Locales' ) );
     6$breadcrumb[] = gp_link_get( gp_url_join( '/locale', $locale_slug, $set_slug), esc_html( $locale->english_name ) );
    77$breadcrumb[] = $sub_project->name;
    88gp_breadcrumb( $breadcrumb );
     
    3636                                    '<option name="%s" data-project-url="%s"%s>%s</option>',
    3737                                    $variant,
    38                                     esc_url( gp_url_join( '/languages', $locale_slug, $variant, $sub_project->path ) ),
     38                                    esc_url( gp_url_join( '/locale', $locale_slug, $variant, $sub_project->path ) ),
    3939                                    ( $set_slug == $variant ) ? ' selected="selected"' : '',
    4040                                    ucfirst( $variant )
Note: See TracChangeset for help on using the changeset viewer.