- Timestamp:
- 10/15/2026 07:29:29 PM (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roxyapi/trunk/src/Generated/Forms/CalculateMayanCompatibilityForm.php
r3747703 r3749195 19 19 20 20 public static function spec(): array { 21 $labels = \RoxyAPI\Generated\FormLabels::for_language( \RoxyAPI\Support\Language::from_locale( determine_locale() ) ); 21 22 return array( 22 23 'operation_id' => 'calculateMayanCompatibility', 23 24 'title' => __( 'Mayan Nawal Compatibility', 'roxyapi' ), 24 25 'submit_label' => __( 'Get reading', 'roxyapi' ), 25 ' fold_optional' => true,26 'locations' => array( ), 26 27 'sections' => array( 27 28 array( 28 29 'name' => 'personA', 29 'label' => __( 'Person a', 'roxyapi' ), 30 'label' => $labels['groups']['personA'] ?? 'Person A', 31 'fold' => false, 30 32 'fields' => array( 31 33 array( 32 34 'name' => 'date', 33 'label' => __( 'Date', 'roxyapi' ),35 'label' => $labels['fields']['date'] ?? 'Date', 34 36 'required' => true, 35 'help' => __( 'Date in YYYY-MM-DD format, in the PROLEPTIC GREGORIAN calendar, extended backwards unchanged through the 1582 reform', 'roxyapi' ),36 37 'type' => 'date', 38 'fold' => false, 37 39 ), 38 40 ), … … 40 42 array( 41 43 'name' => 'personB', 42 'label' => __( 'Person b', 'roxyapi' ), 44 'label' => $labels['groups']['personB'] ?? 'Person B', 45 'fold' => false, 43 46 'fields' => array( 44 47 array( 45 48 'name' => 'date', 46 'label' => __( 'Date', 'roxyapi' ),49 'label' => $labels['fields']['date'] ?? 'Date', 47 50 'required' => true, 48 'help' => __( 'Date in YYYY-MM-DD format, in the PROLEPTIC GREGORIAN calendar, extended backwards unchanged through the 1582 reform', 'roxyapi' ),49 51 'type' => 'date', 52 'fold' => false, 50 53 ), 51 54 ), … … 55 58 array( 56 59 'name' => 'correlation', 57 'label' => __( 'Correlation', 'roxyapi' ),60 'label' => $labels['fields']['correlation'] ?? 'Correlation constant', 58 61 'required' => false, 59 'help' => __( 'Which correlation constant ties the day count to a civil date', 'roxyapi' ),60 62 'type' => 'enum', 61 63 '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, 62 67 ), 63 68 array( 64 69 'name' => 'directionScheme', 65 'label' => __( 'Direction scheme', 'roxyapi' ),70 'label' => $labels['fields']['directionScheme'] ?? 'Direction reading', 66 71 'required' => false, 67 'help' => __( 'Which reading of the world direction and colour to serve for a day sign', 'roxyapi' ),68 72 'type' => 'enum', 69 73 '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, 70 77 ), 71 78 ),
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)