This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Bobby 3 months ago.

Assigned support staff: Bobby.

Author Posts
July 9, 2019 at 8:20 pm #4174225

victorm-23

How translate in plugin JScript ( tCounter:"%curr% THIS %total%") ?

July 9, 2019 at 11:05 pm #4174735

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hello,

in order to translate a hardcoded string the WPML String Translation plugin needs to be able to pick it up. String Translation looks for strings wrapped in a gettext call , for more information please review the following

-> https://wpml.org/faq/language-setup/

if the JScript is in a JScript file you wont be able to wrap it in a gettext call ss wordpress gettext call can work only if you have .php file extension.

for example with Javascript you would need to put the Javascript on page and wrap it then

The topic ‘[Closed] How translate in plugin JScript ( tCounter:"%curr% THIS %total%") ?’ is closed to new replies.