samjeansoper
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [WP GoToWebinar] Webinar Registration Form not SubmittingApplying the Recaptcha API key resolved the issue. Assistance is no longer needed.
Nevermind, I figured it out. My solution was creating the following method, after I realized I didn’t need the feminine article for the
equip_options:public function get_player_equip_context($player_name, $equip_option) { $context = sprintf(_x('%1$s\'s %2$s:', 'default', $this->plugin_name ), $player_name, $equip_option); $has_vowel = $this->is_vowel($player_name); $is_plural = $this->is_plural($equip_option); if($has_vowel == true) { if($is_plural == true) { $context = sprintf(_x('%1$s\'s %2$s:', 'plural article & vowel name', $this->plugin_name ), $player_name, $equip_option); } else { $context = sprintf(_x('%1$s\'s %2$s:', 'single article & vowel name', $this->plugin_name ), $player_name, $equip_option); } } else { if($is_plural == true) { $context = sprintf(_x('%1$s\'s %2$s:', 'plural article & non-vowel name', $this->plugin_name ), $player_name, $equip_option); } else { $context = sprintf(_x('%1$s\'s %2$s:', 'single article & non-vowel name', $this->plugin_name ), $player_name, $equip_option); } } return $context; }
Viewing 2 replies - 1 through 2 (of 2 total)