render_solidarity_message(); ?>

get_dashboard_stats(); $anonymous_statistics = 'anonymous' === \Accessibility_Audio_TTS\Core\Privacy_Settings::get( 'analytics_mode' ); ?>
%
get_actual_spent_amount() ); ?>
get_dashboard_stats(); if ( ! empty( $stats['current_month']['has_unknown_costs'] ) ) { esc_html_e( 'An estimate is unavailable for one or more selected models. Check your provider billing for the actual cost.', 'accessibility-audio-tts-text-to-speech-for-articles' ); } elseif ( $stats['current_month']['posts_count'] > 0 ) { echo esc_html( sprintf( /* translators: 1: number of posts processed this month, 2: cost per post (currency) */ __( 'Processed %1$d posts this month at $%2$s per post', 'accessibility-audio-tts-text-to-speech-for-articles' ), $stats['current_month']['posts_count'], $stats['cost_per_post'] ) ); echo '
'; echo esc_html( sprintf( /* translators: 1: percentage of ElevenLabs costs, 2: percentage of OpenAI costs */ __( 'API costs: %1$d%% ElevenLabs, %2$d%% OpenAI', 'accessibility-audio-tts-text-to-speech-for-articles' ), $stats['current_month']['breakdown']['elevenlabs_percentage'], $stats['current_month']['breakdown']['openai_percentage'] ) ); } else { esc_html_e( 'No spending data available yet', 'accessibility-audio-tts-text-to-speech-for-articles' ); } ?>
get_dashboard_stats(); return ! empty( $stats['current_month']['has_unknown_costs'] ) ? __( 'Unavailable', 'accessibility-audio-tts-text-to-speech-for-articles' ) : '$' . number_format( $stats['current_month']['total_cost'], 2 ); } /** * Render solidarity message for Eastern European languages. * * @return void */ private function render_solidarity_message() { // Check current locale. $current_locale = get_locale(); // Define target locales for the solidarity message. $target_locales = array( 'ru_RU', 'uk_UA', 'be_BY' ); if ( ! in_array( $current_locale, $target_locales, true ) ) { return; } // Determine message based on locale. if ( 'uk_UA' === $current_locale ) { $flag = '🇺🇦'; $title = __( 'Ukrainian:', 'accessibility-audio-tts-text-to-speech-for-articles' ); $message = __( 'Ми рішуче засуджуємо незаконну агресію Росії проти України. Те, що відбувається, є військовими злочинами — навмисні напади на цивільне населення, знищення лікарень та інфраструктури, а також примусові депортації. Закликаємо до припинення цієї насильницької поведінки та притягнення винних до відповідальності відповідно до міжнародного права. 🤍💙🤍', 'accessibility-audio-tts-text-to-speech-for-articles' ); $link_text = __( 'Детальніше про ініціативу', 'accessibility-audio-tts-text-to-speech-for-articles' ); } else { // Default to Russian for ru_RU and be_BY. $flag = '🇷🇺'; $title = __( 'Rosyjski:', 'accessibility-audio-tts-text-to-speech-for-articles' ); $message = __( 'Мы решительно осуждаем незаконную агрессию России против Украины. То, что происходит, — военные преступления: преднамеренные атаки на мирное население, разрушение больниц и инфраструктуры, а также принудительные депортации. Призываем к прекращению насилия и привлечению виновных к ответственности в соответствии с международным правом. 🤍💙🤍', 'accessibility-audio-tts-text-to-speech-for-articles' ); $link_text = __( 'Подробнее об инициативе', 'accessibility-audio-tts-text-to-speech-for-articles' ); } ?>

«»