| @@ -128,15 +128,11 @@ | ||
| 128 | 128 | self::_renderTextAreaItem( |
| 129 | 129 | esc_html__( 'Chart Description', 'visualizer' ), |
| 130 | 130 | 'description', |
| 131 | 131 | $this->description, |
| 132 | - sprintf( | |
| 133 | - // translators: %1$s - HTML link tag, %2$s - HTML closing link tag. | |
| 134 | - esc_html__( 'Description to display in the structured data schema as explained %1$shere%2$s', 'visualizer' ), | |
| 135 | - '<a href="https://developers.google.com/search/docs/data-types/dataset#dataset" target="_blank">', | |
| 136 | - '</a>' | |
| 137 | - ) | |
| 132 | + sprintf( esc_html__( 'Description to display in the structured data schema as explained %1$shere%2$s', 'visualizer' ), '<a href="https://developers.google.com/search/docs/data-types/dataset#dataset" target="_blank">', '</a>' ) | |
| 138 | 133 | ); |
| 134 | + | |
| 139 | 135 | } |
| 140 | 136 | |
| 141 | 137 | /** |
| 142 | 138 | * Renders general settings block for horizontal axis settings. |
| @@ -191,9 +187,9 @@ | ||
| 191 | 187 | 'hAxis[direction]', |
| 192 | 188 | isset( $this->hAxis['direction'] ) ? $this->hAxis['direction'] : '', |
| 193 | 189 | array( |
| 194 | 190 | '' => '', |
| 195 | - '1' => esc_html__( 'Default Direction', 'visualizer' ), | |
| 191 | + '1' => esc_html__( 'Identical Direction', 'visualizer' ), | |
| 196 | 192 | '-1' => esc_html__( 'Reverse Direction', 'visualizer' ), |
| 197 | 193 | ), |
| 198 | 194 | esc_html__( 'The direction in which the values along the horizontal axis grow.', 'visualizer' ) |
| 199 | 195 | ); |
| @@ -245,9 +241,9 @@ | ||
| 245 | 241 | isset( $this->hAxis['minorGridlines']['count'] ) ? $this->hAxis['minorGridlines']['count'] : '', |
| 246 | 242 | esc_html__( 'Specify 0 to disable the minor gridlines.', 'visualizer' ), |
| 247 | 243 | 0, |
| 248 | 244 | 'number', |
| 249 | - array( 'min' => 0, 'step' => 1 ) | |
| 245 | + array( 'min' => 0, 'max' => 1, 'step' => 1 ) | |
| 250 | 246 | ); |
| 251 | 247 | |
| 252 | 248 | self::_renderColorPickerItem( |
| 253 | 249 | esc_html__( 'Color', 'visualizer' ), |
| @@ -306,9 +302,9 @@ | ||
| 306 | 302 | 'vAxis[direction]', |
| 307 | 303 | isset( $this->vAxis['direction'] ) ? $this->vAxis['direction'] : '', |
| 308 | 304 | array( |
| 309 | 305 | '' => '', |
| 310 | - '1' => esc_html__( 'Default Direction', 'visualizer' ), | |
| 306 | + '1' => esc_html__( 'Identical Direction', 'visualizer' ), | |
| 311 | 307 | '-1' => esc_html__( 'Reverse Direction', 'visualizer' ), |
| 312 | 308 | ), |
| 313 | 309 | esc_html__( 'The direction in which the values along the vertical axis grow.', 'visualizer' ) |
| 314 | 310 | ); |
| @@ -361,9 +357,9 @@ | ||
| 361 | 357 | isset( $this->vAxis['minorGridlines']['count'] ) ? $this->vAxis['minorGridlines']['count'] : '', |
| 362 | 358 | esc_html__( 'Specify 0 to disable the minor gridlines.', 'visualizer' ), |
| 363 | 359 | 0, |
| 364 | 360 | 'number', |
| 365 | - array( 'min' => 0, 'step' => 1 ) | |
| 361 | + array( 'min' => 0, 'max' => 1, 'step' => 1 ) | |
| 366 | 362 | ); |
| 367 | 363 | |
| 368 | 364 | self::_renderColorPickerItem( |
| 369 | 365 | esc_html__( 'Color', 'visualizer' ), |
| @@ -459,8 +455,9 @@ | ||
| 459 | 455 | null |
| 460 | 456 | ); |
| 461 | 457 | |
| 462 | 458 | $this->_renderRoleField( $index ); |
| 459 | + | |
| 463 | 460 | } |
| 464 | 461 | |
| 465 | 462 | /** |
| 466 | 463 | * Renders format field for horizontal axis. |
| @@ -477,17 +474,15 @@ | ||
| 477 | 474 | sprintf( |
| 478 | 475 | '%s<br><br>%s<br><br>%s', |
| 479 | 476 | esc_html__( 'Enter custom format pattern to apply to horizontal axis labels.', 'visualizer' ), |
| 480 | 477 | sprintf( |
| 481 | - // translators: %1$s - HTML link tag, %2$s - HTML closing link tag. | |
| 482 | - esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Note: Using the #%% percentage format will multiply your values by 100.', 'visualizer' ), | |
| 478 | + esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #%% percentage format then your values will be multiplied by 100.', 'visualizer' ), | |
| 483 | 479 | '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">', |
| 484 | 480 | '</a>' |
| 485 | 481 | ), |
| 486 | 482 | sprintf( |
| 487 | - // translators: %1$s - HTML link tag, %2$s - HTML closing link tag. | |
| 488 | 483 | esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.', 'visualizer' ), |
| 489 | - '<a href="https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-format-syntax" target="_blank">', | |
| 484 | + '<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">', | |
| 490 | 485 | '</a>' |
| 491 | 486 | ) |
| 492 | 487 | ) |
| 493 | 488 | ); |
| @@ -508,19 +503,18 @@ | ||
| 508 | 503 | sprintf( |
| 509 | 504 | '%s<br><br>%s<br><br>%s', |
| 510 | 505 | esc_html__( 'Enter custom format pattern to apply to vertical axis labels.', 'visualizer' ), |
| 511 | 506 | sprintf( |
| 512 | - // translators: %1$s - HTML link tag, %2$s - HTML closing link tag. | |
| 513 | - esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Note: Using the #%% percentage format will multiply your values by 100.', 'visualizer' ), | |
| 507 | + esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #%% percentage format then your values will be multiplied by 100.', 'visualizer' ), | |
| 514 | 508 | '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">', |
| 515 | 509 | '</a>' |
| 516 | 510 | ), |
| 517 | 511 | sprintf( |
| 518 | - // translators: %1$s - HTML link tag, %2$s - HTML closing link tag. | |
| 519 | 512 | esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.', 'visualizer' ), |
| 520 | - '<a href="https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-format-syntax" target="_blank">', | |
| 513 | + '<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">', | |
| 521 | 514 | '</a>' |
| 522 | 515 | ) |
| 523 | 516 | ) |
| 524 | 517 | ); |
| 525 | 518 | } |
| 519 | + | |
| 526 | 520 | } |