- Timestamp:
- 10/15/2026 07:29:29 PM (3 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roxyapi/trunk/src/Generated/Forms/GetYearlyHoroscopeForm.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' => 'getYearlyHoroscope', 23 24 'title' => __( 'Yearly Horoscope by Zodiac Sign', 'roxyapi' ), 24 25 'submit_label' => __( 'Get reading', 'roxyapi' ), 25 ' fold_optional' => true,26 'locations' => array( ), 26 27 'sections' => array( 27 28 … … 30 31 array( 31 32 'name' => 'sign', 32 'label' => __( 'Sign', 'roxyapi' ),33 'label' => $labels['fields']['sign'] ?? 'Zodiac sign', 33 34 'required' => true, 34 'help' => __( 'Zodiac sign, case-insensitive (e.g., aries, Aries, ARIES all work).', 'roxyapi' ),35 35 'type' => 'enum', 36 36 '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, 37 39 ), 38 40 array( 39 41 'name' => 'year', 40 'label' => __( 'Year', 'roxyapi' ),42 'label' => $labels['fields']['year'] ?? 'Year', 41 43 'required' => false, 42 'help' => __( 'Calendar year to forecast, 1900 to 2100', 'roxyapi' ),43 44 'type' => 'integer', 44 45 'min' => 1900, 45 46 'max' => 2100, 47 'fold' => true, 46 48 ), 47 49 array( 48 50 'name' => 'timezone', 49 'label' => __( 'Timezone', 'roxyapi' ),51 'label' => $labels['fields']['timezone'] ?? 'Timezone', 50 52 'required' => false, 51 53 'help' => __( 'Select the timezone of the location.', 'roxyapi' ), 52 54 'type' => 'timezone', 55 'fold' => true, 53 56 ), 54 57 ),
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)