• Resolved Alex Lion (阿力獅)

    (@alexclassroom)


    I found some strings can be internationalized but need to modify some codes.

    This plugin’s GitHub repository seems to be out-of-date so I list them as the following based on 3.0.5.

    \views\tpl-inactive-logout-settings.php, line 16
    printf( esc_html__( 'Please consider giving a %1$s5 star thumbs up%2$s if you found this useful at ww.wp.xz.cn.', 'inactive-logout' ), '<a href="https://ww.wp.xz.cn/support/plugin/inactive-logout/reviews/#new-post" target="_blank">', '</a>' );

    \views\tpl-inactive-logout-settings.php, line 18
    <a href="javascript:void(0);" id="ina-logout-like-dismiss"><?php esc_html_e( 'Already Rated. Don\'t show this message again.', 'inactive-logout' ); ?></a>

    \legacy\class-inactive-logout-helpers.php, line 207
    printf( esc_html__( 'Please consider giving a %1$s5 star thumbs up%2$s if you found this useful at ww.wp.xz.cn.', 'inactive-logout' ), '<a href="https://ww.wp.xz.cn/support/plugin/inactive-logout/reviews/#new-post" target="_blank">', '</a>' );

    \core\Bootstrap.php, line 252
    update_option( '__ina_logout_message', '<p>' . __( 'You are being timed-out out due to inactivity. Please choose to stay signed in or to logoff.', 'inactive-logout' ) . '</p><p>' . __( 'Otherwise, you will be logged off automatically.', 'inactive-logout' ) . '</p>' );

    \core\Bootstrap.php, line 253
    update_option( '__ina_warn_message', '<h3>'. __( 'Wakeup!', 'inactive-logout' ) . '</h3><p>' . __( 'You have been inactive for {wakup_timout}. Press continue to continue browsing.', 'inactive-logout' ) . '</p>' );

    \core\AdminFunctions.php, line 233
    self::set_message( 'updated', __( 'Settings saved!', 'inactive-logout' ) );

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Deepen Bajracharya

    (@j_3rk)

    Hi @alexclassroom

    Thank you for the suggestions. I have applied the changes to new version.

    However, I have not added the change to

    \core\Bootstrap.php, line 252
    update_option( '__ina_logout_message', '<p>' . __( 'You are being timed-out out due to inactivity. Please choose to stay signed in or to logoff.', 'inactive-logout' ) . '</p><p>' . __( 'Otherwise, you will be logged off automatically.', 'inactive-logout' ) . '</p>' );

    and

    \core\Bootstrap.php, line 253
    update_option( '__ina_warn_message', '<h3>'. __( 'Wakeup!', 'inactive-logout' ) . '</h3><p>' . __( 'You have been inactive for {wakup_timout}. Press continue to continue browsing.', 'inactive-logout' ) . '</p>' );

    because these are dynamic fields where users can change the message – So, this field does not requires to be localized.

    Thread Starter Alex Lion (阿力獅)

    (@alexclassroom)

    Thanks for your quick reply, I already uploaded all translations for new strings to the GlotPress system.
    Now zh_TW users can enjoy this plugin via fully localized UI.

    Plugin Author Deepen Bajracharya

    (@j_3rk)

    Thank you for your contribution. Much appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘I18N Issues’ is closed to new replies.