Current time: 05-05-2024, 02:42 PM Hello There, Guest! (LoginRegister)


Post Reply 
Thoughts about moving translation call to inside gui template
Author Message
kassah Offline
Junior Member
*

Posts: 46
Joined: Oct 2010
Reputation: 1
Post: #4
RE: Thoughts about moving translation call to inside gui template
(10-31-2010 03:47 AM)sci2tech Wrote:  We do not use smarty Tongue. It`s pTemplate Wink

Did up a quick example patch:
  • Adds callback functionality to pTemplate class
  • Adds a TR callback to gui/client/index.php and removes the General Information string from the hardwired set.
  • Changes {TR_GENERAL_INFORMATION} to {TR:"General Information"} in the client/index.tpl template.

You can see my changes at my github as well:
http://github.com/kassah/ispCP/commit/83...78e9ce300b
(Keep in mind this is the second of two commits, the patch attached to the forum post includes both, first one fixes a bug)


Attached File(s)
.patch  pTemplate-inline-translation.patch (Size: 3 KB / Downloads: 3)
(This post was last modified: 11-05-2010 09:03 AM by kassah.)
10-31-2010 06:30 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Thoughts about moving translation call to inside gui template - kassah - 10-31-2010 06:30 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)