forked from msillano/odtReportSQL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
language.php
45 lines (41 loc) · 2.53 KB
/
language.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
// ---- odtphp
$Translation['template not found'] = 'ERROR: the file template %s not found!';
$Translation['picture not found'] = 'ERROR: not found pictures in Template!';
$Translation['file picture not found'] = 'ERROR: not found picture file [%s]!';
$Translation['nested exception'] = 'Parent list for %s cannot be empty';
$Translation['none result'] = '<BR> ERROR building document !! <br>';
$Translation['original author'] = 'The autority'; // TODO, update this
// ---- odtReportSQL (on long HTML, cut lines at TAG attributes)
$Translation['missed ID']='ERROR in odtReportSQL.doReport(): required $_POST/$_GET[ID] not defined!';
$Translation['foreach key1 without values'] = '<b>ERROR: can not create any document!<br> Verify key1 values.</b><br><br><hr><center><a href=""
onclick="history.go(-1); return false;"> << back </a> </center><hr>';
$Translation['foreach key2 without values'] = '<b>ERROR: can not create any document!<br> Verify key2 values.</b><br><br><hr><center><a href=""
onclick="history.go(-1); return false;"> << back </a> </center><hr>';
$Translation['saved files warning']='The files (like <i>%s</i>) are saved on sever<br> in document dir: <b>%s</b><br><br><hr><center><a
href="" onclick="history.go(-1); return false;"> << back </a> | <a
href="./reports/" > to default document dir >></a></center><hr>';
$Translation['key definition error']="<BR>ERROR in key (%s = '%s') value!<BR>\n";
$Translation['click to go']='Click button to do document >>';
// ------------ arrays and functions
//TODO: set the local timezone (see http://php.net/manual/en/timezones.php)
function set_local(){
date_default_timezone_set ('Europe/London');
}
// to handle some special chars on XML
function filter($value){
if ( !((strpos($value,'&') === false)&
(strpos($value,'<') === false)&
(strpos($value,'&#') === false)) ) return $value;
$ret = $value;
$ret = str_replace("&","&",$ret);
$ret = str_replace("<","<",$ret);
//TODO update this (if required)
$ret = str_replace("€","€",$ret);
return $ret;
}
// ---- date UI
$month = array('','January','February','Match','April','May','June','July','August','September','October','November','December');
$year = array(2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025);
// license LGPL
?>