Plugin Directory

Changeset 3181736

Timestamp:
11/04/2024 06:43:30 PM (16 months ago)
Author:
pedromendonca
Message:

Update to version 1.4.10 from GitHub

Location:
gp-convert-pt-ao90
Files:
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gp-convert-pt-ao90/tags/1.4.10/assets/css/style.css

    r3171568 r3181736  
    22 * Temporary override while GlotPress with Variants doesn't have this CSS.
    33 */
    4 table.translations tr td.original,
    5 table.translations tr td.translation {
    6     width: 45%;
    7     vertical-align: middle;
     4table.translations tr td.original, table.translations tr td.translation {
     5  width: 45%;
     6  vertical-align: middle;
    87}
    98
    10 table.translations tr td.original small,
    11 table.translations tr td.translation small {
    12     font-size: 0.75rem;
     9table.translations tr td.original small, table.translations tr td.translation small {
     10  font-size: 0.75rem;
    1311}
    1412
    15 table.translations tr td.original ul,
    16 table.translations tr td.translation ul {
    17     margin: 0;
    18     padding: 0;
    19     list-style: none;
     13table.translations tr td.original ul, table.translations tr td.translation ul {
     14  margin: 0;
     15  padding: 0;
     16  list-style: none;
    2017}
    2118
    22 table.translations tr td.original ul li:not(:last-child),
    23 table.translations tr td.translation ul li:not(:last-child) {
    24     padding-bottom: 0.25em;
    25     border-bottom: 1px solid #e4e4e4;
     19table.translations tr td.original ul li:not(:last-child), table.translations tr td.translation ul li:not(:last-child) {
     20  padding-bottom: 0.25em;
     21  border-bottom: 1px solid #e4e4e4;
    2622}
    2723
    2824table.translations tr td.translation .translation-text ins {
    29     background-color: #68de7c;
    30     -webkit-text-decoration: none;
    31     text-decoration: none;
    32     display: inline-block;
     25background-color: #68de7c;
     26-webkit-text-decoration: none;
     27text-decoration: none;
     28display: inline-block;
    3329}
    3430
    3531table.translation-sets tr th.gp-column-locale {
    36     min-width: 400px;
    37     width: 45%;
     32min-width: 400px;
     33width: 45%;
    3834}
    3935
    4036table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update span.translation-set-icon {
    41     margin-left: 0.5em;
    42     vertical-align: middle;
    43     font-size: 1em;
    44     display: inline-block;
    45     line-height: normal;
    46     color: var(--gp-color-fg-muted);
     37margin-left: 0.5em;
     38vertical-align: middle;
     39font-size: 1em;
     40display: inline-block;
     41line-height: normal;
     42color: var(--gp-color-fg-muted);
    4743}
    4844
    4945table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update span.translation-set-icon.edit-status {
    50     display: none;
     46display: none;
    5147}
    5248
    5349table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button {
    54     margin-left: 0.5em;
    55     vertical-align: bottom;
     50margin-left: 0.5em;
     51vertical-align: bottom;
    5652}
    5753
    58 table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled):hover span.icon,
    59 table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled):focus span.icon,
    60 table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled).active span.icon {
    61     color: var(--gp-color-btn-hover-text);
    62     -webkit-transform: rotateZ(180deg);
    63     -ms-transform: rotate(180deg);
    64     transform: rotateZ(180deg);
     54table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled):hover span.icon, table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled):focus span.icon, table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled).active span.icon {
     55  color: var(--gp-color-btn-hover-text);
     56  -webkit-transform: rotateZ(180deg);
     57  -ms-transform: rotate(180deg);
     58  transform: rotateZ(180deg);
    6559}
    6660
    6761table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:disabled {
    68     color: var(--gp-color-fg-default) !important;
     62color: var(--gp-color-fg-default) !important;
    6963}
    7064
    7165table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button span.icon {
    72     -webkit-transition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1) 0s;
    73     transition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1) 0s;
     66-webkit-transition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1) 0s;
     67transition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1) 0s;
    7468}
    7569
    7670table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button span.label {
    77     margin-left: 0.5em;
    78     margin-right: 0.5em;
    79     vertical-align: middle;
    80     text-align: left;
    81     display: inline-block;
    82     line-height: normal;
     71margin-left: 0.5em;
     72margin-right: 0.5em;
     73vertical-align: middle;
     74text-align: left;
     75display: inline-block;
     76line-height: normal;
    8377}
    8478
    8579table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button.updating span.icon {
    86     color: var(--gp-color-dark-orange);
    87     -webkit-animation: rotation 2s infinite linear;
    88     animation: rotation 2s infinite linear;
     80color: var(--gp-color-dark-orange);
     81-webkit-animation: rotation 2s infinite linear;
     82animation: rotation 2s infinite linear;
    8983}
    9084
    9185@-webkit-keyframes rotation {
    9286
    93     0% {
    94         -webkit-transform: rotate(0deg);
    95         transform: rotate(0deg);
    96     }
     870% {
     88-webkit-transform: rotate(0deg);
     89transform: rotate(0deg);
     90}
    9791
    98     100% {
    99         -webkit-transform: rotate(360deg);
    100         transform: rotate(360deg);
    101     }
     92100% {
     93-webkit-transform: rotate(360deg);
     94transform: rotate(360deg);
     95}
    10296}
    10397
    10498@keyframes rotation {
    10599
    106     0% {
    107         -webkit-transform: rotate(0deg);
    108         transform: rotate(0deg);
    109     }
     1000% {
     101-webkit-transform: rotate(0deg);
     102transform: rotate(0deg);
     103}
    110104
    111     100% {
    112         -webkit-transform: rotate(360deg);
    113         transform: rotate(360deg);
    114     }
     105100% {
     106-webkit-transform: rotate(360deg);
     107transform: rotate(360deg);
     108}
    115109}
    116110
    117111table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button.success span.icon {
    118     color: var(--gp-color-green);
     112color: var(--gp-color-green);
    119113}
    120114
    121115table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button.fail span.icon {
    122     color: var(--gp-color-red);
     116color: var(--gp-color-red);
    123117}
    124118
    125119table.translation-sets tr.variant td:first-child {
    126     color: var(--gp-color-accent-fg);
     120color: var(--gp-color-accent-fg);
    127121}
    128122
    129123table.translation-sets tr.variant td:first-child::before {
    130     font-family: dashicons;
    131     content: "\f139";
    132     vertical-align: middle;
     124font-family: dashicons;
     125content: "\f139";
     126vertical-align: middle;
    133127}
    134128
    135129table.translation-sets tr[data-editable="false"] {
    136     background-color: var(--gp-color-secondary-100);
     130background-color: var(--gp-color-secondary-100);
    137131}
    138132
    139133table.translation-sets tr[data-editable="false"]:hover {
    140     background-color: var(--gp-color-secondary-200);
     134background-color: var(--gp-color-secondary-200);
    141135}
    142136
    143137table.translation-sets tr[data-editable="false"] td:first-child span.gp-convert-pt-ao90-update span.translation-set-icon.edit-status {
    144     display: inline-block;
     138display: inline-block;
    145139}
  • gp-convert-pt-ao90/tags/1.4.10/assets/css/style.min.css.map

    r3171568 r3181736  
    1 {"version":3,"sources":["style.css"],"names":[],"mappings":"AAGA,uEAGC,qBAAsB,CADtB,SAED,CAEA,mFAEC,gBACD,CAEA,6EAIC,eAAgB,CAFhB,QAAS,CACT,SAED,CAEA,qHAGC,+BAAgC,CADhC,oBAED,CAEA,2DACC,wBAAyB,CAGzB,oBAAqB,CAFrB,4BAA6B,CAC7B,oBAED,CAEA,8CACC,eAAgB,CAChB,SACD,CAEA,kGAMC,8BAA+B,CAF/B,oBAAqB,CADrB,aAAc,CAEd,kBAAmB,CAJnB,gBAAkB,CAClB,qBAKD,CAEA,8GACC,YACD,CAEA,gHACC,gBAAkB,CAClB,qBACD,CAEA,8aAGC,oCAAqC,CACrC,gCAAkC,CAClC,4BAA6B,CAC7B,wBACD,CAEA,yHACC,0CACD,CAEA,0HACC,2DAAoE,CACpE,mDACD,CAEA,2HAKC,oBAAqB,CACrB,kBAAmB,CALnB,gBAAkB,CAClB,iBAAmB,CAEnB,eAAgB,CADhB,qBAID,CAEA,mIAEC,6CAA8C,CAC9C,qCAAsC,CAFtC,iCAGD,CAEA,4BAEC,GACC,8BAA+B,CAC/B,sBACD,CAEA,GACC,+BAAiC,CACjC,uBACD,CACD,CAEA,oBAEC,GACC,8BAA+B,CAC/B,sBACD,CAEA,GACC,+BAAiC,CACjC,uBACD,CACD,CAEA,kIACC,2BACD,CAEA,+HACC,yBACD,CAEA,iDACC,+BACD,CAEA,wDAEC,eAAgB,CADhB,qBAAsB,CAEtB,qBACD,CAEA,+CACC,8CACD,CAEA,qDACC,8CACD,CAEA,mIACC,oBACD","file":"style.min.css","sourcesContent":["/**\n * Temporary override while GlotPress with Variants doesn't have this CSS.\n */\ntable.translations tr td.original,\ntable.translations tr td.translation {\n\twidth: 45%;\n\tvertical-align: middle;\n}\n\ntable.translations tr td.original small,\ntable.translations tr td.translation small {\n\tfont-size: 0.75rem;\n}\n\ntable.translations tr td.original ul,\ntable.translations tr td.translation ul {\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n}\n\ntable.translations tr td.original ul li:not(:last-child),\ntable.translations tr td.translation ul li:not(:last-child) {\n\tpadding-bottom: 0.25em;\n\tborder-bottom: 1px solid #e4e4e4;\n}\n\ntable.translations tr td.translation .translation-text ins {\n\tbackground-color: #68de7c;\n\t-webkit-text-decoration: none;\n\ttext-decoration: none;\n\tdisplay: inline-block;\n}\n\ntable.translation-sets tr th.gp-column-locale {\n\tmin-width: 400px;\n\twidth: 45%;\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update span.translation-set-icon {\n\tmargin-left: 0.5em;\n\tvertical-align: middle;\n\tfont-size: 1em;\n\tdisplay: inline-block;\n\tline-height: normal;\n\tcolor: var(--gp-color-fg-muted);\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update span.translation-set-icon.edit-status {\n\tdisplay: none;\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button {\n\tmargin-left: 0.5em;\n\tvertical-align: bottom;\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled):hover span.icon,\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled):focus span.icon,\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled).active span.icon {\n\tcolor: var(--gp-color-btn-hover-text);\n\t-webkit-transform: rotateZ(180deg);\n\t-ms-transform: rotate(180deg);\n\ttransform: rotateZ(180deg);\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:disabled {\n\tcolor: var(--gp-color-fg-default) !important;\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button span.icon {\n\t-webkit-transition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1) 0s;\n\ttransition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1) 0s;\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button span.label {\n\tmargin-left: 0.5em;\n\tmargin-right: 0.5em;\n\tvertical-align: middle;\n\ttext-align: left;\n\tdisplay: inline-block;\n\tline-height: normal;\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button.updating span.icon {\n\tcolor: var(--gp-color-dark-orange);\n\t-webkit-animation: rotation 2s infinite linear;\n\tanimation: rotation 2s infinite linear;\n}\n\n@-webkit-keyframes rotation {\n\n\t0% {\n\t\t-webkit-transform: rotate(0deg);\n\t\ttransform: rotate(0deg);\n\t}\n\n\t100% {\n\t\t-webkit-transform: rotate(360deg);\n\t\ttransform: rotate(360deg);\n\t}\n}\n\n@keyframes rotation {\n\n\t0% {\n\t\t-webkit-transform: rotate(0deg);\n\t\ttransform: rotate(0deg);\n\t}\n\n\t100% {\n\t\t-webkit-transform: rotate(360deg);\n\t\ttransform: rotate(360deg);\n\t}\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button.success span.icon {\n\tcolor: var(--gp-color-green);\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button.fail span.icon {\n\tcolor: var(--gp-color-red);\n}\n\ntable.translation-sets tr.variant td:first-child {\n\tcolor: var(--gp-color-accent-fg);\n}\n\ntable.translation-sets tr.variant td:first-child::before {\n\tfont-family: dashicons;\n\tcontent: \"\\f139\";\n\tvertical-align: middle;\n}\n\ntable.translation-sets tr[data-editable=\"false\"] {\n\tbackground-color: var(--gp-color-secondary-100);\n}\n\ntable.translation-sets tr[data-editable=\"false\"]:hover {\n\tbackground-color: var(--gp-color-secondary-200);\n}\n\ntable.translation-sets tr[data-editable=\"false\"] td:first-child span.gp-convert-pt-ao90-update span.translation-set-icon.edit-status {\n\tdisplay: inline-block;\n}\n"]}
     1{"version":3,"sources":["style.css"],"names":[],"mappings":"AAGA,uEAdisplay: inline-block;\n}\n"]}
  • gp-convert-pt-ao90/tags/1.4.10/gp-convert-pt-ao90.php

    r3171568 r3181736  
    1818 * Plugin URI:        https://wordpress.org/plugins/gp-convert-pt-ao90/
    1919 * Description:       Language tool for GlotPress to convert text according to the Portuguese Language Orthographic Agreement of 1990 (PT AO90).
    20  * Version:           1.4.9
     20 * Version:           1.4.
    2121 * Requires at least: 5.3
    22  * Tested up to:      6.6
     22 * Tested up to:      6.
    2323 * Requires PHP:      7.4
    2424 * Requires Plugins:  glotpress
  • gp-convert-pt-ao90/tags/1.4.10/gp-templates/translation-row-preview.php

    r3171568 r3181736  
    7171    <td class="translation foreign-text">
    7272        <?php
     73
    7374        if ( $can_edit ) {
    7475            $edit_text = __( 'Double-click to add', 'gp-convert-pt-ao90' );
     
    7677            $edit_text = __( 'You are not allowed to add a translation.', 'gp-convert-pt-ao90' );
    7778        } else {
    78             $edit_text = sprintf( /* translators: %s: URL. */ __( 'You <a href="%s">have to log in</a> to add a translation.', 'gp-convert-pt-ao90' ), esc_url( wp_login_url( gp_url_current() ) ) );
     79            $edit_text = sprintf(
     80                /* translators: %s: URL. */
     81                __( 'You <a href="%s">have to log in</a> to add a translation.', 'gp-convert-pt-ao90' ),
     82                esc_url( wp_login_url( gp_url_current() ) )
     83            );
    7984        }
    8085
    8186        $missing_text = "<span class='missing'>$edit_text</span>";
     87
    8288        if ( ! count( array_filter( $translation->translations, 'gp_is_not_null' ) ) ) {
     89
     90
    8391            // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    8492            echo $missing_text;
     93
    8594        } elseif ( ! $translation->plural || $locale->nplurals === 1 ) {
     95
     96
    8697            $singular_translation = esc_translation( $translation->translations[0] );
    8798            // Check if has root.
     
    96107            // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    97108            echo '<span class="translation-text">' . prepare_original( $singular_translation ) . '</span>';
     109
    98110        } elseif ( $translation->plural && $locale->nplurals === 2 && $locale->plural_expression === 'n != 1' ) {
     111
     112
    99113            ?>
    100114            <ul>
     
    145159            </ul>
    146160            <?php
     161
    147162        } else {
     163
     164
    148165            ?>
    149166            <ul>
     
    187204            </ul>
    188205            <?php
    189         }
     206
     207        }
     208
    190209        ?>
    191210    </td>
  • gp-convert-pt-ao90/tags/1.4.10/includes/class-portuguese-ao90.php

    r3060794 r3181736  
    234234                }
    235235
    236                 // Customize $args on 'translations' template, and also on 'translation-row' for when is loaded through ajax..
    237                 if ( $template === 'translations' || $template === 'translation-row' ) {
     236                // Customize $args on 'translations' template.
     237                if ( $template === 'translations' ) {
    238238
    239239                    $project = self::gp_project( $args['project'] );
     
    255255
    256256                    $root_translations = null;
     257
     258
     259
     260
     261
     262
     263
     264
     265
     266
     267
     268
     269
     270
     271
     272
     273
     274
     275
     276
     277
     278
     279
     280
     281
     282
     283
     284
     285
     286
     287
     288
     289
     290
     291
     292
     293
     294
     295
     296
     297
     298
     299
     300
     301
     302
     303
     304
     305
     306
     307
     308
     309
     310
     311
     312
     313
     314
     315
     316
     317
     318
     319
     320
     321
     322
     323
     324
     325
     326
     327
     328
     329
     330
     331
     332
     333
     334
     335
     336
     337
     338
    257339                    if ( ! $supports_variants && GP_CONVERT_PT_AO90_SHOWDIFF === true && $has_root === true ) {
    258340                        $root_translations = GP::$translation->for_translation(
     
    260342                            $root_translation_set,
    261343                            'no-limit',
    262                             gp_get(
    263                                 'filters',
    264                                 array(
    265                                     'status' => 'current', // Only current translations.
    266                                 )
     344                            // Get the current root translation for the row original.
     345                            array(
     346                                'status'      => 'current',
     347                                'original_id' => $args['original_id'],
    267348                            )
    268349                        );
  • gp-convert-pt-ao90/tags/1.4.10/vendor/autoload.php

    r3171568 r3181736  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit9ffbbb72c1f27450668973fafc7f67b7::getLoader();
     25return ComposerAutoloaderInit9::getLoader();
  • gp-convert-pt-ao90/tags/1.4.10/vendor/composer/autoload_real.php

    r3171568 r3181736  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit9ffbbb72c1f27450668973fafc7f67b7
     5class ComposerAutoloaderInit9
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit9ffbbb72c1f27450668973fafc7f67b7', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit9', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit9ffbbb72c1f27450668973fafc7f67b7', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit9', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit9ffbbb72c1f27450668973fafc7f67b7::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit9::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInit9ffbbb72c1f27450668973fafc7f67b7::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit9::$files;
    3737        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • gp-convert-pt-ao90/tags/1.4.10/vendor/composer/autoload_static.php

    r3171568 r3181736  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit9ffbbb72c1f27450668973fafc7f67b7
     7class ComposerStaticInit9
    88{
    99    public static $files = array (
     
    1919    {
    2020        return \Closure::bind(function () use ($loader) {
    21             $loader->classMap = ComposerStaticInit9ffbbb72c1f27450668973fafc7f67b7::$classMap;
     21            $loader->classMap = ComposerStaticInit9::$classMap;
    2222
    2323        }, null, ClassLoader::class);
  • gp-convert-pt-ao90/tags/1.4.10/vendor/composer/installed.php

    r3171568 r3181736  
    22    'root' => array(
    33        'name' => 'pedro-mendonca/gp-convert-pt-ao90',
    4         'pretty_version' => '1.4.9',
    5         'version' => '1.4.9.0',
    6         'reference' => '94b7f144b423d3a03db6d19de5bafe7163f8d5fe',
     4        'pretty_version' => '1.4.',
     5        'version' => '1.4..0',
     6        'reference' => '',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'pedro-mendonca/gp-convert-pt-ao90' => array(
    23             'pretty_version' => '1.4.9',
    24             'version' => '1.4.9.0',
    25             'reference' => '94b7f144b423d3a03db6d19de5bafe7163f8d5fe',
     23            'pretty_version' => '1.4.',
     24            'version' => '1.4..0',
     25            'reference' => '',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
  • gp-convert-pt-ao90/trunk/assets/css/style.css

    r3171568 r3181736  
    22 * Temporary override while GlotPress with Variants doesn't have this CSS.
    33 */
    4 table.translations tr td.original,
    5 table.translations tr td.translation {
    6     width: 45%;
    7     vertical-align: middle;
     4table.translations tr td.original, table.translations tr td.translation {
     5  width: 45%;
     6  vertical-align: middle;
    87}
    98
    10 table.translations tr td.original small,
    11 table.translations tr td.translation small {
    12     font-size: 0.75rem;
     9table.translations tr td.original small, table.translations tr td.translation small {
     10  font-size: 0.75rem;
    1311}
    1412
    15 table.translations tr td.original ul,
    16 table.translations tr td.translation ul {
    17     margin: 0;
    18     padding: 0;
    19     list-style: none;
     13table.translations tr td.original ul, table.translations tr td.translation ul {
     14  margin: 0;
     15  padding: 0;
     16  list-style: none;
    2017}
    2118
    22 table.translations tr td.original ul li:not(:last-child),
    23 table.translations tr td.translation ul li:not(:last-child) {
    24     padding-bottom: 0.25em;
    25     border-bottom: 1px solid #e4e4e4;
     19table.translations tr td.original ul li:not(:last-child), table.translations tr td.translation ul li:not(:last-child) {
     20  padding-bottom: 0.25em;
     21  border-bottom: 1px solid #e4e4e4;
    2622}
    2723
    2824table.translations tr td.translation .translation-text ins {
    29     background-color: #68de7c;
    30     -webkit-text-decoration: none;
    31     text-decoration: none;
    32     display: inline-block;
     25background-color: #68de7c;
     26-webkit-text-decoration: none;
     27text-decoration: none;
     28display: inline-block;
    3329}
    3430
    3531table.translation-sets tr th.gp-column-locale {
    36     min-width: 400px;
    37     width: 45%;
     32min-width: 400px;
     33width: 45%;
    3834}
    3935
    4036table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update span.translation-set-icon {
    41     margin-left: 0.5em;
    42     vertical-align: middle;
    43     font-size: 1em;
    44     display: inline-block;
    45     line-height: normal;
    46     color: var(--gp-color-fg-muted);
     37margin-left: 0.5em;
     38vertical-align: middle;
     39font-size: 1em;
     40display: inline-block;
     41line-height: normal;
     42color: var(--gp-color-fg-muted);
    4743}
    4844
    4945table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update span.translation-set-icon.edit-status {
    50     display: none;
     46display: none;
    5147}
    5248
    5349table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button {
    54     margin-left: 0.5em;
    55     vertical-align: bottom;
     50margin-left: 0.5em;
     51vertical-align: bottom;
    5652}
    5753
    58 table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled):hover span.icon,
    59 table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled):focus span.icon,
    60 table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled).active span.icon {
    61     color: var(--gp-color-btn-hover-text);
    62     -webkit-transform: rotateZ(180deg);
    63     -ms-transform: rotate(180deg);
    64     transform: rotateZ(180deg);
     54table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled):hover span.icon, table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled):focus span.icon, table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled).active span.icon {
     55  color: var(--gp-color-btn-hover-text);
     56  -webkit-transform: rotateZ(180deg);
     57  -ms-transform: rotate(180deg);
     58  transform: rotateZ(180deg);
    6559}
    6660
    6761table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:disabled {
    68     color: var(--gp-color-fg-default) !important;
     62color: var(--gp-color-fg-default) !important;
    6963}
    7064
    7165table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button span.icon {
    72     -webkit-transition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1) 0s;
    73     transition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1) 0s;
     66-webkit-transition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1) 0s;
     67transition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1) 0s;
    7468}
    7569
    7670table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button span.label {
    77     margin-left: 0.5em;
    78     margin-right: 0.5em;
    79     vertical-align: middle;
    80     text-align: left;
    81     display: inline-block;
    82     line-height: normal;
     71margin-left: 0.5em;
     72margin-right: 0.5em;
     73vertical-align: middle;
     74text-align: left;
     75display: inline-block;
     76line-height: normal;
    8377}
    8478
    8579table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button.updating span.icon {
    86     color: var(--gp-color-dark-orange);
    87     -webkit-animation: rotation 2s infinite linear;
    88     animation: rotation 2s infinite linear;
     80color: var(--gp-color-dark-orange);
     81-webkit-animation: rotation 2s infinite linear;
     82animation: rotation 2s infinite linear;
    8983}
    9084
    9185@-webkit-keyframes rotation {
    9286
    93     0% {
    94         -webkit-transform: rotate(0deg);
    95         transform: rotate(0deg);
    96     }
     870% {
     88-webkit-transform: rotate(0deg);
     89transform: rotate(0deg);
     90}
    9791
    98     100% {
    99         -webkit-transform: rotate(360deg);
    100         transform: rotate(360deg);
    101     }
     92100% {
     93-webkit-transform: rotate(360deg);
     94transform: rotate(360deg);
     95}
    10296}
    10397
    10498@keyframes rotation {
    10599
    106     0% {
    107         -webkit-transform: rotate(0deg);
    108         transform: rotate(0deg);
    109     }
     1000% {
     101-webkit-transform: rotate(0deg);
     102transform: rotate(0deg);
     103}
    110104
    111     100% {
    112         -webkit-transform: rotate(360deg);
    113         transform: rotate(360deg);
    114     }
     105100% {
     106-webkit-transform: rotate(360deg);
     107transform: rotate(360deg);
     108}
    115109}
    116110
    117111table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button.success span.icon {
    118     color: var(--gp-color-green);
     112color: var(--gp-color-green);
    119113}
    120114
    121115table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button.fail span.icon {
    122     color: var(--gp-color-red);
     116color: var(--gp-color-red);
    123117}
    124118
    125119table.translation-sets tr.variant td:first-child {
    126     color: var(--gp-color-accent-fg);
     120color: var(--gp-color-accent-fg);
    127121}
    128122
    129123table.translation-sets tr.variant td:first-child::before {
    130     font-family: dashicons;
    131     content: "\f139";
    132     vertical-align: middle;
     124font-family: dashicons;
     125content: "\f139";
     126vertical-align: middle;
    133127}
    134128
    135129table.translation-sets tr[data-editable="false"] {
    136     background-color: var(--gp-color-secondary-100);
     130background-color: var(--gp-color-secondary-100);
    137131}
    138132
    139133table.translation-sets tr[data-editable="false"]:hover {
    140     background-color: var(--gp-color-secondary-200);
     134background-color: var(--gp-color-secondary-200);
    141135}
    142136
    143137table.translation-sets tr[data-editable="false"] td:first-child span.gp-convert-pt-ao90-update span.translation-set-icon.edit-status {
    144     display: inline-block;
     138display: inline-block;
    145139}
  • gp-convert-pt-ao90/trunk/assets/css/style.min.css.map

    r3171568 r3181736  
    1 {"version":3,"sources":["style.css"],"names":[],"mappings":"AAGA,uEAGC,qBAAsB,CADtB,SAED,CAEA,mFAEC,gBACD,CAEA,6EAIC,eAAgB,CAFhB,QAAS,CACT,SAED,CAEA,qHAGC,+BAAgC,CADhC,oBAED,CAEA,2DACC,wBAAyB,CAGzB,oBAAqB,CAFrB,4BAA6B,CAC7B,oBAED,CAEA,8CACC,eAAgB,CAChB,SACD,CAEA,kGAMC,8BAA+B,CAF/B,oBAAqB,CADrB,aAAc,CAEd,kBAAmB,CAJnB,gBAAkB,CAClB,qBAKD,CAEA,8GACC,YACD,CAEA,gHACC,gBAAkB,CAClB,qBACD,CAEA,8aAGC,oCAAqC,CACrC,gCAAkC,CAClC,4BAA6B,CAC7B,wBACD,CAEA,yHACC,0CACD,CAEA,0HACC,2DAAoE,CACpE,mDACD,CAEA,2HAKC,oBAAqB,CACrB,kBAAmB,CALnB,gBAAkB,CAClB,iBAAmB,CAEnB,eAAgB,CADhB,qBAID,CAEA,mIAEC,6CAA8C,CAC9C,qCAAsC,CAFtC,iCAGD,CAEA,4BAEC,GACC,8BAA+B,CAC/B,sBACD,CAEA,GACC,+BAAiC,CACjC,uBACD,CACD,CAEA,oBAEC,GACC,8BAA+B,CAC/B,sBACD,CAEA,GACC,+BAAiC,CACjC,uBACD,CACD,CAEA,kIACC,2BACD,CAEA,+HACC,yBACD,CAEA,iDACC,+BACD,CAEA,wDAEC,eAAgB,CADhB,qBAAsB,CAEtB,qBACD,CAEA,+CACC,8CACD,CAEA,qDACC,8CACD,CAEA,mIACC,oBACD","file":"style.min.css","sourcesContent":["/**\n * Temporary override while GlotPress with Variants doesn't have this CSS.\n */\ntable.translations tr td.original,\ntable.translations tr td.translation {\n\twidth: 45%;\n\tvertical-align: middle;\n}\n\ntable.translations tr td.original small,\ntable.translations tr td.translation small {\n\tfont-size: 0.75rem;\n}\n\ntable.translations tr td.original ul,\ntable.translations tr td.translation ul {\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n}\n\ntable.translations tr td.original ul li:not(:last-child),\ntable.translations tr td.translation ul li:not(:last-child) {\n\tpadding-bottom: 0.25em;\n\tborder-bottom: 1px solid #e4e4e4;\n}\n\ntable.translations tr td.translation .translation-text ins {\n\tbackground-color: #68de7c;\n\t-webkit-text-decoration: none;\n\ttext-decoration: none;\n\tdisplay: inline-block;\n}\n\ntable.translation-sets tr th.gp-column-locale {\n\tmin-width: 400px;\n\twidth: 45%;\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update span.translation-set-icon {\n\tmargin-left: 0.5em;\n\tvertical-align: middle;\n\tfont-size: 1em;\n\tdisplay: inline-block;\n\tline-height: normal;\n\tcolor: var(--gp-color-fg-muted);\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update span.translation-set-icon.edit-status {\n\tdisplay: none;\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button {\n\tmargin-left: 0.5em;\n\tvertical-align: bottom;\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled):hover span.icon,\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled):focus span.icon,\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled).active span.icon {\n\tcolor: var(--gp-color-btn-hover-text);\n\t-webkit-transform: rotateZ(180deg);\n\t-ms-transform: rotate(180deg);\n\ttransform: rotateZ(180deg);\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:disabled {\n\tcolor: var(--gp-color-fg-default) !important;\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button span.icon {\n\t-webkit-transition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1) 0s;\n\ttransition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1) 0s;\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button span.label {\n\tmargin-left: 0.5em;\n\tmargin-right: 0.5em;\n\tvertical-align: middle;\n\ttext-align: left;\n\tdisplay: inline-block;\n\tline-height: normal;\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button.updating span.icon {\n\tcolor: var(--gp-color-dark-orange);\n\t-webkit-animation: rotation 2s infinite linear;\n\tanimation: rotation 2s infinite linear;\n}\n\n@-webkit-keyframes rotation {\n\n\t0% {\n\t\t-webkit-transform: rotate(0deg);\n\t\ttransform: rotate(0deg);\n\t}\n\n\t100% {\n\t\t-webkit-transform: rotate(360deg);\n\t\ttransform: rotate(360deg);\n\t}\n}\n\n@keyframes rotation {\n\n\t0% {\n\t\t-webkit-transform: rotate(0deg);\n\t\ttransform: rotate(0deg);\n\t}\n\n\t100% {\n\t\t-webkit-transform: rotate(360deg);\n\t\ttransform: rotate(360deg);\n\t}\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button.success span.icon {\n\tcolor: var(--gp-color-green);\n}\n\ntable.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button.fail span.icon {\n\tcolor: var(--gp-color-red);\n}\n\ntable.translation-sets tr.variant td:first-child {\n\tcolor: var(--gp-color-accent-fg);\n}\n\ntable.translation-sets tr.variant td:first-child::before {\n\tfont-family: dashicons;\n\tcontent: \"\\f139\";\n\tvertical-align: middle;\n}\n\ntable.translation-sets tr[data-editable=\"false\"] {\n\tbackground-color: var(--gp-color-secondary-100);\n}\n\ntable.translation-sets tr[data-editable=\"false\"]:hover {\n\tbackground-color: var(--gp-color-secondary-200);\n}\n\ntable.translation-sets tr[data-editable=\"false\"] td:first-child span.gp-convert-pt-ao90-update span.translation-set-icon.edit-status {\n\tdisplay: inline-block;\n}\n"]}
     1{"version":3,"sources":["style.css"],"names":[],"mappings":"AAGA,uEAdisplay: inline-block;\n}\n"]}
  • gp-convert-pt-ao90/trunk/gp-convert-pt-ao90.php

    r3171568 r3181736  
    1818 * Plugin URI:        https://wordpress.org/plugins/gp-convert-pt-ao90/
    1919 * Description:       Language tool for GlotPress to convert text according to the Portuguese Language Orthographic Agreement of 1990 (PT AO90).
    20  * Version:           1.4.9
     20 * Version:           1.4.
    2121 * Requires at least: 5.3
    22  * Tested up to:      6.6
     22 * Tested up to:      6.
    2323 * Requires PHP:      7.4
    2424 * Requires Plugins:  glotpress
  • gp-convert-pt-ao90/trunk/gp-templates/translation-row-preview.php

    r3171568 r3181736  
    7171    <td class="translation foreign-text">
    7272        <?php
     73
    7374        if ( $can_edit ) {
    7475            $edit_text = __( 'Double-click to add', 'gp-convert-pt-ao90' );
     
    7677            $edit_text = __( 'You are not allowed to add a translation.', 'gp-convert-pt-ao90' );
    7778        } else {
    78             $edit_text = sprintf( /* translators: %s: URL. */ __( 'You <a href="%s">have to log in</a> to add a translation.', 'gp-convert-pt-ao90' ), esc_url( wp_login_url( gp_url_current() ) ) );
     79            $edit_text = sprintf(
     80                /* translators: %s: URL. */
     81                __( 'You <a href="%s">have to log in</a> to add a translation.', 'gp-convert-pt-ao90' ),
     82                esc_url( wp_login_url( gp_url_current() ) )
     83            );
    7984        }
    8085
    8186        $missing_text = "<span class='missing'>$edit_text</span>";
     87
    8288        if ( ! count( array_filter( $translation->translations, 'gp_is_not_null' ) ) ) {
     89
     90
    8391            // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    8492            echo $missing_text;
     93
    8594        } elseif ( ! $translation->plural || $locale->nplurals === 1 ) {
     95
     96
    8697            $singular_translation = esc_translation( $translation->translations[0] );
    8798            // Check if has root.
     
    96107            // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    97108            echo '<span class="translation-text">' . prepare_original( $singular_translation ) . '</span>';
     109
    98110        } elseif ( $translation->plural && $locale->nplurals === 2 && $locale->plural_expression === 'n != 1' ) {
     111
     112
    99113            ?>
    100114            <ul>
     
    145159            </ul>
    146160            <?php
     161
    147162        } else {
     163
     164
    148165            ?>
    149166            <ul>
     
    187204            </ul>
    188205            <?php
    189         }
     206
     207        }
     208
    190209        ?>
    191210    </td>
  • gp-convert-pt-ao90/trunk/includes/class-portuguese-ao90.php

    r3060794 r3181736  
    234234                }
    235235
    236                 // Customize $args on 'translations' template, and also on 'translation-row' for when is loaded through ajax..
    237                 if ( $template === 'translations' || $template === 'translation-row' ) {
     236                // Customize $args on 'translations' template.
     237                if ( $template === 'translations' ) {
    238238
    239239                    $project = self::gp_project( $args['project'] );
     
    255255
    256256                    $root_translations = null;
     257
     258
     259
     260
     261
     262
     263
     264
     265
     266
     267
     268
     269
     270
     271
     272
     273
     274
     275
     276
     277
     278
     279
     280
     281
     282
     283
     284
     285
     286
     287
     288
     289
     290
     291
     292
     293
     294
     295
     296
     297
     298
     299
     300
     301
     302
     303
     304
     305
     306
     307
     308
     309
     310
     311
     312
     313
     314
     315
     316
     317
     318
     319
     320
     321
     322
     323
     324
     325
     326
     327
     328
     329
     330
     331
     332
     333
     334
     335
     336
     337
     338
    257339                    if ( ! $supports_variants && GP_CONVERT_PT_AO90_SHOWDIFF === true && $has_root === true ) {
    258340                        $root_translations = GP::$translation->for_translation(
     
    260342                            $root_translation_set,
    261343                            'no-limit',
    262                             gp_get(
    263                                 'filters',
    264                                 array(
    265                                     'status' => 'current', // Only current translations.
    266                                 )
     344                            // Get the current root translation for the row original.
     345                            array(
     346                                'status'      => 'current',
     347                                'original_id' => $args['original_id'],
    267348                            )
    268349                        );
  • gp-convert-pt-ao90/trunk/vendor/autoload.php

    r3171568 r3181736  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit9ffbbb72c1f27450668973fafc7f67b7::getLoader();
     25return ComposerAutoloaderInit9::getLoader();
  • gp-convert-pt-ao90/trunk/vendor/composer/autoload_real.php

    r3171568 r3181736  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit9ffbbb72c1f27450668973fafc7f67b7
     5class ComposerAutoloaderInit9
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit9ffbbb72c1f27450668973fafc7f67b7', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit9', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit9ffbbb72c1f27450668973fafc7f67b7', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit9', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit9ffbbb72c1f27450668973fafc7f67b7::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit9::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInit9ffbbb72c1f27450668973fafc7f67b7::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit9::$files;
    3737        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • gp-convert-pt-ao90/trunk/vendor/composer/autoload_static.php

    r3171568 r3181736  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit9ffbbb72c1f27450668973fafc7f67b7
     7class ComposerStaticInit9
    88{
    99    public static $files = array (
     
    1919    {
    2020        return \Closure::bind(function () use ($loader) {
    21             $loader->classMap = ComposerStaticInit9ffbbb72c1f27450668973fafc7f67b7::$classMap;
     21            $loader->classMap = ComposerStaticInit9::$classMap;
    2222
    2323        }, null, ClassLoader::class);
  • gp-convert-pt-ao90/trunk/vendor/composer/installed.php

    r3171568 r3181736  
    22    'root' => array(
    33        'name' => 'pedro-mendonca/gp-convert-pt-ao90',
    4         'pretty_version' => '1.4.9',
    5         'version' => '1.4.9.0',
    6         'reference' => '94b7f144b423d3a03db6d19de5bafe7163f8d5fe',
     4        'pretty_version' => '1.4.',
     5        'version' => '1.4..0',
     6        'reference' => '',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'pedro-mendonca/gp-convert-pt-ao90' => array(
    23             'pretty_version' => '1.4.9',
    24             'version' => '1.4.9.0',
    25             'reference' => '94b7f144b423d3a03db6d19de5bafe7163f8d5fe',
     23            'pretty_version' => '1.4.',
     24            'version' => '1.4..0',
     25            'reference' => '',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.