Translating labels
-
Hi! great plugin!
I’m using it in the following way, combined with the plugin polylang:<div id="rtime"> <?php pll_e( 'Reading Time:' ); echo do_shortcode('[rt_reading_time]'); pll_e( 'minutes' );?> </div><!-- #rtime -->
It is working great. The only issue I have is when the post is only one minute long. In that case, it displays the word minutes in the plural. I checked the plugin’s code and I found the part where it determines whether to display minute or minutes, but I don’t know how to combine that with the translation. I assume it must be a fairly easy thing, but I’m new to this and I don’t know how to create a function that reads the result of the shortcode to determine if the result is less than 1, then…
Thanks in advance!The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Translating labels’ is closed to new replies.