Making WordPress.org

Changeset 13444


Ignore:
Timestamp:
04/03/2024 07:06:10 AM (6 months ago)
Author:
dd32
Message:

Plugin Directory: i18n: Translate the business model descriptions. Update section list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-i18n.php

    r13354 r13444  
    3636        } elseif ( 'plugin_business_model' == $term->taxonomy ) {
    3737            $term->name = esc_html( translate_with_gettext_context( html_entity_decode( $term->name ), 'Plugin Business Model', 'wporg-plugins' ) );
     38
     39            if ( $term->description ) {
     40                // Without context, as that's how it's been used for a while.
     41                $term->description = esc_html( translate( html_entity_decode( $term->description ), 'wporg-plugins' ) );
     42            }
    3843        }
    3944
     
    8893        _x( 'Block Plugins', 'Plugin Section Name', 'wporg-plugins' );
    8994        _x( 'New Plugins', 'Plugin Section Name', 'wporg-plugins' );
    90         _x( 'Updated Plugins', 'Plugin Section Name', 'wporg-plugins' );
     95        _x( 'Recently Updated Plugins', 'Plugin Section Name', 'wporg-plugins' );
     96        _x( 'Preview-Enabled Plugins', 'Plugin Section Name', 'wporg-plugins' );
    9197
    9298        // Section descriptions.
     
    96102        _x( 'Plugins that offer blocks for the block-based editor.', 'Plugin Section Description', 'wporg-plugins' );
    97103        _x( 'Block Plugins as used in the Block Directory.', 'Plugin Section Description', 'wporg-plugins' );
     104
     105        // Business model descriptions.
     106        __( 'These plugins are developed and supported by a community.', 'wporg-plugins' );
     107        __( 'These plugins are free, but also have paid versions available.', 'wporg-plugins' );
    98108    }
    99109}
Note: See TracChangeset for help on using the changeset viewer.