Plugin Directory


Ignore:
Timestamp:
10/15/2026 07:29:29 PM (3 days ago)
Author:
roxyapi
Message:

Update to version 1.21.0 from GitHub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roxyapi/trunk/src/Generated/Forms/GetYearlyHoroscopeForm.php

    r3747703 r3749195  
    1919
    2020        public static function spec(): array {
     21                $labels = \RoxyAPI\Generated\FormLabels::for_language( \RoxyAPI\Support\Language::from_locale( determine_locale() ) );
    2122                return array(
    2223                        'operation_id' => 'getYearlyHoroscope',
    2324                        'title'        => __( 'Yearly Horoscope by Zodiac Sign', 'roxyapi' ),
    2425                        'submit_label' => __( 'Get reading', 'roxyapi' ),
    25                         'fold_optional' => true,
     26                        'locations'    => array(  ),
    2627                        'sections'     => array(
    2728
    … …  
    3031                                array(
    3132                                        'name' => 'sign',
    32                                         'label' => __( 'Sign', 'roxyapi' ),
     33                                        'label' => $labels['fields']['sign'] ?? 'Zodiac sign',
    3334                                        'required' => true,
    34                                         'help' => __( 'Zodiac sign, case-insensitive (e.g., aries, Aries, ARIES all work).', 'roxyapi' ),
    3535                                        'type' => 'enum',
    3636                                        'enum' => array( 'aries', 'taurus', 'gemini', 'cancer', 'leo', 'virgo', 'libra', 'scorpio', 'sagittarius', 'capricorn', 'aquarius', 'pisces' ),
     37                                        'enum_labels' => array( __( 'Aries', 'roxyapi' ), __( 'Taurus', 'roxyapi' ), __( 'Gemini', 'roxyapi' ), __( 'Cancer', 'roxyapi' ), __( 'Leo', 'roxyapi' ), __( 'Virgo', 'roxyapi' ), __( 'Libra', 'roxyapi' ), __( 'Scorpio', 'roxyapi' ), __( 'Sagittarius', 'roxyapi' ), __( 'Capricorn', 'roxyapi' ), __( 'Aquarius', 'roxyapi' ), __( 'Pisces', 'roxyapi' ) ),
     38                                        'fold' => false,
    3739                                ),
    3840                                array(
    3941                                        'name' => 'year',
    40                                         'label' => __( 'Year', 'roxyapi' ),
     42                                        'label' => $labels['fields']['year'] ?? 'Year',
    4143                                        'required' => false,
    42                                         'help' => __( 'Calendar year to forecast, 1900 to 2100', 'roxyapi' ),
    4344                                        'type' => 'integer',
    4445                                        'min' => 1900,
    4546                                        'max' => 2100,
     47                                        'fold' => true,
    4648                                ),
    4749                                array(
    4850                                        'name' => 'timezone',
    49                                         'label' => __( 'Timezone', 'roxyapi' ),
     51                                        'label' => $labels['fields']['timezone'] ?? 'Timezone',
    5052                                        'required' => false,
    5153                                        'help' => __( 'Select the timezone of the location.', 'roxyapi' ),
    5254                                        'type' => 'timezone',
     55                                        'fold' => true,
    5356                                ),
    5457                        ),
Note: See TracChangeset for help on using the changeset viewer.