webgui/lib/WebGUI/i18n/English/Macro_SQL.pm
Colin Kuskie 4adafce696 Internationalize error messages in SQL.pm
Add POD to 5 macros
2005-12-20 19:26:25 +00:00

40 lines
1.1 KiB
Perl

package WebGUI::i18n::English::Macro_SQL;
our $I18N = {
'macroName' => {
message => q|SQL|,
lastUpdated => 1128919058,
},
'sql title' => {
message => q|SQL Macro|,
lastUpdated => 1112466408,
},
'sql body' => {
message => q|
<b>&#94;SQL();</b><br>
A one line SQL report. Sometimes you just need to pull something back from the database quickly. This macro is also useful in extending the SQL Report wobject. It uses the numeric macros (&#94;0; &#94;1; &#94;2; etc) to position data and can also use the &#94;&#94;rownum; macro just like the SQL Report wobject. Examples:<p>
&#94;SQL("select count(*) from users","There are &#94;0; users on this system.");
<p>
&#94;SQL("select userId,username from users order by username","&lt;a href='&#94;/;?op=viewProfile&uid=&#94;0;'&gt;&#94;1;&lt;/a&gt;&lt;br&gt;");
<p>
|,
lastUpdated => 1112466919,
},
'illegal query' => {
message => q|Cannot execute this type of query.|,
lastUpdated => 1135105884,
},
'sql error' => {
message => q|<p><b>SQL Macro Failed:</b>%s<p>|,
lastUpdated => 1135105919,
},
};
1;