Invenzzia »

Pages: [1]   Go Down
  Print  
Author Topic: OPTv2: Internationalization with dynamic identifier  (Read 297 times)
0 Members and 1 Guest are viewing this topic.
hamczu
User

Offline Offline

Posts: 10


View Profile WWW
« on: September 14, 2010, 02:11:37 »

I want to translate sentences dynamically e.g. from section variable:
Code:
<opt:section name="form">
1: {$fields@form.name}
2: {$fields@$form.name}
</opt:section>

None of this works.
Of course in the $form.name variable i have proper key (string) that i want translate.
How can i solve this problem?
Logged
Zyx
Your programmer
Administrator
User
*****
Offline Offline

Posts: 291



View Profile WWW
« Reply #1 on: September 14, 2010, 17:38:46 »

Unfortunately, OPT 2.0 does not allow to select the language variable dynamically. This is a known problem and will be "fixed" in OPT 2.1. Meanwhile, you can simply register a function that will allow you to do so.
Logged

PozDrX, Zyx
---Invenzzia group---
Pages: [1]   Go Up
  Print  
 
Jump to:  

Subject Started by Replies Views Last post
Franklin Marshall boutique,On the township enterprise workers education and econ Kodkyssr30 0 23 Last post April 11, 2012, 10:10:57
by Kodkyssr30
OPTv2: Opt sam zamyka znaczniki Agares 4 1341 Last post August 12, 2008, 20:59:33
by Zyx
OPTv2: Jak ograniczyć includowanie szablonów nediam 3 828 Last post March 26, 2009, 21:40:07
by eXtreme
OPTv2: OPT 2.0.0 « 1 2 3 » Zyx 42 8401 Last post March 25, 2009, 21:31:09
by Zyx
OPTv2: Jak zrobić funkcję do wyświetlenia komunikatu o błędzie. GyniO 9 1063 Last post February 05, 2010, 17:57:55
by Zyx