aboutsummaryrefslogtreecommitdiffstats
path: root/packages/cg2
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cg2')
-rw-r--r--packages/cg2/sample/i18n/messages_de.xml7
-rw-r--r--packages/cg2/sample/i18n/messages_en.xml7
-rw-r--r--packages/cg2/sample/sample_ui.xml74
-rw-r--r--packages/cg2/sample/sample_ui2.xml6
4 files changed, 54 insertions, 40 deletions
diff --git a/packages/cg2/sample/i18n/messages_de.xml b/packages/cg2/sample/i18n/messages_de.xml
new file mode 100644
index 00000000..0cfef583
--- /dev/null
+++ b/packages/cg2/sample/i18n/messages_de.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<po creationdate ="2006-09-20 12:37+0100" translator="me@daniel.stefan.haischt.name">
+ <message msgid="hey, this is only meant for quick and dirty stuff, do NOT implement anything longer than 2 or 3 commands here! Btw, i was clicked."
+ msgstr="Hei, dies eignet sich nur f&#252;r Testzwecke. Benutze nur nur Quellcode der nicht mehr als 2 oder 3 Befehle umfasst! BTW, Ich wurde gedr&#252;ckt." />
+ <message msgid="Hi, don't abuse me, use include_javascript instead!"
+ msgstr="Hallo, missbrauche mich nicht. Nutze stattdessen include_javascript!" />
+</po> \ No newline at end of file
diff --git a/packages/cg2/sample/i18n/messages_en.xml b/packages/cg2/sample/i18n/messages_en.xml
new file mode 100644
index 00000000..1ee7d24d
--- /dev/null
+++ b/packages/cg2/sample/i18n/messages_en.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<po creationdate ="2006-09-20 12:37+0100" translator="me@daniel.stefan.haischt.name">
+ <message msgid="hey, this is only meant for quick and dirty stuff, do NOT implement anything longer than 2 or 3 commands here! Btw, i was clicked."
+ msgstr="hey, this is only meant for quick and dirty stuff, do NOT implement anything longer than 2 or 3 commands here! Btw, i was clicked." />
+ <message msgid="Hi, don't abuse me, use include_javascript instead!"
+ msgstr="Hi, don't abuse me, use include_javascript instead!" />
+</po> \ No newline at end of file
diff --git a/packages/cg2/sample/sample_ui.xml b/packages/cg2/sample/sample_ui.xml
index f6d7c54d..7581f81c 100644
--- a/packages/cg2/sample/sample_ui.xml
+++ b/packages/cg2/sample/sample_ui.xml
@@ -13,85 +13,85 @@
<on_sync_event>sample_on_sync_event</on_sync_event>
<widget>
<type>header</type>
- <label>Headers are useful to separate stuff...</label>
+ <label xml:lang="en-US">Headers are useful to separate stuff...</label>
</widget>
<widget>
<type>textbox</type>
<name>mytextbox</name>
- <label>My fancy textbox</label>
- <description>This is a textbox.</description>
- <value>Welcome to the world of coregui 2.0</value>
+ <label xml:lang="en-US">My fancy textbox</label>
+ <description xml:lang="en-US">This is a textbox.</description>
+ <value xml:lang="en-US">Welcome to the world of coregui 2.0</value>
<required/>
</widget>
<widget>
<type>ipsec_select</type>
<name>ipsec</name>
- <label>IPsec selection</label>
- <description>IPsec selection widget test.</description>
+ <label xml:lang="en-US">IPsec selection</label>
+ <description xml:lang="en-US">IPsec selection widget test.</description>
<multiple/>
</widget>
<widget>
<type>select</type>
<name>sample_sel</name>
- <label>Sample selection</label>
+ <label xml:lang="en-US">Sample selection</label>
<option>
<name>foo</name>
- <label>Foo</label>
+ <label xml:lang="en-US">Foo</label>
</option>
<option>
<name>bar</name>
- <label>Bar</label>
+ <label xml:lang="en-US">Bar</label>
</option>
</widget>
<widget>
<type>interfaces_select</type>
<name>inter_sel</name>
- <label>Sample interfaces select</label>
+ <label xml:lang="en-US">Sample interfaces select</label>
<multiple/>
</widget>
<widget>
<type>textarea</type>
<name>mytextarea</name>
- <label>My fancy textarea</label>
- <description>Just testing descriptions...</description>
- <value>This widget can not be edited!</value>
+ <label xml:lang="en-US">My fancy textarea</label>
+ <description xml:lang="en-US">Just testing descriptions...</description>
+ <value xml:lang="en-US">This widget can not be edited!</value>
<read_only/>
</widget>
<widget>
<type>checkbox</type>
<name>mycheckbox</name>
- <label>A sample checkbox</label>
- <caption>Check this nice checkbox</caption>
- <description>Now checkboxes can have a caption as well.</description>
- <on_check_javascript>alert('hey, this is only meant for quick and dirty stuff, do NOT implement anything longer than 2 or 3 commands here! Btw, i was clicked.');</on_check_javascript>
+ <label xml:lang="en-US">A sample checkbox</label>
+ <caption xml:lang="en-US">Check this nice checkbox</caption>
+ <description xml:lang="en-US">Now checkboxes can have a caption as well.</description>
+ <on_check_javascript>_("hey, this is only meant for quick and dirty stuff, do NOT implement anything longer than 2 or 3 commands here! Btw, i was clicked.");</on_check_javascript>
</widget>
<widget>
<type>submit</type>
<name>mysubmit</name>
- <caption>Send something</caption>
+ <caption xml:lang="en-US">Send something</caption>
<on_submit_event>sample_on_submit_event</on_submit_event>
<group_start/>
</widget>
<widget>
<type>button</type>
<name>mybutton</name>
- <caption>Cancel something</caption>
- <description>The description for the last element in a group is the description that matters.</description>
- <on_click_javascript>alert('Hi, don\'t abuse me, use include_javascript instead!');</on_click_javascript>
+ <caption xml:lang="en-US">Cancel something</caption>
+ <description xml:lang="en-US">The description for the last element in a group is the description that matters.</description>
+ <on_click_javascript>_("Hi, don't abuse me, use include_javascript instead!");</on_click_javascript>
<group_end/>
</widget>
<widget>
<type>textbox</type>
<name>dummydummy</name>
- <label>Just some dummy text</label>
+ <label xml:lang="en-US">Just some dummy text</label>
<do_not_display/>
</widget>
<widget>
<type>checkbox</type>
<name>anothercheckbox</name>
- <label>Another checkbox</label>
- <caption>Enable</caption>
- <description>Another checkbox, this time after a group, and disabled.</description>
+ <label xml:lang="en-US">Another checkbox</label>
+ <caption xml:lang="en-US">Enable</caption>
+ <description xml:lang="en-US">Another checkbox, this time after a group, and disabled.</description>
<disabled/>
</widget>
</element>
@@ -103,28 +103,28 @@
<widget>
<type>checkbox</type>
<name>dummycheckbox</name>
- <label>Dummy checkbox</label>
+ <label xml:lang="en-US">Dummy checkbox</label>
</widget>
<widget>
<type>port</type>
<name>dummyport</name>
- <label>Port</label>
- <description>Enter a port here.</description>
+ <label xml:lang="en-US">Port</label>
+ <description xml:lang="en-US">Enter a port here.</description>
<value>3128</value>
<required/>
</widget>
<widget>
<type>textbox</type>
<name>dummysetting</name>
- <label>Dummy setting</label>
- <description>This dummy setting will not show up in the table.</description>
+ <label xml:lang="en-US">Dummy setting</label>
+ <description xml:lang="en-US">This dummy setting will not show up in the table.</description>
<not_in_table/>
</widget>
<widget>
<type>textarea</type>
<name>longfield</name>
- <label>Very long field</label>
- <description>Very very very very very long field.</description>
+ <label xml:lang="en-US">Very long field</label>
+ <description xml:lang="en-US">Very very very very very long field.</description>
<highlighted/>
</widget>
</element>
@@ -133,23 +133,23 @@
<type>form</type>
<widget>
<type>header</type>
- <label>...such as two different forms</label>
+ <label xml:lang="en-US">...such as two different forms</label>
</widget>
<widget>
<type>button</type>
<name>mybutton</name>
- <label>A simple button</label>
- <caption>Another silly button</caption>
+ <label xml:lang="en-US">A simple button</label>
+ <caption xml:lang="en-US">Another silly button</caption>
</widget>
</element>
<element>
<type>table</type>
<widget>
- <label>Silly test</label>
+ <label xml:lang="en-US">Silly test</label>
</widget>
<widget>
- <label>Another field</label>
+ <label xml:lang="en-US">Another field</label>
</widget>
</element>
diff --git a/packages/cg2/sample/sample_ui2.xml b/packages/cg2/sample/sample_ui2.xml
index 187ad6c0..aa17d49d 100644
--- a/packages/cg2/sample/sample_ui2.xml
+++ b/packages/cg2/sample/sample_ui2.xml
@@ -8,21 +8,21 @@
<widget>
<type>textbox</type>
<name>mytextbox</name>
- <label>My fancy textbox</label>
+ <label xml:lang="en-US">My fancy textbox</label>
<value>Welcome to the world of coregui 2.0</value>
<required/>
</widget>
<widget>
<type>textarea</type>
<name>mytextarea</name>
- <label>My fancy textarea</label>
+ <label xml:lang="en-US">My fancy textarea</label>
<value>This widget will be encoded to the config</value>
<encode/>
</widget>
<widget>
<type>submit</type>
<name>mysubmit</name>
- <caption>Submit this now</caption>
+ <caption xml:lang="en-US">Submit this now</caption>
</widget>
</element>