Nope, no way out. I can see this amazon zimlet working here, at least it gets the phrase from the base com_zimbra_amzn.properties file. Not from the _it_IT (just curiosity: does zimbra guess my language client-side by checking the browser setting, or by its lang user env variable? - here set on "C" as default - ), but still somehow the tag is interpreted by Zimbra.
But trying to do the same in my zimlet (upon comparation with the amzn one, my code was correct already), it does not translate ${msg.tooltip} as it should. it just prints out the tag itself (-> "${msg.tooltip}")
Notice that I created <zimlet>.properties (US english), <zimlet>_it.properties and even <zimlet>_it_IT.properties (Italian) to be 120% sure.
:-(
Even more, I tried to use ${prop.<something>} in the past, but Firebug gives me an error which blocks all zimlets from being loaded:
Code:
B is undefined
replaceObj()()1e9izTxJ...2Fg%3D%3D (riga 614)
replaceObj()(/(^|[^\\])\$\{prop\.([\$a-zA-Z0-9_]+)\}/g, "${prop.srcExt}", undefined)1e9izTxJ...2Fg%3D%3D (riga 607)
process()("${prop.srcExt}", undefined, undefined)1e9izTxJ...2Fg%3D%3D (riga 596)
ZmZimletContext()(6, Object userProperties=[1] zimletPanelItem=[1])1e9izTxJ...2Fg%3D%3D (riga 481)
_loadZimlets()([Object zimlet=[1] zimletContext=[1], Object zimlet=[1] zimletContext=[1], Object zimlet=[1] zimletConfig=[1] zimletContext=[1], 4 more... 0=Object 1=Object 2=Object 3=Object 4=Object 5=Object], [Object zimlet=com_zimbra_phone _content=2602, Object zimlet=com_zimbra_phone _content=547 name=srcExt 0=Object 1=Object], undefined, undefined, undefined)1e9izTxJ...2Fg%3D%3D (riga 784)
loadZimlets()([Object zimlet=[1] zimletContext=[1], Object zimlet=[1] zimletContext=[1], Object zimlet=[1] zimletConfig=[1] zimletContext=[1], 4 more... 0=Object 1=Object 2=Object 3=Object 4=Object 5=Object], [Object zimlet=com_zimbra_phone _content=2602, Object zimlet=com_zimbra_phone _content=547 name=srcExt 0=Object 1=Object], undefined, undefined, undefined)1e9izTxJ...2Fg%3D%3D (riga 774)
_loadZimlets()([Object zimlet=[1] zimletContext=[1], Object zimlet=[1] zimletContext=[1], Object zimlet=[1] zimletConfig=[1] zimletContext=[1], 4 more... 0=Object 1=Object 2=Object 3=Object 4=Object 5=Object], [Object zimlet=com_zimbra_phone _content=2602, Object zimlet=com_zimbra_phone _content=547 name=srcExt 0=Object 1=Object])Startup1...117052447 (riga 602)
run1()(undefined)#1 (riga 530)
_postLoadCallback()(["Zimlet" 0=Zimlet], true, AjxCallback obj=ZmSettings args=[2], undefined)#1 (riga 869)
_continueRequire()(["Zimlet" 0=Zimlet], false, AjxCallback obj=ZmSettings args=[2], undefined)#1 (riga 850)
require()(["Zimlet" 0=Zimlet], false, AjxCallback obj=ZmSettings args=[2], undefined, undefined)#1 (riga 836)
(?)()()Startup1...117052447 (riga 592)
run()()#1 (riga 522)
_runNextPostRenderCallback()()Startup1...117052447 (riga 8726)
run()()#1 (riga 522)
_exec()(7)Startup1...117052447 (riga 1452)
(?)()Startup1...117052447 (riga 1441)
[Break on this error] }}}else{if(typeof B[I]!="undefined"){if(B[I] instanceof Object){D+=B[I].value Last but not least, even
Code:
${config.global.<something>} does not work...
UPDATE: just before posting this msg, I found out that ${msg.<something>} does work, but just when deploying the .zip via zmzimletctl. Using the _dev dir, it does not get translated... Not a big deal, actually. As long as it is limited to localization...
About ${config.global.<something>}, it doesn't work either way, as well as ${prop.<something>}... :-(
Any idea anybody anyhow?