demexp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Demexp-dev] support for translation of web dialogs


From: David MENTRE
Subject: [Demexp-dev] support for translation of web dialogs
Date: Mon, 02 Jan 2006 22:00:51 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Hello,

I've just commited in latest dev tree all the machinery to support the
translation of dialogs. Right now, only the login dialog is
translated. Feel free to submit patches. ;)

The following diffs should show you the necessary structure to add in
the .ui files. This is pretty heavyweight right now but WDialog's author
told me he would improve that in the future (and even support gettext
system). For more details, see
  http://sourceforge.net/mailarchive/message.php?msg_id=14318180 


-           <h1>Browse position base</h1>
+
+            <ui:cond>
+              <ui:iflang xml:lang="fr">
+                <h1>Naviguation dans la base des positions</h1>
+              </ui:iflang>
+              <ui:true>
+                <h1>Browse position base</h1>
+              </ui:true>
+            </ui:cond>


-            <p>Please enter your login and password:</p>
-           <p>
-             Login: <ui:text variable="session.login"/> <br/>
-             Password: <ui:password variable="session.password"/> <br/>
-             <ui:button name="login" label="Login"/>
-           </p>
-         </ui:form>
+            <ui:cond>
+              <ui:iflang xml:lang="fr">
+                <p>Veuillez entrer votre identifiant et mot de passe :</p>
+                <p>
+                  Identifiant : <ui:text variable="session.login"/> <br/>
+                  Mot de passe : 
+                  <ui:password variable="session.password"/> <br/>
+                  <ui:button name="login" label="S'identifier"/>
+                </p>
+              </ui:iflang>
+
+              <ui:true>
+                <p>Please enter your login and password:</p>
+                <p>
+                  Login: <ui:text variable="session.login"/> <br/>
+                  Password: <ui:password variable="session.password"/> <br/>
+                  <ui:button name="login" label="Login"/>
+                </p>
+              </ui:true>
+            </ui:cond>
+
+            <p>
+              <a href="?lang=fr">fr</a>
+              <a href="?lang=en">en</a>
+            </p>
+
+          </ui:form>


Best wishes,
d.
-- 
pub  1024D/A3AD7A2A 2004-10-03 David MENTRE <address@hidden>
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A





reply via email to

[Prev in Thread] Current Thread [Next in Thread]