• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Localizing customize.js.php

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
3 posts • Page 1 of 1

Postby kriko » Tue Mar 08, 2011 3:04 pm

I've created a new language sl_SI and everything seems to be working fine within php scripts,
however I cannot localize anything inside JS file inside theme.

For e.g.:
a.appendChild(document.createTextNode(this.res.getLabel('Input Required) ));

will work, but adding a new custom line into the new main.php language file will not work anymore:
a.appendChild(document.createTextNode(this.res.getLabel('Make_confession) ));

This will end up as "_Make_confession_" string.

Where is the problem?

I do have this translation inside language file:
$GLOBALS["i18n"]["Make_confession"] = "Nakljucna izpoved";
Last edited by kriko on Tue Mar 08, 2011 3:04 pm, edited 1 time in total.
kriko
Member
 
Posts: 30
Joined: Sun May 31, 2009 8:07 pm
Top

Postby kriko » Tue Mar 08, 2011 3:10 pm

Seems like I need to add label into: Phpfreechat.class.php.
kriko
Member
 
Posts: 30
Joined: Sun May 31, 2009 8:07 pm
Top

Postby kriko » Wed Mar 16, 2011 3:17 pm

This works for most browsers, however I don't know why this fails in chrome / chromium.
So I have a custom language files, synchronized with main english + a few extra strings.

All those extra strings works fine in other browsers:
Code: Select all
a.appendChild(document.createTextNode(this.res.getLabel('make confession') ));

but not in Chrome / Chromium.

What could be the problem?

Modifications are inside customize.js.php - theme specific.
Last edited by kriko on Wed Mar 16, 2011 3:20 pm, edited 1 time in total.
kriko
Member
 
Posts: 30
Joined: Sun May 31, 2009 8:07 pm
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 17 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub