Plugin Directory


Ignore:
Timestamp:
10/15/2026 07:29:29 PM (4 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/CalculateMayanCompatibilityForm.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' => 'calculateMayanCompatibility',
    2324                        'title'        => __( 'Mayan Nawal Compatibility', 'roxyapi' ),
    2425                        'submit_label' => __( 'Get reading', 'roxyapi' ),
    25                         'fold_optional' => true,
     26                        'locations'    => array(  ),
    2627                        'sections'     => array(
    2728                                array(
    2829                                        'name'   => 'personA',
    29                                         'label'  => __( 'Person a', 'roxyapi' ),
     30                                        'label'  => $labels['groups']['personA'] ?? 'Person A',
     31                                        'fold'   => false,
    3032                                        'fields' => array(
    3133                                        array(
    3234                                                'name' => 'date',
    33                                                 'label' => __( 'Date', 'roxyapi' ),
     35                                                'label' => $labels['fields']['date'] ?? 'Date',
    3436                                                'required' => true,
    35                                                 'help' => __( 'Date in YYYY-MM-DD format, in the PROLEPTIC GREGORIAN calendar, extended backwards unchanged through the 1582 reform', 'roxyapi' ),
    3637                                                'type' => 'date',
     38                                                'fold' => false,
    3739                                        ),
    3840                                        ),
    … …  
    4042                                array(
    4143                                        'name'   => 'personB',
    42                                         'label'  => __( 'Person b', 'roxyapi' ),
     44                                        'label'  => $labels['groups']['personB'] ?? 'Person B',
     45                                        'fold'   => false,
    4346                                        'fields' => array(
    4447                                        array(
    4548                                                'name' => 'date',
    46                                                 'label' => __( 'Date', 'roxyapi' ),
     49                                                'label' => $labels['fields']['date'] ?? 'Date',
    4750                                                'required' => true,
    48                                                 'help' => __( 'Date in YYYY-MM-DD format, in the PROLEPTIC GREGORIAN calendar, extended backwards unchanged through the 1582 reform', 'roxyapi' ),
    4951                                                'type' => 'date',
     52                                                'fold' => false,
    5053                                        ),
    5154                                        ),
    … …  
    5558                                array(
    5659                                        'name' => 'correlation',
    57                                         'label' => __( 'Correlation', 'roxyapi' ),
     60                                        'label' => $labels['fields']['correlation'] ?? 'Correlation constant',
    5861                                        'required' => false,
    59                                         'help' => __( 'Which correlation constant ties the day count to a civil date', 'roxyapi' ),
    6062                                        'type' => 'enum',
    6163                                        'enum' => array( 'gmt-584283', 'martinez-hernandez-584281', 'astronomical-584285', 'martin-skidmore-584286' ),
     64                                        'default' => 'gmt-584283',
     65                                        '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' ),
     66                                        'fold' => true,
    6267                                ),
    6368                                array(
    6469                                        'name' => 'directionScheme',
    65                                         'label' => __( 'Direction scheme', 'roxyapi' ),
     70                                        'label' => $labels['fields']['directionScheme'] ?? 'Direction reading',
    6671                                        'required' => false,
    67                                         'help' => __( 'Which reading of the world direction and colour to serve for a day sign', 'roxyapi' ),
    6872                                        'type' => 'enum',
    6973                                        'enum' => array( 'madrid-codex', 'landa' ),
     74                                        'default' => 'madrid-codex',
     75                                        'enum_labels' => array( $labels['enums']['directionScheme.madrid-codex'] ?? 'Madrid codex', $labels['enums']['directionScheme.landa'] ?? 'Landa' ),
     76                                        'fold' => true,
    7077                                ),
    7178                        ),
Note: See TracChangeset for help on using the changeset viewer.