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/CalculateTzolkinForm.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' => 'calculateTzolkin',
    2324                        'title'        => __( 'Mayan Day Sign for a Date', 'roxyapi' ),
    2425                        'submit_label' => __( 'Get reading', 'roxyapi' ),
    25                         'fold_optional' => true,
     26                        'locations'    => array(  ),
    2627                        'sections'     => array(
    2728
    … …  
    3031                                array(
    3132                                        'name' => 'date',
    32                                         'label' => __( 'Date', 'roxyapi' ),
     33                                        'label' => $labels['fields']['date'] ?? 'Date',
    3334                                        'required' => true,
    34                                         'help' => __( 'Date in YYYY-MM-DD format, in the PROLEPTIC GREGORIAN calendar, extended backwards unchanged through the 1582 reform', 'roxyapi' ),
    3535                                        'type' => 'date',
     36                                        'fold' => false,
    3637                                ),
    3738                                array(
    3839                                        'name' => 'correlation',
    39                                         'label' => __( 'Correlation', 'roxyapi' ),
     40                                        'label' => $labels['fields']['correlation'] ?? 'Correlation constant',
    4041                                        'required' => false,
    41                                         'help' => __( 'Which correlation constant ties the day count to a civil date', 'roxyapi' ),
    4242                                        'type' => 'enum',
    4343                                        'enum' => array( 'gmt-584283', 'martinez-hernandez-584281', 'astronomical-584285', 'martin-skidmore-584286' ),
     44                                        'default' => 'gmt-584283',
     45                                        'enum_labels' => array( $labels['enums']['correlation.gmt-584283'] ?? 'Gmt 584283', $labels['enums']['correlation.martinez-hernandez-584281'] ?? 'Martinez hernandez 584281', $labels['enums']['correlation.astronomical-584285'] ?? 'Astronomical 584285', $labels['enums']['correlation.martin-skidmore-584286'] ?? 'Martin skidmore 584286' ),
     46                                        'fold' => true,
    4447                                ),
    4548                        ),
Note: See TracChangeset for help on using the changeset viewer.