Making WordPress.org

Changeset 3003


Ignore:
Timestamp:
04/25/2016 03:59:44 PM (9 years ago)
Author:
ocean90
Message:

Translate: Add a view to check translation consistency.

Available at https://translate.wordpress.org/consistency.

See #1682.

Location:
sites/trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/public_html/gp-templates-new/style.css

    r2864 r3003  
    201201.editor .textareas textarea {
    202202    width: 100%;
     203    -webkit-box-sizing: border-box;
     204    -moz-box-sizing: border-box;
    203205    box-sizing: border-box;
    204206}
     
    208210    padding-left: 2em;
    209211    width: 40%;
     212    -webkit-box-sizing: border-box;
     213    -moz-box-sizing: border-box;
    210214    box-sizing: border-box;
    211215}
     
    266270    position: relative;
    267271    -webkit-box-sizing: border-box;
     272    -moz-box-sizing: border-box;
    268273    box-sizing: border-box;
    269274    margin: 30px 0;
     
    371376    background: #fff;
    372377    -webkit-box-sizing: border-box;
     378    -moz-box-sizing: border-box;
    373379    box-sizing: border-box;
    374380}
     
    497503    background: #fff;
    498504    -webkit-box-sizing: border-box;
     505    -moz-box-sizing: border-box;
    499506    box-sizing: border-box;
    500507}
     
    513520    background: #fff;
    514521    -webkit-box-sizing: border-box;
     522    -moz-box-sizing: border-box;
    515523    box-sizing: border-box;
    516524}
     
    601609    text-align: center;
    602610    -webkit-box-sizing: border-box;
     611    -moz-box-sizing: border-box;
    603612    box-sizing: border-box;
    604613}
     
    652661    background: #fff;
    653662    -webkit-box-sizing: border-box;
     663    -moz-box-sizing: border-box;
    654664    box-sizing: border-box;
    655665}
     
    725735    right: 15px;
    726736    -webkit-transform: translateY(-50%);
     737    -ms-transform: translateY(-50%);
    727738    transform: translateY(-50%);
    728739    font-size: 20px;
     
    804815    border-left: 1px solid #eee;
    805816    padding: 5px 0 5px 12px;
     817    -webkit-box-shadow: inset 1px 0 0 #fff;
    806818    box-shadow: inset 1px 0 0 #fff;
    807819    -webkit-font-smoothing: antialiased;
     
    9941006    padding: 10px;
    9951007    background: #f9f9f9;
     1008    -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.05);
    9961009    box-shadow: inset 0 1px 0 rgba(0,0,0,.05);
    9971010}
     
    10111024.stats-table tbody td {
    10121025    padding: 10px 0;
     1026    -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
    10131027    box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
    10141028}
     
    11481162    height: 12px;
    11491163    border: 3px solid transparent;
     1164    -webkit-border-radius: 2px;
    11501165    border-radius: 2px;
    11511166}
     
    11761191        -moz-column-count: 2;
    11771192        -moz-column-gap: 3%;
     1193        -webkit-column-count: 2;
     1194        -moz-column-count: 2;
    11781195        column-count: 2;
     1196        -webkit-column-gap: 3%;
     1197        -moz-column-gap: 3%;
    11791198        column-gap: 3%;
    11801199    }
     
    11891208    background: #fff;
    11901209    -webkit-box-sizing: border-box;
     1210    -moz-box-sizing: border-box;
    11911211    box-sizing: border-box;
    11921212    -webkit-column-break-inside: avoid;
     
    14101430    }
    14111431}
     1432
     1433.consistency-form {
     1434    margin: 30px 0;
     1435    text-align: center;
     1436}
     1437
     1438.consistency-form-search,
     1439.consistency-form-locale {
     1440    height: 30px;
     1441    padding: 3px;
     1442    color: #666;
     1443    -webkit-box-sizing: border-box;
     1444    -moz-box-sizing: border-box;
     1445    box-sizing: border-box;
     1446    font-size: 15px;
     1447    line-height: 1;
     1448    color: #333;
     1449    border: 0;
     1450    outline: 1px solid #ccc;
     1451    background-color: white;
     1452    outline-offset: 0;
     1453    margin: 0 3px;
     1454}
     1455
     1456.consistency-form-search {
     1457    width: 300px;
     1458}
     1459
     1460.consistency-form-locale {
     1461    width: 150px;
     1462}
     1463
     1464.consistency-form-submit {
     1465    font-weight: 200;
     1466    font-size: 15px;
     1467    line-height: 1;
     1468    height: 30px;
     1469    background-color: #21759b;
     1470    background-image: -webkit-gradient(linear, left top, left bottom, from(#2a95c5), to(#21759b));
     1471    background-image: -webkit-linear-gradient(top, #2a95c5, #21759b);
     1472    background-image: linear-gradient(to bottom, #2a95c5, #21759b);
     1473    border: 1px solid #21759b;
     1474    border-bottom-color: #1e6a8d;
     1475    -webkit-box-shadow: inset 0 1px 0 rgba(120, 200, 230, 0.5);
     1476    box-shadow: inset 0 1px 0 rgba(120, 200, 230, 0.5);
     1477    color: #fff;
     1478    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
     1479    padding: 3px 10px;
     1480    cursor: pointer;
     1481}
     1482
     1483.consistency-form-submit:hover {
     1484    background-color: #278ab7;
     1485    background-image: -webkit-gradient(linear, left top, left bottom, from(#2e9fd2), to(#21759b));
     1486    background-image: -webkit-linear-gradient(top, #2e9fd2, #21759b);
     1487    background-image: linear-gradient(to bottom, #2e9fd2, #21759b);
     1488    border-color: #1b607f;
     1489    -webkit-box-shadow: inset 0 1px 0 rgba(120, 200, 230, 0.6);
     1490    box-shadow: inset 0 1px 0 rgba(120, 200, 230, 0.6);
     1491}
     1492
     1493.consistency-form-filters {
     1494    margin-top: 8px;
     1495}
     1496
     1497.consistency-form-filters label {
     1498    border-right: 1px solid #ccc;
     1499    padding: 0 15px 0 10px;
     1500    display: inline-block;
     1501}
     1502
     1503.consistency-form-filters label:last-child {
     1504    border: none;
     1505}
     1506
     1507.consistency-table {
     1508    width: 100%;
     1509    border-collapse: collapse;
     1510    table-layout: fixed;
     1511    margin: 30px 0;
     1512}
     1513
     1514.consistency-table th {
     1515    width: 50%;
     1516    font-weight: bold;
     1517    text-align: center;
     1518    padding: 10px 0;
     1519}
     1520
     1521.consistency-table tr {
     1522    border-bottom: 1px solid #eee;
     1523}
     1524
     1525.consistency-table td {
     1526    padding: 10px 5px 0 0;
     1527    vertical-align: top;
     1528}
     1529
     1530.consistency-table .string.rtl {
     1531    direction: rtl;
     1532}
     1533
     1534.consistency-table .meta {
     1535    margin-top: 10px;
     1536    opacity: .6;
     1537}
     1538
     1539.translations-unique {
     1540    margin: 5px;
     1541}
     1542
     1543.translations-unique .space {
     1544    background: #cbcdce;
     1545    white-space: pre;
     1546    opacity: .5;
     1547}
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc/class-plugin.php

    r3002 r3003  
    107107            GP::$router->prepend( "/locale/$locale/$path/$path", array( __NAMESPACE__ . '\Routes\Locale', 'get_locale_projects' ) );
    108108            GP::$router->prepend( "/locale/$locale/$path/$path/$path", array( __NAMESPACE__ . '\Routes\Locale', 'get_locale_project' ) );
    109             GP::$router->prepend( '/stats/?', array( __NAMESPACE__ . '\Routes\Stats', 'get_stats_overview' ) );
     109            GP::$router->prepend( '/stats', array( __NAMESPACE__ . '\Routes\Stats', 'get_stats_overview' ) );
     110            GP::$router->prepend( '/consistency', array( __NAMESPACE__ . '\Routes\Consistency', 'get_search_form' ) );
     111
    110112            $project = '([^/]*)/?';
    111113            GP::$router->prepend( "/projects/wp-plugins/$project", array( __NAMESPACE__ . '\Routes\WP_Plugins', 'get_plugin_projects' ) );
Note: See TracChangeset for help on using the changeset viewer.