| @@ -58,9 +58,9 @@ | ||
| 58 | 58 | $this->_library = 'google'; |
| 59 | 59 | parent::__construct( $data ); |
| 60 | 60 | |
| 61 | 61 | $this->_legendPositions = array( |
| 62 | - '' => '', | |
| 62 | + '' => esc_html__( 'Default', 'visualizer' ), | |
| 63 | 63 | 'left' => esc_html__( 'Left of the chart', 'visualizer' ), |
| 64 | 64 | 'right' => esc_html__( 'Right of the chart', 'visualizer' ), |
| 65 | 65 | 'top' => esc_html__( 'Above the chart', 'visualizer' ), |
| 66 | 66 | 'bottom' => esc_html__( 'Below the chart', 'visualizer' ), |
| @@ -151,9 +151,16 @@ | ||
| 151 | 151 | 'style' => esc_html__( 'Style', 'visualizer' ), |
| 152 | 152 | 'tooltip' => esc_html__( 'Tooltip', 'visualizer' ), |
| 153 | 153 | 'interval' => esc_html__( 'Interval', 'visualizer' ), |
| 154 | 154 | ), |
| 155 | - sprintf( esc_html__( 'Determines whether the series has to be used for a special role as mentioned in %1$shere%2$s. You can view a few examples %3$shere%4$s.', 'visualizer' ), '<a href="https://developers.google.com/chart/interactive/docs/roles#what-roles-are-available" target="_blank">', '</a>', '<a href="https://docs.themeisle.com/article/1160-roles-for-series-visualizer" target="_blank">', '</a>' ) | |
| 155 | + sprintf( | |
| 156 | + // translators: %1$s - HTML link tag, %2$s - HTML closing link tag, %3$s - HTML link tag, %4$s - HTML closing link tag | |
| 157 | + esc_html__( 'Determines whether the series has to be used for a special role as mentioned in %1$shere%2$s. You can view a few examples %3$shere%4$s.', 'visualizer' ), | |
| 158 | + '<a href="https://developers.google.com/chart/interactive/docs/roles#what-roles-are-available" target="_blank">', | |
| 159 | + '</a>', | |
| 160 | + '<a href="https://docs.themeisle.com/article/1160-roles-for-series-visualizer" target="_blank">', | |
| 161 | + '</a>' | |
| 162 | + ) | |
| 156 | 163 | ); |
| 157 | 164 | } |
| 158 | 165 | |
| 159 | 166 | /** |
| @@ -317,9 +324,9 @@ | ||
| 317 | 324 | esc_html__( 'Trigger', 'visualizer' ), |
| 318 | 325 | 'tooltip[trigger]', |
| 319 | 326 | isset( $this->tooltip['trigger'] ) ? $this->tooltip['trigger'] : null, |
| 320 | 327 | array( |
| 321 | - '' => '', | |
| 328 | + '' => esc_html__( 'Default', 'visualizer' ), | |
| 322 | 329 | 'focus' => esc_html__( 'The tooltip will be displayed when the user hovers over an element', 'visualizer' ), |
| 323 | 330 | 'selection' => esc_html__( 'The tooltip will be displayed when the user selects an element', 'visualizer' ), |
| 324 | 331 | 'none' => esc_html__( 'The tooltip will not be displayed', 'visualizer' ), |
| 325 | 332 | ), |