I can not translate to spanish
oskar_calvo - July 14, 2008 - 09:52
| Project: | HTMLBox |
| Version: | 5.x-1.0-2 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Poetro |
| Status: | active |
Jump to:
Description
Hello, I'm not able to translate to Spanish.
First I use the potx module to get the htmlbox.po file, and translate it to Spanish, but it doesn't change to Spanish.
Second, I try to change the "t" English word to Spanish, but When I check the roll over show me the English literal.
Thanks
Oskar

#1
This is a known problem, and i'll think of some solution for that. The labels are wired into the htmlbox.js file, the third argument of each addToolbarItem call (except for the dropdown boxes, where it is wired into the options string). If you have some idea on how to do it in Drupal 5, i'm open for ideas.
#2
You can put the translated strings into the JavaScript object
Drupal.settings, then your JavaScript code would grab them from there.See
drupal_add_js()for details on how to populate theDrupal.settingsobject (in particular see the explanation for'setting').#3
Should be working with latest dev version.