* Set the text for the UI.
()
| 207 | * Set the text for the UI. |
| 208 | */ |
| 209 | function setText() |
| 210 | { |
| 211 | injectText('loggingPage','popup_html_log_head'); |
| 212 | injectText('reset_counter_btn','popup_html_statistics_reset_button'); |
| 213 | injectText('rules_status_head','popup_html_rules_status_head'); |
| 214 | injectText('statistics_percentage','popup_html_statistics_percentage'); |
| 215 | injectText('statistics_blocked','popup_html_statistics_blocked'); |
| 216 | injectText('statistics_elements','popup_html_statistics_elements'); |
| 217 | injectText('statistics_head','popup_html_statistics_head'); |
| 218 | injectText('configs_switch_badges','popup_html_configs_switch_badges'); |
| 219 | injectText('configs_switch_log','popup_html_configs_switch_log'); |
| 220 | injectText('configs_switch_filter','popup_html_configs_switch_filter'); |
| 221 | injectText('configs_head','popup_html_configs_head'); |
| 222 | injectText('configs_switch_statistics','configs_switch_statistics'); |
| 223 | document.getElementById('donate').title = translate('donate_button'); |
| 224 | } |
| 225 | |
| 226 | /** |
| 227 | * Helper function to inject the translated text and tooltip. |
no test coverage detected