• Resolved safu9

    (@safu9)


    Hello,
    I want to translate this word “%1$s updated. %2$sView %3$s” used in src/Tribe/Main.php#L1704 into Japanese.
    This is shown like this: “Event updated. View event”
    However, Japanese word order is different from English one.
    In Japanese, this is written like this word order: “Event updated. Event view” because verb follows object.

    So I ask you to change this code

    sprintf(
    esc_html__( '%1$s updated. %2$sView %3$s', 'the-events-calendar' ),
    esc_html( $this->singular_event_label ),
    '<a href="' . esc_url( get_permalink( $post_ID ) ) . '">',
    esc_html( $this->singular_event_label ) . '</a>'
    )

    like this

    sprintf(
    esc_html__( '%1$s updated. %2$sView %1$s%3$s', 'the-events-calendar' ),
    esc_html( $this->singular_event_label ),
    '<a href="' . esc_url( get_permalink( $post_ID ) ) . '">',
    '</a>'
    )

    Then I can translate like this ‘%1$s updated. %2$s%1$s view%3$s’

    and I ask this about other four strings in the same array($messages).

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I can’t translate this’ is closed to new replies.