• Plugin Contributor Jeremy Varnham

    (@jvarn13)


    Hi Jason,

    The reading-time-wp text domain is not currently being loaded. Could you please add something like this to the constructor?

    load_plugin_textdomain( 'reading-time-wp', false, basename( dirname( __FILE__ ) ) . '/languages/' );

    Thanks,

    Jeremy

Viewing 1 replies (of 1 total)
  • Plugin Contributor Jeremy Varnham

    (@jvarn13)

    Adding the above only effects the plugin options page. However, the front-end display is not effected.

    The default behavior at the moment is:

    1. Using Insert Reading Time before content / excerpt:
      Use strings for label/postfix entered on option page (i.e. one language only)
    2. Using shortcode:
    • [rt_reading_time]
      Display the number only
    • [rt_reading_time label=”” postfix=”” postfix_singular=""]
      Display the number only
    • [rt_reading_time label=”Reading Time:” postfix=”minutes” postfix_singular="minute"]
      Use strings as entered in shortcode (one language only)

    In what scenario are the default translated strings supposed to display? I realize that translating any custom strings entered on the options page would require integration of WPML’s icl_register_string, for example, but there should be a way of showing the default non-English strings.

    Perhaps, using shortcode:

    • [rt_reading_time]
      Display the default strings in active language
    • [rt_reading_time label=”” postfix=”” postfix_singular=""]
      Display the number only
    • [rt_reading_time label=”Reading Time:” postfix=”minutes” postfix_singular="minute"]
      Use strings as entered in shortcode (one language only)
Viewing 1 replies (of 1 total)
  • The topic ‘Load Text Domain’ is closed to new replies.