0

I have a web page made with ZF2 and have translated all strings of my controllers, views and fieldsets using the translate method offered by the framework in the php code.

But what about the jquery code (or javascript)?

How it translates the generated strings in the client side if I haven't the translations files?

josepmra
  • 617
  • 9
  • 25

1 Answers1

0

It depends your system of translation (PHP array, *.mo, ..)

Anyway you have to print all your translations into a js file using for example https://github.com/recurser/jquery-i18n

you can find easily some libraries. cheers

Remi Thomas
  • 1,528
  • 1
  • 15
  • 25