diff --git a/ChangeLog b/ChangeLog
index f71e68193..abfe6a6dd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -21,8 +21,26 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- bug [gui] Generate Password not working for 'Change Login Information', only for 'Change password'
+ [lang] Arabic update, thanks to Meno25 - meno25
+ rfe #2822190 [structure] BOOLEAN is standard SQL
+- bug #2823599 [edit] UUID Primary Key wrongly updated
++ [lang] German update, thanks to knittl
++ [lang] German update, thanks to virsacer
++ rfe #2813867 [structure] Default sorting order in list of tables
++ [import] Added MySQL type-detection functionality to import library,
+ thanks to Derek Schaefer
++ [import] Added ODS, Excel XLS, Excel XLSX, and XML import modules,
+ thanks to Derek Schaefer
++ [export] Added Excel XLSX export module,
+ thanks to Derek Schaefer
++ [core] Addded ability for tracking changes made through phpMyAdmin
-3.2.1.0 (not yet released)
+3.2.2.0 (not yet released)
+- bug #2825293 [structure] Default value for a BIT column
+- bug [display] Red arrows were reversed in the list of tables
+- bug #2813879 [export] Duplicate empty lines when exporting without comments
+- bug #2825919 [export] Trigger export with database name
+- bug #2823996 [data] Cannot edit row with no PK and a BIT field
+
+3.2.1.0 (2009-08-09)
- bug #2799009 Login with ipv6 IP address breaks redirect
- bug #2796066 [priv] Inconsistent display of databases list
- bug #2802870 [display] Incorrect overhead value for InnoDB
@@ -41,6 +59,15 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- bug #2819944 [setup] Incorrect mention of designer_coords
- bug #2821757 [insert] "Insert another new row" no longer worked
+ [lang] Norwegian update, thanks to Sven-Erik Andersen
+- bug [core] PMA_pow() can support negative exponents in the pow() case
++ [lang] Brazilian Portuguese update, thanks to Fabio Bucior - fabiobucior
+- patch #2822384 [docs] Missing auth_type in docs-example,
+ thanks to Jürgen Wind - windkiel
+- patch #2819728 [display] Slider effect jumping to top of page,
+ thanks to Jan Radem - summsel
+- bug [display] Incorrect computation of overhead stats in server view
+ for tables under the InnoDB engine
++ [lang] Swedish update, thanks to Björn T. Hallberg
3.2.0.1 (2009-06-30)
- [security] XSS: Insufficient output sanitizing in bookmarks
diff --git a/Documentation.html b/Documentation.html
index 12f0fb196..38a42333d 100644
--- a/Documentation.html
+++ b/Documentation.html
@@ -53,7 +53,7 @@ vim: expandtab ts=4 sw=4 sts=4 tw=78
export1 data to various formats:
- CSV,
+ CSV,
XML,
PDF,
ISO/IEC 26300 -
OpenDocument Text and Spreadsheet,
Word,
- Excel and LATEX formats
+ Excel and LATEX formats
+
import data and MySQL structures from Microsoft Excel and OpenDocument spreadsheets, as well as XML, CSV, and SQL files
+ phpMyAdmin uses the PHPExcel library to parse Excel XLS and XLSX spreadsheets.
+ Therefore, any limitations that are listed on their page regarding Excel calculations will also apply here.
+
+ PHPExcel will be kept up to date so as to make all improvements available to phpMyAdmin users.
+
+ Since Excel XLSX workbooks are already compressed, there is often times only a small benefit from compressing them yet again.
+ Support for compressed Excel XLSX and XLS workbooks may be added in the future.
+
+ Excel's internal representation of custom cell types is rather muddled (especially in Excel 97-2003 binary XLS files). If possible,
+ consider using a built-in type. These are almost always guarenteed to import correctly.
+
+ There is no reliable way to differetiate tables in CSV format. For the time being, you will have to break apart CSV files containing multiple tables.
+
+ Currently, the import type-detection system can only assign these MySQL types to columns. In future, more will likely be added but for the time being
+ you will have to edit the structure to your liking post-import.
+
+ Also, you should note the fact that phpMyAdmin will use the size of the largest item in any given column as the column size for the appropriate type. If you
+ know you will be adding larger items to that column then you should manually adjust the column sizes accordingly. This is done for the sake of efficiency.
+
+
+
+
ISPs, multi-user installations
@@ -4497,6 +4637,16 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
improved setup script
+
Derek Schaefer (Google Summer of Code 2009)
+
+
Improved the import system
+
+
+
Alexander Rutkowski (Google Summer of Code 2009)
+
+
+
+}
+?>
+
+ 0)
+{
+ $log = '';
+ foreach ($data['ddlog'] as $entry)
+ {
+ $log .= '# ' . $entry['date'] . ' ' . $entry['username'] . "\n" . $entry['statement'] . "\n";
+ }
+ PMA_showMessage($strTrackingDatabaseLog, $log);
+}
+
+
+/**
+ * Display the footer
+ */
+require_once './libraries/footer.inc.php';
+?>
diff --git a/docs.css b/docs.css
index 0592f5ad1..e9defb718 100644
--- a/docs.css
+++ b/docs.css
@@ -249,3 +249,8 @@ p.footnote {
p.footnote:first-line {
margin-left: -2%;
}
+
+/* Block to mark separate translation string */
+div.l10n {
+ display: inline;
+}
diff --git a/import.php b/import.php
index 43190ec0b..c1ad4c800 100644
--- a/import.php
+++ b/import.php
@@ -405,8 +405,15 @@ if (!empty($id_bookmark) && $action_bookmark == 2) {
if ($import_type == 'query') {
$message = PMA_Message::success();
} else {
- $message = PMA_Message::success('strImportSuccessfullyFinished');
- $message->addParam($executed_queries);
+ if ($import_notice) {
+ $message = PMA_Message::success(''.$GLOBALS['strImportSuccessfullyFinished'].'');
+ $message->addParam($executed_queries);
+
+ $message->addString($import_notice);
+ } else {
+ $message = PMA_Message::success('strImportSuccessfullyFinished');
+ $message->addParam($executed_queries);
+ }
}
}
@@ -420,7 +427,7 @@ if ($timeout_passed) {
// if there is any message, copy it into $_SESSION as well, so we can obtain it by AJAX call
if (isset($message)) {
- $_SESSION['Import_message']['message'] = $message->getDisplay();
+ $_SESSION['Import_message']['message'] = $message->getDisplay();
// $_SESSION['Import_message']['go_back_url'] = $goto.'?'. PMA_generate_common_url();
}
// Parse and analyze the query, for correct db and table name
diff --git a/lang/afrikaans-utf-8.inc.php b/lang/afrikaans-utf-8.inc.php
index b2f09f8d2..e840a7e95 100644
--- a/lang/afrikaans-utf-8.inc.php
+++ b/lang/afrikaans-utf-8.inc.php
@@ -1490,4 +1490,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/albanian-utf-8.inc.php b/lang/albanian-utf-8.inc.php
index c8ef55294..3cff3d318 100644
--- a/lang/albanian-utf-8.inc.php
+++ b/lang/albanian-utf-8.inc.php
@@ -19,14 +19,14 @@ $month = array('Jan', 'Shk', 'Mar', 'Pri', 'Maj', 'Qer', 'Kor', 'Gsh', 'Sht', 'T
$datefmt = '%d %B, %Y at %I:%M %p'; //albanian time
$timespanfmt = '%s ditë, %s orë, %s minuta dhe %s sekonda';
-
+
$strAbortedClients = 'Dështoi';
$strAccessDeniedExplanation = 'phpMyAdmin u përpoq të lidhet me server-in MySQL, dhe server-i refuzoi lidhjen. Kontrollo emrin e host, përdoruesin dhe fjalëkalimin tek file config.inc.php dhe sigurohu që korrispondojnë me informacionet që ju ka dhënë administratori i serverit MySQL.';
$strAccessDenied = 'Hyrja nuk u pranua';
$strAction = 'Veprimi';
$strAddAutoIncrement = 'Shto vlerë AUTO_INCREMENT';
-$strAddConstraints = 'Shto kushte';
+$strAddConstraints = 'Shto kushte';
$strAddDeleteColumn = 'Shto/Fshi fushën';
$strAddDeleteRow = 'Shto/Fshi kriterin';
$strAddHeaderComment = 'Shto një koment të personalizuar në header (\\n ndërpret rreshtin)';
@@ -41,7 +41,7 @@ $strAddUser = 'Shto një përdorues të ri';
$strAdministration = 'Administrimi';
$strAfterInsertBack = 'Mbrapa';
$strAfterInsertNewInsert = 'Shto një regjistrim të ri';
-$strAfterInsertSame = 'Kthehu mbrapa tek kjo faqe';
+$strAfterInsertSame = 'Kthehu mbrapa tek kjo faqe';
$strAfter = 'Mbas %s';
$strAllTableSameWidth = 'vizualizon të gjitha tabelat me të njëjtën gjërësi?';
$strAll = 'Të gjithë';
@@ -78,7 +78,7 @@ $strBrowse = 'Shfaq';
$strBulgarian = 'Bullgarisht';
$strBzip = '"kompresuar me bzip2"';
-$strCalendar = 'Kalendari';
+$strCalendar = 'Kalendari';
$strCannotLogin = 'E pamundur kryerja e login tek server-i MySQL';
$strCantLoad = 'I pamundur ngarkimi i prapashtesës %s, kontrollo konfigurimin e PHP';
$strCantLoadRecodeIconv = 'I pamundur ngarkimi i prapashtesës iconv apo recode të nevoitshëm për konvertimin e karaktereve, konfiguroni php për të lejuar përdorimin e këtyre prapashtesave ose disaktivoni konvertimin e set të karaktereve në phpMyAdmin.';
@@ -117,10 +117,10 @@ $strCompleteInserts = 'Të shtuarat komplet';
$strCompression = 'Kompresim';
$strConfigFileError = 'phpMyAdmin nuk arrin të lexojë file e konfigurimit! Kjo mund të ndodhë kur php gjen një parse error në të apo kur php nuk arrin ta gjejë këtë file. Ju lutem ngarkoheni direkt file e konfigurimit duke përdorur link-un e mëposhtëm dhe lexoni mesazhin(et) e gabimeve php që merrni. Në shumicën e rasteve mund t\'ju mungojë një apostrofë apo një presje. Nëse faqja që do t\'ju hapet është bosh (e bardhë), atëhere gjithçka është në rregull.';
$strConfigureTableCoord = 'Ju lutem, konfiguroni koordinatat për tabelën %s';
-$strConnectionError = 'E pamundur lidhja: rregullime të pavlefshme.';
+$strConnectionError = 'E pamundur lidhja: rregullime të pavlefshme.';
$strConnections = 'Lidhje';
-$strConstraintsForDumped = 'Kushtet për tabelat e nxjerra';
-$strConstraintsForTable = 'Kushtet për tabelën';
+$strConstraintsForDumped = 'Kushtet për tabelat e nxjerra';
+$strConstraintsForTable = 'Kushtet për tabelën';
$strCookiesRequired = 'Nga kjo pikë e tutje, cookies duhet të jenë të aktivuara.';
$strCopyTable = 'Kopjo tabelën tek (databaza.tabela):';
$strCopyTableOK = 'Tabela %s u kopjua tek %s.';
@@ -138,11 +138,11 @@ $strCriteria = 'Kriteri';
$strCroatian = 'Kroate';
$strCyrillic = 'Cyrillic';
$strCzech = 'Çekisht';
-$strCzechSlovak = 'Çeko-Sllovak';
+$strCzechSlovak = 'Çeko-Sllovak';
$strDanish = 'Danisht';
$strDatabase = 'Databazat';
-$strDatabaseEmpty = 'Emri i databazës mungon!';
+$strDatabaseEmpty = 'Emri i databazës mungon!';
$strDatabaseExportOptions = 'Opcione të eksportimit të databazës';
$strDatabaseHasBeenDropped = 'Databaza %s u eleminua.';
$strDatabases = 'Databazat';
@@ -156,12 +156,12 @@ $strDataOnly = 'Vetëm të dhëna';
$strData = 'Të dhëna';
$strDBComment = 'Komenti për Databazën: ';
$strDbPrivileges = 'Të drejta specifike të databazës';
-$strDBRename = 'Ndysho emrin e databazës në';
+$strDBRename = 'Ndysho emrin e databazës në';
$strDbSpecific = 'specifik i databazës';
$strDefault = 'Prezgjedhur';
$strDefaultValueHelp = 'Për vlerat e prezgjedhura, ju lutem shtoni një vlerë të vetme, pa backslash escaping apo thonjëza, duke përdorur këtë format: a';
-$strDefragment = 'Defragmento tabelën';
-$strDelayedInserts = 'Përdor shtimet me vonesë';
+$strDefragment = 'Defragmento tabelën';
+$strDelayedInserts = 'Përdor shtimet me vonesë';
$strDeleteAndFlushDescr = 'Kjo është rruga më e pastër, por ngarkimi i të drejtave mund të zgjasë disa çaste më shumë.';
$strDeleteAndFlush = 'Fshi përdoruesit dhe pastaj rifresko të drejtat.';
$strDeleted = 'rreshti u fshi';
@@ -172,14 +172,14 @@ $strDescending = 'Zbritës';
$strDescription = 'Përshkrimi';
$strDictionary = 'fjalor';
$strDisabled = 'Jo aktiv';
-$strDisableForeignChecks = 'Ç\'aktivo kontrollin e kyçeve të jashtëm';
+$strDisableForeignChecks = 'Ç\'aktivo kontrollin e kyçeve të jashtëm';
$strDisplayFeat = 'Shfaq karakteristikat';
$strDisplayOrder = 'Mënyra e shfaqjes:';
$strDisplayPDF = 'Shfaq skemën e PDF';
$strDoAQuery = 'Zbato "query nga shembull" (karakteri jolly: "%")';
$strDocu = 'Dokumentet';
$strDoYouReally = 'Konfermo: ';
-$strDropDatabaseStrongWarning = 'Jeni duke SHKATËRRUAR një databazë komplete!';
+$strDropDatabaseStrongWarning = 'Jeni duke SHKATËRRUAR një databazë komplete!';
$strDrop = 'Elemino';
$strDropUsersDb = 'Elemino databazat që kanë emër të njëjtë me përdoruesit.';
$strDumpingData = 'Dump i të dhënave për tabelën';
@@ -194,7 +194,7 @@ $strEffective = 'Efektiv';
$strEmptyResultSet = 'MySQL ka kthyer një të përbashkët boshe (p.sh. zero rreshta).';
$strEmpty = 'Zbraz';
$strEnabled = 'Aktiv';
-$strEncloseInTransaction = 'Përfshi eksportin në një transacion';
+$strEncloseInTransaction = 'Përfshi eksportin në një transacion';
$strEndCut = 'FUNDI I CUT';
$strEnd = 'Fund';
$strEndRaw = 'FUNDI I RAW';
@@ -230,7 +230,7 @@ $strFunction = 'Funksioni';
$strGenBy = 'Gjeneruar nga';
$strGeneralRelationFeat = 'Karakteristikat e përgjithshme të relacionit';
$strGenTime = 'Gjeneruar më';
-$strGeorgian = 'Gjeorgjisht';
+$strGeorgian = 'Gjeorgjisht';
$strGerman = 'Gjermanisht';
$strGlobal = 'globale';
$strGlobalPrivileges = 'Të drejtat e përgjithshme';
@@ -249,10 +249,10 @@ $strHostEmpty = 'Emri i host është bosh!';
$strHost = 'Host';
$strHungarian = 'Hungarisht';
-$strIcelandic = 'Islandeze';
+$strIcelandic = 'Islandeze';
$strId = 'ID';
$strIdxFulltext = 'Teksti komplet';
-$strIgnoreInserts = 'Përdor shpërfill shtimet';
+$strIgnoreInserts = 'Përdor shpërfill shtimet';
$strIgnore = 'Shpërfill';
$strImportFiles = 'Importo files';
$strIndexes = 'Tregues';
@@ -278,7 +278,7 @@ $strKill = 'Hiq';
$strKorean = 'Koreane';
$strLandscape = 'Horizontale';
-$strLatexCaption = 'Titulli i Tabelës caption';
+$strLatexCaption = 'Titulli i Tabelës caption';
$strLatexContent = 'Përmbajtja e tabelës __TABLE__';
$strLatexContinuedCaption = 'Nëntitulli i tabelës vazhduese';
$strLatexContinued = '(vazhdon)';
@@ -286,7 +286,7 @@ $strLatexIncludeCaption = 'Përfshi nëntitullin e tabelës';
$strLatexLabel = 'Kyçi i etiketës';
$strLaTeX = 'LaTeX';
$strLatexStructure = 'Struktura e tabelës __TABLE__';
-$strLatvian = 'Letone';
+$strLatvian = 'Letone';
$strLengthSet = 'Gjatësia/Set*';
$strLimitNumRows = 'regjistrime për faqe';
$strLinesTerminatedBy = 'Rreshta që mbarojnë me';
@@ -302,7 +302,7 @@ $strLogPassword = 'Fjalëkalimi:';
$strLogServer = 'Serveri';
$strLogUsername = 'Emri i përdoruesit:';
-$strMaximumSize = 'Madhësia maksimum: %s%s';
+$strMaximumSize = 'Madhësia maksimum: %s%s';
$strMIME_available_mime = 'Lloje MIME në dispozicion';
$strMIME_available_transform = 'Transformacionet në dispozicion';
$strMIME_description = 'Përshkrimi';
@@ -312,7 +312,7 @@ $strMIME_transformation_note = 'Për listën e opcioneve të transformimeve në
$strMIME_transformation_options_note = 'Ju lutem shkruani vlerat për opcionet e transformimit duke përdorur këtë format: \'a\', 100, b,\'c\'... Nëse keni nevojë të shtoni një backslash ("\") apo një apostrofë ("\'") midis këtyre vlerave, duhet ti backslash-oni (për shembull \'\\\\xyz\' ose \'a\\\'b\').';
$strMIME_transformation_options = 'Opcione të transformimeve';
$strMIME_transformation = 'Transformimi i Shfletuesit';
-$strMIMETypesForTable = 'LLOJET E MIME PËR TABELËN';
+$strMIMETypesForTable = 'LLOJET E MIME PËR TABELËN';
$strMIME_without = 'Llojet-MIME të printuar në italics kanë një funksion transformacioni të veçantë';
$strModifications = 'Ndryshimet u ruajtën';
$strModifyIndexTopic = 'Ndrysho një tregues';
@@ -322,7 +322,7 @@ $strMoveTableSameNames = 'E pamundur lëvizja e tabelës tek vetvetja!';
$strMoveTable = 'Sposto tabelën në (databaza.tabela):';
$strMultilingual = 'shumëgjuhësh';
$strMySQLCharset = 'Set simbolesh MySQL';
-$strMySQLConnectionCollation = 'Vendosja e lidhjes MySQL';
+$strMySQLConnectionCollation = 'Vendosja e lidhjes MySQL';
$strMySQLSaid = 'Mesazh nga MySQL: ';
$strMySQLShowProcess = 'Shfaq proceset në ekzekutim';
@@ -345,7 +345,7 @@ $strNoPermission = 'Serveri web nuk ka të drejtat e duhura për të ruajtur fil
$strNoPhp = 'pa kod PHP';
$strNoPrivileges = 'Asnjë e drejtë';
$strNoRights = 'Nuk ke të drejta të mjaftueshme për të kryer këtë operacion!';
-$strNoRowsSelected = 'Nuk ka rreshta të zgjedhur';
+$strNoRowsSelected = 'Nuk ka rreshta të zgjedhur';
$strNoSpace = 'Hapësirë e pamjaftueshme për të ruajtur file %s.';
$strNoTablesFound = 'Nuk gjenden tabela në databazë.';
$strNotNumber = 'Ky nuk është një numër!';
@@ -360,7 +360,7 @@ $strNumTables = 'Tabela';
$strOK = 'OK';
$strOperations = 'Operacione';
-$strOperator = 'Operator';
+$strOperator = 'Operator';
$strOptimizeTable = 'Optimizo tabelën';
$strOr = 'Ose';
$strOverhead = 'Mbi limit';
@@ -384,7 +384,7 @@ $strPhp = 'Krijo kodin PHP';
$strPHPVersion = 'Versioni i PHP';
$strPmaDocumentation = 'Dokumente të phpMyAdmin';
$strPmaUriError = 'Direktiva $cfg[\'PmaAbsoluteUri\'] DUHET të përcaktohet tek file i konfigurimit!';
-$strPolish = 'Polonisht';
+$strPolish = 'Polonisht';
$strPortrait = 'Vertikal';
$strPos1 = 'Fillim';
$strPrevious = 'Paraardhësi';
@@ -442,15 +442,15 @@ $strQueryWindowLock = 'Mos e mbishkruaj këtë query nga jashtë dritares';
$strReceived = 'Marrë';
$strRecords = 'Regjistrime';
$strReferentialIntegrity = 'Kontrollo integritetin e informacioneve:';
-$strRefresh = 'Rifresko';
+$strRefresh = 'Rifresko';
$strRelationalSchema = 'Skema relacionale';
$strRelationNotWorking = 'Karakteristikat shtesë janë ç\'aktivuar për sa i takon funksionimit me tabelat e lidhura. Për të zbuluar përse, klikoni %skëtu%s.';
-$strRelationsForTable = 'RELACIONET PËR TABELËN';
+$strRelationsForTable = 'RELACIONET PËR TABELËN';
$strRelations = 'Relacione';
$strRelationView = 'Shiko relacionet';
$strReloadingThePrivileges = 'Duke ringarkuar të drejtat';
$strRemoveSelectedUsers = 'Heq përdoruesit e zgjedhur';
-$strRenameDatabaseOK = 'Databazës %s i është ndryshuar emri në %s';
+$strRenameDatabaseOK = 'Databazës %s i është ndryshuar emri në %s';
$strRenameTableOK = 'Tabela %s u riemërtua %s';
$strRenameTable = 'Riemërto tabelën në';
$strRepairTable = 'Riparo tabelën';
@@ -463,7 +463,7 @@ $strRevokeAndDeleteDescr = 'Përdoruesit DO TË MUND TË PËRDORIN sidoqoftë t
$strRevokeAndDelete = 'Hiqja të gjitha të drejtat aktive përdoruesve dhe pastaj eleminoi.';
$strRevoke = 'Hiq';
$strRevokeMessage = 'Ke anulluar të drejtat për %s';
-$strRomanian = 'Romanisht';
+$strRomanian = 'Romanisht';
$strRowLength = 'Gjatësia e rreshtit';
$strRowsFrom = 'rreshta duke filluar nga';
$strRowSize = 'Madhësia e rreshtit';
@@ -500,7 +500,7 @@ $strSelectTables = 'Zgjidh Tabelat';
$strSend = 'Ruaje me emër...';
$strSent = 'Dërguar';
$strServerChoice = 'Zgjedhja e serverit';
-$strServerNotResponding = 'Serveri nuk përgjigjet';
+$strServerNotResponding = 'Serveri nuk përgjigjet';
$strServer = 'Serveri';
$strServerStatus = 'Informacione mbi Runtime';
$strServerStatusUptime = 'Ky server MySQL po punon që prej %s. U nis më %s.';
@@ -524,14 +524,14 @@ $strShowThisQuery = 'Tregoje përsëri këtë query';
$strSimplifiedChinese = 'Kineze e thjeshtëzuar';
$strSingly = '(një nga një)';
$strSize = 'Madhësia';
-$strSlovak = 'Sllovakisht';
-$strSlovenian = 'Sllovenisht';
+$strSlovak = 'Sllovakisht';
+$strSlovenian = 'Sllovenisht';
$strSortByKey = 'Rendit sipas kyçit';
$strSort = 'rreshtimi';
$strSpaceUsage = 'Hapësira e përdorur';
-$strSpanish = 'Spanjisht';
+$strSpanish = 'Spanjisht';
$strSplitWordsWithSpace = 'Fjalët janë të ndara me një hapsirë (" ").';
-$strSQLExportType = 'Lloji i Eksportit';
+$strSQLExportType = 'Lloji i Eksportit';
$strSQLParserBugMessage = 'Ka mundësi që ka një bug tek parser-i SQL. Ju lutem, kontrolloni query tuaj me kujdes, dhe kontrolloni që presjet të jenë ku duhet dhe jo të gabuara. Një shkak tjetër i mundshëm i gabimit mund të jetë që po mundoheni të uploadoni një file binar jashtë një zone teksti të kufizuar me presje. Mund edhe të provoni query tuaj MySQL nga interfaqja e shkruar e komandave. Gabimi i mëposhtëm i kthyer nga server-i MySQL, nëse ekziston një i tillë, mund tju ndihmojë në diagnostikimin e problemit. Nëse ka akoma probleme, apo n.q.s. parser-i SQL i phpMyAdmin gabon kur përkundrazi nga interfaqja e komandave të thjeshta nuk rezultojnë probleme, ju lutem zvogëloni query tuaj SQL në hyrje në query e vetme që shkakton probleme, dhe dërgoni një bug raportim me të dhënat rezultuese nga seksioni CUT i mëposhtëm:';
$strSQLParserUserError = 'Mesa duket ekziston një gabim tek query juaj SQL e futur. Gabimi i serverit MySQL i treguar më poshtë, nëse ekziston, mund t\'ju ndihmojë në diagnostikimin e problemit';
$strSQLQuery = 'query SQL';
@@ -548,7 +548,7 @@ $strStatus = 'Gjendja';
$strStrucCSV = 'të dhëna CSV';
$strStrucData = 'Struktura dhe të dhëna';
$strStrucExcelCSV = 'CSV për të dhëna MS Excel';
-$strStrucNativeExcel = 'Të dhëna orgjinale MS Excel';
+$strStrucNativeExcel = 'Të dhëna orgjinale MS Excel';
$strStrucOnly = 'Vetëm struktura';
$strStructPropose = 'Propozo strukturën e tabelës';
$strStructure = 'Struktura';
@@ -569,11 +569,11 @@ $strTableOptions = 'Opcione për tabelën';
$strTables = '%s tabela(at)';
$strTableStructure = 'Struktura e tabelës';
$strTable = 'Tabela';
-$strTakeIt = 'merre';
+$strTakeIt = 'merre';
$strTblPrivileges = 'Të drejta relative me tabelat';
$strTextAreaLength = ' Për shkak të gjatësisë saj, kjo fushë nuk mund të ndryshohet ';
$strThai = 'Thai';
-$strTheme = 'Tema / Stili';
+$strTheme = 'Tema / Stili';
$strThisHost = 'Këtë Host';
$strThreadSuccessfullyKilled = 'Thread %s u përfundua me sukses.';
$strTime = 'Koha';
@@ -581,9 +581,9 @@ $strToggleScratchboard = '(ç\')aktivo scratchboard';
$strTotal = 'Gjithsej';
$strTotalUC = 'Gjithsej';
$strTraditionalChinese = 'Kineze tradicionale';
-$strTraditionalSpanish = 'Spanjishte tradicionale';
+$strTraditionalSpanish = 'Spanjishte tradicionale';
$strTraffic = 'Trafiku';
-$strTransformation_application_octetstream__download = 'Shfaq një lidhje për të shkarkuar të dhënat binare të një fushe. Mundësia e parë është emri i file binar. Opcioni i dytë është emri i mundshëm i fushës së rreshtit të tabelës që përmban emrin e file. Nëse jepni opcionin e dytë, opcioni i parë duhet të jetë një stringë bosh';
+$strTransformation_application_octetstream__download = 'Shfaq një lidhje për të shkarkuar të dhënat binare të një fushe. Mundësia e parë është emri i file binar. Opcioni i dytë është emri i mundshëm i fushës së rreshtit të tabelës që përmban emrin e file. Nëse jepni opcionin e dytë, opcioni i parë duhet të jetë një stringë bosh';
$strTransformation_image_jpeg__inline = 'Shfaq një miniaturë të klikueshme; mundësitë: gjërësia, lartësia në pixels (ruan proporcionin origjinal)';
$strTransformation_image_jpeg__link = 'Shfaq një lidhje për tek kjo figurë (download blob direkt, p.sh.).';
$strTransformation_image_png__inline = 'Shiko figurën/jpeg: në linjë';
@@ -1489,4 +1489,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/arabic-utf-8.inc.php b/lang/arabic-utf-8.inc.php
index c619d4eb2..22b0793e9 100644
--- a/lang/arabic-utf-8.inc.php
+++ b/lang/arabic-utf-8.inc.php
@@ -1492,4 +1492,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/azerbaijani-utf-8.inc.php b/lang/azerbaijani-utf-8.inc.php
index 07086298a..c8ec30de1 100644
--- a/lang/azerbaijani-utf-8.inc.php
+++ b/lang/azerbaijani-utf-8.inc.php
@@ -1486,4 +1486,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/bangla-utf-8.inc.php b/lang/bangla-utf-8.inc.php
index b66c3b872..044fa55dd 100644
--- a/lang/bangla-utf-8.inc.php
+++ b/lang/bangla-utf-8.inc.php
@@ -8,7 +8,7 @@ $number_decimal_separator = '.';
// shortcuts for Byte, Kilo, Mega, Giga, Tera, Peta, Exa
$byteUnits = array('বাইট', 'কিলোবাইট', 'মেগাবাইট', 'গিগাবাইট', 'টেরাবাইট', 'পেটাবাইট', 'এক্সাবাইট');
-// MySQL manual language definition, this is optional, en will be used
+// MySQL manual language definition, this is optional, en will be used
// if not defined
$mysql_4_1_doc_lang = 'bn';
$mysql_5_0_doc_lang = 'bn';
@@ -1465,4 +1465,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/basque-utf-8.inc.php b/lang/basque-utf-8.inc.php
index 52137305a..0e30c638f 100644
--- a/lang/basque-utf-8.inc.php
+++ b/lang/basque-utf-8.inc.php
@@ -1483,4 +1483,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/belarusian_cyrillic-utf-8.inc.php b/lang/belarusian_cyrillic-utf-8.inc.php
index 7c03971f0..18c6629b2 100644
--- a/lang/belarusian_cyrillic-utf-8.inc.php
+++ b/lang/belarusian_cyrillic-utf-8.inc.php
@@ -1465,4 +1465,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/belarusian_latin-utf-8.inc.php b/lang/belarusian_latin-utf-8.inc.php
index 1ef77c4f8..538592594 100644
--- a/lang/belarusian_latin-utf-8.inc.php
+++ b/lang/belarusian_latin-utf-8.inc.php
@@ -1473,4 +1473,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/bosnian-utf-8.inc.php b/lang/bosnian-utf-8.inc.php
index 460f60696..62370069d 100644
--- a/lang/bosnian-utf-8.inc.php
+++ b/lang/bosnian-utf-8.inc.php
@@ -1489,4 +1489,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/brazilian_portuguese-utf-8.inc.php b/lang/brazilian_portuguese-utf-8.inc.php
index 91f90411c..45a31bb21 100644
--- a/lang/brazilian_portuguese-utf-8.inc.php
+++ b/lang/brazilian_portuguese-utf-8.inc.php
@@ -1,96 +1,99 @@
*/
+/* translated by: Airon Luis Pereira */
+/* contribution by: Fabio Bucior */
-$charset = 'utf-8';
+$charset = 'utf-8';
$text_dir = 'ltr'; // ('ltr' da esquerda para direita, 'rtl' da direita para esquerda)
-$number_thousands_separator = ',';
-$number_decimal_separator = '.';
-// abreviações para Byte, Kilo, Mega, Giga, Tera, Peta, Exa
-$byteUnits = array('Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB');
+$number_thousands_separator = ',';
+$number_decimal_separator = '.';
+// abreviações para Byte, Kilo, Mega, Giga, Tera, Peta, Exa
+$byteUnits = array('Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB');
$mysql_4_1_doc_lang = 'pt';
-$day_of_week = array('Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab');
-$month = array('Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez');
+$day_of_week = array('Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab');
+$month = array('Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez');
// Veja http://www.php.net/manual/en/function.strftime.php para definir
// as variáveis abaixo
-$datefmt = '%B %d, %Y as %I:%M %p';
+$datefmt = '%B %d, %Y as %I:%M %p';
-$timespanfmt = '%s dias, %s horas, %s minutos e %s segundos';
+$timespanfmt = '%s dias, %s horas, %s minutos e %s segundos';
-$strAbortedClients = 'Abortado';
-$strAccessDenied = 'Acesso negado';
+$strAbortedClients = 'Abortado';
+$strAccessDenied = 'Acesso negado';
$strAccessDeniedCreateConfig = 'A provável razão para isso é que você não criou o arquivo de configuração. Você deve usar o %1$ssetup script%2$s para criar um.';
-$strAccessDeniedExplanation = 'phpMyAdmin tentou se conectar no servidor MySQL e a conxão foi recusada. Você deve checar o servidor, nome de usuário e senha no config.inc.php e se certificar que correspondam com as informações fornecidas pelo administrador do servidor MySQL.';
-$strAction = 'Ação';
-$strAddAutoIncrement = 'Adicionar valor AUTO_INCREMENT';
+$strAccessDeniedExplanation = 'phpMyAdmin tentou se conectar no servidor MySQL e a conxão foi recusada. Você deve checar o servidor, nome de usuário e senha no config.inc.php e se certificar que correspondam com as informações fornecidas pelo administrador do servidor MySQL.';
+$strAction = 'Ação';
+$strActions = 'Ações';
+$strAddAutoIncrement = 'Adicionar valor AUTO_INCREMENT';
$strAddClause = 'Adicionar %s';
-$strAddConstraints = 'Adicionar restrições';
-$strAddDeleteColumn = 'Adicionar/Remover colunas';
-$strAddDeleteRow = 'Adicionar/Remover critérios de busca';
-$strAddFields = 'Adicionar %s campo(s)';
-$strAddHeaderComment = 'Adicionar comentário pessoal no cabeçalho (\\n quebra linhas)';
-$strAddIntoComments = 'Adicionar nos comentários';
-$strAddNewField = 'Adicionar novo campo';
-$strAddPrivilegesOnDb = 'Adicionar privilégios nas seguintes Banco de Dados';
-$strAddPrivilegesOnTbl = 'Adicionar privilégios nas seguintes tabelas';
-$strAddSearchConditions = 'Condição de Pesquisa (complemento da cláusula "onde"):';
-$strAddToIndex = 'Adicionar ao índice %s coluna(s)';
-$strAddUser = 'Adicionar novo usuário';
-$strAddUserMessage = 'Adicionado usuário';
-$strAdministration = 'Administração';
-$strAfter = 'Depois %s';
-$strAfterInsertBack = 'Retornar';
-$strAfterInsertNewInsert = 'Inserir novo registro';
-$strAfterInsertNext = 'Editar próximo registro';
-$strAfterInsertSame = 'Voltar para esta página';
+$strAddConstraints = 'Adicionar restrições';
+$strAddDeleteColumn = 'Adicionar/Remover colunas';
+$strAddDeleteRow = 'Adicionar/Remover critérios de busca';
+$strAddFields = 'Adicionar %s campo(s)';
+$strAddHeaderComment = 'Adicionar comentário pessoal no cabeçalho (\\n quebra linhas)';
+$strAddIntoComments = 'Adicionar nos comentários';
+$strAddNewField = 'Adicionar novo campo';
+$strAddPrivilegesOnDb = 'Adicionar privilégios nas seguintes Banco de Dados';
+$strAddPrivilegesOnTbl = 'Adicionar privilégios nas seguintes tabelas';
+$strAddSearchConditions = 'Condição de Pesquisa (complemento da cláusula "onde"):';
+$strAddToIndex = 'Adicionar ao índice %s coluna(s)';
+$strAddUser = 'Adicionar novo usuário';
+$strAddUserMessage = 'Adicionado usuário';
+$strAdministration = 'Administração';
+$strAfter = 'Depois %s';
+$strAfterInsertBack = 'Retornar';
+$strAfterInsertNewInsert = 'Inserir novo registro';
+$strAfterInsertNext = 'Editar próximo registro';
+$strAfterInsertSame = 'Voltar para esta página';
$strAllowInterrupt = 'Permitir interromper a importação caso se detecte que o script demorará perto do tempo limite. Isso pode ser um bom caminho para importar arquivos grandes, entretanto isso pode interromper as transações.';
-$strAllTableSameWidth = 'mostrar todas as tabelas com o mesmo tamanho?';
-$strAll = 'Todos';
-$strAlterOrderBy = 'Alterar tabela ordenada por';
-$strAnalyzeTable = 'Analizar tabela';
-$strAnd = 'E';
+$strAllTableSameWidth = 'mostrar todas as tabelas com o mesmo tamanho?';
+$strAll = 'Todos';
+$strAlterOrderBy = 'Alterar tabela ordenada por';
+$strAnalyze = 'Analizar';
+$strAnalyzeTable = 'Analizar tabela';
+$strAnd = 'E';
$strAndThen = 'e então';
$strAngularLinks = 'Links Angulares';
-$strAnIndex = 'Um índice foi adicionado a %s';
-$strAnyHost = 'Qualquer servidor';
-$strAny = 'Qualquer';
-$strAnyUser = 'Qualquer usuário';
-$strApproximateCount = 'Pode ser aproximado. Veja o FAQ 3.11';
-$strAPrimaryKey = 'Uma chave primária foi adicionada a %s';
-$strArabic = 'Árabe';
-$strArmenian = 'Armêno';
-$strAscending = 'Ascendente';
-$strAtBeginningOfTable = 'No início da tabela';
-$strAtEndOfTable = 'No final da tabela';
-$strAttr = 'Atributos';
-$strAutomaticLayout = 'Leiaute automático';
+$strAnIndex = 'Um índice foi adicionado a %s';
+$strAnyHost = 'Qualquer servidor';
+$strAny = 'Qualquer';
+$strAnyUser = 'Qualquer usuário';
+$strApproximateCount = 'Pode ser aproximado. Veja o FAQ 3.11';
+$strAPrimaryKey = 'Uma chave primária foi adicionada a %s';
+$strArabic = 'Árabe';
+$strArmenian = 'Armêno';
+$strAscending = 'Ascendente';
+$strAtBeginningOfTable = 'No início da tabela';
+$strAtEndOfTable = 'No final da tabela';
+$strAttr = 'Atributos';
+$strAutomaticLayout = 'Leiaute automático';
-$strBack = 'Voltar';
-$strBaltic = 'Báltico';
-$strBeginCut = 'INICIO CORTE';
-$strBeginRaw = 'INICIO CRU';
-$strBinary = ' Binário ';
-$strBinaryDoNotEdit = ' Binário - não edite ';
-$strBinaryLog = 'Log binário';
-$strBinLogEventType = 'Tipo de evento';
-$strBinLogInfo = 'Informação';
-$strBinLogName = 'Nome do log';
-$strBinLogOriginalPosition = 'Posição original';
-$strBinLogPosition = 'Posição';
-$strBinLogServerId = 'ID do Servidor';
-$strBookmarkAllUsers = 'Deixar qualquer usuário acessar esse marcador';
+$strBack = 'Voltar';
+$strBaltic = 'Báltico';
+$strBeginCut = 'INICIO CORTE';
+$strBeginRaw = 'INICIO CRU';
+$strBinary = ' Binário ';
+$strBinaryDoNotEdit = ' Binário - não edite ';
+$strBinaryLog = 'Log binário';
+$strBinLogEventType = 'Tipo de evento';
+$strBinLogInfo = 'Informação';
+$strBinLogName = 'Nome do log';
+$strBinLogOriginalPosition = 'Posição original';
+$strBinLogPosition = 'Posição';
+$strBinLogServerId = 'ID do Servidor';
+$strBookmarkAllUsers = 'Deixar qualquer usuário acessar esse marcador';
$strBookmarkCreated = 'Marcador %s criado';
-$strBookmarkDeleted = 'O marcador foi removido.';
-$strBookmarkLabel = 'Nome';
-$strBookmarkQuery = 'Consulta SQL gravada';
+$strBookmarkDeleted = 'O marcador foi removido.';
+$strBookmarkLabel = 'Nome';
+$strBookmarkQuery = 'Consulta SQL gravada';
$strBookmarkReplace = 'Substituir marcador de mesmo nome existente';
-$strBookmarkThis = 'Gravar essa consulta SQL';
-$strBookmarkView = 'Apenas visualizar';
+$strBookmarkThis = 'Gravar essa consulta SQL';
+$strBookmarkView = 'Apenas visualizar';
$strBrowseDistinctValues = 'Navegador distingue valores';
-$strBrowseForeignValues = 'Visualizar valores estrangeiros';
-$strBrowse = 'Visualizar';
+$strBrowseForeignValues = 'Visualizar valores estrangeiros';
+$strBrowse = 'Visualizar';
$strBufferPoolActivity = 'Atividade do Buffer Pool';
$strBufferPool = 'Buffer Pool';
$strBufferPoolUsage = 'Uso do Buffer Pool';
@@ -98,264 +101,271 @@ $strBufferReadMissesInPercent = 'Leitura falhou em %';
$strBufferReadMisses = 'Leitura falhou';
$strBufferWriteWaits = 'Escrever as esperas';
$strBufferWriteWaitsInPercent = 'Escrita esperada em %';
-$strBulgarian = 'Bulgaro';
+$strBulgarian = 'Bulgaro';
$strBusyPages = 'Página ocupadas';
-$strBzip = '"compactado com bzip"';
+$strBzip = '"compactado com bzip"';
-$strCalendar = 'Calendário';
+$strCalendar = 'Calendário';
$strCancel = 'Cancelar';
$strCanNotLoadExportPlugins = 'Não pode carregar exportação dos plugins, verifique sua instalação!';
$strCanNotLoadImportPlugins = 'Não foi possível importar plugins, verifique sua instalação!';
-$strCannotLogin = 'Não foi possível se logar no servidor MySQL';
-$strCantLoad = 'não carregou extensão %s, verifique a configurações do php';
-$strCantLoadRecodeIconv = 'Não é possível carregar iconv ou recodificar a extensão necessária para a conversão do Conjunto de Caracteres, configure o PHP de modo a permitir utilizar estas extensões ou desligue a conversão do Conjunto de Caracteres no phpMyAdmin.';
-$strCantRenameIdxToPrimary = 'Não foi possível renomear o índice para "PRIMARY"!';
-$strCantUseRecodeIconv = 'Não é possível usar iconv nem libiconv nem a função recode_string enquanto a extensão reportar que está ligada. Confira a configuração do seu php.';
-$strCardinality = 'Cardinalidade';
-$strCaseInsensitive = 'Não diferencia maiúsculas/minúsculas';
-$strCaseSensitive = 'Diferencia maiúsculas/minúsculas';
-$strCentralEuropean = 'Europeu Central';
-$strChange = 'Alterar';
-$strChangeCopyModeCopy = '... manter o antigo.';
-$strChangeCopyMode = 'Criar um novo usuário com os mesmos privilégios e ...';
-$strChangeCopyModeDeleteAndReload = ' ... apagar o antigo da tabela de usuários e depois recarregar os privilégios.';
-$strChangeCopyModeJustDelete = ' ... apagar o antigo da tabela de usuários.';
-$strChangeCopyModeRevoke = ' ... revogar todos privilégios do usuário antigo e depois apagar ele.';
-$strChangeCopyUser = 'Mudar informações de login / Copiar usuário';
-$strChangeDisplay = 'Escolha o campo para exibir';
-$strChangePassword = 'Alterar a senha';
-$strCharset = 'Conjunto de caracteres';
-$strCharsetOfFile = 'Conjunto de caracteres do arquivo';
-$strCharsetsAndCollations = 'Conjuntos de caracteres e Collations';
-$strCharsets = 'Conjuntos de caracteres';
-$strCheckAll = 'Marcar todos';
-$strCheckOverhead = 'Verificar sobre-carga';
-$strCheckPrivsLong = 'Verificar privilégios para a Banco de Dados "%s".';
-$strCheckPrivs = 'Verificar privilégios';
-$strCheckTable = 'Verificar tabela';
-$strChoosePage = 'Escolha a página para editar';
-$strColComFeat = 'Exibindo comentários da coluna';
-$strCollation = 'Collation';
-$strColumnNames = 'Nome das colunas';
-$strColumnPrivileges = 'Privilégios específicos da coluna';
-$strCommand = 'Comando';
-$strComments = 'Comentários';
-$strCompatibleHashing = 'Compatível com MySQL 4.0';
-$strCompleteInserts = 'Inserções completas';
-$strCompression = 'Compressão';
+$strCannotLogin = 'Não foi possível se logar no servidor MySQL';
+$strCantLoad = 'não carregou extensão %s, verifique a configurações do php';
+$strCantLoadRecodeIconv = 'Não é possível carregar iconv ou recodificar a extensão necessária para a conversão do Conjunto de Caracteres, configure o PHP de modo a permitir utilizar estas extensões ou desligue a conversão do Conjunto de Caracteres no phpMyAdmin.';
+$strCantRenameIdxToPrimary = 'Não foi possível renomear o índice para "PRIMARY"!';
+$strCantUseRecodeIconv = 'Não é possível usar iconv nem libiconv nem a função recode_string enquanto a extensão reportar que está ligada. Confira a configuração do seu php.';
+$strCardinality = 'Cardinalidade';
+$strCaseInsensitive = 'Não diferencia maiúsculas/minúsculas';
+$strCaseSensitive = 'Diferencia maiúsculas/minúsculas';
+$strCentralEuropean = 'Europeu Central';
+$strChange = 'Alterar';
+$strChangeCopyModeCopy = '... manter o antigo.';
+$strChangeCopyMode = 'Criar um novo usuário com os mesmos privilégios e ...';
+$strChangeCopyModeDeleteAndReload = ' ... apagar o antigo da tabela de usuários e depois recarregar os privilégios.';
+$strChangeCopyModeJustDelete = ' ... apagar o antigo da tabela de usuários.';
+$strChangeCopyModeRevoke = ' ... revogar todos privilégios do usuário antigo e depois apagar ele.';
+$strChangeCopyUser = 'Mudar informações de login / Copiar usuário';
+$strChangeDisplay = 'Escolha o campo para exibir';
+$strChangePassword = 'Alterar a senha';
+$strCharset = 'Conjunto de caracteres';
+$strCharsetOfFile = 'Conjunto de caracteres do arquivo';
+$strCharsetsAndCollations = 'Conjuntos de caracteres e Collations';
+$strCharsets = 'Conjuntos de caracteres';
+$strCheckAll = 'Marcar todos';
+$strCheck = 'Checar';
+$strCheckOverhead = 'Verificar sobre-carga';
+$strCheckPrivsLong = 'Verificar privilégios para a Banco de Dados "%s".';
+$strCheckPrivs = 'Verificar privilégios';
+$strCheckTable = 'Verificar tabela';
+$strChoosePage = 'Escolha a página para editar';
+$strColComFeat = 'Exibindo comentários da coluna';
+$strCollation = 'Collation';
+$strColumnNames = 'Nome das colunas';
+$strColumnPrivileges = 'Privilégios específicos da coluna';
+$strCommand = 'Comando';
+$strComment = 'Cometário';
+$strComments = 'Comentários';
+$strCompatibleHashing = 'Compatível com MySQL 4.0';
+$strCompleteInserts = 'Inserções completas';
+$strCompression = 'Compressão';
$strCompressionWillBeDetected = 'Compressão do arquivo importado será automaticamente detectada de: %s';
$strConfigDefaultFileError = 'Não foi possível carregar configuração padrão de: "%1$s"';
-$strConfigFileError = 'O phpMyAdmin não foi capaz de ler o arquivo de configuração! Isto pode acontecer se o php encontrar um erro no parsing ou se não conseguir encontrar o arquivo. Chame o arquivo de configuração diretamente usando o link abaixo e leia a(s) mensagem(ns) de erro do php. Na maior parte dos casos, trata-se de uma falta de aspas ou de um ponto e vírgula errado. Se receber uma página em branco, está tudo certo.';
-$strConfigureTableCoord = 'Configure as coordenadas para a tabela %s';
-$strConnectionError = 'Não pode conectar: configurações inválidas.';
-$strConnections = 'Conexões';
-$strConstraintsForDumped = 'Restrições para as tabelas dumpadas';
-$strConstraintsForTable = 'Restrições para a tabela';
+$strConfigFileError = 'O phpMyAdmin não foi capaz de ler o arquivo de configuração! Isto pode acontecer se o php encontrar um erro no parsing ou se não conseguir encontrar o arquivo. Chame o arquivo de configuração diretamente usando o link abaixo e leia a(s) mensagem(ns) de erro do php. Na maior parte dos casos, trata-se de uma falta de aspas ou de um ponto e vírgula errado. Se receber uma página em branco, está tudo certo.';
+$strConfigureTableCoord = 'Configure as coordenadas para a tabela %s';
+$strConnectionError = 'Não pode conectar: configurações inválidas.';
+$strConnections = 'Conexões';
+$strConstraintsForDumped = 'Restrições para as tabelas dumpadas';
+$strConstraintsForTable = 'Restrições para a tabela';
$strControluserFailed = 'Conexão para controle do usuário como definido nas configurações falhou.';
-$strCookiesRequired = 'Cookies devem estar ativos após este ponto.';
+$strCookiesRequired = 'Cookies devem estar ativos após este ponto.';
$strCopy = 'Copiar';
-$strCopyDatabaseOK = 'Banco de Dados %s copiado para %s';
-$strCopyTable = 'Copiar tabela para (Banco de Dados.tabela):';
-$strCopyTableOK = 'Tabela %s copiada para %s.';
-$strCopyTableSameNames = 'Não pode copiar a tabela para ela mesma!';
-$strCouldNotKill = 'phpMyAdmin não foi capaz de matar o processo %s. É possível que ele já esteja fechado.';
-$strCreate = 'Criar';
+$strCopyDatabaseOK = 'Banco de Dados %s copiado para %s';
+$strCopyTable = 'Copiar tabela para (Banco de Dados.tabela):';
+$strCopyTableOK = 'Tabela %s copiada para %s.';
+$strCopyTableSameNames = 'Não pode copiar a tabela para ela mesma!';
+$strCouldNotKill = 'phpMyAdmin não foi capaz de matar o processo %s. É possível que ele já esteja fechado.';
+$strCreate = 'Criar';
$strCreateDatabaseBeforeCopying = 'CREATE DATABASE antes de copiar';
-$strCreateIndex = 'Criar um índice em %s colunas';
-$strCreateIndexTopic = 'Criar um novo índice';
-$strCreateNewDatabase = 'Criar novo Banco de Dados';
-$strCreateNewTable = 'Criar nova tabela no Banco de Dados %s';
-$strCreatePage = 'Criar uma nova página';
-$strCreatePdfFeat = 'Criação de PDFs';
+$strCreateIndex = 'Criar um índice em %s colunas';
+$strCreateIndexTopic = 'Criar um novo índice';
+$strCreateNewDatabase = 'Criar novo Banco de Dados';
+$strCreateNewTable = 'Criar nova tabela no Banco de Dados %s';
+$strCreatePage = 'Criar uma nova página';
+$strCreatePdfFeat = 'Criação de PDFs';
$strCreateRelation = 'Criar relacionamento';
$strCreateTable = 'Criar tabela';
$strCreateUserDatabase = 'Banco de Dados para usuário';
$strCreateUserDatabaseName = 'Criar Banco de Dados com o mesmo nome e conceder todos os privilégios';
$strCreateUserDatabaseNone = 'Nenhum';
$strCreateUserDatabaseWildcard = 'Conceder todos os privilégios no nome coringa (nome_do_usuário_%)';
-$strCreationDates = 'Criar/Atualizar/Verificar datas';
-$strCriteria = 'Critério';
-$strCroatian = 'Croata';
+$strCreationDates = 'Criar/Atualizar/Verificar datas';
+$strCriteria = 'Critério';
+$strCroatian = 'Croata';
$strCSV = 'CSV';
-$strCyrillic = 'Cirílico';
-$strCzechSlovak = 'Tcheco-Eslováquio';
-$strCzech = 'Tcheco';
+$strCyrillic = 'Cirílico';
+$strCzechSlovak = 'Tcheco-Eslováquio';
+$strCzech = 'Tcheco';
-$strDanish = 'Dinamarquês';
-$strDatabase = 'Banco de Dados';
-$strDatabaseEmpty = 'O nome do Banco de Dados está em branco!';
-$strDatabaseExportOptions = 'Opções de exportação do Banco de Dados';
-$strDatabaseHasBeenDropped = 'Banco de Dados %s foi eliminado.';
-$strDatabases = 'Banco de Dados';
-$strDatabasesDropped = 'Banco de Dados %s foi eliminado com sucesso!';
-$strDatabasesStatsDisable = 'Disabilitar estatísticas';
-$strDatabasesStatsEnable = 'Habilitar estatísticas';
-$strDatabasesStats = 'Estatísticas do Banco de Dados';
-$strDatabasesStatsHeavyTraffic = 'Nota: Ativar as estatísticas pode causar um grande volume de tráfego de dados entre o servidor web e o servidor MySQL.';
-$strData = 'Dados';
-$strDataDict = 'Dicionário de dados';
-$strDataOnly = 'Dados apenas';
+$strDanish = 'Dinamarquês';
+$strDatabase = 'Banco de Dados';
+$strDatabaseEmpty = 'O nome do Banco de Dados está em branco!';
+$strDatabaseExportOptions = 'Opções de exportação do Banco de Dados';
+$strDatabaseHasBeenCreated = 'Banco de dados %1$s foi criado.';
+$strDatabaseHasBeenDropped = 'Banco de Dados %s foi eliminado.';
+$strDatabases = 'Banco de Dados';
+$strDatabasesDropped = 'Banco de Dados %s foi eliminado com sucesso!';
+$strDatabasesStatsDisable = 'Disabilitar estatísticas';
+$strDatabasesStatsEnable = 'Habilitar estatísticas';
+$strDatabasesStats = 'Estatísticas do Banco de Dados';
+$strDatabasesStatsHeavyTraffic = 'Nota: Ativar as estatísticas pode causar um grande volume de tráfego de dados entre o servidor web e o servidor MySQL.';
+$strData = 'Dados';
+$strDataDict = 'Dicionário de dados';
+$strDataOnly = 'Dados apenas';
$strDataPages = 'Páginas contendo dados';
-$strDBComment = 'Comentário do Banco de Dados: ';
-$strDBCopy = 'Copiar Banco de Dados para';
+$strDBComment = 'Comentário do Banco de Dados: ';
+$strDBCopy = 'Copiar Banco de Dados para';
$strDbIsEmpty = 'Banco de Dados parece estar vazio!';
-$strDbPrivileges = 'Privilégios específicos do Banco de Dados';
-$strDBRename = 'Renomear Banco de Dados para';
-$strDbSpecific = 'Específico do Banco de Dados';
+$strDbPrivileges = 'Privilégios específicos do Banco de Dados';
+$strDBRename = 'Renomear Banco de Dados para';
+$strDbSpecific = 'Específico do Banco de Dados';
$strDefaultEngine = '%s é o stored engine padrão neste servidor MySQL.';
-$strDefault = 'Padrão';
-$strDefaultValueHelp = 'Para valores padrão, digite um valor simples, sem barras de escape ou aspas, use este formato: a';
-$strDefragment = 'Desfragmentar tabela';
-$strDelayedInserts = 'Usar inserções demoradas';
-$strDeleteAndFlush = 'Apagar usuário e depois recarregar os privilégios.';
-$strDeleteAndFlushDescr = 'Esse é o caminho mais claro, mas recarregar os privilégios pode demorar um pouco.';
-$strDeleted = 'Registro eliminado';
+$strDefault = 'Padrão';
+$strDefaultValueHelp = 'Para valores padrão, digite um valor simples, sem barras de escape ou aspas, use este formato: a';
+$strDefragment = 'Desfragmentar tabela';
+$strDelayedInserts = 'Usar inserções demoradas';
+$strDeleteAndFlush = 'Apagar usuário e depois recarregar os privilégios.';
+$strDeleteAndFlushDescr = 'Esse é o caminho mais claro, mas recarregar os privilégios pode demorar um pouco.';
+$strDeleted = 'Registro eliminado';
$strDeleteNoUsersSelected = 'Nenhum usuário selecionado para exclusão!';
$strDeleteRelation = 'Apagar relacionamento';
-$strDelete = 'Remover';
-$strDeleting = 'Eliminando %s';
+$strDelete = 'Remover';
+$strDeleting = 'Eliminando %s';
$strDelimiter = 'Delimitadores';
-$strDelOld = 'A Página atual contêm referências para uma tabela que não existe. Gostaria de eliminar estas referências?';
-$strDescending = 'Descendente';
-$strDescription = 'Descrição';
+$strDelOld = 'A Página atual contêm referências para uma tabela que não existe. Gostaria de eliminar estas referências?';
+$strDescending = 'Descendente';
+$strDescription = 'Descrição';
$strDesigner = 'Designer';
$strDesignerHelpDisplayField = 'O campo de exibição está em rosa. Para ajustar/desajustar um campo como campo de exibição, clique no ícone "Escolher campo para exibição", então clique no nome do campo apropriado.';
-$strDictionary = 'dicionário';
+$strDetails = 'Detalhes...';
+$strDictionary = 'dicionário';
$strDirectLinks = 'Links diretos';
$strDirtyPages = 'Páginas sujas';
-$strDisabled = 'Desabilitado';
-$strDisableForeignChecks = 'Desabilitar verificação de chaves estrangeiras';
-$strDisplayFeat = 'Exibir recursos';
-$strDisplayOrder = 'Ordenado por:';
-$strDisplayPDF = 'Exibir esquema PDF';
-$strDoAQuery = 'Faça uma "consulta por exemplo" (coringa: "%")';
+$strDisabled = 'Desabilitado';
+$strDisableForeignChecks = 'Desabilitar verificação de chaves estrangeiras';
+$strDisplayFeat = 'Exibir recursos';
+$strDisplayOrder = 'Ordenado por:';
+$strDisplayPDF = 'Exibir esquema PDF';
+$strDoAQuery = 'Faça uma "consulta por exemplo" (coringa: "%")';
$strDocSQL = 'DocSQL';
-$strDocu = 'Documentação';
-$strDoYouReally = 'Confirmar';
-$strDropDatabaseStrongWarning = 'Você está prestes à DESTRUIR completamente o Banco de Dados!';
-$strDrop = 'Eliminar';
-$strDropUsersDb = 'Eliminar o Banco de Dados que possui o mesmo nome dos usuários.';
-$strDumpingData = 'Extraindo dados da tabela';
-$strDumpSaved = 'Dump foi salvo no arquivo %s.';
-$strDumpXRows = 'Dumpar %s registros, começando pelo registro %s.';
-$strDynamic = 'dinâmico';
+$strDocu = 'Documentação';
+$strDoYouReally = 'Confirmar';
+$strDropDatabaseStrongWarning = 'Você está prestes à DESTRUIR completamente o Banco de Dados!';
+$strDrop = 'Eliminar';
+$strDropUsersDb = 'Eliminar o Banco de Dados que possui o mesmo nome dos usuários.';
+$strDumpingData = 'Extraindo dados da tabela';
+$strDumpSaved = 'Dump foi salvo no arquivo %s.';
+$strDumpXRows = 'Dumpar %s registros, começando pelo registro %s.';
+$strDynamic = 'dinâmico';
-$strEdit = 'Editar';
-$strEditPDFPages = 'Editar Páginas PDF';
-$strEditPrivileges = 'Editar Privilégios';
-$strEffective = 'Efetivo';
-$strEmpty = 'Limpar';
-$strEmptyResultSet = 'MySQL retornou um conjunto vazio (ex. zero registros).';
-$strEnabled = 'Habilitado';
-$strEncloseInTransaction = 'Encapsular exportação numa transação';
-$strEndCut = 'FIM CORTE';
-$strEnd = 'Fim';
-$strEndRaw = 'FIM CRU';
+$strEdit = 'Editar';
+$strEditPDFPages = 'Editar Páginas PDF';
+$strEditPrivileges = 'Editar Privilégios';
+$strEffective = 'Efetivo';
+$strEmpty = 'Limpar';
+$strEmptyResultSet = 'MySQL retornou um conjunto vazio (ex. zero registros).';
+$strEnabled = 'Habilitado';
+$strEncloseInTransaction = 'Encapsular exportação numa transação';
+$strEndCut = 'FIM CORTE';
+$strEnd = 'Fim';
+$strEndRaw = 'FIM CRU';
$strEngineAvailable = '%s está disponível neste servidor MySQL.';
$strEngineDisabled = '%s está desabilitado neste servidor MySQL.';
$strEngines = 'Engines'; //sem traducao
$strEngineUnsupported = 'Esse servidor MySQL não suporta o stored engine %s.';
-$strEnglish = 'Inglês';
-$strEnglishPrivileges = ' Nota: nomes de privilégios do MySQL são expressos em inglês ';
-$strError = 'Erro';
+$strEnglish = 'Inglês';
+$strEnglishPrivileges = ' Nota: nomes de privilégios do MySQL são expressos em inglês ';
+$strError = 'Erro';
$strErrorInZipFile = 'Erro no arquivo ZIP:';
$strErrorRelationAdded = 'Erro: relacionamento não adicionado.';
$strErrorRelationExists = 'Erro: relacionamento já existe.';
$strErrorRenamingTable = 'Erro ao renomear tabela %1$s para %2$s';
$strErrorSaveTable = 'Erro ao salvar coordenada para o Designer.';
-$strEscapeWildcards = 'Coringas _ e % precisam ser precedidos com uma \ para serem usados literalmente';
+$strEscapeWildcards = 'Coringas _ e % precisam ser precedidos com uma \ para serem usados literalmente';
$strEsperanto = 'Esperanto';
-$strEstonian = 'Estoniano';
+$strEstonian = 'Estoniano';
$strEvent = 'Evento';
-$strExcelEdition = 'Edição do Excel';
-$strExecuteBookmarked = 'Executar consulta marcada';
-$strExplain = 'Explicar SQL';
-$strExport = 'Exportar';
+$strEvents = 'Eventos';
+$strExcelEdition = 'Edição do Excel';
+$strExecuteBookmarked = 'Executar consulta marcada';
+$strExplain = 'Explicar SQL';
+$strExport = 'Exportar';
$strExportImportToScale = 'Exportar/Importar para escala';
$strExportMustBeFile = 'Tipo de exportação selecionada tem que ser salva no arquivo!';
-$strExtendedInserts = 'Inserções extendidas';
-$strExtra = 'Extra';
+$strExtendedInserts = 'Inserções extendidas';
+$strExtra = 'Extra';
-$strFailedAttempts = 'Tentativas falharam';
-$strField = 'Campo';
-$strFieldHasBeenDropped = 'Campo %s foi deletado';
+$strFailedAttempts = 'Tentativas falharam';
+$strField = 'Campo';
+$strFieldHasBeenDropped = 'Campo %s foi deletado';
$strFieldInsertFromFileTempDirNotExists = 'Erro ao mover o arquivo carregado, veja FAQ 1.11';
-$strFields = 'Campos';
-$strFieldsEnclosedBy = 'Campos delimitados por';
-$strFieldsEscapedBy = 'Campos contornados por';
-$strFieldsTerminatedBy = 'Campos terminados por';
-$strFileAlreadyExists = 'O arquivo %s já existe no servidor, mude o nome do arquivo ou verifique sua opção de sobrescrever.';
-$strFileCouldNotBeRead = 'O arquivo não pode ser lido';
+$strFields = 'Campos';
+$strFieldsEnclosedBy = 'Campos delimitados por';
+$strFieldsEscapedBy = 'Campos contornados por';
+$strFieldsTerminatedBy = 'Campos terminados por';
+$strFileAlreadyExists = 'O arquivo %s já existe no servidor, mude o nome do arquivo ou verifique sua opção de sobrescrever.';
+$strFileCouldNotBeRead = 'O arquivo não pode ser lido';
$strFileNameTemplateDescriptionDatabase = 'nome do Banco de Dados';
$strFileNameTemplateDescription = 'Esse valor é interpretado usando %1$sstrftime%2$s, então você pode usar as strings de formatação de tempo. Adicionalmente a seguinte transformação ocorrerá: %3$s. Outros textos serão mantidos como são.';
$strFileNameTemplateDescriptionServer = 'nome do servidor';
$strFileNameTemplateDescriptionTable = 'nome da tabela';
-$strFileNameTemplate = 'Nome do arquivo do modelo';
-$strFileNameTemplateRemember = 'lembrar modelo';
+$strFileNameTemplate = 'Nome do arquivo do modelo';
+$strFileNameTemplateRemember = 'lembrar modelo';
$strFiles = 'Arquivos';
$strFileToImport = 'Arquivo para importar';
-$strFlushPrivilegesNote = 'Nota: O phpMyAdmin recebe os privilégios dos usuário diretamente da tabela de privilégios do MySQL. O conteúdo destas tabelas pode divergir dos privilégios que o servidor usa se alterações manuais forem feitas nele. Neste caso, você deve usar %sRELOAD PRIVILEGES%s antes de continuar..';
+$strFlushPrivilegesNote = 'Nota: O phpMyAdmin recebe os privilégios dos usuário diretamente da tabela de privilégios do MySQL. O conteúdo destas tabelas pode divergir dos privilégios que o servidor usa se alterações manuais forem feitas nele. Neste caso, você deve usar %sRELOAD PRIVILEGES%s antes de continuar..';
$strFlushQueryCache = 'Nivelar cache da consulta'; //está correto isso?
-$strFlushTable = 'Limpar a tabela ("LIMPAR")';
+$strFlushTable = 'Limpar a tabela ("LIMPAR")';
$strFlushTables = 'Nivelar (fechar) todas as tabelas'; //está correto isso?
$strFontSize = 'Tamanho da fonte';
-$strFormat = 'Formato';
-$strFormEmpty = 'Faltando valores no formulário!';
+$strForeignKeyError = 'Erro ao criar chave externa no %1$s (check data types)';
+$strFormat = 'Formato';
+$strFormEmpty = 'Faltando valores no formulário!';
$strFreePages = 'Páginas livres';
-$strFullText = 'Textos completos';
-$strFunction = 'Funções';
+$strFullText = 'Textos completos';
+$strFunction = 'Funções';
$strFunctions = 'Funções';
-$strGenBy = 'Gerado por';
-$strGeneralRelationFeat = 'Recursos de relações gerais';
+$strGenBy = 'Gerado por';
+$strGeneralRelationFeat = 'Recursos de relações gerais';
$strGenerate = 'Gerar';
$strGeneratePassword = 'Gerar Senha';
-$strGenTime = 'Tempo de Geração';
-$strGeorgian = 'Georgiano';
-$strGerman = 'Alemão';
-$strGlobal = 'global';
-$strGlobalPrivileges = 'Privilégios globais';
-$strGlobalValue = 'Valor global';
-$strGo = 'Executar';
-$strGrantOption = 'Conceder/Grant';
-$strGreek = 'Grego';
-$strGzip = '"compactado com gzip"';
+$strGenTime = 'Tempo de Geração';
+$strGeorgian = 'Georgiano';
+$strGerman = 'Alemão';
+$strGlobal = 'global';
+$strGlobalPrivileges = 'Privilégios globais';
+$strGlobalValue = 'Valor global';
+$strGo = 'Executar';
+$strGrantOption = 'Conceder/Grant';
+$strGreek = 'Grego';
+$strGzip = '"compactado com gzip"';
$strHandler = 'Alimentador'; //está correto isso? seria Gestor??
-$strHasBeenAltered = 'foi alterado.';
-$strHaveToShow = 'Deve escolher pelo menos uma coluna para exibir';
-$strHebrew = 'Hebreu';
+$strHasBeenAltered = 'foi alterado.';
+$strHaveToShow = 'Deve escolher pelo menos uma coluna para exibir';
+$strHebrew = 'Hebreu';
$strHelp = 'Ajuda';
$strHexForBLOB = 'Usar hexadecimal para BLOB';
$strHide = 'Ocultar';
$strHideShowAll = 'Ocultar/Exibir tudo';
$strHideShowNoRelation = 'Ocultar/Exibir Tabelas sem relacionamento';
-$strHomepageOfficial = 'Página Oficial do phpMyAdmin';
-$strHome = 'Principal';
-$strHostEmpty = 'O nome do servidor está vazio!';
-$strHost = 'Servidor';
+$strHomepageOfficial = 'Página Oficial do phpMyAdmin';
+$strHome = 'Principal';
+$strHostEmpty = 'O nome do servidor está vazio!';
+$strHost = 'Servidor';
$strHTMLExcel = 'Microsoft Excel 2000';
$strHTMLWord = 'Microsoft Word 2000';
-$strHungarian = 'Húngaro';
+$strHungarian = 'Húngaro';
-$strIcelandic = 'Islandês';
-$strId = 'ID';
-$strIdxFulltext = 'Texto completo';
+$strIcelandic = 'Islandês';
+$strId = 'ID';
+$strIdxFulltext = 'Texto completo';
$strIEUnsupported = 'Internet Explorer não suporta esta função.';
$strIgnoreDuplicates = 'Ignorar linhas duplicadas';
-$strIgnore = 'Ignorar';
-$strIgnoreInserts = 'Usar inserções ignoradas';
+$strIgnore = 'Ignorar';
+$strIgnoreInserts = 'Usar inserções ignoradas';
$strImportExportCoords = 'Importar/Exportar coordenadas para esquema PDF';
-$strImportFiles = 'Importar arquivos';
+$strImportFiles = 'Importar arquivos';
$strImportFormat = 'Formato do arquivo importado';
$strImport = 'Importar';
$strImportSuccessfullyFinished = 'Importação finalizada com sucesso, %d consultas executadas.';
-$strIndexes = 'Índices';
-$strIndexHasBeenDropped = 'Índice %s foi eliminado';
-$strIndex = 'Índice';
-$strIndexName = 'Nome do índice:';
-$strIndexType = 'Tipo de índice:';
-$strIndexWarningTable = 'Problemas com o índice da tabela `%s`';
+$strIndexes = 'Índices';
+$strIndexesSeemEqual = 'A indexação %1$s e %2$s parecem ser iguais ou uma delas pode ter sido removida.';
+$strIndexHasBeenDropped = 'Índice %s foi eliminado';
+$strIndex = 'Índice';
+$strIndexName = 'Nome do índice:';
+$strIndexType = 'Tipo de índice:';
+$strIndexWarningTable = 'Problemas com o índice da tabela `%s`';
$strInnoDBAutoextendIncrementDesc = 'O tamanho do incremento para extender o tamanho de um tamanho de tabela autoextendida quando ela começar à ficar cheia.';
$strInnoDBAutoextendIncrement = 'Incremento autoextendido';
$strInnoDBBufferPoolSizeDesc = 'O tamanho do buffer de memória que o InnoDB usa para dados do cache e índices nas suas tabelas.';
@@ -364,13 +374,15 @@ $strInnoDBDataFilePath = 'Arquivos de dados';
$strInnoDBDataHomeDirDesc = 'A parte comum do caminho do diretório para todos os arquivos de dados do InnoDB.';
$strInnoDBDataHomeDir = 'Diretório raiz de dados';
$strInnoDBPages = 'páginas';
-$strInnodbStat = 'Status do InnoDB';
-$strInsecureMySQL = 'O seu arquivo de configuração contém configurações (root sem senha) que correspondem à conta privilegiada padrão do MySQL. O servidor MySQL rodando com esse padrão estará aberto a invasões, você realmente deveria corrigir este furo de segurança.';
-$strInsertAsNewRow = 'Inserir como um novo registro';
-$strInsert = 'Inserir';
+$strInnodbStat = 'Status do InnoDB';
+$strInsecureMySQL = 'O seu arquivo de configuração contém configurações (root sem senha) que correspondem à conta privilegiada padrão do MySQL. O servidor MySQL rodando com esse padrão estará aberto a invasões, você realmente deveria corrigir este furo de segurança.';
+$strInsertAsNewRow = 'Inserir como um novo registro';
+$strInsertedRowId = 'Id da linha inserida: %1$d';
+$strInsert = 'Inserir';
+$strInterface = 'Interface'; // Não há tradução clara...
$strInternalRelationAdded = 'Adicionado relacionamento Interno';
-$strInternalRelations = 'Relações internas';
-$strInUse = 'em uso';
+$strInternalRelations = 'Relações internas';
+$strInUse = 'em uso';
$strInvalidAuthMethod = 'Método de autenticação inválido informado nas configurações:';
$strInvalidColumn = 'Coluna especificada (%s) é inválida!';
$strInvalidColumnCount = 'Contador da coluna deve ser maior que zero.';
@@ -386,74 +398,74 @@ $strInvalidServerHostname = 'Nome de serivdor inválido para o servidor %1$s. Ve
$strInvalidServerIndex = 'Índice de servidor inválido: "%s"';
$strInvalidTableName = 'Nome de tabela inválida';
-$strJapanese = 'Japonês';
+$strJapanese = 'Japonês';
$strJoins = 'Junções';
-$strJumpToDB = 'Ir para o Banco de Dados "%s".';
-$strJustDelete = 'Apenas apagar o usuário da tabela de privilégios';
-$strJustDeleteDescr = 'O usuário "apagado" ainda podera continuar acessando o servidor normalmente até que os privilégios sejam recarregados.';
+$strJumpToDB = 'Ir para o Banco de Dados "%s".';
+$strJustDelete = 'Apenas apagar o usuário da tabela de privilégios';
+$strJustDeleteDescr = 'O usuário "apagado" ainda podera continuar acessando o servidor normalmente até que os privilégios sejam recarregados.';
-$strKeepPass = 'Não mudar a senha';
+$strKeepPass = 'Não mudar a senha';
$strKeyCache = 'Chave do cache';
-$strKeyname = 'Nome chave';
-$strKill = 'Matar';
+$strKeyname = 'Nome chave';
+$strKill = 'Matar';
$strKnownExternalBug = 'A funcionalidade %s é afetada por um bug conhecido, veja %s';
-$strKorean = 'Coreano';
+$strKorean = 'Coreano';
-$strLandscape = 'Paisagem';
+$strLandscape = 'Paisagem';
$strLanguage = 'Linguagem';
$strLanguageUnknown = 'Linguagem desconhecida: %1$s.';
$strLatchedPages = 'Páginas trancadas';
-$strLatexCaption = 'Leganda da Tabela';
-$strLatexContent = 'Conteúdo da tabela __TABLE__';
-$strLatexContinuedCaption = 'Continuação da legenda da tabela';
-$strLatexContinued = '(continuação)';
-$strLatexIncludeCaption = 'Incluir legenda da tabela';
-$strLatexLabel = 'Rótulo da chave';
-$strLaTeX = 'LaTeX';
-$strLatexStructure = 'Estrutura da tabela __TABLE__';
-$strLatvian = 'Letonês';
+$strLatexCaption = 'Leganda da Tabela';
+$strLatexContent = 'Conteúdo da tabela __TABLE__';
+$strLatexContinuedCaption = 'Continuação da legenda da tabela';
+$strLatexContinued = '(continuação)';
+$strLatexIncludeCaption = 'Incluir legenda da tabela';
+$strLatexLabel = 'Rótulo da chave';
+$strLaTeX = 'LaTeX';
+$strLatexStructure = 'Estrutura da tabela __TABLE__';
+$strLatvian = 'Letonês';
$strLDI = 'CSV usando LOAD DATA';
$strLDILocal = 'Usar palavra-chave LOCAL';
-$strLengthSet = 'Tamanho/Definir*';
-$strLimitNumRows = 'registros por página';
-$strLinesTerminatedBy = 'Linhas terminadas por';
-$strLinkNotFound = 'Link não encontrado';
-$strLinksTo = 'Links para';
-$strLithuanian = 'Lituânio';
-$strLocalhost = 'Local';
-$strLocationTextfile = 'Localização do arquivo texto';
-$strLogin = 'Autenticação';
-$strLoginInformation = 'Informação de login';
-$strLogout = 'Sair';
-$strLogPassword = 'Senha:';
-$strLogServer = 'Servidor';
-$strLogUsername = 'Usuário:';
+$strLengthSet = 'Tamanho/Definir*';
+$strLimitNumRows = 'registros por página';
+$strLinesTerminatedBy = 'Linhas terminadas por';
+$strLinkNotFound = 'Link não encontrado';
+$strLinksTo = 'Links para';
+$strLithuanian = 'Lituânio';
+$strLocalhost = 'Local';
+$strLocationTextfile = 'Localização do arquivo texto';
+$strLogin = 'Autenticação';
+$strLoginInformation = 'Informação de login';
+$strLogout = 'Sair';
+$strLogPassword = 'Senha:';
+$strLogServer = 'Servidor';
+$strLogUsername = 'Usuário:';
$strLongOperation = 'Esta operação pode ser demorada. Deseja prosseguir?';
$strMaxConnects = 'máx. de conexões concorrentes';
$strMaximalQueryLength = 'Tamanho máximo da consulta gerada';
-$strMaximumSize = 'Tamanho máximo: %s%s';
-$strMbExtensionMissing = 'A extensão mbstring do PHP não foi encontrada e você parece estar usando conjuntos de caracteres multibyte. Sem a extensão mbstring o phpMyAdmin não será capaz de dividir as strings corretamente isso pode causar resultados inesperados.';
-$strMbOverloadWarning = 'Você habilitou mbstring.func_overload nas configurações do PHP. Essa opção é incompatível com o phpMyAdmin e certamente causará a perda de algum dado!';
-$strMIME_available_mime = 'MIME-type disponíveis';
-$strMIME_available_transform = 'Transformações disponíveis';
-$strMIME_description = 'Descrição';
+$strMaximumSize = 'Tamanho máximo: %s%s';
+$strMbExtensionMissing = 'A extensão mbstring do PHP não foi encontrada e você parece estar usando conjuntos de caracteres multibyte. Sem a extensão mbstring o phpMyAdmin não será capaz de dividir as strings corretamente isso pode causar resultados inesperados.';
+$strMbOverloadWarning = 'Você habilitou mbstring.func_overload nas configurações do PHP. Essa opção é incompatível com o phpMyAdmin e certamente causará a perda de algum dado!';
+$strMIME_available_mime = 'MIME-type disponíveis';
+$strMIME_available_transform = 'Transformações disponíveis';
+$strMIME_description = 'Descrição';
$strMIME_MIMEtype = 'MIME-type'; // MIME-types nao tem traducao
-$strMIME_nodescription = 'Sem descrição disponível para essa transformação. Pergunte ao autor o que %s faz.';
-$strMIME_transformation_note = 'Para uma lista de opções de transformação disponíveis e suas transformações MIME-type, clique em %sdescrição de transformações%s';
-$strMIME_transformation_options_note = 'Digite os valores para as opções de transformação usando este formato: \'a\', 100, b,\'c\'... Se por acaso precisar inserir uma contra-barra ("\") ou aspas ("\'") no meio desses valores, faça-o usando outra contra-barra (por exemplo \'\\\\xyz\' ou \'a\\\'b\').';
-$strMIME_transformation_options = 'Opções de transformação';
-$strMIME_transformation = 'Transformações do navegador';
-$strMIMETypesForTable = 'MIME-TYPES PARA AS TABELAS';
-$strMIME_without = 'MIME-types em itálico não têm uma função de transformação separada';
-$strModifications = 'Modificações foram salvas';
-$strModifyIndexTopic = 'Modificar um índice';
-$strModify = 'Modificar';
+$strMIME_nodescription = 'Sem descrição disponível para essa transformação. Pergunte ao autor o que %s faz.';
+$strMIME_transformation_note = 'Para uma lista de opções de transformação disponíveis e suas transformações MIME-type, clique em %sdescrição de transformações%s';
+$strMIME_transformation_options_note = 'Digite os valores para as opções de transformação usando este formato: \'a\', 100, b,\'c\'... Se por acaso precisar inserir uma contra-barra ("\") ou aspas ("\'") no meio desses valores, faça-o usando outra contra-barra (por exemplo \'\\\\xyz\' ou \'a\\\'b\').';
+$strMIME_transformation_options = 'Opções de transformação';
+$strMIME_transformation = 'Transformações do navegador';
+$strMIMETypesForTable = 'MIME-TYPES PARA AS TABELAS';
+$strMIME_without = 'MIME-types em itálico não têm uma função de transformação separada';
+$strModifications = 'Modificações foram salvas';
+$strModifyIndexTopic = 'Modificar um índice';
+$strModify = 'Modificar';
$strMoveMenu = 'Mover Menu';
-$strMoveTable = 'Mover tabela para (Banco de Dados.tabela):';
-$strMoveTableOK = 'Tabela %s foi movida para %s.';
-$strMoveTableSameNames = 'Não pode mover a tabela para ela mesma!';
-$strMultilingual = 'multi-linguagem';
+$strMoveTable = 'Mover tabela para (Banco de Dados.tabela):';
+$strMoveTableOK = 'Tabela %s foi movida para %s.';
+$strMoveTableSameNames = 'Não pode mover a tabela para ela mesma!';
+$strMultilingual = 'multi-linguagem';
$strMyISAMDataPointerSizeDesc = 'O tamanho padrão do ponteiro em bytes, para ser usado por CREATE TABLE para tabelas MyISAM quando a opção MAX_ROWS não é especificada.';
$strMyISAMDataPointerSize = 'Tamanho do ponteiro de dados';
$strMyISAMMaxExtraSortFileSizeDesc = 'Se os arquivos temporários usados para rápida criação de índices MyISAM forem maiores do que usando a chave do cache pela quantidade especificada aqui, prefira o método chave do cache.';
@@ -466,257 +478,275 @@ $strMyISAMRepairThreadsDesc = 'Se este valor for maior que 1, índices das tabel
$strMyISAMRepairThreads = 'Processos de reparo';
$strMyISAMSortBufferSizeDesc = 'O buffer que é alocado quando são ordenados índices MyISAM durante um REPAIR TABLE ou quando são criados índices com CREATE INDEX ou ALTER TABLE.';
$strMyISAMSortBufferSize = 'Tamanho do buffer de ordenação';
-$strMySQLCharset = 'Conjunto de caracteres MySQL';
+$strMySQLCharset = 'Conjunto de caracteres MySQL';
$strMysqlClientVersion = 'Versão do cliente MySQL';
$strMySQLConnectionCollation = 'Collation de conexão do MySQL'; // Collation nao tem traducao
$strMysqlLibDiffersServerVersion = 'Sua versão %s da biblioteca MySQL do PHP difere da versão %s do seu servidor MySQL. Isso pode causar um comportamento estranho.';
-$strMySQLSaid = 'Mensagens do MySQL : ';
-$strMySQLShowProcess = 'Mostrar os Processos';
+$strMySQLSaid = 'Mensagens do MySQL : ';
+$strMySQLShowProcess = 'Mostrar os Processos';
-$strName = 'Nome';
-$strNext = 'Próximo';
-$strNoActivity = 'Sem atividade por %s segundos ou mais, faça o login novamente';
-$strNoDatabasesSelected = 'Nenhum Banco de Dados selecionado.';
-$strNoDatabases = 'Sem bases';
+$strName = 'Nome';
+$strNext = 'Próximo';
+$strNoActivity = 'Sem atividade por %s segundos ou mais, faça o login novamente';
+$strNoDatabasesSelected = 'Nenhum Banco de Dados selecionado.';
+$strNoDatabases = 'Sem bases';
$strNoDataReceived = 'Nenhum dado foi recebido pra importar. Tampouco um nome de arquivo foi submetido, ou o tamanho do arquivo excedeu o tamanho máximo permitido pelas suas configurações do PHP. Veja FAQ 1.16.';
-$strNoDescription = 'sem Descrição';
+$strNoDescription = 'sem Descrição';
$strNoDetailsForEngine = 'Não há nenhuma informação detalhada do status disponível para esta storage engine.';
-$strNoDropDatabases = 'O comando "DROP DATABASE" está desabilitado.';
-$strNoExplain = 'Pular Explicação SQL';
+$strNoDropDatabases = 'O comando "DROP DATABASE" está desabilitado.';
+$strNoExplain = 'Pular Explicação SQL';
$strNoFilesFoundInZip = 'Nenhum arquivo encontrado dentro do arquivo ZIP!';
-$strNoFrames = 'phpMyAdmin é mais amigável com um navegador capaz de exibir frames.';
-$strNoIndex = 'Nenhum índice definido!';
-$strNoIndexPartsDefined = 'Nenhuma parte de índice definida!';
-$strNoModification = 'Sem Mudança';
-$strNo = 'Não';
-$strNone = 'Nenhum';
-$strNoOptions = 'Esse formato não tem opções';
-$strNoPassword = 'Sem senha';
-$strNoPermission = 'O servidor web não tem permissão para salvar o arquivo %s.';
-$strNoPhp = 'sem código PHP';
-$strNoPrivileges = 'Sem privilégios';
-$strNoRights = 'Você não tem direitos suficientes para estar aqui agora!';
-$strNoRowsSelected = 'Nenhum registro selecionado';
-$strNoSpace = 'Espaço insuficiente para salvar o arquivo %s.';
-$strNoTablesFound = 'Nenhuma tabela encontrada no Banco de Dados';
-$strNoThemeSupport = 'Sem suporte a Temas, verifique suas configurações e/ou seus Temas no diretório %s.';
-$strNotNumber = 'Isto não é um número!';
-$strNotOK = 'não está OK';
-$strNotSet = '%s tabela não encontrada ou não configurada em %s';
-$strNoUsersFound = 'Nenhum usuário(s) encontrado.';
-$strNoValidateSQL = 'Pular validação SQL';
-$strNull = 'Nulo';
+$strNoFrames = 'phpMyAdmin é mais amigável com um navegador capaz de exibir frames.';
+$strNoIndex = 'Nenhum índice definido!';
+$strNoIndexPartsDefined = 'Nenhuma parte de índice definida!';
+$strNoModification = 'Sem Mudança';
+$strNo = 'Não';
+$strNone = 'Nenhum';
+$strNoOptions = 'Esse formato não tem opções';
+$strNoPassword = 'Sem senha';
+$strNoPermission = 'O servidor web não tem permissão para salvar o arquivo %s.';
+$strNoPhp = 'sem código PHP';
+$strNoPrivileges = 'Sem privilégios';
+$strNoRights = 'Você não tem direitos suficientes para estar aqui agora!';
+$strNoRowsSelected = 'Nenhum registro selecionado';
+$strNoSpace = 'Espaço insuficiente para salvar o arquivo %s.';
+$strNoTablesFound = 'Nenhuma tabela encontrada no Banco de Dados';
+$strNoThemeSupport = 'Sem suporte a Temas, verifique suas configurações e/ou seus Temas no diretório %s.';
+$strNotNumber = 'Isto não é um número!';
+$strNotOK = 'não está OK';
+$strNotSet = '%s tabela não encontrada ou não configurada em %s';
+$strNoUsersFound = 'Nenhum usuário(s) encontrado.';
+$strNoValidateSQL = 'Pular validação SQL';
+$strNull = 'Nulo';
$strNumberOfFields = 'Número de arquivos';
$strNumberOfTables = 'Numero de tabelas';
-$strNumSearchResultsInTable = '%s resultado(s) dentro da tabela %s';
-$strNumSearchResultsTotal = 'Total:%s resultado(s)';
-$strNumTables = 'Tabelas';
+$strNumSearchResultsInTable = '%s resultado(s) dentro da tabela %s';
+$strNumSearchResultsTotal = 'Total:%s resultado(s)';
+$strNumTables = 'Tabelas';
-$strOK = 'OK';
+$strOK = 'OK';
$strOpenDocumentSpreadsheet = 'Abrir Documento Planilha';
$strOpenDocumentText = 'Abrir Documento de Texto';
$strOpenNewWindow = 'Abrir nova janela do phpMyAdmin';
-$strOperations = 'Operações';
-$strOperator = 'Operador';
-$strOptimizeTable = 'Otimizar tabela';
+$strOperations = 'Operações';
+$strOperator = 'Operador';
+$strOptimize = 'Otimizar';
+$strOptimizeTable = 'Otimizar tabela';
$strOptions = 'Opções';
-$strOr = 'Ou';
-$strOverhead = 'Sobrecarga';
-$strOverwriteExisting = 'Sobrescrever arquivo(s) existente(s)';
+$strOr = 'Ou';
+$strOverhead = 'Sobrecarga';
+$strOverwriteExisting = 'Sobrescrever arquivo(s) existente(s)';
-$strPageNumber = 'Numero da página:';
+$strPacked = 'Pacote';
+$strPageNumber = 'Numero da página:';
$strPagesToBeFlushed = 'Páginas para serem niveladas';
-$strPaperSize = 'Tamanho do papel';
+$strPaperSize = 'Tamanho do papel';
$strPartialImport = 'Importação parcial';
-$strPartialText = 'Textos parciais';
-$strPasswordChanged = 'A senha para %s foi modificada com sucesso.';
-$strPasswordEmpty = 'A senhas está em branco!';
+$strPartialText = 'Textos parciais';
+$strPartitionDefinition = 'Definição da PARTIÇÃO';
+$strPartitioned = 'Particionado';
+$strPartitionMaintenance = 'Manutenção da partição';
+$strPartition = 'Partição %s';
+$strPasswordChanged = 'A senha para %s foi modificada com sucesso.';
+$strPasswordEmpty = 'A senhas está em branco!';
$strPasswordHashing = 'Hashing da senha'; // Hashing nao tem traducao
-$strPasswordNotSame = 'As senhas não são iguais!';
-$strPassword = 'Senha';
-$strPdfDbSchema = 'Esquema do Banco de Dados "%s" - Página %s';
-$strPdfInvalidTblName = 'A tabela "%s" não existe!';
-$strPdfNoTables = 'Sem tabelas';
+$strPasswordNotSame = 'As senhas não são iguais!';
+$strPassword = 'Senha';
+$strPdfDbSchema = 'Esquema do Banco de Dados "%s" - Página %s';
+$strPdfInvalidTblName = 'A tabela "%s" não existe!';
+$strPdfNoTables = 'Sem tabelas';
$strPDF = 'PDF';
$strPDFReportExplanation = '(Gerado um relatório contendo dados da tabela simples)';
$strPDFReportTitle = 'Título do Relatório';
-$strPerHour = 'por hora';
-$strPerMinute = 'por minuto';
-$strPerSecond = 'por segundo';
-$strPersian = 'Pérsa';
-$strPhoneBook = 'Agenda de telefones';
-$strPhp = 'Criar código PHP';
-$strPHPVersion = 'Versão do PHP';
+$strPerHour = 'por hora';
+$strPerMinute = 'por minuto';
+$strPerSecond = 'por segundo';
+$strPersian = 'Pérsa';
+$strPhoneBook = 'Agenda de telefones';
+$strPhp = 'Criar código PHP';
+$strPHPVersion = 'Versão do PHP';
$strPleaseSelectPrimaryOrUniqueKey = 'Por favor, selecione uma chave primária ou uma chave única';
-$strPmaDocumentation = 'Documentação do phpMyAdmin ';
-$strPmaUriError = 'A variável $cfg[\'PmaAbsoluteUri\'] deve ser setada';
-$strPolish = 'Polonês';
-$strPortrait = 'Retrato';
-$strPos1 = 'Início';
-$strPrevious = 'Anterior';
-$strPrimaryKeyHasBeenDropped = 'A chave primária foi deletada';
-$strPrimaryKeyName = 'O nome da chave primária deve ser... "PRIMARY"!';
-$strPrimaryKeyWarning = '("PRIMARY" precisa ser o nome de e apenas da chave primária!)';
-$strPrimary = 'Primária';
-$strPrint = 'Imprimir';
-$strPrintViewFull = 'Ver impressão (com textos completos)';
-$strPrintView = 'Visualização para impressão';
-$strPrivDescAllPrivileges = 'Incluir todos os privilégios, exceto GRANT.';
-$strPrivDescAlter = 'Permitir alterar a estrutura das tabelas existentes.';
+$strPmaDocumentation = 'Documentação do phpMyAdmin ';
+$strPmaUriError = 'A variável $cfg[\'PmaAbsoluteUri\'] deve ser setada';
+$strPolish = 'Polonês';
+$strPortrait = 'Retrato';
+$strPos1 = 'Início';
+$strPrevious = 'Anterior';
+$strPrimaryKeyHasBeenDropped = 'A chave primária foi deletada';
+$strPrimaryKeyName = 'O nome da chave primária deve ser... "PRIMARY"!';
+$strPrimaryKeyWarning = '("PRIMARY" precisa ser o nome de e apenas da chave primária!)';
+$strPrimary = 'Primária';
+$strPrint = 'Imprimir';
+$strPrintViewFull = 'Ver impressão (com textos completos)';
+$strPrintView = 'Visualização para impressão';
+$strPrivDescAllPrivileges = 'Incluir todos os privilégios, exceto GRANT.';
+$strPrivDescAlter = 'Permitir alterar a estrutura das tabelas existentes.';
$strPrivDescAlterRoutine = 'Permitir alterar e apagar stored routines.';
-$strPrivDescCreateDb = 'Permitir criar novas tabelas e Banco de Dados.';
+$strPrivDescCreateDb = 'Permitir criar novas tabelas e Banco de Dados.';
$strPrivDescCreateRoutine = 'Permitir criar stored routines.';
-$strPrivDescCreateTbl = 'Permitir criar novas tabelas.';
-$strPrivDescCreateTmpTable = 'Permitir criar tabelas temporárias.';
+$strPrivDescCreateTbl = 'Permitir criar novas tabelas.';
+$strPrivDescCreateTmpTable = 'Permitir criar tabelas temporárias.';
$strPrivDescCreateUser = 'Permitir criar, apagar e renomear contas dos usuários.';
$strPrivDescCreateView = 'Permitir criar novas visões.';
-$strPrivDescDelete = 'Permitir apagar dados.';
-$strPrivDescDropDb = 'Permitir eliminar Banco de Dados e tabelas.';
-$strPrivDescDropTbl = 'Permitir eliminar tabelas.';
+$strPrivDescDelete = 'Permitir apagar dados.';
+$strPrivDescDropDb = 'Permitir eliminar Banco de Dados e tabelas.';
+$strPrivDescDropTbl = 'Permitir eliminar tabelas.';
+$strPrivDescEvent = 'Permitir iniciar eventos no cronograma de eventos';
$strPrivDescExecute5 = 'Permitir executar stored routines.';
-$strPrivDescExecute = 'Permitir rodar "stored procedures"; Sem efeitos nesta versão do MySQL.';
-$strPrivDescFile = 'Permitir importar dados e exportar dados em arquivos.';
-$strPrivDescGrant = 'Permitir adicionar usuários e privilégios sem recarregar a tabela de privilégios.';
-$strPrivDescIndex = 'Permitir criar e eliminar índices.';
-$strPrivDescInsert = 'Permitir inserir e substituir dados.';
-$strPrivDescLockTables = 'Permitir bloquear tabelas para a processo atual.';
-$strPrivDescMaxConnections = 'Limitar o numero de novas conexões que o usuário pode abrir por hora.';
-$strPrivDescMaxQuestions = 'Limitar o número de consultas que podem ser enviadas ao servidor por hora.';
-$strPrivDescMaxUpdates = 'Limitar o número de comandos que alteram Bancos de Dados ou tabelas que o usuário pode executar por hora.';
+$strPrivDescExecute = 'Permitir rodar "stored procedures"; Sem efeitos nesta versão do MySQL.';
+$strPrivDescFile = 'Permitir importar dados e exportar dados em arquivos.';
+$strPrivDescGrant = 'Permitir adicionar usuários e privilégios sem recarregar a tabela de privilégios.';
+$strPrivDescIndex = 'Permitir criar e eliminar índices.';
+$strPrivDescInsert = 'Permitir inserir e substituir dados.';
+$strPrivDescLockTables = 'Permitir bloquear tabelas para a processo atual.';
+$strPrivDescMaxConnections = 'Limitar o numero de novas conexões que o usuário pode abrir por hora.';
+$strPrivDescMaxQuestions = 'Limitar o número de consultas que podem ser enviadas ao servidor por hora.';
+$strPrivDescMaxUpdates = 'Limitar o número de comandos que alteram Bancos de Dados ou tabelas que o usuário pode executar por hora.';
$strPrivDescMaxUserConnections = 'Limitar o número de conexões simultâneas que o usuário pode ter.';
-$strPrivDescReferences = 'Sem efeitos nesta versão do MySQL.';
-$strPrivDescReload = 'Permitir recarregar configurações do servidor e descarregar o cache do servidor.';
-$strPrivDescReplClient = 'Permitir que o usuário pergunte onde estão os escravos / mestres.';
-$strPrivDescReplSlave = 'Precisar dos escravos de replicação.';
-$strPrivDescSelect = 'Permitir leitura dos dados.';
-$strPrivDescShowDb = 'Permitir acesso completo à lista de Bancos de Dados.';
+$strPrivDescProcess = 'Permitir visualizar processos de todos os usuários';
+$strPrivDescReferences = 'Sem efeitos nesta versão do MySQL.';
+$strPrivDescReload = 'Permitir recarregar configurações do servidor e descarregar o cache do servidor.';
+$strPrivDescReplClient = 'Permitir que o usuário pergunte onde estão os escravos / mestres.';
+$strPrivDescReplSlave = 'Precisar dos escravos de replicação.';
+$strPrivDescSelect = 'Permitir leitura dos dados.';
+$strPrivDescShowDb = 'Permitir acesso completo à lista de Bancos de Dados.';
$strPrivDescShowView = 'Permitir executar consultas SHOW CREATE VIEW.';
-$strPrivDescShutdown = 'Permitir desligar o servidor.';
-$strPrivDescSuper = 'Permitir conectar, se o numero máximo de conexões for alcançado; Necessário para muitas operações administrativas, como setar variáveis globais e matar processos de outros usuários.';
-$strPrivDescUpdate = 'Permitir modificar dados.';
-$strPrivDescUsage = 'Sem privilégios.';
-$strPrivileges = 'Privilégios';
-$strPrivilegesReloaded = 'Os privilégios foram recarregados com sucesso.';
+$strPrivDescShutdown = 'Permitir desligar o servidor.';
+$strPrivDescSuper = 'Permitir conectar, se o numero máximo de conexões for alcançado; Necessário para muitas operações administrativas, como setar variáveis globais e matar processos de outros usuários.';
+$strPrivDescTrigger = 'Permitir criar e e largar em cadeia'; //será que ta certo?
+$strPrivDescUpdate = 'Permitir modificar dados.';
+$strPrivDescUsage = 'Sem privilégios.';
+$strPrivileges = 'Privilégios';
+$strPrivilegesReloaded = 'Os privilégios foram recarregados com sucesso.';
$strProcedures = 'Procedimentos';
-$strProcesses = 'Processos';
-$strProcesslist = 'Lista de processos';
+$strProcesses = 'Processos';
+$strProcesslist = 'Lista de processos';
+$strProfiling = 'Perfil';
$strProtocolVersion = 'Versão do Protocolo';
-$strPutColNames = 'Colocar nome do campo na primeira linha';
+$strPutColNames = 'Colocar nome do campo na primeira linha';
-$strQBEDel = 'Del'; // (used in tbl_qbe.php)
-$strQBEIns = 'Ins'; // (used in tbl_qbe.php)
-$strQBE = 'Procurar por exemplo';
+$strQBEDel = 'Del'; // (used in tbl_qbe.php)
+$strQBEIns = 'Ins'; // (used in tbl_qbe.php)
+$strQBE = 'Procurar por exemplo';
$strQueryCache = 'Consulta do cache';
-$strQueryFrame = 'Janela de consulta';
-$strQueryOnDb = 'Consulta no Banco de Dados %s:';
+$strQueryFrame = 'Janela de consulta';
+$strQueryOnDb = 'Consulta no Banco de Dados %s:';
$strQueryResultsOperations = 'Operações resultantes das consultas';
-$strQuerySQLHistory = 'Histórico de consultas';
-$strQueryStatistics = 'Estatísticas das consultas: Desde o início, %s consultas foram enviadas para o servidor.';
-$strQueryTime = 'Consulta levou %01.4f segundos';
-$strQueryType = 'Tipo de consulta';
-$strQueryWindowLock = 'Não sobrescrever esta consulta fora desta janela';
+$strQuerySQLHistory = 'Histórico de consultas';
+$strQueryStatistics = 'Estatísticas das consultas: Desde o início, %s consultas foram enviadas para o servidor.';
+$strQueryTime = 'Consulta levou %01.4f segundos';
+$strQueryType = 'Tipo de consulta';
+$strQueryWindowLock = 'Não sobrescrever esta consulta fora desta janela';
$strReadRequests = 'Leitura requisitada';
-$strReceived = 'Recebido';
+$strRebuild = 'Reconstruir';
+$strReceived = 'Recebido';
$strRecommended = 'recomendado';
-$strRecords = 'Registros';
-$strReferentialIntegrity = 'Verificar integridade referencial:';
-$strRefresh = 'Atualizar';
-$strRelationalSchema = 'Esquema relacional';
+$strRecords = 'Registros';
+$strReferentialIntegrity = 'Verificar integridade referencial:';
+$strRefresh = 'Atualizar';
+$strRelationalKey = 'Chave de relação';
+$strRelationalSchema = 'Esquema relacional';
$strRelationDeleted = 'Relacionamento apagado';
-$strRelationNotWorking = 'Os recursos adicionais para trabalhar com tabelas linkadas foram desativadas. Para descobrir o motivo clique %saqui%s.';
-$strRelationsForTable = 'RELAÇÕES PARA A TABELA';
-$strRelations = 'Relações';
-$strRelationView = 'Ver relações';
-$strReloadingThePrivileges = 'Recarregando os privilégios';
+$strRelationNotWorking = 'Os recursos adicionais para trabalhar com tabelas linkadas foram desativadas. Para descobrir o motivo clique %saqui%s.';
+$strRelationsForTable = 'RELAÇÕES PARA A TABELA';
+$strRelations = 'Relações';
+$strRelationView = 'Ver relações';
+$strReloadingThePrivileges = 'Recarregando os privilégios';
$strReloadPrivileges = 'Recarregar privilégios';
$strReload = 'Recarregar';
-$strRemoveSelectedUsers = 'Remover os usuários selecionados';
-$strRenameDatabaseOK = 'O Banco de Dados %s foi renomeado para %s';
-$strRenameTableOK = 'Tabela %s renomeada para %s';
-$strRenameTable = 'Renomear a tabela para ';
-$strRepairTable = 'Reparar tabela';
-$strReplaceNULLBy = 'Substituir NULL por';
-$strReplaceTable = 'Substituir os dados da tabela pelos do arquivo';
+$strRemovePartitioning = 'Remover partição';
+$strRemoveSelectedUsers = 'Remover os usuários selecionados';
+$strRenameDatabaseOK = 'O Banco de Dados %s foi renomeado para %s';
+$strRenameTableOK = 'Tabela %s renomeada para %s';
+$strRenameTable = 'Renomear a tabela para ';
+$strRepair = 'Reparar';
+$strRepairTable = 'Reparar tabela';
+$strReplaceNULLBy = 'Substituir NULL por';
+$strReplaceTable = 'Substituir os dados da tabela pelos do arquivo';
$strReplication = 'Replicação';
-$strReset = 'Resetar';
-$strResourceLimits = 'Limite dos recursos';
+$strReset = 'Resetar';
+$strResourceLimits = 'Limite dos recursos';
$strRestartInsertion = 'Reiniciar inserção com %s registros';
-$strReType = 'Re-digite';
-$strRevokeAndDeleteDescr = 'Os usuários manterão o privilégio de USAGE até que os privilégios sejam recarregados.';
-$strRevokeAndDelete = 'Revogar todos os privilégios ativos dos usuarios e depois apagar eles.';
-$strRevokeMessage = 'Você revogou os privilégios para %s';
-$strRevoke = 'Revogar';
-$strRomanian = 'Romêno';
+$strReType = 'Re-digite';
+$strRevokeAndDeleteDescr = 'Os usuários manterão o privilégio de USAGE até que os privilégios sejam recarregados.';
+$strRevokeAndDelete = 'Revogar todos os privilégios ativos dos usuarios e depois apagar eles.';
+$strRevokeMessage = 'Você revogou os privilégios para %s';
+$strRevoke = 'Revogar';
+$strRomanian = 'Romêno';
$strRoutineReturnType = 'Tipo de returno';
$strRoutines = 'Rotinas';
-$strRowLength = 'Tamanho do registro';
-$strRowsFrom = 'registro(s) começando de';
-$strRowSize = ' Tamanho do registro ';
-$strRowsModeFlippedHorizontal = 'horizontal (cabeçalhos rotacionados)';
-$strRowsModeHorizontal = 'horizontal';
-$strRowsModeOptions = 'no modo %s e repetindo cabeçalhos após %s células';
-$strRowsModeVertical = 'vertical';
-$strRows = 'Registros';
-$strRowsStatistic = 'Estatísticas do registros';
-$strRunning = 'Rodando em %s';
-$strRunQuery = 'Enviar consulta SQL';
-$strRunSQLQuery = 'Fazer consulta SQL no Banco de Dados %s';
+$strRowLength = 'Tamanho do registro';
+$strRowsAffected = '%1$d linha(s) afetadas.';
+$strRowsDeleted = '%1$d linhas(s) excluídas.';
+$strRowsFrom = 'registro(s) começando de';
+$strRowsInserted = '%1$d linha(s) inseridas.';
+$strRowSize = ' Tamanho do registro ';
+$strRowsModeFlippedHorizontal = 'horizontal (cabeçalhos rotacionados)';
+$strRowsModeHorizontal = 'horizontal';
+$strRowsModeOptions = 'no modo %s e repetindo cabeçalhos após %s células';
+$strRowsModeVertical = 'vertical';
+$strRows = 'Registros';
+$strRowsStatistic = 'Estatísticas do registros';
+$strRunning = 'Rodando em %s';
+$strRunQuery = 'Enviar consulta SQL';
+$strRunSQLQuery = 'Fazer consulta SQL no Banco de Dados %s';
$strRunSQLQueryOnServer = 'Rodar consulta(s) SQL no servidor %s';
-$strRussian = 'Russo';
+$strRussian = 'Russo';
-$strSaveOnServer = 'Salvar no servidor no diretório %s';
+$strSaveOnServer = 'Salvar no servidor no diretório %s';
$strSavePosition = 'Salvar posição';
-$strSave = 'Salvar';
-$strScaleFactorSmall = 'A escala é muito pequena para ajustar o esquema em uma página';
-$strSearchFormTitle = 'Procurar no Banco de Dados';
-$strSearchInTables = 'Dentro da(s) tabela(s):';
-$strSearchNeedle = 'Palavra(s) ou valor(es) para procurar (coringa: "%"):';
-$strSearchOption1 = 'pelo menos uma das palavras';
-$strSearchOption2 = 'todas as palavras';
-$strSearchOption3 = 'a frase exata';
-$strSearchOption4 = 'como expressão regular';
-$strSearch = 'Procurar';
-$strSearchResultsFor = 'Procurar resultados por "%s" %s:';
-$strSearchType = 'Encontrar:';
-$strSecretRequired = 'O arquivo de configuração agora precisa de uma frase secreta com senha (blowfish_secret).';
-$strSelectADb = 'Selecionar um Banco de Dados';
-$strSelectAll = 'Selecionar Todos';
-$strSelectBinaryLog = 'Selecionar log binário para exibir';
-$strSelectFields = 'Selecionar os campos (no mínimo 1)';
+$strSave = 'Salvar';
+$strScaleFactorSmall = 'A escala é muito pequena para ajustar o esquema em uma página';
+$strSearchFormTitle = 'Procurar no Banco de Dados';
+$strSearchInField = 'Dentro do campo:';
+$strSearchInTables = 'Dentro da(s) tabela(s):';
+$strSearchNeedle = 'Palavra(s) ou valor(es) para procurar (coringa: "%"):';
+$strSearchOption1 = 'pelo menos uma das palavras';
+$strSearchOption2 = 'todas as palavras';
+$strSearchOption3 = 'a frase exata';
+$strSearchOption4 = 'como expressão regular';
+$strSearch = 'Procurar';
+$strSearchResultsFor = 'Procurar resultados por "%s" %s:';
+$strSearchType = 'Encontrar:';
+$strSecretRequired = 'O arquivo de configuração agora precisa de uma frase secreta com senha (blowfish_secret).';
+$strSelectADb = 'Selecionar um Banco de Dados';
+$strSelectAll = 'Selecionar Todos';
+$strSelectBinaryLog = 'Selecionar log binário para exibir';
+$strSelectFields = 'Selecionar os campos (no mínimo 1)';
$strSelectForeignKey = 'Selecionar Chave Estrangeira';
-$strSelectNumRows = 'na consulta';
+$strSelectNumRows = 'na consulta';
$strSelectReferencedKey = 'Seleciona chave referenciada';
-$strSelectTables = 'Tabelas selecionadas';
-$strSend = 'Enviado';
-$strSent = 'Enviar';
-$strServerChoice = 'Seleção do Servidor';
-$strServerNotResponding = 'O servidor não está respondendo';
-$strServer = 'Servidor';
+$strSelectTables = 'Tabelas selecionadas';
+$strSend = 'Enviado';
+$strSent = 'Enviar';
+$strServerChoice = 'Seleção do Servidor';
+$strServerNotResponding = 'O servidor não está respondendo';
+$strServer = 'Servidor';
$strServers = 'Servidores';
$strServerStatusDelayedInserts = 'Inserções demoradas';
-$strServerStatus = 'Informações de Runtime';
-$strServerStatusUptime = 'Esse servidor MySQL está rodando por %s. Ele foi iniciado em %s.';
-$strServerTabVariables = 'Variáveis';
-$strServerTrafficNotes = 'Tráfico do servidor: Essas tabelas mostram as estatísticas do tráfico da rede neste servidor MySQL desde o início.';
-$strServerVars = 'Variáveis e configurações do servidor';
-$strServerVersion = 'Versão do Servidor';
+$strServerStatus = 'Informações de Runtime';
+$strServerStatusUptime = 'Esse servidor MySQL está rodando por %s. Ele foi iniciado em %s.';
+$strServerTabVariables = 'Variáveis';
+$strServerTrafficNotes = 'Tráfico do servidor: Essas tabelas mostram as estatísticas do tráfico da rede neste servidor MySQL desde o início.';
+$strServerVars = 'Variáveis e configurações do servidor';
+$strServerVersion = 'Versão do Servidor';
$strSessionStartupErrorGeneral = 'Não pôde iniciar a sessão sem erros, cheque os erros ocorridos nos logs do PHP e/ou do seu servidor web e configure a instalação do PHP corretamente.';
-$strSessionValue = 'Valor da sessão';
-$strSetEnumVal = 'Se um tipo de campo é "enum" ou "set", por favor entre valores usando este formato: \'a\',\'b\',\'c\'... Se você for colocar uma barra contrária ("\") ou aspas simples ("\'") entre os valores, coloque uma barra contrária antes (por exemplo \'\\\\xyz\' ou \'a\\\'b\').';
-$strShowAll = 'Mostrar todos';
-$strShowColor = 'Mostrar cor';
-$strShowDatadictAs = 'Formato do dicionário de dados';
-$strShowFullQueries = 'Mostrar consultas completas';
-$strShowGrid = 'Mostrar grade';
+$strSessionValue = 'Valor da sessão';
+$strSetEnumVal = 'Se um tipo de campo é "enum" ou "set", por favor entre valores usando este formato: \'a\',\'b\',\'c\'... Se você for colocar uma barra contrária ("\") ou aspas simples ("\'") entre os valores, coloque uma barra contrária antes (por exemplo \'\\\\xyz\' ou \'a\\\'b\').';
+$strShowAll = 'Mostrar todos';
+$strShowColor = 'Mostrar cor';
+$strShowDatadictAs = 'Formato do dicionário de dados';
+$strShowFullQueries = 'Mostrar consultas completas';
+$strShowGrid = 'Mostrar grade';
$strShowHideLeftMenu = 'Exibir/Ocultar menu da esquerda';
$strShowingBookmark = 'Exibindo marcadores';
$strShowingPhp = 'Exibindo como código PHP';
-$strShowingRecords = 'Mostrando registros ';
+$strShowingRecords = 'Mostrando registros ';
$strShowingSQL = 'Exibindo consulta SQL';
-$strShow = 'Mostrar';
+$strShow = 'Mostrar';
$strShowOpenTables = 'Exibir tabelas abertas';
-$strShowPHPInfo = 'Mostrar informações do PHP';
+$strShowPHPInfo = 'Mostrar informações do PHP';
$strShowSlaveHosts = 'Exibir servidores escravos';
$strShowSlaveStatus = 'Exibir status dos escravos';
$strShowStatusBinlog_cache_disk_useDescr = 'O número de transações que usaram o cache do log binário temporário mas que excederam o valor do binlog_cache_size e usaram o arquivo temporário para armazenar enunciados da transação.';
@@ -826,129 +856,135 @@ $strShowStatusThreads_cachedDescr = 'O número de processos no cache de processo
$strShowStatusThreads_connectedDescr = 'O número de conexões atualmente abertas.';
$strShowStatusThreads_createdDescr = 'O número de processos criadas para manipular conexões. Se Threads_created é grande, você deveria aumentar o valor de thread_cache_size. (Normalmente isso não da um aumento notável de performance se você tem uma boa implementação de processos.)';
$strShowStatusThreads_runningDescr = 'O número de processos que não estão dormindo.';
-$strShowTableDimension = 'Mostrar dimensão das tabelas';
-$strShowTables = 'Mostrar tabelas';
-$strShowThisQuery = ' Mostrar esta consulta SQL novamente ';
-$strSimplifiedChinese = 'Chinês Simplificado';
-$strSingly = '(singularmente)';
-$strSize = 'Tamanho';
+$strShowTableDimension = 'Mostrar dimensão das tabelas';
+$strShowTables = 'Mostrar tabelas';
+$strShowThisQuery = ' Mostrar esta consulta SQL novamente ';
+$strSimplifiedChinese = 'Chinês Simplificado';
+$strSingly = '(singularmente)';
+$strSize = 'Tamanho';
$strSkipQueries = 'Número de registros (consultas) ignoradas no início';
-$strSlovak = 'Eslováquio';
-$strSlovenian = 'Eslovênio';
+$strSlovak = 'Eslováquio';
+$strSlovenian = 'Eslovênio';
$strSmallBigAll = 'Tudo Pequeno/Grande';
$strSnapToGrid = 'Ajustar à grade';
$strSocketProblem = '(ou o soquete do servidor MySQL local não está configurado corretamente)';
-$strSortByKey = 'Ordenar pela chave';
+$strSortByKey = 'Ordenar pela chave';
$strSorting = 'Ordenando';
-$strSort = 'Ordenar';
-$strSpaceUsage = 'Uso do espaço';
-$strSpanish = 'Espanhol';
-$strSplitWordsWithSpace = 'Palavras são separadas por um caracter de espaço (" ").';
+$strSort = 'Ordenar';
+$strSpaceUsage = 'Uso do espaço';
+$strSpanish = 'Espanhol';
+$strSplitWordsWithSpace = 'Palavras são separadas por um caracter de espaço (" ").';
$strSQLCompatibility = 'Modo de compatibilidade SQL';
-$strSQLExportType = 'Tipo de exportação';
-$strSQLParserBugMessage = 'Talvez tenha encontrado um bug no analizador (parser) do SQL. Analise a sua Consulta SQL com atenção, e verifique se as aspas estão corretas e não estão desencontradas. Outra possibilidade de falha é o fato de estar tentando subir um arquivo com saída binária de uma área de texto citada. Pode também experimentar a sua consulta SQL no prompt de comandos do MySQL. A saída de erro do MySQL, isto se existir alguma, também poderá ajudar a diagnosticar o problema. Se continuar a ter problemas ou se o analisador (parser) falhar onde a interface da linha de comandos tiver sucesso, reduza por favor a entrada da consulta SQL até aquele que causou o problema, e envie o relatório de bug com os dados do chunk da seção CORTE abaixo:';
-$strSQLParserUserError = 'Parece haver um erro na sua consulta SQL. A saída do servidor MySQL abaixo, isto se existir alguma, também poderá ajudar a diagnosticar o problema.';
-$strSQLQuery = 'consulta SQL';
-$strSQLResult = 'Resultado SQL';
-$strSQL = 'SQL';
-$strSQPBugInvalidIdentifer = 'Identificador inválido';
-$strSQPBugUnclosedQuote = 'Aspas não fechada';
-$strSQPBugUnknownPunctuation = 'String de pontuação desconhecida';
+$strSQLExportType = 'Tipo de exportação';
+$strSQLParserBugMessage = 'Talvez tenha encontrado um bug no analizador (parser) do SQL. Analise a sua Consulta SQL com atenção, e verifique se as aspas estão corretas e não estão desencontradas. Outra possibilidade de falha é o fato de estar tentando subir um arquivo com saída binária de uma área de texto citada. Pode também experimentar a sua consulta SQL no prompt de comandos do MySQL. A saída de erro do MySQL, isto se existir alguma, também poderá ajudar a diagnosticar o problema. Se continuar a ter problemas ou se o analisador (parser) falhar onde a interface da linha de comandos tiver sucesso, reduza por favor a entrada da consulta SQL até aquele que causou o problema, e envie o relatório de bug com os dados do chunk da seção CORTE abaixo:';
+$strSQLParserUserError = 'Parece haver um erro na sua consulta SQL. A saída do servidor MySQL abaixo, isto se existir alguma, também poderá ajudar a diagnosticar o problema.';
+$strSQLQuery = 'consulta SQL';
+$strSQLResult = 'Resultado SQL';
+$strSQL = 'SQL';
+$strSQPBugInvalidIdentifer = 'Identificador inválido';
+$strSQPBugUnclosedQuote = 'Aspas não fechada';
+$strSQPBugUnknownPunctuation = 'String de pontuação desconhecida';
$strStandInStructureForView = 'Estrutura stand-in para visualizar';
-$strStatCheckTime = 'Última verificação';
-$strStatCreateTime = 'Criação';
-$strStatement = 'Comandos';
+$strStatCheckTime = 'Última verificação';
+$strStatCreateTime = 'Criação';
+$strStatement = 'Comandos';
$strStatisticsOverrun = 'Em servidores ocupados, os contadores de byte podem sobrecarregar, então as estatísticas como relatadas pelo servidor MySQL podem estar incorretas.';
-$strStatUpdateTime = 'Última atualização';
-$strStatus = 'Status';
+$strStatUpdateTime = 'Última atualização';
+$strStatus = 'Status';
$strStorageEngines = 'Storage Engines'; // sem traducao
$strStorageEngine = 'Storage Engine'; // sem traducao
-$strStrucCSV = 'Dados CSV';
-$strStrucData = 'Estrutura e dados';
-$strStrucExcelCSV = 'CSV para dados MS Excel';
-$strStrucNativeExcel = 'Dados nativos do MS Excel';
-$strStrucOnly = 'Somente estrutura';
-$strStructPropose = 'Propor estrutura da tabela';
-$strStructure = 'Estrutura';
+$strStrucCSV = 'Dados CSV';
+$strStrucData = 'Estrutura e dados';
+$strStrucExcelCSV = 'CSV para dados MS Excel';
+$strStrucNativeExcel = 'Dados nativos do MS Excel';
+$strStrucOnly = 'Somente estrutura';
+$strStructPropose = 'Propor estrutura da tabela';
+$strStructure = 'Estrutura';
$strStructureForView = 'Estrutura para visualizar';
-$strSubmit = 'Submeter';
-$strSuccess = 'Seu comando SQL foi executado com sucesso';
-$strSum = 'Soma';
-$strSwedish = 'Suéco';
-$strSwitchToDatabase = 'Mudar para o Banco de Dados copiado';
-$strSwitchToTable = 'Mudar para a tabela copiada';
+$strSubmit = 'Submeter';
+$strSuccess = 'Seu comando SQL foi executado com sucesso';
+$strSuhosin = 'Servidor rodando com \'Suhosin\'. Verifique a %sdocumentation%s para possíveis razões do erro.';
+$strSum = 'Soma';
+$strSwedish = 'Suéco';
+$strSwekeyAuthenticating = 'Autenticando...';
+$strSwekeyAuthFailed = 'Falha na autenticação de hardware';
+$strSwitchToDatabase = 'Mudar para o Banco de Dados copiado';
+$strSwitchToTable = 'Mudar para a tabela copiada';
$strTableAlreadyExists = 'Tabela %s já existe!';
-$strTableComments = 'Comentários da tabela';
-$strTableEmpty = 'O Nome da Tabela está vazio!';
-$strTableHasBeenDropped = 'Tabela %s foi eliminada';
-$strTableHasBeenEmptied = 'Tabela %s foi esvaziada';
-$strTableHasBeenFlushed = 'Tabela %s foi limpa';
+$strTableAlteredSuccessfully = 'A tabela %1$s foi alterada com sucesso';
+$strTableComments = 'Comentários da tabela';
+$strTableEmpty = 'O Nome da Tabela está vazio!';
+$strTableHasBeenCreated = 'A tabela %1$s foi criada.';
+$strTableHasBeenDropped = 'Tabela %s foi eliminada';
+$strTableHasBeenEmptied = 'Tabela %s foi esvaziada';
+$strTableHasBeenFlushed = 'Tabela %s foi limpa';
$strTableIsEmpty = 'Tabela para estar vazia!';
-$strTableMaintenance = 'Tabela de Manutenção';
+$strTableMaintenance = 'Tabela de Manutenção';
$strTableName = 'Nome da Tabela';
-$strTableOfContents = 'Tabela de conteúdos';
-$strTableOptions = 'Opções da tabela';
-$strTables = '%s tabela(s)';
-$strTableStructure = 'Estrutura da tabela';
-$strTable = 'Tabela';
-$strTakeIt = 'tome';
-$strTblPrivileges = 'Privilégios específicos da tabela';
+$strTableOfContents = 'Tabela de conteúdos';
+$strTableOptions = 'Opções da tabela';
+$strTables = '%s tabela(s)';
+$strTableStructure = 'Estrutura da tabela';
+$strTable = 'Tabela';
+$strTakeIt = 'tome';
+$strTblPrivileges = 'Privilégios específicos da tabela';
$strTempData = 'Dados temporários';
-$strTextAreaLength = ' Por causa da sua largura, esse campo pode não ser editável ';
-$strThai = 'Thailandês';
+$strTextAreaLength = ' Por causa da sua largura, esse campo pode não ser editável ';
+$strTexyText = 'Texy! texto'; // Texy??
+$strThai = 'Thailandês';
$strThemeDefaultNotFound = 'Tema padrão %s não encontrado!';
$strThemeNoPreviewAvailable = 'Nenhuma pré-visualização disponível.';
$strThemeNotFound = 'Tema %s não encontrado!';
$strThemeNoValidImgPath = 'Encontrado caminho inválido para imagens para o tema %s!';
$strThemePathNotFound = 'Encontrado caminho inválido para o tema %s!';
-$strTheme = 'Tema / Estilo';
-$strThisHost = 'Esse Servidor';
+$strTheme = 'Tema / Estilo';
+$strThisHost = 'Esse Servidor';
$strThreads = 'Processos';
-$strThreadSuccessfullyKilled = 'Processo %s foi morto com sucesso.';
+$strThreadSuccessfullyKilled = 'Processo %s foi morto com sucesso.';
$strTimeoutInfo = 'Importação anterior passou do tempo limite, depois de reenviar, irá continuar na posição %d.';
$strTimeoutNothingParsed = 'Entretanto na última vez nenhum dado foi passado, isso normalmente significa que o phpMyAdmin não é capaz de finalizar essa importação à menos que você aumente o tempo limite do PHP.';
$strTimeoutPassed = 'Script passou do tempo limite, se você deseja terminar a importação, reenvie o mesmo arquivo que a importação será resumida.';
-$strTime = 'Tempo';
+$strTime = 'Tempo';
$strToFromPage = 'página de/para';
$strToggleScratchboard = 'mudar o estado do Scratchboard'; //isso está correto? mas nao descobri o q eh
$strToggleSmallBig = 'Mudar para pequeno/grande';
$strToSelectRelation = 'Para selecionar relacionamento, clique :';
-$strTotal = 'total';
-$strTotalUC = 'Total';
-$strTraditionalChinese = 'Chinês Tradicional';
-$strTraditionalSpanish = 'Espanhol Traditional';
-$strTraffic = 'Tráfego';
+$strTotal = 'total';
+$strTotalUC = 'Total';
+$strTraditionalChinese = 'Chinês Tradicional';
+$strTraditionalSpanish = 'Espanhol Traditional';
+$strTraffic = 'Tráfego';
$strTransactionCoordinator = 'Coordenador da transação';
-$strTransformation_application_octetstream__download = 'Mostrar o link para baixar os dados binários do campo. Primeira opção é o nome do arquivo binário. Segunda opção é um possível nome de campo de uma linha da tabela que contém o nome do arquivo. Se você usar a segunda opção precisa colocar na primeira opção uma string em branco';
+$strTransformation_application_octetstream__download = 'Mostrar o link para baixar os dados binários do campo. Primeira opção é o nome do arquivo binário. Segunda opção é um possível nome de campo de uma linha da tabela que contém o nome do arquivo. Se você usar a segunda opção precisa colocar na primeira opção uma string em branco';
$strTransformation_application_octetstream__hex = 'Exibir representação hexadecimal dos dados. Primeiro parâmetro opcional especifica como frequentemente espaços serão adicionados (padrão para 2 mordidelas).'; //ta certo isso? nibbles, traduzi como mordidelas
-$strTransformation_image_jpeg__inline = 'Mostrar uma miniatura clicável; opções: largura,altura em pixels (mantém a proporção original)';
-$strTransformation_image_jpeg__link = 'Mostrar o link para esta imagem (ex.: blob download direto).';
-$strTransformation_image_png__inline = 'Ver imagem/jpeg: em linha';
+$strTransformation_image_jpeg__inline = 'Mostrar uma miniatura clicável; opções: largura,altura em pixels (mantém a proporção original)';
+$strTransformation_image_jpeg__link = 'Mostrar o link para esta imagem (ex.: blob download direto).';
+$strTransformation_image_png__inline = 'Ver imagem/jpeg: em linha';
$strTransformation_text_plain__dateformat = 'Exibir um TIME, TIMESTAMP, DATETIME ou campo numérico unix timestamp formatado como data. A primeira opção é o offset (em horas) que será adicionado ao timestamp (Padrão: 0). Use a segunda opção para especificar uma string de formatação data/tempo diferente. A terceira opção determina se você deseja ver data local ou UTC (use a string "local" ou "utc") para isso. De acordo com isso, o formatdo da data terá valores diferentes - para "local" veja a documentação do PHP para função strftime() e para "utc" isso é feito usando a função gmdate().';
-$strTransformation_text_plain__external = 'LINUX APENAS: Rode uma aplicação externa e alimente os campos de dados pela entrada padrão. Retorna a saída padrão da aplicação. Padrão é Limpo, para uma bonita impressão do código HTML. Por razões de segurança, você deve editar manualmente o arquivo libraries/transformations/text_plain__external.inc.php e inserir as ferramentas que você permite rodar. A primeira opção é o número do programa que você quer rodar e a segunda opção são os parâmetros para o programa. A terceira opção, se setada para 1 irá converter a saída usando htmlspecialchars() (Padrão é 1). A quarta opção, se setada como 1 irá por um NOWRAP para o conteúdo da célula, de forma que a saída inteira será mostrada sem reformatação(Padrão é 1)';
-$strTransformation_text_plain__formatted = 'Preservar a formatação original campo. Sem escape.';
-$strTransformation_text_plain__imagelink = 'Mostrar uma imagem e um link, o campo contém um nome de arquivo; primeira opção é um prefixo tipo "http://domain.com/", segunda opção é a largura em pixels, o terceiro é a altura.';
-$strTransformation_text_plain__link = 'Mostrar um link, o campo contém o nome do arquivo, primeira opção é um prefixo tipo "http://domain.com/", segunda opção é um título para o link.';
+$strTransformation_text_plain__external = 'LINUX APENAS: Rode uma aplicação externa e alimente os campos de dados pela entrada padrão. Retorna a saída padrão da aplicação. Padrão é Limpo, para uma bonita impressão do código HTML. Por razões de segurança, você deve editar manualmente o arquivo libraries/transformations/text_plain__external.inc.php e inserir as ferramentas que você permite rodar. A primeira opção é o número do programa que você quer rodar e a segunda opção são os parâmetros para o programa. A terceira opção, se setada para 1 irá converter a saída usando htmlspecialchars() (Padrão é 1). A quarta opção, se setada como 1 irá por um NOWRAP para o conteúdo da célula, de forma que a saída inteira será mostrada sem reformatação(Padrão é 1)';
+$strTransformation_text_plain__formatted = 'Preservar a formatação original campo. Sem escape.';
+$strTransformation_text_plain__imagelink = 'Mostrar uma imagem e um link, o campo contém um nome de arquivo; primeira opção é um prefixo tipo "http://domain.com/", segunda opção é a largura em pixels, o terceiro é a altura.';
+$strTransformation_text_plain__link = 'Mostrar um link, o campo contém o nome do arquivo, primeira opção é um prefixo tipo "http://domain.com/", segunda opção é um título para o link.';
$strTransformation_text_plain__sql = 'Formatar texto como consulta SQL com síntaxe colorida.';
-$strTransformation_text_plain__substr = 'Mostrar apenas parte da string. Primeira opção é um offset para definir onde a saída do seu texto deve iniciar (Padrão: 0). Segunda opção é o quanto do texto deverá ser retornado. Se estiver em branco, retorna todo o restante do texto. Terceira opção define quais caracteres serão acrescentados na substring retornada (Padrão: ...).';
+$strTransformation_text_plain__substr = 'Mostrar apenas parte da string. Primeira opção é um offset para definir onde a saída do seu texto deve iniciar (Padrão: 0). Segunda opção é o quanto do texto deverá ser retornado. Se estiver em branco, retorna todo o restante do texto. Terceira opção define quais caracteres serão acrescentados na substring retornada (Padrão: ...).';
$strTriggers = 'Gatilhos';
-$strTruncateQueries = 'Truncar as consultas SQL exibidas';
-$strTurkish = 'Turco';
-$strType = 'Tipo';
+$strTruncateQueries = 'Truncar as consultas SQL exibidas';
+$strTurkish = 'Turco';
+$strType = 'Tipo';
-$strUkrainian = 'Ucraniano';
-$strUncheckAll = 'Desmarcar todos';
-$strUnicode = 'Unicode';
-$strUnique = 'Único';
-$strUnknown = 'desconhecido';
-$strUnselectAll = 'Desmarcar Todos';
+$strUkrainian = 'Ucraniano';
+$strUncheckAll = 'Desmarcar todos';
+$strUnicode = 'Unicode';
+$strUnique = 'Único';
+$strUnknown = 'desconhecido';
+$strUnselectAll = 'Desmarcar Todos';
$strUnsupportedCompressionDetected = 'Você tentou carregar um arquivo com compressão não suportada (%s). Pode o suporte para isso não ter sido implementado ou pode ter sido desabilitado por sua configuração PHP.';
-$strUpdatePrivMessage = 'Você mudou os priviléios para %s.';
-$strUpdateProfileMessage = 'A configuração foi atualizada.';
-$strUpdateQuery = 'Atualizar a consulta SQL';
-$strUpdComTab = 'Consulte a documentação sobre como atualizar sua tabela Column_comments';
-$strUpgrade = 'Você deveria atualizar para %s %s ou posterior.';
+$strUpdatePrivMessage = 'Você mudou os priviléios para %s.';
+$strUpdateProfileMessage = 'A configuração foi atualizada.';
+$strUpdateQuery = 'Atualizar a consulta SQL';
+$strUpdComTab = 'Consulte a documentação sobre como atualizar sua tabela Column_comments';
+$strUpgrade = 'Você deveria atualizar para %s %s ou posterior.';
$strUploadErrorCantWrite = 'Falhou ao salvar arquivo no disco.';
$strUploadErrorExtension = 'Carregamento do arquivo parado pela extenção.';
$strUploadErrorFormSize = 'O arquivo carregado excede o tamanho definido na diretriz MAX_FILE_SIZE do formulário HTM.';
@@ -958,121 +994,55 @@ $strUploadErrorPartial = 'Carregamento do arquivo foi apenas parcial.';
$strUploadErrorUnknown = 'Erro desconhecido no carregamento do arquivo.';
$strUploadLimit = 'Você provavelmente tentou carregar um arquivo muito grande. Veja referências na %sdocumentation%s para burlar esses limites.';
$strUploadsNotAllowed = 'Não é permitido subir arquivos neste servidor.';
-$strUsage = 'Uso';
-$strUseBackquotes = 'Usar aspas simples nos nomes de tabelas e campos';
-$strUseHostTable = 'Usar Tabela do Servidor';
-$strUserAlreadyExists = 'O usuário %s já existe!';
-$strUserEmpty = 'O nome do usuário está em branco!';
-$strUserName = 'Nome do usuário';
-$strUserNotFound = 'O usuário selecionado não foi encontrado na tabela de privilégios.';
-$strUserOverview = 'Avaliação dos usuários';
-$strUsersDeleted = 'Os usuários selecionados foram apagados com sucesso.';
-$strUsersHavingAccessToDb = 'Usuários que têm acesso à "%s"';
-$strUser = 'Usuário';
-$strUseTabKey = 'Usar a teclar TAB para se mover de valor em valor, ou CTRL+setas para mover em qualquer direção';
-$strUseTables = 'Usar tabelas';
-$strUseTextField = 'Usar campo texto';
-$strUseThisValue = 'Usar este valor';
+$strUsage = 'Uso';
+$strUseBackquotes = 'Usar aspas simples nos nomes de tabelas e campos';
+$strUseHostTable = 'Usar Tabela do Servidor';
+$strUserAlreadyExists = 'O usuário %s já existe!';
+$strUserEmpty = 'O nome do usuário está em branco!';
+$strUserName = 'Nome do usuário';
+$strUserNotFound = 'O usuário selecionado não foi encontrado na tabela de privilégios.';
+$strUserOverview = 'Avaliação dos usuários';
+$strUsersDeleted = 'Os usuários selecionados foram apagados com sucesso.';
+$strUsersHavingAccessToDb = 'Usuários que têm acesso à "%s"';
+$strUser = 'Usuário';
+$strUseTabKey = 'Usar a tecla TAB para se mover de valor em valor, ou CTRL+setas para mover em qualquer direção';
+$strUseTables = 'Usar tabelas';
+$strUseTextField = 'Usar campo texto';
+$strUseThisValue = 'Usar este valor';
-$strValidateSQL = 'Validar SQL';
-$strValidatorError = 'O Validador SQL não pode ser inicializado. Verifique se você instalou a extenção necessária do php conforme está escrito em %sdocumentation%s.';
-$strValue = 'Valor';
-$strVar = 'Variáveis';
+$strValidateSQL = 'Validar SQL';
+$strValidatorError = 'O Validador SQL não pode ser inicializado. Verifique se você instalou a extenção necessária do php conforme está escrito em %sdocumentation%s.';
+$strValue = 'Valor';
+$strVar = 'Variáveis';
$strVersionInformation = 'Informações da versão';
-$strViewDumpDatabases = 'Ver dump (esquema) dos Bancos de Dados';
-$strViewDumpDB = 'Ver o esquema do Banco de Dados';
-$strViewDump = 'Ver o esquema da tabela';
+$strViewDumpDatabases = 'Ver dump (esquema) dos Bancos de Dados';
+$strViewDumpDB = 'Ver o esquema do Banco de Dados';
+$strViewDump = 'Ver o esquema da tabela';
$strViewHasBeenDropped = 'Visão %s foi apagada';
$strViewName = 'Nome da VISÃO';
$strView = 'Visão';
-$strWebServerUploadDirectoryError = 'O diretório que você especificou para subir arquivos não foi encontrado.';
-$strWebServerUploadDirectory = 'Servidor web subiu o diretório';
-$strWelcome = 'Bem vindo ao %s';
-$strWestEuropean = 'Oeste Europeu';
-$strWildcard = 'coringa';
-$strWindowNotFound = 'A janela alvo do navegador não pode ser atualizada. Talvez você tenha fechado a janela alvo ou o seu navegador tenha bloqueado a comunicação entre janelas nas configurações de segurança.';
-$strWithChecked = 'Com marcados:';
+$strWebServerUploadDirectoryError = 'O diretório que você especificou para subir arquivos não foi encontrado.';
+$strWebServerUploadDirectory = 'Servidor web subiu o diretório';
+$strWelcome = 'Bem vindo ao %s';
+$strWestEuropean = 'Oeste Europeu';
+$strWildcard = 'coringa';
+$strWindowNotFound = 'A janela alvo do navegador não pode ser atualizada. Talvez você tenha fechado a janela alvo ou o seu navegador tenha bloqueado a comunicação entre janelas nas configurações de segurança.';
+$strWithChecked = 'Com marcados:';
$strWriteRequests = 'Escrita requisitada';
-$strWrongUser = 'Usuário ou senha incorreta. Acesso negado.';
+$strWrongUser = 'Usuário ou senha incorreta. Acesso negado.';
-$strXML = 'XML';
+$strXML = 'XML';
-$strYes = 'Sim';
+$strYes = 'Sim';
-$strZeroRemovesTheLimit = 'Nota: Ajustar essa opção para 0 (zero) remove os limites.';
-$strZip = '"compactado com zip"';
+$strZeroRemovesTheLimit = 'Nota: Ajustar essa opção para 0 (zero) remove os limites.';
+$strZip = '"compactado com zip"';
-$strProfiling = 'Profiling'; //to translate
-$strPartitionDefinition = 'PARTITION definition'; //to translate
-$strPrivDescTrigger = 'Allows creating and dropping triggers'; //to translate
-$strPrivDescEvent = 'Allows to set up events for the event scheduler'; //to translate
-$strPrivDescProcess = 'Allows viewing processes of all users'; //to translate
-$strPartitioned = 'partitioned'; //to translate
-$strTableAlteredSuccessfully = 'Table %1$s has been altered successfully'; //to translate
-$strDatabaseHasBeenCreated = 'Database %1$s has been created.'; //to translate
-$strTableHasBeenCreated = 'Table %1$s has been created.'; //to translate
-$strForeignKeyError = 'Error creating foreign key on %1$s (check data types)'; //to translate
-$strRowsDeleted = '%1$d row(s) deleted.'; //to translate
-$strRowsAffected = '%1$d row(s) affected.'; //to translate
-$strRowsInserted = '%1$d row(s) inserted.'; //to translate
-$strInsertedRowId = 'Inserted row id: %1$d'; //to translate
-$strIndexesSeemEqual = 'The indexes %1$s and %2$s seem to be equal and one of them could possibly be removed.'; //to translate
-$strPartitionMaintenance = 'Partition maintenance'; //to translate
-$strPartition = 'Partition %s'; //to translate
-$strAnalyze = 'Analyze'; //to translate
-$strCheck = 'Check'; //to translate
-$strOptimize = 'Optimize'; //to translate
-$strRebuild = 'Rebuild'; //to translate
-$strRepair = 'Repair'; //to translate
-$strRemovePartitioning = 'Remove partitioning'; //to translate
-$strSearchInField = 'Inside field:'; //to translate
-$strTexyText = 'Texy! text'; //to translate
-$strDetails = 'Details...'; //to translate
-$strComment = 'Comment'; //to translate
-$strPacked = 'Packed'; //to translate
-$strActions = 'Actions'; //to translate
-$strInterface = 'Interface'; //to translate
-$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
-$strEvents = 'Events'; //to translate
-$strForeignKeyRelationAdded = 'FOREIGN KEY relation added'; //to translate
-$strInternalAndForeign = 'An internal relation is not necessary when a corresponding FOREIGN KEY relation exists.'; //to translate
-$strViewHasAtLeast = 'This view has at least this number of rows. Please refer to %sdocumentation%s.'; //to translate
-$strRelationalKey = 'Relational key'; //to translate
-$strRelationalDisplayField = 'Relational display field'; //to translate
-$strSwekeyNoKey = 'No valid authentication key plugged'; //to translate
-$strSwekeyNoKeyId = 'File %s does not contain any key id'; //to translate
-$strSwekeyAuthFailed = 'Hardware authentication failed'; //to translate
-$strSwekeyAuthenticating = 'Authenticating...'; //to translate
-$strPBXTIndexCacheSize = 'Index cache size'; //to translate
-$strPBXTRecordCacheSize = 'Record cache size'; //to translate
-$strPBXTLogCacheSize = 'Log cache size'; //to translate
-$strPBXTLogFileThreshold = 'Log file threshold'; //to translate
-$strPBXTTransactionBufferSize = 'Transaction buffer size'; //to translate
-$strPBXTCheckpointFrequency = 'Checkpoint frequency'; //to translate
-$strPBXTDataLogThreshold = 'Data log threshold'; //to translate
-$strPBXTGarbageThreshold = 'Garbage threshold'; //to translate
-$strPBXTLogBufferSize = 'Log buffer size'; //to translate
-$strPBXTDataFileGrowSize = 'Data file grow size'; //to translate
-$strPBXTRowFileGrowSize = 'Row file grow size'; //to translate
-$strPBXTRowFileGrowSizeDesc = 'The grow size of the row pointer (.xtr) files.'; //to translate
-$strPBXTDataFileGrowSizeDesc = 'The grow size of the handle data (.xtd) files.'; //to translate
-$strPBXTLogBufferSizeDesc = 'The size of the buffer used when writing a data log. The default is 256MB. The engine allocates one buffer per thread, but only if the thread is required to write a data log.'; //to translate
-$strPBXTGarbageThresholdDesc = 'The percentage of garbage in a data log file before it is compacted. This is a value between 1 and 99. The default is 50.'; //to translate
-$strPBXTDataLogThresholdDesc = 'The maximum size of a data log file. The default value is 64MB. PBXT can create a maximum of 32000 data logs, which are used by all tables. So the value of this variable can be increased to increase the total amount of data that can be stored in the database.'; //to translate
-$strPBXTCheckpointFrequencyDesc = 'The amount of data written to the transaction log before a checkpoint is performed. The default value is 24MB.'; //to translate
-$strPBXTTransactionBufferSizeDesc = 'The size of the global transaction log buffer (the engine allocates 2 buffers of this size). The default is 1MB.'; //to translate
-$strPBXTLogFileThresholdDesc = 'The size of a transaction log before rollover, and a new log is created. The default value is 16MB.'; //to translate
-$strPBXTLogCacheSizeDesc = 'The amount of memory allocated to the transaction log cache used to cache on transaction log data. The default is 16MB.'; //to translate
-$strPBXTRecordCacheSizeDesc = 'This is the amount of memory allocated to the record cache used to cache table data. The default value is 32MB. This memory is used to cache changes to the handle data (.xtd) and row pointer (.xtr) files.'; //to translate
-$strPBXTIndexCacheSizeDesc = 'This is the amount of memory allocated to the index cache. Default value is 32MB. The memory allocated here is used only for caching index pages.'; //to translate
-$strPBXTLogFileCount = 'Log file count'; //to translate
-$strPBXTLogFileCountDesc = 'This is the number of transaction log files (pbxt/system/xlog*.xt) the system will maintain. If the number of logs exceeds this value then old logs will be deleted, otherwise they are renamed and given the next highest number.'; //to translate
+// To translate:
+$strAndSmall = 'and'; //to translate
$strAsDefined = 'As defined:'; //to translate
-$strWiki = 'Wiki'; //to translate
-$strWebServer = 'Web server'; //to translate
-$strPHPExtension = 'PHP extension'; //to translate
-$strCustomColor = 'Custom color'; //to translate
+
$strBLOBRepository = 'BLOB Repository'; //to translate
$strBLOBRepositoryDamaged = 'Damaged'; //to translate
$strBLOBRepositoryDisableAreYouSure = 'Are you sure you want to disable all BLOB references for database %s?'; //to translate
@@ -1085,382 +1055,506 @@ $strBLOBRepositoryRemove = 'Remove BLOB Repository Reference'; //to translate
$strBLOBRepositoryRepair = 'Repair'; //to translate
$strBLOBRepositoryStatus = 'Status'; //to translate
$strBLOBRepositoryUpload = 'Upload to BLOB repository'; //to translate
-$strViewImage = 'View image'; //to translate
-$strPlayAudio = 'Play audio'; //to translate
-$strViewVideo = 'View video'; //to translate
+
+$strConfigDirectoryWarning = 'Directory [code]config[/code], which is used by the setup script, still exists in your phpMyAdmin directory. You should remove it once phpMyAdmin has been configured.'; //to translate
+$strCreateUserDatabasePrivileges = 'Grant all privileges on database "%s"'; //to translate
+$strCustomColor = 'Custom color'; //to translate
+
+$strDoNotAutoIncrementZeroValues = 'Do not use AUTO_INCREMENT for zero values'; //to translate
$strDownloadFile = 'Download file'; //to translate
-$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
-$strShowKeys = 'Only show keys'; //to translate
-$strSetupServersAdd = 'Add a new server'; //to translate
-$strSetupServersEdit = 'Edit server'; //to translate
-$strSetupFormset_features = 'Features'; //to translate
-$strSetupFormset_left_frame = 'Customize navigation frame'; //to translate
-$strSetupFormset_main_frame = 'Customize main frame'; //to translate
-$strSetupFormset_import = 'Customize import defaults'; //to translate
-$strSetupFormset_export = 'Customize export options'; //to translate
-$strSetupFormset_customization = 'Customization'; //to translate
-$strSetupTrue = 'yes'; //to translate
-$strSetupFalse = 'no'; //to translate
-$strSetupDisplay = 'Display'; //to translate
-$strSetupDownload = 'Download'; //to translate
-$strSetupClear = 'Clear'; //to translate
-$strSetupLoad = 'Load'; //to translate
-$strSetupRestoreDefaultValue = 'Restore default value'; //to translate
-$strSetupSetValue = 'Set value: %s'; //to translate
-$strSetupWarning = 'Warning'; //to translate
-$strSetupIgnoreErrors = 'Ignore errors'; //to translate
-$strSetupRevertErroneousFields = 'Try to revert erroneous fields to their default values'; //to translate
-$strSetupShowForm = 'Show form'; //to translate
-$strSetupOverview = 'Overview'; //to translate
-$strSetupShowHiddenMessages = 'Show hidden messages (#MSG_COUNT)'; //to translate
-$strSetupNoServers = 'There are no configured servers'; //to translate
-$strSetupNewServer = 'New server'; //to translate
-$strSetupDefaultLanguage = 'Default language'; //to translate
-$strSetupDefaultServer = 'Default server'; //to translate
-$strSetupLetUserChoose = 'let the user choose'; //to translate
-$strSetupOptionNone = '- none -'; //to translate
-$strSetupEndOfLine = 'End of line'; //to translate
-$strSetupConfigurationFile = 'Configuration file'; //to translate
-$strSetupHomepageLink = 'phpMyAdmin homepage'; //to translate
-$strSetupDonateLink = 'Donate'; //to translate
-$strSetupVersionCheckLink = 'Check for latest version'; //to translate
-$strSetupCannotLoadConfig = 'Cannot load or save configuration'; //to translate
-$strSetupCannotLoadConfigMsg = 'Please create web server writable folder [em]config[/em] in phpMyAdmin top level directory as described in [a@../Documentation.html#setup_script]documentation[/a]. Otherwise you will be only able to download or display it.'; //to translate
-$strSetupInsecureConnection = 'Insecure connection'; //to translate
-$strSetupInsecureConnectionMsg2 = 'If your server is also configured to accept HTTPS requests follow [a@%s]this link[/a] to use a secure connection.'; //to translate
-$strSetupVersionCheck = 'Version check'; //to translate
-$strSetupVersionCheckWrapperError = 'Neither URL wrapper nor CURL is available. Version check is not possible.'; //to translate
-$strSetupVersionCheckDataError = 'Reading of version failed. Maybe you\'re offline or the upgrade server does not respond.'; //to translate
-$strSetupVersionCheckInvalid = 'Got invalid version string from server'; //to translate
-$strSetupVersionCheckUnparsable = 'Unparsable version string'; //to translate
-$strSetupVersionCheckNewAvailableSvn = 'You are using subversion version, run [kbd]svn update[/kbd] :-)[br]The latest stable version is %s, released on %s.'; //to translate
-$strSetupVersionCheckNone = 'No newer stable version is available'; //to translate
-$strSetupServerSecurityInfoMsg = 'If you feel this is necessary, use additional protection settings - [a@?page=servers&mode=edit&id=%1$d#tab_Server_config]host authentication[/a] settings and [a@?page=form&formset=features#tab_Security]trusted proxies list[/a]. However, IP-based protection may not be reliable if your IP belongs to an ISP where thousands of users, including you, are connected to.'; //to translate
-$strSetupServerSslMsg = 'You should use SSL connections if your web server supports it'; //to translate
-$strSetupServerExtensionMsg = 'You should use mysqli for performance reasons'; //to translate
-$strSetupBlowfishSecretLengthMsg = 'Key is too short, it should have at least 8 characters'; //to translate
-$strSetupForceSSLMsg = 'This [a@?page=form&formset=features#tab_Security]option[/a] should be enabled if your web server supports it'; //to translate
-$strSetupAllowArbitraryServerMsg = 'This [a@?page=form&formset=features#tab_Security]option[/a] should be disabled as it allows attackers to bruteforce login to any MySQL server. If you feel this is necessary, use [a@?page=form&formset=features#tab_Security]trusted proxies list[/a]. However, IP-based protection may not be reliable if your IP belongs to an ISP where thousands of users, including you, are connected to.'; //to translate
-$strSetupLoginCookieValidityMsg = '[a@?page=form&formset=features#tab_Security]Login cookie validity[/a] should be should be set to 1800 seconds (30 minutes) at most. Values larger than 1800 may pose a security risk such as impersonation.'; //to translate
-$strSetupDirectoryNotice = 'This value should be double checked to ensure that this directory is neither world accessible nor readable or writable by other users on your server.'; //to translate
-$strSetupGZipDumpWarning = '[a@?page=form&formset=features#tab_Import_export]GZip compression and decompression[/a] requires functions (%s) which are unavailable on this system.'; //to translate
-$strSetupBZipDumpWarning = '[a@?page=form&formset=features#tab_Import_export]Bzip2 compression and decompression[/a] requires functions (%s) which are unavailable on this system.'; //to translate
-$strSetupZipDumpImportWarning = '[a@?page=form&formset=features#tab_Import_export]Zip decompression[/a] requires functions (%s) which are unavailable on this system.'; //to translate
-$strSetupZipDumpExportWarning = '[a@?page=form&formset=features#tab_Import_export]Zip compression[/a] requires functions (%s) which are unavailable on this system.'; //to translate
-$strSetuperror_form = 'Submitted form contains errors'; //to translate
-$strSetuperror_missing_field_data = 'Missing data for %s'; //to translate
-$strSetuperror_incorrect_port = 'Not a valid port number'; //to translate
-$strSetuperror_incorrect_value = 'Incorrect value'; //to translate
-$strSetuperror_incorrect_ip_address = 'Incorrect IP address: %s'; //to translate
-$strSetuperror_nan_p = 'Not a positive number'; //to translate
-$strSetuperror_nan_nneg = 'Not a non-negative number'; //to translate
-$strSetuperror_empty_pmadb_user = 'Empty phpMyAdmin control user while using pmadb'; //to translate
-$strSetuperror_empty_pmadb_password = 'Empty phpMyAdmin control user password while using pmadb'; //to translate
-$strSetuperror_empty_user_for_config_auth = 'Empty username while using config authentication method'; //to translate
-$strSetuperror_empty_signon_session = 'Empty signon session name while using signon authentication method'; //to translate
-$strSetuperror_empty_signon_url = 'Empty signon URL while using signon authentication method'; //to translate
-$strSetuperror_connection = 'Could not connect to MySQL server'; //to translate
-$strSetupForm_Server = 'Basic settings'; //to translate
-$strSetupForm_Server_desc = 'Enter server connection parameters'; //to translate
-$strSetupForm_Server_login_options = 'Signon login options'; //to translate
-$strSetupForm_Server_login_options_desc = 'Enter login options for signon authentication'; //to translate
-$strSetupForm_Server_config = 'Server configuration'; //to translate
-$strSetupForm_Server_config_desc = 'Advanced server configuration, do not change these options unless you know what they are for'; //to translate
-$strSetupForm_Server_pmadb = 'PMA database'; //to translate
-$strSetupForm_Server_pmadb_desc = 'Configure phpMyAdmin database to gain access to additional features, see [a@../Documentation.html#linked-tables]linked-tables infrastructure[/a] in documentation'; //to translate
-$strSetupForm_Import_export = 'Import / export'; //to translate
-$strSetupForm_Import_export_desc = 'Set import and export directories and compression options'; //to translate
-$strSetupForm_Security = 'Security'; //to translate
-$strSetupForm_Security_desc = 'Please note that phpMyAdmin is just a user interface and its features do not limit MySQL'; //to translate
-$strSetupForm_Sql_queries = 'SQL queries'; //to translate
-$strSetupForm_Sql_queries_desc = 'SQL queries settings, for SQL Query box options see [a@?page=form&formset=main_frame#tab_Sql_box]Navigation frame[/a] settings'; //to translate
-$strSetupForm_Other_core_settings = 'Other core settings'; //to translate
-$strSetupForm_Other_core_settings_desc = 'Settings that didn\'t fit enywhere else'; //to translate
-$strSetupForm_Left_frame = 'Navigation frame'; //to translate
-$strSetupForm_Left_frame_desc = 'Customize appearance of the navigation frame'; //to translate
-$strSetupForm_Left_servers = 'Servers'; //to translate
-$strSetupForm_Left_servers_desc = 'Servers display options'; //to translate
-$strSetupForm_Left_databases = 'Databases'; //to translate
-$strSetupForm_Left_databases_desc = 'Databases display options'; //to translate
-$strSetupForm_Left_tables = 'Tables'; //to translate
-$strSetupForm_Left_tables_desc = 'Tables display options'; //to translate
-$strSetupForm_Main_frame = 'Main frame'; //to translate
-$strSetupForm_Startup = 'Startup'; //to translate
-$strSetupForm_Startup_desc = 'Customize startup page'; //to translate
-$strSetupForm_Browse = 'Browse mode'; //to translate
-$strSetupForm_Browse_desc = 'Customize browse mode'; //to translate
-$strSetupForm_Edit = 'Edit mode'; //to translate
-$strSetupForm_Edit_desc = 'Customize edit mode'; //to translate
-$strSetupForm_Tabs = 'Tabs'; //to translate
-$strSetupForm_Tabs_desc = 'Choose how you want tabs to work'; //to translate
-$strSetupForm_Sql_box = 'SQL Query box'; //to translate
-$strSetupForm_Sql_box_desc = 'Customize links shown in SQL Query boxes'; //to translate
-$strSetupForm_Import_defaults = 'Import defaults'; //to translate
-$strSetupForm_Import_defaults_desc = 'Customize default common import options'; //to translate
-$strSetupForm_Export_defaults = 'Export defaults'; //to translate
-$strSetupForm_Export_defaults_desc = 'Customize default export options'; //to translate
-$strSetupForm_Query_window = 'Query window'; //to translate
-$strSetupForm_Query_window_desc = 'Customize query window options'; //to translate
-$strSetupServers_verbose_name = 'Verbose name of this server'; //to translate
-$strSetupServers_host_name = 'Server hostname'; //to translate
-$strSetupServers_port_name = 'Server port'; //to translate
-$strSetupServers_port_desc = 'Port on which MySQL server is listening, leave empty for default'; //to translate
-$strSetupServers_socket_name = 'Server socket'; //to translate
-$strSetupServers_socket_desc = 'Socket on which MySQL server is listening, leave empty for default'; //to translate
-$strSetupServers_ssl_name = 'Use SSL'; //to translate
-$strSetupServers_ssl_desc = ''; //to translate
-$strSetupServers_connect_type_name = 'Connection type'; //to translate
-$strSetupServers_connect_type_desc = 'How to connect to server, keep tcp if unsure'; //to translate
-$strSetupServers_extension_name = 'PHP extension to use'; //to translate
-$strSetupServers_compress_name = 'Compress connection'; //to translate
-$strSetupServers_compress_desc = 'Compress connection to MySQL server'; //to translate
-$strSetupServers_auth_type_name = 'Authentication type'; //to translate
-$strSetupServers_auth_type_desc = 'Authentication method to use'; //to translate
-$strSetupServers_user_name = 'User for config auth'; //to translate
-$strSetupServers_user_desc = 'Leave empty if not using config auth'; //to translate
-$strSetupServers_password_name = 'Password for config auth'; //to translate
-$strSetupServers_password_desc = 'Leave empty if not using config auth'; //to translate
-$strSetupServers_nopassword_name = 'Connect without password'; //to translate
-$strSetupServers_nopassword_desc = 'Try to connect without password'; //to translate
-$strSetupServers_SignonSession_name = 'Signon session name'; //to translate
-$strSetupServers_SignonSession_desc = 'See [a@http://wiki.phpmyadmin.net/pma/auth_types#signon]authentication types[/a] for an example'; //to translate
-$strSetupServers_SignonURL_name = 'Signon URL'; //to translate
-$strSetupServers_LogoutURL_name = 'Logout URL'; //to translate
-$strSetupServers_auth_swekey_config_name = 'SweKey config file'; //to translate
-$strSetupServers_only_db_name = 'Show only listed databases'; //to translate
-$strSetupServers_only_db_desc = 'You can use MySQL wildcard characters (% and _), escape them if you want to use their literal instances, i.e. use \'my\_db\' and not \'my_db\''; //to translate
-$strSetupServers_hide_db_name = 'Hide databases'; //to translate
-$strSetupServers_hide_db_desc = 'Hide databases matching regular expression (PCRE)'; //to translate
-$strSetupServers_AllowRoot_name = 'Allow root login'; //to translate
-$strSetupServers_DisableIS_name = 'Disable use of INFORMATION_SCHEMA'; //to translate
-$strSetupServers_DisableIS_desc = 'More information on [a@http://sf.net/support/tracker.php?aid=1849494]PMA bug tracker[/a] and [a@http://bugs.mysql.com/19588]MySQL Bugs[/a]'; //to translate
-$strSetupServers_AllowDeny_order_name = 'Host authentication order'; //to translate
-$strSetupServers_AllowDeny_order_desc = 'Leave blank if not used'; //to translate
-$strSetupServers_AllowDeny_rules_name = 'Host authentication rules'; //to translate
-$strSetupServers_AllowDeny_rules_desc = 'Leave blank for defaults'; //to translate
-$strSetupServers_ShowDatabasesCommand_name = 'SHOW DATABASES command'; //to translate
-$strSetupServers_ShowDatabasesCommand_desc = 'SQL command to fetch available databases'; //to translate
-$strSetupServers_CountTables_name = 'Count tables'; //to translate
-$strSetupServers_CountTables_desc = 'Count tables when showing database list'; //to translate
-$strSetupServers_pmadb_name = 'PMA database'; //to translate
-$strSetupServers_pmadb_desc = 'Database used for relations, bookmarks, and PDF features. See [a@http://wiki.phpmyadmin.net/pma/pmadb]pmadb[/a] for complete information. Leave blank for no support. Suggested: [kbd]phpmyadmin[/kbd]'; //to translate
-$strSetupServers_controluser_name = 'Control user'; //to translate
-$strSetupServers_controluser_desc = 'A special MySQL user configured with limited permissions, more information available on [a@http://wiki.phpmyadmin.net/pma/controluser]wiki[/a]'; //to translate
-$strSetupServers_controlpass_name = 'Control user password'; //to translate
-$strSetupServers_verbose_check_name = 'Verbose check'; //to translate
-$strSetupServers_verbose_check_desc = 'Disable if you know that your pma_* tables are up to date. This prevents compatibility checks and thereby increases performance'; //to translate
-$strSetupServers_bookmarktable_name = 'Bookmark table'; //to translate
-$strSetupServers_bookmarktable_desc = 'Leave blank for no [a@http://wiki.phpmyadmin.net/pma/bookmark]bookmark[/a] support, suggested: [kbd]pma_bookmark[/kbd]'; //to translate
-$strSetupServers_relation_name = 'Relation table'; //to translate
-$strSetupServers_relation_desc = 'Leave blank for no [a@http://wiki.phpmyadmin.net/pma/relation]relation-links[/a] support, suggested: [kbd]pma_relation[/kbd]'; //to translate
-$strSetupServers_table_info_name = 'Display fields table'; //to translate
-$strSetupServers_table_info_desc = 'Table to describe the display fields, leave blank for no support; suggested: [kbd]pma_table_info[/kbd]'; //to translate
-$strSetupServers_table_coords_name = 'PDF schema: table coordinates'; //to translate
-$strSetupServers_table_coords_desc = 'Leave blank for no PDF schema support, suggested: [kbd]pma_table_coords[/kbd]'; //to translate
-$strSetupServers_pdf_pages_name = 'PDF schema: pages table'; //to translate
-$strSetupServers_pdf_pages_desc = 'Leave blank for no PDF schema support, suggested: [kbd]pma_pdf_pages[/kbd]'; //to translate
-$strSetupServers_column_info_name = 'Column information table'; //to translate
-$strSetupServers_column_info_desc = 'Leave blank for no column comments/mime types, suggested: [kbd]pma_column_info[/kbd]'; //to translate
-$strSetupServers_history_name = 'SQL query history table'; //to translate
-$strSetupServers_history_desc = 'Leave blank for no SQL query history support, suggested: [kbd]pma_history[/kbd]'; //to translate
-$strSetupServers_designer_coords_name = 'Designer table'; //to translate
-$strSetupServers_designer_coords_desc = 'Leave blank for no Designer support, suggested: [kbd]pma_designer_coords[/kbd]'; //to translate
-$strSetupUploadDir_name = 'Upload directory'; //to translate
-$strSetupUploadDir_desc = 'Directory on server where you can upload files for import'; //to translate
-$strSetupSaveDir_name = 'Save directory'; //to translate
-$strSetupSaveDir_desc = 'Directory where exports can be saved on server'; //to translate
-$strSetupAllowAnywhereRecoding_name = 'Allow character set conversion'; //to translate
-$strSetupDefaultCharset_name = 'Default character set'; //to translate
-$strSetupDefaultCharset_desc = 'Default character set used for conversions'; //to translate
-$strSetupRecodingEngine_name = 'Recoding engine'; //to translate
-$strSetupRecodingEngine_desc = 'Select which functions will be used for character set conversion'; //to translate
-$strSetupIconvExtraParams_name = 'Extra parameters for iconv'; //to translate
-$strSetupZipDump_name = 'ZIP'; //to translate
-$strSetupZipDump_desc = 'Enable [a@http://en.wikipedia.org/wiki/ZIP_(file_format)]ZIP[/a] compression for import and export operations'; //to translate
-$strSetupGZipDump_name = 'GZip'; //to translate
-$strSetupGZipDump_desc = 'Enable [a@http://en.wikipedia.org/wiki/Gzip]gzip[/a] compression for import and export operations'; //to translate
-$strSetupBZipDump_name = 'Bzip2'; //to translate
-$strSetupBZipDump_desc = 'Enable [a@http://en.wikipedia.org/wiki/Bzip2]bzip2[/a] compression for import and export operations'; //to translate
-$strSetupCompressOnFly_name = 'Compress on the fly'; //to translate
-$strSetupCompressOnFly_desc = 'Compress gzip/bzip2 exports on the fly without the need for much memory; if you encounter problems with created gzip/bzip2 files disable this feature'; //to translate
-$strSetupblowfish_secret_name = 'Blowfish secret'; //to translate
-$strSetupblowfish_secret_desc = 'Secret passphrase used for encrypting cookies in [kbd]cookie[/kbd] authentication'; //to translate
-$strSetupForceSSL_name = 'Force SSL connection'; //to translate
-$strSetupForceSSL_desc = 'Force secured connection while using phpMyAdmin'; //to translate
-$strSetupCheckConfigurationPermissions_name = 'Check config file permissions'; //to translate
-$strSetupTrustedProxies_name = 'List of trusted proxies for IP allow/deny'; //to translate
-$strSetupTrustedProxies_desc = 'Input proxies as [kbd]IP: trusted HTTP header[/kbd]. The following example specifies that phpMyAdmin should trust a HTTP_X_FORWARDED_FOR (X-Forwarded-For) header coming from the proxy 1.2.3.4:[br][kbd]1.2.3.4: HTTP_X_FORWARDED_FOR[/kbd]'; //to translate
-$strSetupAllowUserDropDatabase_name = 'Show "Drop database" link to normal users'; //to translate
-$strSetupAllowArbitraryServer_name = 'Allow login to any MySQL server'; //to translate
-$strSetupAllowArbitraryServer_desc = 'If enabled user can enter any MySQL server in login form for cookie auth'; //to translate
-$strSetupLoginCookieRecall_name = 'Recall user name'; //to translate
-$strSetupLoginCookieRecall_desc = 'Define whether the previous login should be recalled or not in cookie authentication mode'; //to translate
-$strSetupLoginCookieValidity_name = 'Login cookie validity'; //to translate
-$strSetupLoginCookieValidity_desc = 'Define how long (in seconds) a login cookie is valid'; //to translate
-$strSetupLoginCookieStore_name = 'Login cookie store'; //to translate
-$strSetupLoginCookieDeleteAll_name = 'Delete all cookies on logout'; //to translate
-$strSetupShowSQL_name = 'Show SQL queries'; //to translate
-$strSetupShowSQL_desc = 'Defines whether SQL queries generated by phpMyAdmin should be displayed'; //to translate
-$strSetupConfirm_name = 'Confirm DROP queries'; //to translate
-$strSetupConfirm_desc = 'Whether a warning ("Are your really sure...") should be displayed when you\'re about to lose data'; //to translate
-$strSetupQueryHistoryDB_name = 'Permanent query history'; //to translate
-$strSetupQueryHistoryDB_desc = 'Enable if you want DB-based query history (requires pmadb). If disabled, this utilizes JS-routines to display query history (lost by window close).'; //to translate
-$strSetupQueryHistoryMax_name = 'Query history length'; //to translate
-$strSetupQueryHistoryMax_desc = 'How many queries are kept in history'; //to translate
-$strSetupIgnoreMultiSubmitErrors_name = 'Ignore multiple statement errors'; //to translate
-$strSetupVerboseMultiSubmit_name = 'Verbose multiple statements'; //to translate
-$strSetupVerboseMultiSubmit_desc = 'Show affected rows of each statement on multiple-statement queries. See libraries/import.lib.php for defaults on how many queries a statement may contain.'; //to translate
-$strSetupMaxDbList_name = 'Maximum databases'; //to translate
-$strSetupMaxDbList_desc = 'Maximum number of databases displayed in left frame and database list'; //to translate
-$strSetupMaxTableList_name = 'Maximum tables'; //to translate
-$strSetupMaxTableList_desc = 'Maximum number of tables displayed in table list'; //to translate
-$strSetupMaxCharactersInDisplayedSQL_name = 'Maximum displayed SQL length'; //to translate
-$strSetupMaxCharactersInDisplayedSQL_desc = 'Maximum number of characters used when a SQL query is displayed'; //to translate
-$strSetupOBGzip_name = 'GZip output buffering'; //to translate
-$strSetupOBGzip_desc = 'use GZip output buffering for increased speed in HTTP transfers'; //to translate
-$strSetupPersistentConnections_name = 'Persistent connections'; //to translate
-$strSetupPersistentConnections_desc = 'Use persistent connections to MySQL databases'; //to translate
-$strSetupExecTimeLimit_name = 'Maximum execution time'; //to translate
-$strSetupExecTimeLimit_desc = 'Set the number of seconds a script is allowed to run ([kbd]0[/kbd] for no limit)'; //to translate
-$strSetupMemoryLimit_name = 'Memory limit'; //to translate
-$strSetupMemoryLimit_desc = 'The number of bytes a script is allowed to allocate, eg. [kbd]32M[/kbd] ([kbd]0[/kbd] for no limit)'; //to translate
-$strSetupSkipLockedTables_name = 'Skip locked tables'; //to translate
-$strSetupSkipLockedTables_desc = 'Mark used tables and make it possible to show databases with locked tables'; //to translate
-$strSetupUseDbSearch_name = 'Use database search'; //to translate
-$strSetupUseDbSearch_desc = 'Allow for searching inside the entire database'; //to translate
-$strSetupLeftFrameLight_name = 'Use light version'; //to translate
-$strSetupLeftFrameLight_desc = 'Disable this if you want to see all databases at once'; //to translate
-$strSetupLeftDisplayLogo_name = 'Display logo'; //to translate
-$strSetupLeftDisplayLogo_desc = 'Show logo in left frame'; //to translate
-$strSetupLeftLogoLink_name = 'Logo link URL'; //to translate
-$strSetupLeftLogoLinkWindow_name = 'Logo link target'; //to translate
-$strSetupLeftLogoLinkWindow_desc = 'Open the linked page in the main window ([kbd]main[/kbd]) or in a new one ([kbd]new[/kbd])'; //to translate
-$strSetupLeftDefaultTabTable_name = 'Target for quick access icon'; //to translate
-$strSetupLeftPointerEnable_name = 'Enable highlighting'; //to translate
-$strSetupLeftPointerEnable_desc = 'Highlight server under the mouse cursor'; //to translate
-$strSetupLeftDisplayServers_name = 'Display servers selection'; //to translate
-$strSetupLeftDisplayServers_desc = 'Display server choice at the top of the left frame'; //to translate
-$strSetupDisplayServersList_name = 'Display servers as a list'; //to translate
-$strSetupDisplayServersList_desc = 'Show server listing as a list instead of a drop down'; //to translate
-$strSetupDisplayDatabasesList_name = 'Display databases as a list'; //to translate
-$strSetupDisplayDatabasesList_desc = 'Show database listing as a list instead of a drop down'; //to translate
-$strSetupLeftFrameDBTree_name = 'Display databases in a tree'; //to translate
-$strSetupLeftFrameDBTree_desc = 'Only light version; display databases in a tree (determined by the separator defined below)'; //to translate
-$strSetupLeftFrameDBSeparator_name = 'Database tree separator'; //to translate
-$strSetupLeftFrameDBSeparator_desc = 'String that separates databases into different tree levels'; //to translate
-$strSetupShowTooltipAliasDB_name = 'Display database comment instead of its name'; //to translate
-$strSetupShowTooltipAliasDB_desc = 'If tooltips are enabled and a database comment is set, this will flip the comment and the real name'; //to translate
-$strSetupLeftFrameTableSeparator_name = 'Table tree separator'; //to translate
-$strSetupLeftFrameTableSeparator_desc = 'String that separates tables into different tree levels'; //to translate
-$strSetupLeftFrameTableLevel_name = 'Maximum table tree depth'; //to translate
-$strSetupShowTooltip_name = 'Display table comments in tooltips'; //to translate
-$strSetupShowTooltipAliasTB_name = 'Display table comment instead of its name'; //to translate
-$strSetupShowTooltipAliasTB_desc = 'When setting this to [kbd]nested[/kbd], the alias of the table name is only used to split/nest the tables according to the $cfg[\'LeftFrameTableSeparator\'] directive, so only the folder is called like the alias, the table name itself stays unchanged'; //to translate
-$strSetupShowStats_name = 'Show statistics'; //to translate
-$strSetupShowStats_desc = 'Allow to display database and table statistics (eg. space usage)'; //to translate
-$strSetupShowPhpInfo_name = 'Show phpinfo() link'; //to translate
-$strSetupShowPhpInfo_desc = 'Shows link to [a@http://php.net/manual/function.phpinfo.php]phpinfo()[/a] output'; //to translate
-$strSetupShowServerInfo_name = 'Show detailed MySQL server information'; //to translate
-$strSetupShowChgPassword_name = 'Show password change form'; //to translate
-$strSetupShowChgPassword_desc = 'Please note that enabling this has no effect with [kbd]config[/kbd] authentication mode because the password is hard coded in the configuration file; this does not limit the ability to execute the same command directly'; //to translate
-$strSetupShowCreateDb_name = 'Show create database form'; //to translate
-$strSetupSuggestDBName_name = 'Suggest new database name'; //to translate
-$strSetupSuggestDBName_desc = 'Suggest a database name on the "Create Database" form (if possible) or keep the text field empty'; //to translate
-$strSetupNavigationBarIconic_name = 'Iconic navigation bar'; //to translate
-$strSetupNavigationBarIconic_desc = 'Use only icons, only text or both'; //to translate
-$strSetupShowAll_name = 'Allow to display all the rows'; //to translate
-$strSetupShowAll_desc = 'Whether a user should be displayed a "show all (records)" button'; //to translate
-$strSetupMaxRows_name = 'Maximum number of rows to display'; //to translate
-$strSetupMaxRows_desc = 'Number of rows displayed when browsing a result set. If the result set contains more rows, "Previous" and "Next" links will be shown.'; //to translate
-$strSetupOrder_name = 'Default sorting order'; //to translate
-$strSetupOrder_desc = '[kbd]SMART[/kbd] - i.e. descending order for fields of type TIME, DATE, DATETIME and TIMESTAMP, ascending order otherwise'; //to translate
-$strSetupBrowsePointerEnable_name = 'Highlight pointer'; //to translate
-$strSetupBrowsePointerEnable_desc = 'Highlight row pointed by the mouse cursor'; //to translate
-$strSetupBrowseMarkerEnable_name = 'Row marker'; //to translate
-$strSetupBrowseMarkerEnable_desc = 'Highlight selected rows'; //to translate
-$strSetupProtectBinary_name = 'Protect binary fields'; //to translate
-$strSetupProtectBinary_desc = 'Disallow BLOB and BINARY fields from editing'; //to translate
-$strSetupShowFunctionFields_name = 'Show function fields'; //to translate
-$strSetupShowFunctionFields_desc = 'Display the function fields in edit/insert mode'; //to translate
-$strSetupCharEditing_name = 'CHAR fields editing'; //to translate
-$strSetupCharEditing_desc = 'Defines which type of editing controls should be used for CHAR and VARCHAR fields; [kbd]input[/kbd] - allows limiting of input length, [kbd]textarea[/kbd] - allows newlines in fields'; //to translate
-$strSetupCharTextareaCols_name = 'CHAR textarea columns'; //to translate
-$strSetupCharTextareaCols_desc = 'Number of columns for CHAR/VARCHAR textareas'; //to translate
-$strSetupCharTextareaRows_name = 'CHAR textarea rows'; //to translate
-$strSetupCharTextareaRows_desc = 'Number of rows for CHAR/VARCHAR textareas'; //to translate
-$strSetupInsertRows_name = 'Number of inserted rows'; //to translate
-$strSetupInsertRows_desc = 'How many rows can be inserted at one time'; //to translate
-$strSetupForeignKeyDropdownOrder_name = 'Foreign key dropdown order'; //to translate
-$strSetupForeignKeyDropdownOrder_desc = 'Sort order for items in a foreign-key dropdown box; [kbd]content[/kbd] is the referenced data, [kbd]id[/kbd] is the key value'; //to translate
-$strSetupForeignKeyMaxLimit_name = 'Foreign key limit'; //to translate
-$strSetupForeignKeyMaxLimit_desc = 'A dropdown will be used if fewer items are present'; //to translate
-$strSetupLightTabs_name = 'Light tabs'; //to translate
-$strSetupLightTabs_desc = 'Use less graphically intense tabs'; //to translate
-$strSetupPropertiesIconic_name = 'Iconic table operations'; //to translate
-$strSetupPropertiesIconic_desc = 'Use only icons, only text or both'; //to translate
-$strSetupDefaultTabServer_name = 'Default server tab'; //to translate
-$strSetupDefaultTabServer_desc = 'Tab that is displayed when entering a server'; //to translate
-$strSetupDefaultTabDatabase_name = 'Default database tab'; //to translate
-$strSetupDefaultTabDatabase_desc = 'Tab that is displayed when entering a database'; //to translate
-$strSetupDefaultTabTable_name = 'Default table tab'; //to translate
-$strSetupDefaultTabTable_desc = 'Tab that is displayed when entering a table'; //to translate
-$strSetupQueryWindowDefTab_name = 'Default query window tab'; //to translate
-$strSetupQueryWindowDefTab_desc = 'Tab displayed when opening a new query window'; //to translate
-$strSetupSQLQuery_Edit_name = 'Edit'; //to translate
-$strSetupSQLQuery_Explain_name = 'Explain SQL'; //to translate
-$strSetupSQLQuery_ShowAsPHP_name = 'Create PHP Code'; //to translate
-$strSetupSQLQuery_Validate_name = 'Validate SQL'; //to translate
-$strSetupSQLQuery_Refresh_name = 'Refresh'; //to translate
-$strSetupImport_format_name = 'Format of imported file'; //to translate
-$strSetupImport_allow_interrupt_name = 'Partial import: allow interrupt'; //to translate
-$strSetupImport_allow_interrupt_desc = 'Allow interrupt of import in case script detects it is close to time limit. This might be good way to import large files, however it can break transactions.'; //to translate
-$strSetupImport_skip_queries_name = 'Partial import: skip queries'; //to translate
-$strSetupImport_skip_queries_desc = 'Number of records (queries) to skip from start'; //to translate
-$strSetupExport_format_name = 'Format'; //to translate
-$strSetupExport_compression_name = 'Compression'; //to translate
-$strSetupExport_asfile_name = 'Save as file'; //to translate
-$strSetupExport_charset_name = 'Character set of the file'; //to translate
-$strSetupExport_onserver_name = 'Save on server'; //to translate
-$strSetupExport_onserver_overwrite_name = 'Overwrite existing file(s)'; //to translate
-$strSetupExport_remember_file_template_name = 'Remember file name template'; //to translate
-$strSetupExport_file_template_table_name = 'Table name template'; //to translate
-$strSetupExport_file_template_database_name = 'Database name template'; //to translate
-$strSetupExport_file_template_server_name = 'Server name template'; //to translate
-$strSetupBlowfishSecretCharsMsg = 'Key should contain letters, numbers [em]and[/em] special characters'; //to translate
-$strSetupBlowfishSecretMsg = 'You didn\'t have blowfish secret set and have enabled cookie authentication, so a key was automatically generated for you. It is used to encrypt cookies; you don\'t need to remember it.'; //to translate
-$strSetupIgnoreMultiSubmitErrors_desc = 'If enabled, phpMyAdmin continues computing multiple-statement queries even if one of the queries failed'; //to translate
-$strSetupImport_format_desc = 'Default format; be aware that this list depends on location (database, table) and only SQL is always available'; //to translate
-$strSetupInsecureConnectionMsg1 = 'You are not using a secure connection; all data (including potentially sensitive information, like passwords) is transferred unencrypted!'; //to translate
-$strSetupLoginCookieDeleteAll_desc = 'If TRUE, logout deletes cookies for all servers; when set to FALSE, logout only occurs for the current server. Setting this to FALSE makes it easy to forget to log out from other servers when connected to multiple servers.'; //to translate
-$strSetupLoginCookieStore_desc = 'Define how long (in seconds) a login cookie should be stored in browser. The default of 0 means that it will be kept for the existing session only, and will be deleted as soon as you close the browser window. This is recommended for non-trusted environments.'; //to translate
-$strSetupServerAuthConfigMsg = 'You set the [kbd]config[/kbd] authentication type and included username and password for auto-login, which is not a desirable option for live hosts. Anyone who knows or guesses your phpMyAdmin URL can directly access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=%1$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http[/kbd].'; //to translate
-$strSetupServers_extension_desc = 'What PHP extension to use; you should use mysqli if supported'; //to translate
-$strSetupVersionCheckNewAvailable = 'A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is %s, released on %s.'; //to translate
-$strSetupServers_auth_swekey_config_desc = 'The path for the config file for [a@http://swekey.com]SweKey hardware authentication[/a] (not located in your document root; suggested: /etc/swekey.conf)'; //to translate
-$strSessionGCWarning = 'Your PHP parameter [a@http://php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime@]session.gc_maxlifetime[/a] is lower that cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin.'; //to translate
-$strSetupServers_host_desc = 'Hostname where MySQL server is running'; //to translate
-$strSetupServers_verbose_desc = 'A user-friendly description of this server. Leave blank to display the hostname instead.'; //to translate
-$strCreateUserDatabasePrivileges = 'Grant all privileges on database "%s"'; //to translate
-$strShowBinaryContents = 'Show binary contents'; //to translate
-$strShowBLOBContents = 'Show BLOB contents'; //to translate
-$strStatic = 'static'; //to translate
-$strLoginWithoutPassword = 'Login without a password is forbidden by configuration (see AllowNoPassword)'; //to translate
-$strSetupServerNoPasswordMsg = 'You allow for connecting to the server without a password.'; //to translate
-$strSetupServers_AllowNoPassword_name = 'Allow logins without a password'; //to translate
-$strHostTableExplanation = 'When Host table is used, this field is ignored and values stored in Host table are used instead.'; //to translate
+
+$strForeignKeyRelationAdded = 'FOREIGN KEY relation added'; //to translate
+
$strGetMoreThemes = 'Get more themes!'; //to translate
-$strNoneDefault = 'None'; //to translate
-$strConfigDirectoryWarning = 'Directory [code]config[/code], which is used by the setup script, still exists in your phpMyAdmin directory. You should remove it once phpMyAdmin has been configured.'; //to translate
-$strRemoveCRLF = 'Remove CRLF characters within fields'; //to translate
-$strDoNotAutoIncrementZeroValues = 'Do not use AUTO_INCREMENT for zero values'; //to translate
-$strAndSmall = 'and'; //to translate
-$strReplicationStatus = 'Replication status'; //to translate
-$strReplicationStatusInfo = 'This MySQL server works as %s in replication process. For further information about replication status on the server, please visit the replication section.'; //to translate
-$strReplicationStatus_master = 'Master status'; //to translate
-$strReplicationStatus_slave = 'Slave status'; //to translate
-$strNavTableFilter = 'Filter'; //to translate
-$strPhpArray = 'PHP array'; //to translate
+
+$strHostTableExplanation = 'When Host table is used, this field is ignored and values stored in Host table are used instead.'; //to translate
+
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strInternalAndForeign = 'An internal relation is not necessary when a corresponding FOREIGN KEY relation exists.'; //to translate
+
+$strLoginWithoutPassword = 'Login without a password is forbidden by configuration (see AllowNoPassword)'; //to translate
+$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
+
+$strNavTableFilter = 'Filter'; //to translate
+$strNoneDefault = 'None'; //to translate
+
+$strPBXTCheckpointFrequency = 'Checkpoint frequency'; //to translate
+$strPBXTCheckpointFrequencyDesc = 'The amount of data written to the transaction log before a checkpoint is performed. The default value is 24MB.'; //to translate
+$strPBXTDataFileGrowSize = 'Data file grow size'; //to translate
+$strPBXTDataFileGrowSizeDesc = 'The grow size of the handle data (.xtd) files.'; //to translate
+$strPBXTDataLogThreshold = 'Data log threshold'; //to translate
+$strPBXTDataLogThresholdDesc = 'The maximum size of a data log file. The default value is 64MB. PBXT can create a maximum of 32000 data logs, which are used by all tables. So the value of this variable can be increased to increase the total amount of data that can be stored in the database.'; //to translate
+$strPBXTGarbageThresholdDesc = 'The percentage of garbage in a data log file before it is compacted. This is a value between 1 and 99. The default is 50.'; //to translate
+$strPBXTGarbageThreshold = 'Garbage threshold'; //to translate
+$strPBXTIndexCacheSizeDesc = 'This is the amount of memory allocated to the index cache. Default value is 32MB. The memory allocated here is used only for caching index pages.'; //to translate
+$strPBXTIndexCacheSize = 'Index cache size'; //to translate
+$strPBXTLogBufferSizeDesc = 'The size of the buffer used when writing a data log. The default is 256MB. The engine allocates one buffer per thread, but only if the thread is required to write a data log.'; //to translate
+$strPBXTLogBufferSize = 'Log buffer size'; //to translate
+$strPBXTLogCacheSizeDesc = 'The amount of memory allocated to the transaction log cache used to cache on transaction log data. The default is 16MB.'; //to translate
+$strPBXTLogCacheSize = 'Log cache size'; //to translate
+$strPBXTLogFileCountDesc = 'This is the number of transaction log files (pbxt/system/xlog*.xt) the system will maintain. If the number of logs exceeds this value then old logs will be deleted, otherwise they are renamed and given the next highest number.'; //to translate
+$strPBXTLogFileCount = 'Log file count'; //to translate
+$strPBXTLogFileThresholdDesc = 'The size of a transaction log before rollover, and a new log is created. The default value is 16MB.'; //to translate
+$strPBXTLogFileThreshold = 'Log file threshold'; //to translate
+$strPBXTRecordCacheSizeDesc = 'This is the amount of memory allocated to the record cache used to cache table data. The default value is 32MB. This memory is used to cache changes to the handle data (.xtd) and row pointer (.xtr) files.'; //to translate
+$strPBXTRecordCacheSize = 'Record cache size'; //to translate
+$strPBXTRowFileGrowSizeDesc = 'The grow size of the row pointer (.xtr) files.'; //to translate
+$strPBXTRowFileGrowSize = 'Row file grow size'; //to translate
+$strPBXTTransactionBufferSizeDesc = 'The size of the global transaction log buffer (the engine allocates 2 buffers of this size). The default is 1MB.'; //to translate
+$strPBXTTransactionBufferSize = 'Transaction buffer size'; //to translate
+$strPhpArray = 'PHP array'; //to translate
+$strPHPExtension = 'PHP extension'; //to translate
+$strPlayAudio = 'Play audio'; //to translate
+
+$strRelationalDisplayField = 'Relational display field'; //to translate
+$strRemoveCRLF = 'Remove CRLF characters within fields'; //to translate
+$strReplicationStatusInfo = 'This MySQL server works as %s in replication process. For further information about replication status on the server, please visit the replication section.'; //to translate
+$strReplicationStatus_master = 'Master status'; //to translate
+$strReplicationStatus = 'Replication status'; //to translate
+$strReplicationStatus_slave = 'Slave status'; //to translate
+
+$strSessionGCWarning = 'Your PHP parameter [a@http://php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime@]session.gc_maxlifetime[/a] is lower that cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin.'; //to translate
+$strSetupAllowAnywhereRecoding_name = 'Allow character set conversion'; //to translate
+$strSetupAllowArbitraryServer_desc = 'If enabled user can enter any MySQL server in login form for cookie auth'; //to translate
+$strSetupAllowArbitraryServerMsg = 'This [a@?page=form&formset=features#tab_Security]option[/a] should be disabled as it allows attackers to bruteforce login to any MySQL server. If you feel this is necessary, use [a@?page=form&formset=features#tab_Security]trusted proxies list[/a]. However, IP-based protection may not be reliable if your IP belongs to an ISP where thousands of users, including you, are connected to.'; //to translate
+$strSetupAllowArbitraryServer_name = 'Allow login to any MySQL server'; //to translate
+$strSetupAllowUserDropDatabase_name = 'Show "Drop database" link to normal users'; //to translate
+$strSetupBlowfishSecretCharsMsg = 'Key should contain letters, numbers [em]and[/em] special characters'; //to translate
+$strSetupblowfish_secret_desc = 'Secret passphrase used for encrypting cookies in [kbd]cookie[/kbd] authentication'; //to translate
+$strSetupBlowfishSecretLengthMsg = 'Key is too short, it should have at least 8 characters'; //to translate
+$strSetupBlowfishSecretMsg = 'You didn\'t have blowfish secret set and have enabled cookie authentication, so a key was automatically generated for you. It is used to encrypt cookies; you don\'t need to remember it.'; //to translate
+$strSetupblowfish_secret_name = 'Blowfish secret'; //to translate
+$strSetupBrowseMarkerEnable_desc = 'Highlight selected rows'; //to translate
+$strSetupBrowseMarkerEnable_name = 'Row marker'; //to translate
+$strSetupBrowsePointerEnable_desc = 'Highlight row pointed by the mouse cursor'; //to translate
+$strSetupBrowsePointerEnable_name = 'Highlight pointer'; //to translate
+$strSetupBZipDump_desc = 'Enable [a@http://en.wikipedia.org/wiki/Bzip2]bzip2[/a] compression for import and export operations'; //to translate
+$strSetupBZipDump_name = 'Bzip2'; //to translate
+$strSetupBZipDumpWarning = '[a@?page=form&formset=features#tab_Import_export]Bzip2 compression and decompression[/a] requires functions (%s) which are unavailable on this system.'; //to translate
+$strSetupCannotLoadConfig = 'Cannot load or save configuration'; //to translate
+$strSetupCannotLoadConfigMsg = 'Please create web server writable folder [em]config[/em] in phpMyAdmin top level directory as described in [a@../Documentation.html#setup_script]documentation[/a]. Otherwise you will be only able to download or display it.'; //to translate
+$strSetupCharEditing_desc = 'Defines which type of editing controls should be used for CHAR and VARCHAR fields; [kbd]input[/kbd] - allows limiting of input length, [kbd]textarea[/kbd] - allows newlines in fields'; //to translate
+$strSetupCharEditing_name = 'CHAR fields editing'; //to translate
+$strSetupCharTextareaCols_desc = 'Number of columns for CHAR/VARCHAR textareas'; //to translate
+$strSetupCharTextareaCols_name = 'CHAR textarea columns'; //to translate
+$strSetupCharTextareaRows_desc = 'Number of rows for CHAR/VARCHAR textareas'; //to translate
+$strSetupCharTextareaRows_name = 'CHAR textarea rows'; //to translate
+$strSetupCheckConfigurationPermissions_name = 'Check config file permissions'; //to translate
+$strSetupClear = 'Clear'; //to translate
+$strSetupCompressOnFly_desc = 'Compress gzip/bzip2 exports on the fly without the need for much memory; if you encounter problems with created gzip/bzip2 files disable this feature'; //to translate
+$strSetupCompressOnFly_name = 'Compress on the fly'; //to translate
+$strSetupConfigurationFile = 'Configuration file'; //to translate
+$strSetupConfirm_desc = 'Whether a warning ("Are your really sure...") should be displayed when you\'re about to lose data'; //to translate
+$strSetupConfirm_name = 'Confirm DROP queries'; //to translate
+$strSetupDefaultCharset_desc = 'Default character set used for conversions'; //to translate
+$strSetupDefaultCharset_name = 'Default character set'; //to translate
+$strSetupDefaultLanguage = 'Default language'; //to translate
+$strSetupDefaultServer = 'Default server'; //to translate
+$strSetupDefaultTabDatabase_desc = 'Tab that is displayed when entering a database'; //to translate
+$strSetupDefaultTabDatabase_name = 'Default database tab'; //to translate
+$strSetupDefaultTabServer_desc = 'Tab that is displayed when entering a server'; //to translate
+$strSetupDefaultTabServer_name = 'Default server tab'; //to translate
+$strSetupDefaultTabTable_desc = 'Tab that is displayed when entering a table'; //to translate
+$strSetupDefaultTabTable_name = 'Default table tab'; //to translate
+$strSetupDirectoryNotice = 'This value should be double checked to ensure that this directory is neither world accessible nor readable or writable by other users on your server.'; //to translate
+$strSetupDisplayDatabasesList_desc = 'Show database listing as a list instead of a drop down'; //to translate
+$strSetupDisplayDatabasesList_name = 'Display databases as a list'; //to translate
+$strSetupDisplay = 'Display'; //to translate
+$strSetupDisplayServersList_desc = 'Show server listing as a list instead of a drop down'; //to translate
+$strSetupDisplayServersList_name = 'Display servers as a list'; //to translate
+$strSetupDonateLink = 'Donate'; //to translate
+$strSetupDownload = 'Download'; //to translate
+$strSetupEndOfLine = 'End of line'; //to translate
+$strSetuperror_connection = 'Could not connect to MySQL server'; //to translate
+$strSetuperror_empty_pmadb_password = 'Empty phpMyAdmin control user password while using pmadb'; //to translate
+$strSetuperror_empty_pmadb_user = 'Empty phpMyAdmin control user while using pmadb'; //to translate
+$strSetuperror_empty_signon_session = 'Empty signon session name while using signon authentication method'; //to translate
+$strSetuperror_empty_signon_url = 'Empty signon URL while using signon authentication method'; //to translate
+$strSetuperror_empty_user_for_config_auth = 'Empty username while using config authentication method'; //to translate
+$strSetuperror_form = 'Submitted form contains errors'; //to translate
+$strSetuperror_incorrect_ip_address = 'Incorrect IP address: %s'; //to translate
+$strSetuperror_incorrect_port = 'Not a valid port number'; //to translate
+$strSetuperror_incorrect_value = 'Incorrect value'; //to translate
+$strSetuperror_missing_field_data = 'Missing data for %s'; //to translate
+$strSetuperror_nan_nneg = 'Not a non-negative number'; //to translate
+$strSetuperror_nan_p = 'Not a positive number'; //to translate
+$strSetupExecTimeLimit_desc = 'Set the number of seconds a script is allowed to run ([kbd]0[/kbd] for no limit)'; //to translate
+$strSetupExecTimeLimit_name = 'Maximum execution time'; //to translate
+$strSetupExport_asfile_name = 'Save as file'; //to translate
+$strSetupExport_charset_name = 'Character set of the file'; //to translate
+$strSetupExport_compression_name = 'Compression'; //to translate
+$strSetupExport_file_template_database_name = 'Database name template'; //to translate
+$strSetupExport_file_template_server_name = 'Server name template'; //to translate
+$strSetupExport_file_template_table_name = 'Table name template'; //to translate
+$strSetupExport_format_name = 'Format'; //to translate
+$strSetupExport_onserver_name = 'Save on server'; //to translate
+$strSetupExport_onserver_overwrite_name = 'Overwrite existing file(s)'; //to translate
+$strSetupExport_remember_file_template_name = 'Remember file name template'; //to translate
+$strSetupFalse = 'no'; //to translate
+$strSetupForceSSL_desc = 'Force secured connection while using phpMyAdmin'; //to translate
+$strSetupForceSSLMsg = 'This [a@?page=form&formset=features#tab_Security]option[/a] should be enabled if your web server supports it'; //to translate
+$strSetupForceSSL_name = 'Force SSL connection'; //to translate
+$strSetupForeignKeyDropdownOrder_desc = 'Sort order for items in a foreign-key dropdown box; [kbd]content[/kbd] is the referenced data, [kbd]id[/kbd] is the key value'; //to translate
+$strSetupForeignKeyDropdownOrder_name = 'Foreign key dropdown order'; //to translate
+$strSetupForeignKeyMaxLimit_desc = 'A dropdown will be used if fewer items are present'; //to translate
+$strSetupForeignKeyMaxLimit_name = 'Foreign key limit'; //to translate
+$strSetupForm_Browse = 'Browse mode'; //to translate
+$strSetupForm_Browse_desc = 'Customize browse mode'; //to translate
+$strSetupForm_Edit_desc = 'Customize edit mode'; //to translate
+$strSetupForm_Edit = 'Edit mode'; //to translate
+$strSetupForm_Export_defaults_desc = 'Customize default export options'; //to translate
+$strSetupForm_Export_defaults = 'Export defaults'; //to translate
+$strSetupForm_Import_defaults_desc = 'Customize default common import options'; //to translate
+$strSetupForm_Import_defaults = 'Import defaults'; //to translate
+$strSetupForm_Import_export_desc = 'Set import and export directories and compression options'; //to translate
+$strSetupForm_Import_export = 'Import / export'; //to translate
+$strSetupForm_Left_databases = 'Databases'; //to translate
+$strSetupForm_Left_databases_desc = 'Databases display options'; //to translate
+$strSetupForm_Left_frame_desc = 'Customize appearance of the navigation frame'; //to translate
+$strSetupForm_Left_frame = 'Navigation frame'; //to translate
+$strSetupForm_Left_servers_desc = 'Servers display options'; //to translate
+$strSetupForm_Left_servers = 'Servers'; //to translate
+$strSetupForm_Left_tables_desc = 'Tables display options'; //to translate
+$strSetupForm_Left_tables = 'Tables'; //to translate
+$strSetupForm_Main_frame = 'Main frame'; //to translate
+$strSetupForm_Other_core_settings_desc = 'Settings that didn\'t fit enywhere else'; //to translate
+$strSetupForm_Other_core_settings = 'Other core settings'; //to translate
+$strSetupForm_Query_window_desc = 'Customize query window options'; //to translate
+$strSetupForm_Query_window = 'Query window'; //to translate
+$strSetupForm_Security_desc = 'Please note that phpMyAdmin is just a user interface and its features do not limit MySQL'; //to translate
+$strSetupForm_Security = 'Security'; //to translate
+$strSetupForm_Server = 'Basic settings'; //to translate
+$strSetupForm_Server_config_desc = 'Advanced server configuration, do not change these options unless you know what they are for'; //to translate
+$strSetupForm_Server_config = 'Server configuration'; //to translate
+$strSetupForm_Server_desc = 'Enter server connection parameters'; //to translate
+$strSetupForm_Server_login_options_desc = 'Enter login options for signon authentication'; //to translate
+$strSetupForm_Server_login_options = 'Signon login options'; //to translate
+$strSetupForm_Server_pmadb_desc = 'Configure phpMyAdmin database to gain access to additional features, see [a@../Documentation.html#linked-tables]linked-tables infrastructure[/a] in documentation'; //to translate
+$strSetupForm_Server_pmadb = 'PMA database'; //to translate
+$strSetupFormset_customization = 'Customization'; //to translate
+$strSetupFormset_export = 'Customize export options'; //to translate
+$strSetupFormset_features = 'Features'; //to translate
+$strSetupFormset_import = 'Customize import defaults'; //to translate
+$strSetupFormset_left_frame = 'Customize navigation frame'; //to translate
+$strSetupFormset_main_frame = 'Customize main frame'; //to translate
+$strSetupForm_Sql_box_desc = 'Customize links shown in SQL Query boxes'; //to translate
+$strSetupForm_Sql_box = 'SQL Query box'; //to translate
+$strSetupForm_Sql_queries_desc = 'SQL queries settings, for SQL Query box options see [a@?page=form&formset=main_frame#tab_Sql_box]Navigation frame[/a] settings'; //to translate
+$strSetupForm_Sql_queries = 'SQL queries'; //to translate
+$strSetupForm_Startup_desc = 'Customize startup page'; //to translate
+$strSetupForm_Startup = 'Startup'; //to translate
+$strSetupForm_Tabs_desc = 'Choose how you want tabs to work'; //to translate
+$strSetupForm_Tabs = 'Tabs'; //to translate
+$strSetupGZipDump_desc = 'Enable [a@http://en.wikipedia.org/wiki/Gzip]gzip[/a] compression for import and export operations'; //to translate
+$strSetupGZipDump_name = 'GZip'; //to translate
+$strSetupGZipDumpWarning = '[a@?page=form&formset=features#tab_Import_export]GZip compression and decompression[/a] requires functions (%s) which are unavailable on this system.'; //to translate
+$strSetupHomepageLink = 'phpMyAdmin homepage'; //to translate
+$strSetupIconvExtraParams_name = 'Extra parameters for iconv'; //to translate
+$strSetupIgnoreErrors = 'Ignore errors'; //to translate
+$strSetupIgnoreMultiSubmitErrors_desc = 'If enabled, phpMyAdmin continues computing multiple-statement queries even if one of the queries failed'; //to translate
+$strSetupIgnoreMultiSubmitErrors_name = 'Ignore multiple statement errors'; //to translate
+$strSetupImport_allow_interrupt_desc = 'Allow interrupt of import in case script detects it is close to time limit. This might be good way to import large files, however it can break transactions.'; //to translate
+$strSetupImport_allow_interrupt_name = 'Partial import: allow interrupt'; //to translate
+$strSetupImport_format_desc = 'Default format; be aware that this list depends on location (database, table) and only SQL is always available'; //to translate
+$strSetupImport_format_name = 'Format of imported file'; //to translate
+$strSetupImport_skip_queries_desc = 'Number of records (queries) to skip from start'; //to translate
+$strSetupImport_skip_queries_name = 'Partial import: skip queries'; //to translate
+$strSetupInsecureConnection = 'Insecure connection'; //to translate
+$strSetupInsecureConnectionMsg1 = 'You are not using a secure connection; all data (including potentially sensitive information, like passwords) is transferred unencrypted!'; //to translate
+$strSetupInsecureConnectionMsg2 = 'If your server is also configured to accept HTTPS requests follow [a@%s]this link[/a] to use a secure connection.'; //to translate
+$strSetupInsertRows_desc = 'How many rows can be inserted at one time'; //to translate
+$strSetupInsertRows_name = 'Number of inserted rows'; //to translate
+$strSetupLeftDefaultTabTable_name = 'Target for quick access icon'; //to translate
+$strSetupLeftDisplayLogo_desc = 'Show logo in left frame'; //to translate
+$strSetupLeftDisplayLogo_name = 'Display logo'; //to translate
+$strSetupLeftDisplayServers_desc = 'Display server choice at the top of the left frame'; //to translate
+$strSetupLeftDisplayServers_name = 'Display servers selection'; //to translate
+$strSetupLeftFrameDBSeparator_desc = 'String that separates databases into different tree levels'; //to translate
+$strSetupLeftFrameDBSeparator_name = 'Database tree separator'; //to translate
+$strSetupLeftFrameDBTree_desc = 'Only light version; display databases in a tree (determined by the separator defined below)'; //to translate
+$strSetupLeftFrameDBTree_name = 'Display databases in a tree'; //to translate
+$strSetupLeftFrameLight_desc = 'Disable this if you want to see all databases at once'; //to translate
+$strSetupLeftFrameLight_name = 'Use light version'; //to translate
+$strSetupLeftFrameTableLevel_name = 'Maximum table tree depth'; //to translate
+$strSetupLeftFrameTableSeparator_desc = 'String that separates tables into different tree levels'; //to translate
+$strSetupLeftFrameTableSeparator_name = 'Table tree separator'; //to translate
+$strSetupLeftLogoLink_name = 'Logo link URL'; //to translate
+$strSetupLeftLogoLinkWindow_desc = 'Open the linked page in the main window ([kbd]main[/kbd]) or in a new one ([kbd]new[/kbd])'; //to translate
+$strSetupLeftLogoLinkWindow_name = 'Logo link target'; //to translate
+$strSetupLeftPointerEnable_desc = 'Highlight server under the mouse cursor'; //to translate
+$strSetupLeftPointerEnable_name = 'Enable highlighting'; //to translate
+$strSetupLetUserChoose = 'let the user choose'; //to translate
+$strSetupLightTabs_desc = 'Use less graphically intense tabs'; //to translate
+$strSetupLightTabs_name = 'Light tabs'; //to translate
+$strSetupLoad = 'Load'; //to translate
+$strSetupLoginCookieDeleteAll_desc = 'If TRUE, logout deletes cookies for all servers; when set to FALSE, logout only occurs for the current server. Setting this to FALSE makes it easy to forget to log out from other servers when connected to multiple servers.'; //to translate
+$strSetupLoginCookieDeleteAll_name = 'Delete all cookies on logout'; //to translate
+$strSetupLoginCookieRecall_desc = 'Define whether the previous login should be recalled or not in cookie authentication mode'; //to translate
+$strSetupLoginCookieRecall_name = 'Recall user name'; //to translate
+$strSetupLoginCookieStore_desc = 'Define how long (in seconds) a login cookie should be stored in browser. The default of 0 means that it will be kept for the existing session only, and will be deleted as soon as you close the browser window. This is recommended for non-trusted environments.'; //to translate
+$strSetupLoginCookieStore_name = 'Login cookie store'; //to translate
+$strSetupLoginCookieValidity_desc = 'Define how long (in seconds) a login cookie is valid'; //to translate
+$strSetupLoginCookieValidityMsg = '[a@?page=form&formset=features#tab_Security]Login cookie validity[/a] should be should be set to 1800 seconds (30 minutes) at most. Values larger than 1800 may pose a security risk such as impersonation.'; //to translate
+$strSetupLoginCookieValidity_name = 'Login cookie validity'; //to translate
+$strSetupMaxCharactersInDisplayedSQL_desc = 'Maximum number of characters used when a SQL query is displayed'; //to translate
+$strSetupMaxCharactersInDisplayedSQL_name = 'Maximum displayed SQL length'; //to translate
+$strSetupMaxDbList_desc = 'Maximum number of databases displayed in left frame and database list'; //to translate
+$strSetupMaxDbList_name = 'Maximum databases'; //to translate
+$strSetupMaxRows_desc = 'Number of rows displayed when browsing a result set. If the result set contains more rows, "Previous" and "Next" links will be shown.'; //to translate
+$strSetupMaxRows_name = 'Maximum number of rows to display'; //to translate
+$strSetupMaxTableList_desc = 'Maximum number of tables displayed in table list'; //to translate
+$strSetupMaxTableList_name = 'Maximum tables'; //to translate
+$strSetupMemoryLimit_desc = 'The number of bytes a script is allowed to allocate, eg. [kbd]32M[/kbd] ([kbd]0[/kbd] for no limit)'; //to translate
+$strSetupMemoryLimit_name = 'Memory limit'; //to translate
+$strSetupNavigationBarIconic_desc = 'Use only icons, only text or both'; //to translate
+$strSetupNavigationBarIconic_name = 'Iconic navigation bar'; //to translate
+$strSetupNewServer = 'New server'; //to translate
+$strSetupNoServers = 'There are no configured servers'; //to translate
+$strSetupOBGzip_desc = 'use GZip output buffering for increased speed in HTTP transfers'; //to translate
+$strSetupOBGzip_name = 'GZip output buffering'; //to translate
+$strSetupOptionNone = '- none -'; //to translate
+$strSetupOrder_desc = '[kbd]SMART[/kbd] - i.e. descending order for fields of type TIME, DATE, DATETIME and TIMESTAMP, ascending order otherwise'; //to translate
+$strSetupOrder_name = 'Default sorting order'; //to translate
+$strSetupOverview = 'Overview'; //to translate
+$strSetupPersistentConnections_desc = 'Use persistent connections to MySQL databases'; //to translate
+$strSetupPersistentConnections_name = 'Persistent connections'; //to translate
+$strSetupPropertiesIconic_desc = 'Use only icons, only text or both'; //to translate
+$strSetupPropertiesIconic_name = 'Iconic table operations'; //to translate
+$strSetupProtectBinary_desc = 'Disallow BLOB and BINARY fields from editing'; //to translate
+$strSetupProtectBinary_name = 'Protect binary fields'; //to translate
+$strSetupQueryHistoryDB_desc = 'Enable if you want DB-based query history (requires pmadb). If disabled, this utilizes JS-routines to display query history (lost by window close).'; //to translate
+$strSetupQueryHistoryDB_name = 'Permanent query history'; //to translate
+$strSetupQueryHistoryMax_desc = 'How many queries are kept in history'; //to translate
+$strSetupQueryHistoryMax_name = 'Query history length'; //to translate
+$strSetupQueryWindowDefTab_desc = 'Tab displayed when opening a new query window'; //to translate
+$strSetupQueryWindowDefTab_name = 'Default query window tab'; //to translate
+$strSetupRecodingEngine_desc = 'Select which functions will be used for character set conversion'; //to translate
+$strSetupRecodingEngine_name = 'Recoding engine'; //to translate
+$strSetupRestoreDefaultValue = 'Restore default value'; //to translate
+$strSetupRevertErroneousFields = 'Try to revert erroneous fields to their default values'; //to translate
+$strSetupSaveDir_desc = 'Directory where exports can be saved on server'; //to translate
+$strSetupSaveDir_name = 'Save directory'; //to translate
+$strSetupServerAuthConfigMsg = 'You set the [kbd]config[/kbd] authentication type and included username and password for auto-login, which is not a desirable option for live hosts. Anyone who knows or guesses your phpMyAdmin URL can directly access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=%1$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http[/kbd].'; //to translate
+$strSetupServerExtensionMsg = 'You should use mysqli for performance reasons'; //to translate
+$strSetupServerNoPasswordMsg = 'You allow for connecting to the server without a password.'; //to translate
+$strSetupServersAdd = 'Add a new server'; //to translate
+$strSetupServers_AllowDeny_order_desc = 'Leave blank if not used'; //to translate
+$strSetupServers_AllowDeny_order_name = 'Host authentication order'; //to translate
+$strSetupServers_AllowDeny_rules_desc = 'Leave blank for defaults'; //to translate
+$strSetupServers_AllowDeny_rules_name = 'Host authentication rules'; //to translate
+$strSetupServers_AllowNoPassword_name = 'Allow logins without a password'; //to translate
+$strSetupServers_AllowRoot_name = 'Allow root login'; //to translate
+$strSetupServers_auth_swekey_config_desc = 'The path for the config file for [a@http://swekey.com]SweKey hardware authentication[/a] (not located in your document root; suggested: /etc/swekey.conf)'; //to translate
+$strSetupServers_auth_swekey_config_name = 'SweKey config file'; //to translate
+$strSetupServers_auth_type_desc = 'Authentication method to use'; //to translate
+$strSetupServers_auth_type_name = 'Authentication type'; //to translate
+$strSetupServers_bookmarktable_desc = 'Leave blank for no [a@http://wiki.cihar.com/pma/bookmark]bookmark[/a] support, default: [kbd]pma_bookmark[/kbd]'; //to translate
+$strSetupServers_bookmarktable_name = 'Bookmark table'; //to translate
+$strSetupServers_column_info_desc = 'Leave blank for no column comments/mime types, default: [kbd]pma_column_info[/kbd]'; //to translate
+$strSetupServers_column_info_name = 'Column information table'; //to translate
+$strSetupServers_compress_desc = 'Compress connection to MySQL server'; //to translate
+$strSetupServers_compress_name = 'Compress connection'; //to translate
+$strSetupServers_connect_type_desc = 'How to connect to server, keep tcp if unsure'; //to translate
+$strSetupServers_connect_type_name = 'Connection type'; //to translate
+$strSetupServers_controlpass_name = 'Control user password'; //to translate
+$strSetupServers_controluser_desc = 'A special MySQL user configured with limited permissions, more information available on [a@http://wiki.cihar.com/pma/controluser]wiki[/a]'; //to translate
+$strSetupServers_controluser_name = 'Control user'; //to translate
+$strSetupServers_CountTables_desc = 'Count tables when showing database list'; //to translate
+$strSetupServers_CountTables_name = 'Count tables'; //to translate
+$strSetupServers_designer_coords_desc = 'Leave blank for no Designer support, default: [kbd]designer_coords[/kbd]'; //to translate
+$strSetupServers_designer_coords_name = 'Designer table'; //to translate
+$strSetupServers_DisableIS_desc = 'More information on [a@http://sf.net/support/tracker.php?aid=1849494]PMA bug tracker[/a] and [a@http://bugs.mysql.com/19588]MySQL Bugs[/a]'; //to translate
+$strSetupServers_DisableIS_name = 'Disable use of INFORMATION_SCHEMA'; //to translate
+$strSetupServerSecurityInfoMsg = 'If you feel this is necessary, use additional protection settings - [a@?page=servers&mode=edit&id=%1$d#tab_Server_config]host authentication[/a] settings and [a@?page=form&formset=features#tab_Security]trusted proxies list[/a]. However, IP-based protection may not be reliable if your IP belongs to an ISP where thousands of users, including you, are connected to.'; //to translate
+$strSetupServersEdit = 'Edit server'; //to translate
+$strSetupServers_extension_desc = 'What PHP extension to use; you should use mysqli if supported'; //to translate
+$strSetupServers_extension_name = 'PHP extension to use'; //to translate
+$strSetupServers_hide_db_desc = 'Hide databases matching regular expression (PCRE)'; //to translate
+$strSetupServers_hide_db_name = 'Hide databases'; //to translate
+$strSetupServers_history_desc = 'Leave blank for no SQL query history support, default: [kbd]pma_history[/kbd]'; //to translate
+$strSetupServers_history_name = 'SQL query history table'; //to translate
+$strSetupServers_host_desc = ''; //to translate
+$strSetupServers_host_name = 'Server hostname'; //to translate
+$strSetupServers_LogoutURL_name = 'Logout URL'; //to translate
+$strSetupServers_nopassword_desc = 'Try to connect without password'; //to translate
+$strSetupServers_nopassword_name = 'Connect without password'; //to translate
+$strSetupServers_only_db_desc = 'You can use MySQL wildcard characters (% and _), escape them if you want to use their literal instances, i.e. use \'my\_db\' and not \'my_db\''; //to translate
+$strSetupServers_only_db_name = 'Show only listed databases'; //to translate
+$strSetupServers_password_desc = 'Leave empty if not using config auth'; //to translate
+$strSetupServers_password_name = 'Password for config auth'; //to translate
+$strSetupServers_pdf_pages_desc = 'Leave blank for no PDF schema support, default: [kbd]pma_pdf_pages[/kbd]'; //to translate
+$strSetupServers_pdf_pages_name = 'PDF schema: pages table'; //to translate
+$strSetupServers_pmadb_desc = 'Database used for relations, bookmarks, and PDF features. See [a@http://wiki.cihar.com/pma/pmadb]pmadb[/a] for complete information. Leave blank for no support. Default: [kbd]phpmyadmin[/kbd]'; //to translate
+$strSetupServers_pmadb_name = 'PMA database'; //to translate
+$strSetupServers_port_desc = 'Port on which MySQL server is listening, leave empty for default'; //to translate
+$strSetupServers_port_name = 'Server port'; //to translate
+$strSetupServers_relation_desc = 'Leave blank for no [a@http://wiki.cihar.com/pma/relation]relation-links[/a] support, default: [kbd]pma_relation[/kbd]'; //to translate
+$strSetupServers_relation_name = 'Relation table'; //to translate
+$strSetupServers_ShowDatabasesCommand_desc = 'SQL command to fetch available databases'; //to translate
+$strSetupServers_ShowDatabasesCommand_name = 'SHOW DATABASES command'; //to translate
+$strSetupServers_SignonSession_desc = 'See [a@http://wiki.cihar.com/pma/auth_types#signon]authentication types[/a] for an example'; //to translate
+$strSetupServers_SignonSession_name = 'Signon session name'; //to translate
+$strSetupServers_SignonURL_name = 'Signon URL'; //to translate
+$strSetupServerSslMsg = 'You should use SSL connections if your web server supports it'; //to translate
+$strSetupServers_socket_desc = 'Socket on which MySQL server is listening, leave empty for default'; //to translate
+$strSetupServers_socket_name = 'Server socket'; //to translate
+$strSetupServers_ssl_desc = ''; //to translate
+$strSetupServers_ssl_name = 'Use SSL'; //to translate
+$strSetupServers_table_coords_desc = 'Leave blank for no PDF schema support, default: [kbd]pma_table_coords[/kbd]'; //to translate
+$strSetupServers_table_coords_name = 'PDF schema: table coordinates'; //to translate
+$strSetupServers_table_info_desc = 'Table to describe the display fields, leave blank for no support; default: [kbd]pma_table_info[/kbd]'; //to translate
+$strSetupServers_table_info_name = 'Display fields table'; //to translate
+$strSetupServers_user_desc = 'Leave empty if not using config auth'; //to translate
+$strSetupServers_user_name = 'User for config auth'; //to translate
+$strSetupServers_verbose_check_desc = 'Disable if you know that your pma_* tables are up to date. This prevents compatibility checks and thereby increases performance'; //to translate
+$strSetupServers_verbose_check_name = 'Verbose check'; //to translate
+$strSetupServers_verbose_desc = 'Hostname where MySQL server is running'; //to translate
+$strSetupServers_verbose_name = 'Verbose name of this server'; //to translate
+$strSetupSetValue = 'Set value: %s'; //to translate
+$strSetupShowAll_desc = 'Whether a user should be displayed a "show all (records)" button'; //to translate
+$strSetupShowAll_name = 'Allow to display all the rows'; //to translate
+$strSetupShowChgPassword_desc = 'Please note that enabling this has no effect with [kbd]config[/kbd] authentication mode because the password is hard coded in the configuration file; this does not limit the ability to execute the same command directly'; //to translate
+$strSetupShowChgPassword_name = 'Show password change form'; //to translate
+$strSetupShowCreateDb_name = 'Show create database form'; //to translate
+$strSetupShowForm = 'Show form'; //to translate
+$strSetupShowFunctionFields_desc = 'Display the function fields in edit/insert mode'; //to translate
+$strSetupShowFunctionFields_name = 'Show function fields'; //to translate
+$strSetupShowHiddenMessages = 'Show hidden messages (#MSG_COUNT)'; //to translate
+$strSetupShowPhpInfo_desc = 'Shows link to [a@http://php.net/manual/function.phpinfo.php]phpinfo()[/a] output'; //to translate
+$strSetupShowPhpInfo_name = 'Show phpinfo() link'; //to translate
+$strSetupShowServerInfo_name = 'Show detailed MySQL server information'; //to translate
+$strSetupShowSQL_desc = 'Defines whether SQL queries generated by phpMyAdmin should be displayed'; //to translate
+$strSetupShowSQL_name = 'Show SQL queries'; //to translate
+$strSetupShowStats_desc = 'Allow to display database and table statistics (eg. space usage)'; //to translate
+$strSetupShowStats_name = 'Show statistics'; //to translate
+$strSetupShowTooltipAliasDB_desc = 'If tooltips are enabled and a database comment is set, this will flip the comment and the real name'; //to translate
+$strSetupShowTooltipAliasDB_name = 'Display database comment instead of its name'; //to translate
+$strSetupShowTooltipAliasTB_desc = 'When setting this to [kbd]nested[/kbd], the alias of the table name is only used to split/nest the tables according to the $cfg[\'LeftFrameTableSeparator\'] directive, so only the folder is called like the alias, the table name itself stays unchanged'; //to translate
+$strSetupShowTooltipAliasTB_name = 'Display table comment instead of its name'; //to translate
+$strSetupShowTooltip_name = 'Display table comments in tooltips'; //to translate
+$strSetupSkipLockedTables_desc = 'Mark used tables and make it possible to show databases with locked tables'; //to translate
+$strSetupSkipLockedTables_name = 'Skip locked tables'; //to translate
+$strSetupSQLQuery_Edit_name = 'Edit'; //to translate
+$strSetupSQLQuery_Explain_name = 'Explain SQL'; //to translate
+$strSetupSQLQuery_Refresh_name = 'Refresh'; //to translate
+$strSetupSQLQuery_ShowAsPHP_name = 'Create PHP Code'; //to translate
+$strSetupSQLQuery_Validate_name = 'Validate SQL'; //to translate
+$strSetupSuggestDBName_desc = 'Suggest a database name on the "Create Database" form (if possible) or keep the text field empty'; //to translate
+$strSetupSuggestDBName_name = 'Suggest new database name'; //to translate
+$strSetupTrue = 'yes'; //to translate
+$strSetupTrustedProxies_desc = 'Input proxies as [kbd]IP: trusted HTTP header[/kbd]. The following example specifies that phpMyAdmin should trust a HTTP_X_FORWARDED_FOR (X-Forwarded-For) header coming from the proxy 1.2.3.4:[br][kbd]1.2.3.4: HTTP_X_FORWARDED_FOR[/kbd]'; //to translate
+$strSetupTrustedProxies_name = 'List of trusted proxies for IP allow/deny'; //to translate
+$strSetupUploadDir_desc = 'Directory on server where you can upload files for import'; //to translate
+$strSetupUploadDir_name = 'Upload directory'; //to translate
+$strSetupUseDbSearch_desc = 'Allow for searching inside the entire database'; //to translate
+$strSetupUseDbSearch_name = 'Use database search'; //to translate
+$strSetupVerboseMultiSubmit_desc = 'Show affected rows of each statement on multiple-statement queries. See libraries/import.lib.php for defaults on how many queries a statement may contain.'; //to translate
+$strSetupVerboseMultiSubmit_name = 'Verbose multiple statements'; //to translate
+$strSetupVersionCheckDataError = 'Reading of version failed. Maybe you\'re offline or the upgrade server does not respond.'; //to translate
+$strSetupVersionCheckInvalid = 'Got invalid version string from server'; //to translate
+$strSetupVersionCheckLink = 'Check for latest version'; //to translate
+$strSetupVersionCheckNewAvailable = 'A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is %s, released on %s.'; //to translate
+$strSetupVersionCheckNewAvailableSvn = 'You are using subversion version, run [kbd]svn update[/kbd] :-)[br]The latest stable version is %s, released on %s.'; //to translate
+$strSetupVersionCheckNone = 'No newer stable version is available'; //to translate
+$strSetupVersionCheckUnparsable = 'Unparsable version string'; //to translate
+$strSetupVersionCheck = 'Version check'; //to translate
+$strSetupVersionCheckWrapperError = 'Neither URL wrapper nor CURL is available. Version check is not possible.'; //to translate
+$strSetupWarning = 'Warning'; //to translate
+$strSetupZipDump_desc = 'Enable [a@http://en.wikipedia.org/wiki/ZIP_(file_format)]ZIP[/a] compression for import and export operations'; //to translate
+$strSetupZipDumpExportWarning = '[a@?page=form&formset=features#tab_Import_export]Zip compression[/a] requires functions (%s) which are unavailable on this system.'; //to translate
+$strSetupZipDumpImportWarning = '[a@?page=form&formset=features#tab_Import_export]Zip decompression[/a] requires functions (%s) which are unavailable on this system.'; //to translate
+$strSetupZipDump_name = 'ZIP'; //to translate
+$strShowBinaryContents = 'Show binary contents'; //to translate
+$strShowBLOBContents = 'Show BLOB contents'; //to translate
+$strShowKeys = 'Only show keys'; //to translate
+$strStatic = 'static'; //to translate
+$strSwekeyNoKeyId = 'File %s does not contain any key id'; //to translate
+$strSwekeyNoKey = 'No valid authentication key plugged'; //to translate
+
+$strViewHasAtLeast = 'This view has at least this number of rows. Please refer to %sdocumentation%s.'; //to translate
+$strViewImage = 'View image'; //to translate
+$strViewVideo = 'View video'; //to translate
+
+$strWebServer = 'Web server'; //to translate
+$strWiki = 'Wiki'; //to translate
+
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/bulgarian-utf-8.inc.php b/lang/bulgarian-utf-8.inc.php
index bc0c1fa0d..213a27971 100644
--- a/lang/bulgarian-utf-8.inc.php
+++ b/lang/bulgarian-utf-8.inc.php
@@ -1486,4 +1486,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/catalan-utf-8.inc.php b/lang/catalan-utf-8.inc.php
index a54319f14..8c2411f91 100644
--- a/lang/catalan-utf-8.inc.php
+++ b/lang/catalan-utf-8.inc.php
@@ -41,7 +41,7 @@ $strAdministration = 'Administració';
$strAfter = 'Darrere de %s';
$strAfterInsertBack = 'Tornar';
$strAfterInsertNewInsert = 'Insereix un nou registre';
-$strAfterInsertNext = 'Editar el següent registre';
+$strAfterInsertNext = 'Editar el següent registre';
$strAfterInsertSame = 'Tornar a aquesta pàgina';
$strAllowInterrupt = 'Permetre l\'interrupció de l\'importació en cas de que l\'arxiu d\'ordres detecti que s\'acosta el limit del temps. Pot ser una bona solució per importar arxius grans, però pot trencar transaccions.';
$strAllTableSameWidth = 'Mostrar totes les taules amb la mateixa amplada?';
@@ -169,7 +169,7 @@ $strConstraintsForDumped = 'Restriccions per taules bolcades';
$strConstraintsForTable = 'Restriccions per la taula';
$strControluserFailed = 'La connexió de l\'usuari de control ha fallat, tal com està definida ara a la configuració.';
$strCookiesRequired = 'A partir d\'aquest punt és necessari tenir les galetes (cookies) activades.';
-$strCopy = 'Copiar';
+$strCopy = 'Copiar';
$strCopyDatabaseOK = 'La Base de dades %s s\'ha copiat a %s';
$strCopyTable = 'Copia taula a (base-de-dades.taula):';
$strCopyTableOK = 'La taula %s s\'ha copiat a %s.';
@@ -333,8 +333,8 @@ $strFunctions = 'Funcions';
$strGenBy = 'Generat per';
$strGeneralRelationFeat = 'Característiques generals de relacions';
-$strGenerate = 'Generar';
-$strGeneratePassword = 'Generar Contrasenya';
+$strGenerate = 'Generar';
+$strGeneratePassword = 'Generar Contrasenya';
$strGenTime = 'Temps de generació';
$strGeorgian = 'Georgià';
$strGerman = 'Alemany';
@@ -501,7 +501,7 @@ $strMyISAMSortBufferSizeDesc = 'Ârea assignada per classificar índexos MyISAM
$strMyISAMSortBufferSize = 'Tamany de l\'àrea de classificació';
$strMySQLCharset = 'Joc de caràcters de MySQL';
$strMysqlClientVersion = 'Versió del client MySQL';
-$strMySQLConnectionCollation = 'Ordenació de la connexió MySQL';
+$strMySQLConnectionCollation = 'Ordenació de la connexió MySQL';
$strMysqlLibDiffersServerVersion = 'La teva llibreria MySQL de PHP MySQL versió %s és diferent del teu servidor MySQL versió %s. Aixó pot provocar comportaments inesperats.';
$strMySQLSaid = 'MySQL diu: ';
$strMySQLShowProcess = 'Mostrar processos';
@@ -629,18 +629,18 @@ $strPrintViewFull = 'Vista d\'impresió (amb texts sencers)';
$strPrintView = 'Imprimir vista';
$strPrivDescAllPrivileges = 'Inclou tots els permissos excepte GRANT (atorgar).';
$strPrivDescAlter = 'Permet alterar l\'estructura de taules existents.';
-$strPrivDescAlterRoutine = 'Permet alterar i esborrar rutines enmagatzemades.';
+$strPrivDescAlterRoutine = 'Permet alterar i esborrar rutines enmagatzemades.';
$strPrivDescCreateDb = 'Permet crear noves bases de dades i taules.';
-$strPrivDescCreateRoutine = 'Permet crear rutines enmgatzemades.';
+$strPrivDescCreateRoutine = 'Permet crear rutines enmgatzemades.';
$strPrivDescCreateTbl = 'Permet crear noves taules.';
$strPrivDescCreateTmpTable = 'Permet crear taules temporals.';
-$strPrivDescCreateUser = 'Permet crear, esborrar i reanomenar comptes d\'usuari.';
-$strPrivDescCreateView = 'Permet crear noves vistes.';
+$strPrivDescCreateUser = 'Permet crear, esborrar i reanomenar comptes d\'usuari.';
+$strPrivDescCreateView = 'Permet crear noves vistes.';
$strPrivDescDelete = 'Permet esborrar dades.';
$strPrivDescDropDb = 'Permet eliminar bases de dades i taules.';
$strPrivDescDropTbl = 'Permet eliminar taules.';
$strPrivDescEvent = 'Permet establir events per al planificador d\'events';
-$strPrivDescExecute5 = 'Permet executar rutines enmagatzemades.';
+$strPrivDescExecute5 = 'Permet executar rutines enmagatzemades.';
$strPrivDescExecute = 'Permet executar processos enmagatzemats (stored procedures); No té efecte en aquesta versió de MySQL.';
$strPrivDescFile = 'Permet importar i exportar dades amb arxius externs.';
$strPrivDescGrant = 'Permet afegir usuaris i permissos sense tenir que recarregar les taules de permissos.';
@@ -658,7 +658,7 @@ $strPrivDescReplClient = 'Dona el dret a l\'usuari de preguntar quins servidors
$strPrivDescReplSlave = 'Es necessari per a la replicació en servidors esclaus.';
$strPrivDescSelect = 'Permet llegir dades.';
$strPrivDescShowDb = 'Dona accés a la llista completa de bases de dades.';
-$strPrivDescShowView = 'Permet fer consultes de tipus SHOW CREATE VIEW.';
+$strPrivDescShowView = 'Permet fer consultes de tipus SHOW CREATE VIEW.';
$strPrivDescShutdown = 'Permet parar el servidor.';
$strPrivDescSuper = 'Permet connectar, encara que s\'hagi arribat al máxim numero de connexions permés; Es necessari per moltes operacions d\'administració com ara establir variables globals o bé cancel.lar fils d\'execució d\'altres usuaris.';
$strPrivDescTrigger = 'Permet crear i eliminar disparadors (triggers)';
@@ -1460,4 +1460,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/chinese_simplified-utf-8.inc.php b/lang/chinese_simplified-utf-8.inc.php
index 51fc90972..1eee245d2 100644
--- a/lang/chinese_simplified-utf-8.inc.php
+++ b/lang/chinese_simplified-utf-8.inc.php
@@ -1473,4 +1473,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/chinese_traditional-utf-8.inc.php b/lang/chinese_traditional-utf-8.inc.php
index 44ed4d7e4..0e35c96e4 100644
--- a/lang/chinese_traditional-utf-8.inc.php
+++ b/lang/chinese_traditional-utf-8.inc.php
@@ -238,7 +238,7 @@ $strEndCut = '結束 剪取';
$strEndRaw = '結束 原始資料';
$strEngineAvailable = '%s 已支援這 MySQL 伺服器.';
$strEngineDisabled = '%s 己於這個 MySQL 伺服器中停用.';
-$strEngines = '引擎';
+$strEngines = '引擎';
$strEngineUnsupported = '這 MySQL 版本並不接受 %s 儲存引擎.';
$strEnglish = '英語';
$strEnglishPrivileges = '注意: MySQL 權限名稱會以英語顯示';
@@ -306,12 +306,12 @@ $strHTMLExcel = 'Microsoft Excel 2000';
$strHTMLWord = 'Microsoft Word 2000';
$strHungarian = '匈牙利語';
-$strIcelandic = '冰島語';
+$strIcelandic = '冰島語';
$strId = 'ID'; // use eng
$strIdxFulltext = '全文檢索';
$strIgnore = '忽略';
$strIgnoreDuplicates = '略過重覆列';
-$strIgnoreInserts = '使用忽略加入 (insert)';
+$strIgnoreInserts = '使用忽略加入 (insert)';
$strImport = '載入';
$strImportFiles = '輸入檔案';
$strImportFormat = '載入檔案格式';
@@ -393,7 +393,7 @@ $strLongOperation = '這個作業所用時間會較長, 繼續?';
$strMaxConnects = '最大連線數目';
$strMaximalQueryLength = '建立之查詢最大長度';
-$strMaximumSize = '最大容量: %s%s';
+$strMaximumSize = '最大容量: %s%s';
$strMbExtensionMissing = '找不到 PHP 內的 mbstring 編碼模組, 沒有這個模組, phpMyAdmin 無法準確地分割雙字元文字, 而可能產生問題.';
$strMbOverloadWarning = '你在 PHP 設定內啟動了 mbstring.func_overload 選項, 這個選項暫時不兼容 phpMyAdmin , 你可能會損失部份資料!';
$strMIME_available_mime = '可使用 MIME 類型';
@@ -542,7 +542,7 @@ $strPrivDescReplClient = '容許用戶查詢 slaves / masters 在何處.';
$strPrivDescReplSlave = '需要複製的 slaves.';
$strPrivDescSelect = '容許讀取數據.';
$strPrivDescShowDb = '可讀取整個資料庫清單.';
-$strPrivDescShowView = '容許執行 SHOW CREATE VIEW 查詢.';
+$strPrivDescShowView = '容許執行 SHOW CREATE VIEW 查詢.';
$strPrivDescShutdown = '容許停止伺服器.';
$strPrivDescSuper = '容許連線, 就算超過了最大連線限制; 用於最高系統管理如設定整體權限或中止其他使用者指令.';
$strPrivDescUpdate = '容許更新數據.';
@@ -804,7 +804,7 @@ $strWriteRequests = '寫入要求';
$strWrongUser = '錯誤的使用者名稱或密碼,拒絕存取';
$strXML = 'XML'; //USE ENG
-
+
$strYes = ' 是 ';
$strZeroRemovesTheLimit = '註: 設定這些選項為 0 (零) 可解除限制.';
@@ -1470,4 +1470,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/croatian-utf-8.inc.php b/lang/croatian-utf-8.inc.php
index a31e326e1..dc76caf41 100644
--- a/lang/croatian-utf-8.inc.php
+++ b/lang/croatian-utf-8.inc.php
@@ -1467,4 +1467,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/czech-utf-8.inc.php b/lang/czech-utf-8.inc.php
index 600325e88..0ac10bb58 100644
--- a/lang/czech-utf-8.inc.php
+++ b/lang/czech-utf-8.inc.php
@@ -349,6 +349,9 @@ $strGlobal = 'globální';
$strGlobalPrivileges = 'Globální oprávnění';
$strGlobalValue = 'Globální hodnota';
$strGo = 'Proveď';
+$strGoToDatabase = 'Přejít na databázi';
+$strGoToTable = 'Přejít na tabulku';
+$strGoToView = 'Přejít na podhled';
$strGrantOption = 'Přidělování';
$strGreek = 'Řečtina';
$strGzip = '„zagzipováno“';
@@ -378,11 +381,25 @@ $strIEUnsupported = 'Prohlížeč Internet Explorer tuto funkci nepodporuje.';
$strIgnoreDuplicates = 'Ignorovat duplicitní řádky';
$strIgnore = 'Ignorovat';
$strIgnoreInserts = 'Použít IGNORE';
+$strImportColNames = 'Jména sloupců na prvním řádku';
+$strImportEmptyRows = 'Neimportovat prázdné řádky';
$strImportExportCoords = 'Import/Export souřadnic pro PDF schéma';
$strImportFiles = 'Importovat soubory';
$strImportFormat = 'Formát importovaného souboru';
$strImport = 'Import';
+$strImportLargeFileUploading = 'Nahrávaný soubor je pravděpodobně větší než je povolená velikost, nebo se jedná o známou chybu prohlížečů založených na webkitu (Safari, Google Chrome, Arora apod.).';
+$strImportNoticePt1 = 'Následující tabulkybyly vytvořeny nebo změněny. Teď můžete:';
+$strImportNoticePt2 = 'Zobrazit obsah tabulky kliknutím na její jméno';
+$strImportNoticePt3 = 'Změnit jakákoliv její nastavení kliknutím na odkaz "Nastavení"';
+$strImportNoticePt4 = 'Upravit strukturu kliknutím na odkaz "Struktura"';
+$strImportODSCurrency = 'Importovat měny (5.00 místo $5.00)';
+$strImportODS = 'Open Document Spreadsheet';
+$strImportODSPercents = 'Importovat procenta jako desetinná čísla (0.12 místo 12.00%)';
+$strImportProceedingFile = 'Soubor je zpracováván, prosím buďte trpěliví.';
$strImportSuccessfullyFinished = 'Import byl úspěšně dokončen, bylo provedeno %d dotazů.';
+$strImportUploadInfoNotAvailable = 'Soubor je zpracováván, prosím buďte trpěliví. Podrobnosti o nahrávání nejsou dostupné.';
+$strImportXLS = 'Excel 97-2003 XLS';
+$strImportXLSX = 'Excel 2007 XLSX';
$strIndexes = 'Indexy';
$strIndexesSeemEqual = 'Indexy %1$s a %2$s vypadají stejné a jeden z nich by pravděpodobně mohl být odstraněn.';
$strIndexHasBeenDropped = 'Index %s byl odstraněn';
@@ -616,6 +633,7 @@ $strPerMinute = 'za minutu';
$strPerSecond = 'za sekundu';
$strPersian = 'Perština';
$strPhoneBook = 'adresář';
+$strPhpArray = 'PHP pole';
$strPHPExtension = 'Rozšíření PHP';
$strPHPVersion = 'Verze PHP';
$strPhp = 'Vytvořit PHP kód';
@@ -796,6 +814,7 @@ $strSessionGCWarning = 'Vaše nastavení PHP ([a@http://php.net/manual/en/sessio
$strSessionStartupErrorGeneral = 'Vytváření sezení selhalo, prosím zkontrolujte chyby v logu PHP a/nebo webserveru a pečlivě nastavte podporu sezení v PHP.';
$strSessionValue = 'Hodnota sezení';
$strSetEnumVal = 'Pokud je sloupec typu „enum“ nebo „set“, zadávejte hodnoty v následujícím formátu: \'a\',\'b\',\'c\'... Pokud potřebujete zadat zpětné lomítko („\“) nebo jednoduché uvozovky („\'“) mezi těmito hodnotami, napište před ně zpětné lomítko (příklad: \'\\\\xyz\' nebo \'a\\\'b\').';
+$strSettings = 'nastavení';
$strSetupAllowAnywhereRecoding_name = 'Povolit převod znakových sad';
$strSetupAllowArbitraryServer_desc = 'Pokud je povoleno, může uživatel zadat libovolný MySQL server do přihlašovacího formuláře pro autorizaci pomocí cookie';
$strSetupAllowArbitraryServerMsg = 'Tato [a@?page=form&formset=features#tab_Security]volba[/a] by měla být zakázána, protože umožňuje útočníkům prolomit přihlašování k libovolnému MySQL serveru útokem hrobou silou. V případě nutnosti použijte [a@?page=form&formset=features#tab_Security]seznam důvěryhodných proxy[/a]. Nicméně ochrana založená na kotrole IP adres, nemusí být spolehlivá, pokud Vaše IP adresa patří poskytovateli internetových služeb, ke kterému jsou připojeny tisíce uživatelů.';
@@ -1290,6 +1309,7 @@ $strStrucNativeExcel = 'Nativní formát MS Excelu';
$strStrucOnly = 'Pouze strukturu';
$strStructPropose = 'Navrhnout strukturu tabulky';
$strStructureForView = 'Struktura pro pohled';
+$strStructureLC = 'struktura';
$strStructure = 'Struktura';
$strSubmit = 'Provést';
$strSuccess = 'Váš SQL-dotaz byl úspěšně vykonán';
@@ -1344,6 +1364,59 @@ $strToggleSmallBig = 'Přepnout malé/velké';
$strToSelectRelation = 'Pro výběr relace klikněte :';
$strTotal = 'celkem';
$strTotalUC = 'Celkem';
+$strTrackingActivated = 'Sledování pro %s.%s je zapnuté.';
+$strTrackingActivateNow = 'Zapnout teď';
+$strTrackingActivateTrackingFor = 'Zapnuté sledování pro %s.%s';
+$strTrackingCreateVersionOf = 'Vytvořit verzi %s z %s.%s';
+$strTrackingCreateVersion = 'Vytvořit verzi';
+$strTrackingDatabaseLog = 'Historie databáze';
+$strTrackingDataDefinitionStatement = 'Příkaz pro definici dat';
+$strTrackingDataManipulationStatement = 'Příkaz pro úpravu dat';
+$strTrackingDate = 'Datum';
+$strTrackingDeactivateNow = 'Vypnout teď';
+$strTrackingDeactivateTrackingFor = 'Vypnout sledování pro %s.%s';
+$strTrackingDoIt = 'Udělej to';
+$strTrackingExportAs = 'Exportovat jako %s';
+$strTrackingIsActive = 'Sledování je zapnuté.';
+$strTrackingIsDeactive = 'Sledování je vypnuté.';
+$strTrackingMechanism = 'Sledovací mechanismus';
+$strTrackingReportClose = 'Ukončit';
+$strTrackingReport = 'Informace o sledování';
+$strTrackingSelectDataOnly = 'Jen data';
+$strTrackingSelectStructureAndData = 'Struktura a data';
+$strTrackingSelectStructureOnly = 'Jen struktura';
+$strTrackingShowLogDateUsers = 'Zobrazit %s s datumy od %s do %s od uživatele %s %s';
+$strTrackingShowVersions = 'Zobrazit verze';
+$strTracking = 'Sledování';
+$strTrackingSQLDumpFile = 'výpis SQL (stáhnout soubor)';
+$strTrackingSQLDump = 'výpis SQL';
+$strTrackingSQLExecuted = 'provedené SQL příkazy.';
+$strTrackingSQLExecutionAlert = 'Tato volba nahradí vaší tabulku a data, která obsahuje.';
+$strTrackingSQLExecution = 'Provedení SQL';
+$strTrackingSQLExported = 'SQL příkazy byly exportovány. Prosím zkopírujte si je, nebo je spusťte.';
+$strTrackingStatements = 'Sledování příkazů';
+$strTrackingStatusActive = 'zapnuté';
+$strTrackingStatusDeactive = 'vypnuté';
+$strTrackingStructureSnapshot = 'Snímek struktury';
+$strTrackingThCreated = 'Vytvořeno';
+$strTrackingThDatabase = 'Databáze';
+$strTrackingThLastVersion = 'Poslední verze';
+$strTrackingThShow = 'Zobrazit';
+$strTrackingThStatus = 'Stav';
+$strTrackingThTable = 'Tabulka';
+$strTrackingThUpdated = 'Aktualizováno';
+$strTrackingThVersion = 'Verze';
+$strTrackingTrackDDStatements = 'Sledovat tyto příkazy pro definici dat:';
+$strTrackingTrackDMStatements = 'Sledovat tyto příkazy pro úpravu dat:';
+$strTrackingTrackedTables = 'Sledované tabulky';
+$strTrackingTrackTable = 'Sledovat tabulku';
+$strTrackingUntrackedTables = 'Nesledované tabulky';
+$strTrackingUsername = 'Uživatel';
+$strTrackingVersionActivated = 'Sledování pro %s.%s , verze %s je zapnuté.';
+$strTrackingVersionCreated = 'Verze %s vytvořena, sledování pro %s.%s je zapnuté.';
+$strTrackingVersionDeactivated = 'Sledování pro %s.%s , verze %s je vypnuté.';
+$strTrackingVersionSnapshotSQL = 'Snímek verze %s (SQL kód)';
+$strTrackingVersions = 'Verze';
$strTraditionalChinese = 'Tradiční čínština';
$strTraditionalSpanish = 'Tradiční španělština';
$strTraffic = 'Provoz';
@@ -1429,6 +1502,14 @@ $strWithChecked = 'Zaškrtnuté:';
$strWriteRequests = 'Požadavků na čtení';
$strWrongUser = 'Špatné uživatelské jméno nebo heslo. Přístup odepřen.';
+$strXMLError = 'Zadaný XML soubor je buď poškozený nebo nekompletní. Prosím opravte ho a zkuste to znovu.';
+$strXMLExportContents = 'Exportovat obsah';
+$strXMLExportFunctions = 'Exportovat funkce';
+$strXMLExportProcedures = 'Exportovat procedury';
+$strXMLExportStructs = 'Exportovat schéma struktury (doporučené)';
+$strXMLExportTables = 'Exportovat tabulky';
+$strXMLExportTriggers = 'Exportovat spouště';
+$strXMLExportViews = 'Exportovat pohledy';
$strXML = 'XML';
$strYes = 'Ano';
@@ -1465,8 +1546,4 @@ $strSetupZipDump_desc = 'Enable [a@http://en.wikipedia.org/wiki/ZIP_(file_format
$strSetupZipDumpExportWarning = '[a@?page=form&formset=features#tab_Import_export]Zip compression[/a] requires functions (%s) which are unavailable on this system.'; //to translate
$strSetupZipDumpImportWarning = '[a@?page=form&formset=features#tab_Import_export]Zip decompression[/a] requires functions (%s) which are unavailable on this system.'; //to translate
-$strPhpArray = 'PHP array'; //to translate
-$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
-$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
-$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
?>
diff --git a/lang/danish-utf-8.inc.php b/lang/danish-utf-8.inc.php
index 197c24cd6..b5d0925de 100644
--- a/lang/danish-utf-8.inc.php
+++ b/lang/danish-utf-8.inc.php
@@ -1465,4 +1465,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/dutch-utf-8.inc.php b/lang/dutch-utf-8.inc.php
index 68744cd65..690d1741a 100644
--- a/lang/dutch-utf-8.inc.php
+++ b/lang/dutch-utf-8.inc.php
@@ -261,7 +261,7 @@ $strDisplayPDF = 'Geef het PDF-schema weer';
$strDoAQuery = 'Voer een query op basis van een vergelijking uit (wildcard: "%")';
$strDocSQL = 'DocSQL';
$strDocu = 'Documentatie';
-$strDoNotAutoIncrementZeroValues = 'Gebruik geen AUTO_INCREMENT voor 0-waarden';
+$strDoNotAutoIncrementZeroValues = 'Gebruik geen AUTO_INCREMENT voor 0-waarden';
$strDownloadFile = 'Download bestand';
$strDoYouReally = 'Weet u zeker dat u dit wilt ';
$strDropDatabaseStrongWarning = 'U staat op het punt een complete database te VERWIJDEREN!';
@@ -1466,8 +1466,85 @@ $strZeroRemovesTheLimit = 'Opmerking: Het instellen van deze waarden op 0 (nul)
$strZip = '"Gezipt"';
$strNavTableFilter = 'Filter';
-$strPhpArray = 'PHP-array';
-$strImportLargeFileUploading = 'Het geuploade bestand is mogelijk groter dan de limiet toestaat, of u heeft last van een een bekende bug in op webkit gebaseerde browsers(Safari, Google Chrome, Arora).';
+$strPhpArray = 'PHP-array';
+$strImportLargeFileUploading = 'Het geuploade bestand is mogelijk groter dan de limiet toestaat, of u heeft last van een een bekende bug in op webkit gebaseerde browsers(Safari, Google Chrome, Arora).';
$strImportProceedingFile = 'Het bestand wordt verwerkt, een ogenblik geduld.';
$strImportUploadInfoNotAvailable = 'Een ogenblik geduld, het bestand wordt geupload. Details over de voortgang zijn niet beschikbaar.';
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/english-utf-8.inc.php b/lang/english-utf-8.inc.php
index 3afb5d018..f4d5d3151 100644
--- a/lang/english-utf-8.inc.php
+++ b/lang/english-utf-8.inc.php
@@ -348,6 +348,9 @@ $strGlobal = 'global';
$strGlobalPrivileges = 'Global privileges';
$strGlobalValue = 'Global value';
$strGo = 'Go';
+$strGoToDatabase = 'Go to database';
+$strGoToTable = 'Go to table';
+$strGoToView = 'Go to view';
$strGrantOption = 'Grant';
$strGreek = 'Greek';
$strGzip = '"gzipped"';
@@ -377,14 +380,25 @@ $strIEUnsupported = 'Internet Explorer does not support this function.';
$strIgnoreDuplicates = 'Ignore duplicate rows';
$strIgnore = 'Ignore';
$strIgnoreInserts = 'Use ignore inserts';
+$strImportColNames = 'Column names in first row';
+$strImportEmptyRows = 'Do not import empty rows';
$strImportExportCoords = 'Import/Export coordinates for PDF schema';
$strImportFiles = 'Import files';
$strImportFormat = 'Format of imported file';
$strImport = 'Import';
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.';
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:';
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name';
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link';
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link';
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)';
+$strImportODS = 'Open Document Spreadsheet';
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)';
$strImportProceedingFile = 'The file is being processed, please be patient.';
$strImportSuccessfullyFinished = 'Import has been successfully finished, %d queries executed.';
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.';
+$strImportXLS = 'Excel 97-2003 XLS Workbook';
+$strImportXLSX = 'Excel 2007 XLSX Workbook';
$strIndexes = 'Indexes';
$strIndexesSeemEqual = 'The indexes %1$s and %2$s seem to be equal and one of them could possibly be removed.';
$strIndexHasBeenDropped = 'Index %s has been dropped';
@@ -799,6 +813,7 @@ $strSessionGCWarning = 'Your PHP parameter [a@http://php.net/manual/en/session.c
$strSessionStartupErrorGeneral = 'Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.';
$strSessionValue = 'Session value';
$strSetEnumVal = 'If field type is "enum" or "set", please enter the values using this format: \'a\',\'b\',\'c\'... If you ever need to put a backslash ("\") or a single quote ("\'") amongst those values, precede it with a backslash (for example \'\\\\xyz\' or \'a\\\'b\').';
+$strSettings = 'settings';
$strSetupAllowAnywhereRecoding_name = 'Allow character set conversion';
$strSetupAllowArbitraryServer_desc = 'If enabled user can enter any MySQL server in login form for cookie auth';
$strSetupAllowArbitraryServerMsg = 'This [a@?page=form&formset=features#tab_Security]option[/a] should be disabled as it allows attackers to bruteforce login to any MySQL server. If you feel this is necessary, use [a@?page=form&formset=features#tab_Security]trusted proxies list[/a]. However, IP-based protection may not be reliable if your IP belongs to an ISP where thousands of users, including you, are connected to.';
@@ -1319,6 +1334,7 @@ $strStrucNativeExcel = 'Native MS Excel format';
$strStrucOnly = 'Structure only';
$strStructPropose = 'Propose table structure';
$strStructureForView = 'Structure for view';
+$strStructureLC = 'structure';
$strStructure = 'Structure';
$strSubmit = 'Submit';
$strSuccess = 'Your SQL query has been executed successfully';
@@ -1373,6 +1389,59 @@ $strToggleSmallBig = 'Toggle small/big';
$strToSelectRelation = 'To select relation, click :';
$strTotal = 'total';
$strTotalUC = 'Total';
+$strTrackingActivated = 'Tracking of %s.%s is activated.';
+$strTrackingActivateNow = 'Activate now';
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s';
+$strTrackingCreateVersion = 'Create version';
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s';
+$strTrackingDatabaseLog = 'Database Log';
+$strTrackingDataDefinitionStatement = 'Data definition statement';
+$strTrackingDataManipulationStatement = 'Data manipulation statement';
+$strTrackingDate = 'Date';
+$strTrackingDeactivateNow = 'Deactivate now';
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s';
+$strTrackingDoIt = 'Do it';
+$strTrackingExportAs = 'Export as %s';
+$strTrackingIsActive = 'Tracking is active.';
+$strTrackingIsDeactive = 'Tracking is deactive.';
+$strTrackingMechanism = 'Tracking Mechanism';
+$strTrackingReportClose = 'Close';
+$strTrackingReport = 'Tracking report';
+$strTrackingSelectDataOnly = 'Data only';
+$strTrackingSelectStructureAndData = 'Structure and Data';
+$strTrackingSelectStructureOnly = 'Structure only';
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s';
+$strTrackingShowVersions = 'Show versions';
+$strTrackingSQLDumpFile = 'SQL dump (file download)';
+$strTrackingSQLDump = 'SQL dump';
+$strTrackingSQLExecuted = 'SQL statements executed.';
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.';
+$strTrackingSQLExecution = 'SQL execution';
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.';
+$strTrackingStatements = 'Tracking statements';
+$strTrackingStatusActive = 'active';
+$strTrackingStatusDeactive = 'deactive';
+$strTrackingStructureSnapshot = 'Structure snapshot';
+$strTrackingThCreated = 'Created';
+$strTrackingThDatabase = 'Database';
+$strTrackingThLastVersion = 'Last version';
+$strTrackingThShow = 'Show';
+$strTrackingThStatus = 'Status';
+$strTrackingThTable = 'Table';
+$strTrackingThUpdated = 'Updated';
+$strTrackingThVersion = 'Version';
+$strTrackingTrackDDStatements = 'Track these data definition statements:';
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:';
+$strTrackingTrackedTables = 'Tracked tables';
+$strTracking = 'Tracking';
+$strTrackingTrackTable = 'Track table';
+$strTrackingUntrackedTables = 'Untracked tables';
+$strTrackingUsername = 'Username';
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.';
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.';
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.';
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)';
+$strTrackingVersions = 'Versions';
$strTraditionalChinese = 'Traditional Chinese';
$strTraditionalSpanish = 'Traditional Spanish';
$strTraffic = 'Traffic';
@@ -1458,6 +1527,14 @@ $strWithChecked = 'With selected:';
$strWriteRequests = 'Write requests';
$strWrongUser = 'Wrong username/password. Access denied.';
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.';
+$strXMLExportContents = 'Export contents';
+$strXMLExportFunctions = 'Export functions';
+$strXMLExportProcedures = 'Export procedures';
+$strXMLExportStructs = 'Export Structure Schemas (recommended)';
+$strXMLExportTables = 'Export tables';
+$strXMLExportTriggers = 'Export triggers';
+$strXMLExportViews = 'Export views';
$strXML = 'XML';
$strYes = 'Yes';
diff --git a/lang/estonian-utf-8.inc.php b/lang/estonian-utf-8.inc.php
index ae541b8db..5a9917fc3 100644
--- a/lang/estonian-utf-8.inc.php
+++ b/lang/estonian-utf-8.inc.php
@@ -28,7 +28,7 @@ $strAccessDeniedExplanation = 'phpMyAdmin proovis ühenduda MySQL serveriga ja s
$strAccessDenied = 'Ligipääs keelatud';
$strAction = 'Tegevus';
$strAddAutoIncrement = 'Lisa AUTO_INCREMENT väärtus';
-$strAddClause = 'Lisa %s';
+$strAddClause = 'Lisa %s';
$strAddConstraints = 'Lisa piirangud';
$strAddDeleteColumn = 'Lisa/Kustuta välja veerud';
$strAddDeleteRow = 'Lisa/Kustuta kriteeriumirida';
@@ -55,7 +55,7 @@ $strAlterOrderBy = 'Muuda tabeli sorteeringut';
$strAnalyzeTable = 'Analüüsi tabelit';
$strAnd = 'ja';
$strAndThen = 'ja siis';
-$strAngularLinks = 'Nurgelised lingid';
+$strAngularLinks = 'Nurgelised lingid';
$strAnIndex = 'Indeks lisati %s';
$strAnyHost = 'Kõik masinad';
$strAny = 'kõik';
@@ -106,7 +106,7 @@ $strBusyPages = 'Hõivatud lehed';
$strBzip = '"bzipitud"';
$strCalendar = 'Kalender';
-$strCancel = 'Katkesta';
+$strCancel = 'Katkesta';
$strCanNotLoadExportPlugins = 'Viga eksportimis moodulite laadimisel, palun kontrolli seadeid!';
$strCanNotLoadImportPlugins = 'Pole võimalik Importida mooduleid (plugins), palun kontrolli seadeid!';
$strCannotLogin = 'Ei suuda MySQL serverisse logida';
@@ -169,11 +169,11 @@ $strCreateNewDatabase = 'Loo uus andmebaas';
$strCreateNewTable = 'Loo uus tabel andmebaasi %s';
$strCreatePage = 'Loo uus leht';
$strCreatePdfFeat = 'PDF-ide tegemine';
-$strCreateRelation = 'Suhte loomine (relation)';
+$strCreateRelation = 'Suhte loomine (relation)';
$strCreateTable = 'Loo tabel';
-$strCreateUserDatabase = 'Andmebaas kasutajale';
-$strCreateUserDatabaseName = 'Loo sama nimega andmebaas ja anna kõik õigused';
-$strCreateUserDatabaseNone = 'Puudub';
+$strCreateUserDatabase = 'Andmebaas kasutajale';
+$strCreateUserDatabaseName = 'Loo sama nimega andmebaas ja anna kõik õigused';
+$strCreateUserDatabaseNone = 'Puudub';
$strCreateUserDatabaseWildcard = 'Anna kõik õigused Metanimele (username\_%)';
$strCreationDates = 'Loo/muuda/kontrolli kuupäevi';
$strCriteria = 'Kriteerium';
@@ -200,7 +200,7 @@ $strDataOnly = 'Ainult andmed';
$strDataPages = 'Lehed andmetega';
$strDBComment = 'Andmebaasi kommentaar: ';
$strDBCopy = 'Kopeeri andmebaas';
-$strDbIsEmpty = 'Andmebaas tundub olevat tühi!';
+$strDbIsEmpty = 'Andmebaas tundub olevat tühi!';
$strDbPrivileges = 'Andmebaas-spetsiifilised privileegid';
$strDBRename = 'Nimeta andmebaas ümber';
$strDbSpecific = 'andmebaasipõhine';
@@ -214,15 +214,15 @@ $strDeleteAndFlush = 'Kustutage kasutajad ja taaslaadige privileegid pärast sed
$strDeleted = 'Rida kustutatud';
$strDelete = 'Kustuta';
$strDeleteNoUsersSelected = 'Ühtegi kasutajat pole valitud kustutamiseks!';
-$strDeleteRelation = 'Kustuta suhe';
+$strDeleteRelation = 'Kustuta suhe';
$strDeleting = 'Kustutan %s';
-$strDelimiter = 'Eraldaja';
+$strDelimiter = 'Eraldaja';
$strDelOld = 'Antud lehel on viiteid tabelitele mida enam ei ole. Kas te soovite kustutada need viited?';
$strDescending = 'Kahanev';
$strDescription = 'Kirjeldus';
$strDesigner = 'Kujundaja';
$strDictionary = 'sõnaraamat';
-$strDirectLinks = 'Otselingid';
+$strDirectLinks = 'Otselingid';
$strDirtyPages = 'Mustad lehed';
$strDisabled = 'Keelatud';
$strDisableForeignChecks = 'Keela võõrvõtmete (foreign key) kontroll';
@@ -230,7 +230,7 @@ $strDisplayFeat = 'Kuva võimalused';
$strDisplayOrder = 'Näitamise järjekord:';
$strDisplayPDF = 'Näita PDF skeemi';
$strDoAQuery = 'Tee "päring näite järgi" (lühend: "%")';
-$strDocSQL = 'DocSQL';
+$strDocSQL = 'DocSQL';
$strDocu = 'Dokumentatsioon';
$strDoYouReally = 'Kas te tõesti tahate ';
$strDropDatabaseStrongWarning = 'Tähelepanu! Te HÄVITATE kogu andmebaasi!';
@@ -259,7 +259,7 @@ $strEngineUnsupported = 'See MySQL server ei toeta %s varundusmootorit.';
$strEnglish = 'Inglise';
$strEnglishPrivileges = ' Märkus: MySQL privileegide nimed on ingliskeelsed ';
$strErrorInZipFile = 'Viga ZIP arhiivis:';
-$strErrorRenamingTable = 'Viga tabeli nime %1$s muutimsel %2$s';
+$strErrorRenamingTable = 'Viga tabeli nime %1$s muutimsel %2$s';
$strError = 'Viga';
$strEscapeWildcards = 'Metamärgid _ ja % peaksid olema varjestatud märgiga \, kui soovite neid sisestada';
$strEsperanto = 'Esperanto';
@@ -299,7 +299,7 @@ $strFormEmpty = 'Puuduv väärtus vormis !';
$strFreePages = 'Vabad lehed';
$strFullText = 'Täistekstid';
$strFunction = 'Funktsioon';
-$strFunctions = 'Funktsioonid';
+$strFunctions = 'Funktsioonid';
$strGenBy = 'Genereerija ';
$strGeneralRelationFeat = 'Peamised seoste võimalused';
@@ -320,10 +320,10 @@ $strHandler = 'Töötleja';
$strHasBeenAltered = 'on muudetud.';
$strHaveToShow = 'Te peate valima vähemalt ühe veeru kuvamiseks';
$strHebrew = 'Heebrea';
-$strHelp = 'Abi';
+$strHelp = 'Abi';
$strHide = 'Peida';
$strHideShowAll = 'Peida/Näita kõik';
-$strHideShowNoRelation = 'Peida/Näita tabelid millel puudub suhe';
+$strHideShowNoRelation = 'Peida/Näita tabelid millel puudub suhe';
$strHome = 'Esileht';
$strHomepageOfficial = 'Ametlik phpMyAdmini koduleht';
$strHostEmpty = 'Masin on tühi!';
@@ -361,7 +361,7 @@ $strInnodbStat = 'InnoDB staatus';
$strInsecureMySQL = 'Teie konfiguratsioonifail sisaldab seadeid (root kasutaja ilma paroolita) mis vastab MySQL-i vaikimisi priviligeeritud kasutajale. Kui Teie MySQL-i server jookseb sellise seadega on ta avatud rünnakutele, soovitav on see turvaauk kiiresti parandada.';
$strInsertAsNewRow = 'Lisa uue reana';
$strInsert = 'Lisa';
-$strInternalRelationAdded = 'Sisemine suhe loodud';
+$strInternalRelationAdded = 'Sisemine suhe loodud';
$strInternalRelations = 'Sisesed seosed';
$strInUse = 'kasutusel';
$strInvalidAuthMethod = 'Vigane autoriseerimise meetod konfiguratsioonifailis:';
@@ -370,14 +370,14 @@ $strInvalidColumn = 'Vigased välja veerud (%s) valitud!';
$strInvalidCSVFieldCount = 'Vigane väljade arv CSV sisendis real %d.';
$strInvalidCSVFormat = 'Vigane formaat CSV sisendis real %d.';
$strInvalidCSVParameter = 'Vigane parameeter CSV importimisel: %s';
-$strInvalidDatabase = 'Vigane andmebaas';
+$strInvalidDatabase = 'Vigane andmebaas';
$strInvalidFieldAddCount = 'Peate lisama vähemalt ühe välja.';
$strInvalidFieldCount = 'Tabelil peab olema vähemalt üks väli.';
$strInvalidLDIImport = 'See plugin ei toeta pakitud importe!';
$strInvalidRowNumber = '%d ei ole õige reanumber.';
$strInvalidServerHostname = 'Vigane hostname serverile %1$s. Palun kontrolli seadeid.';
$strInvalidServerIndex = 'Vigane serveri indeks: "%s"';
-$strInvalidTableName = 'Vigane tabeli nimi';
+$strInvalidTableName = 'Vigane tabeli nimi';
$strJapanese = 'Jaapani';
$strJoins = 'Liited';
@@ -393,7 +393,7 @@ $strKnownExternalBug = 'See %s funktionaalsus on mõjutatud tuntud viga, vaata %
$strKorean = 'Korea';
$strLandscape = 'Laipilt';
-$strLanguage = 'Keel';
+$strLanguage = 'Keel';
$strLanguageUnknown = 'Tundmatu keel: %1$s.';
$strLatchedPages = 'Lukustatud lehed';
$strLatexCaption = 'Tabeli seletus';
@@ -442,7 +442,7 @@ $strMIME_without = 'MIME-tüübid kursiivis ei oma eraldi transofrmatsiooni funk
$strModifications = 'Muutused salvestatud';
$strModifyIndexTopic = 'Muuda indeksit';
$strModify = 'Muuda';
-$strMoveMenu = 'Liiguta menüü';
+$strMoveMenu = 'Liiguta menüü';
$strMoveTableOK = 'Tabel %s viidu üle andmebaasi %s.';
$strMoveTableSameNames = 'Ei saa tabelit iseendasse liigutada!';
$strMoveTable = 'Vii tabel üle (andmebaas.tabel):';
@@ -506,7 +506,7 @@ $strNumTables = 'Tabelid';
$strOK = 'Korras';
$strOpenDocumentSpreadsheet = 'Ava dokumendi arvutustabel';
-$strOpenDocumentText = 'Ava dokumendi tekst';
+$strOpenDocumentText = 'Ava dokumendi tekst';
$strOpenNewWindow = 'Ava uus phpMyAdmin aken';
$strOperations = 'Tegevused';
$strOperator = 'Operaator';
@@ -538,7 +538,7 @@ $strPersian = 'Pärsia';
$strPhoneBook = 'telefoniraamat';
$strPhp = 'Loo PHP kood';
$strPHPVersion = 'PHP versioon';
-$strPleaseSelectPrimaryOrUniqueKey = 'Palun vali primaarne või unkaalne võti';
+$strPleaseSelectPrimaryOrUniqueKey = 'Palun vali primaarne või unkaalne võti';
$strPmaDocumentation = 'phpMyAdmini dokumentatsioon';
$strPmaUriError = '$cfg[\'PmaAbsoluteUri\'] konstant peab teie konfiguratsioonifailis määratud olema!';
$strPolish = 'Poola';
@@ -609,18 +609,18 @@ $strQueryWindowLock = 'Antud päringut mitte muuta väljaspool akent.';
$strReadRequests = 'Pöördumised lugemiseks';
$strReceived = 'Saadud';
-$strRecommended = 'soovituslik';
+$strRecommended = 'soovituslik';
$strRecords = 'Kirjeid';
$strReferentialIntegrity = 'Kontrolli pärinevust:';
$strRefresh = 'Uuenda';
$strRelationalSchema = 'Seoseskeem';
-$strRelationDeleted = 'Suhe kustutatud';
+$strRelationDeleted = 'Suhe kustutatud';
$strRelationNotWorking = 'Lisavõimalused töötamiseks lingitud tabelitega on deaktiveeritud. Et lugeda miks see nii on, vajutage %ssiia%s.';
$strRelationsForTable = 'SEOSED TABELILE';
$strRelations = 'Suhted';
$strRelationView = 'Pärinevuse vaade';
$strReloadingThePrivileges = 'Taaslaen privileege';
-$strReload = 'Lae uuesti';
+$strReload = 'Lae uuesti';
$strReloadPrivileges = 'Lae privileegid uuesti';
$strRemoveSelectedUsers = 'Eemalda valitud kasutajad';
$strRenameDatabaseOK = 'Andmebaas %s on ümber nimetatud %s';
@@ -654,7 +654,7 @@ $strRunSQLQuery = 'Päri SQL päring(uid) andmebaasist %s';
$strRussian = 'Vene';
$strSaveOnServer = 'Salvestage serverisse kataloogi %s';
-$strSavePosition = 'Salvesta positsioon';
+$strSavePosition = 'Salvesta positsioon';
$strSave = 'Salvesta';
$strScaleFactorSmall = 'Skalaarfaktor on liiga väike, et skeem mahuks ühele lehele.';
$strSearchFormTitle = 'Otsi andmebaasist';
@@ -672,7 +672,7 @@ $strSelectADb = 'Valige andmebaas';
$strSelectAll = 'Märgista kõik';
$strSelectBinaryLog = 'Valige binaarne logi vaatamiseks';
$strSelectFields = 'Vali väljad (vähemalt üks):';
-$strSelectForeignKey = 'Vali võõrvõti(Foreign Key)';
+$strSelectForeignKey = 'Vali võõrvõti(Foreign Key)';
$strSelectNumRows = 'päringus';
$strSelectReferencedKey = 'Vali eelistus võti (referenced key)';
$strSelectTables = 'Vali tabelid';
@@ -681,7 +681,7 @@ $strSent = 'Saadetud';
$strServerChoice = 'Serveri valik';
$strServerNotResponding = 'Server ei vasta';
$strServer = 'Server';
-$strServers = 'Serverid';
+$strServers = 'Serverid';
$strServerStatusDelayedInserts = 'Ajastatud lisamised';
$strServerStatus = 'Jooksev informatsioon';
$strServerStatusUptime = 'See MySQL server on käinud %s. Käivitusaeg %s.';
@@ -698,9 +698,9 @@ $strShowFullQueries = 'Näita täispikkasid päringuid';
$strShowGrid = 'Näita võrgustiku';
$strShowHideLeftMenu = 'Näita/Peida vasak menüü';
$strShowingBookmark = 'Näitan järjehoidjat';
-$strShowingPhp = 'Näitan PHP koodina';
+$strShowingPhp = 'Näitan PHP koodina';
$strShowingRecords = 'Näita ridu';
-$strShowingSQL = 'Näitan SQL päringut';
+$strShowingSQL = 'Näitan SQL päringut';
$strShow = 'Näita';
$strShowOpenTables = 'Näita avatud tabeleid';
$strShowPHPInfo = 'Näita PHP informatsiooni';
@@ -822,7 +822,7 @@ $strSize = 'Suurus';
$strSkipQueries = 'Käske (päringuid) mida algusest vahele jätta';
$strSlovak = 'Slovaki';
$strSlovenian = 'Sloveenia';
-$strSmallBigAll = 'Kõik Väikeseks/Suureks';
+$strSmallBigAll = 'Kõik Väikeseks/Suureks';
$strSocketProblem = '(või kohaliku MySQL serveri soketid ei ole korrektselt seadistatud)';
$strSortByKey = 'Sorteeri võtme järgi';
$strSorting = 'Järjestamine';
@@ -855,7 +855,7 @@ $strStrucExcelCSV = 'CSV MS Exceli jaoks';
$strStrucNativeExcel = 'Loomulikud MS Exceli andmed';
$strStrucOnly = 'Ainult struktuur';
$strStructPropose = 'Soovita tabeli struktuuri';
-$strStructureForView = 'Vaate (view) struktuur';
+$strStructureForView = 'Vaate (view) struktuur';
$strStructure = 'Struktuur';
$strSubmit = 'Vali';
$strSuccess = 'Teie SQL päring täideti edukalt';
@@ -870,9 +870,9 @@ $strTableEmpty = 'Tabeli nimi on tühi!';
$strTableHasBeenDropped = 'Tabel %s kustutatud';
$strTableHasBeenEmptied = 'Tabel %s tühjendatud';
$strTableHasBeenFlushed = 'Tabel %s ühtlustatud';
-$strTableIsEmpty = 'Tabel tundub olevat tühi!';
+$strTableIsEmpty = 'Tabel tundub olevat tühi!';
$strTableMaintenance = 'Tabeli hooldus';
-$strTableName = 'Tabeli nimi';
+$strTableName = 'Tabeli nimi';
$strTableOfContents = 'Sisukord';
$strTableOptions = 'Tabeli seaded';
$strTables = '%s tabel(it)';
@@ -896,7 +896,7 @@ $strTime = 'Aeg';
$strTimeoutInfo = 'Eelmine Import aegus, peale uuesti postitamist jätkub asukohast %d.';
$strTimeoutNothingParsed = 'Kuigi viimasel laadimisel andmeid ei töödeldud, see tähendab enamasti et phpMyAdmin pole võimeline Importi lõpetama, kui sa php skripti aega ei pikenda.';
$strTimeoutPassed = 'Skripti ajalimiit on ületatud, kui soovid importimist jätkata, palun lae sama fail uuesti ja import jätkub.';
-$strToFromPage = 'Kuhu/Kust leht';
+$strToFromPage = 'Kuhu/Kust leht';
$strToggleScratchboard = 'vaheta märkmetahvlit';
$strToSelectRelation = 'Et valida suhe, kliki :';
$strTotal = 'kokku';
@@ -910,7 +910,7 @@ $strTransformation_application_octetstream__hex = 'Kuvab andmed kuueteistkümnen
$strTransformation_image_jpeg__inline = 'Kuvab lingitud väikepildi; seaded: laius,kõrgus pikslites (hoiab alles originaalpildi laiuse-kõrguse suhte)';
$strTransformation_image_jpeg__link = 'Kuvab lingi sellele pildile (otsene binaarne allalaadimine, jne.).';
$strTransformation_image_png__inline = 'Vaata image/jpeg: inline';
-$strTransformation_text_plain__dateformat = 'Näitab TIME, TIMESTAMP, DATETIME või numbrilist unix´i ajatempli välja formaaditud kuupäevana. Esimene valik on ajanihe (tundides) mis lisatakse ajatemplile (Vaikimisi: 0). Kasuta teist valikut et täpsustada kuupäeva formaat. Kolmas valik annab valida kas kuupäev kasutab kohalikku aega või UTC oma (kasuta "local" (kohalik) või "utc" stringe). Sellest tulenevalt, kuupäeva formaadil on teine väärtus - "local" väärtuse täpsustamiseks vaata dokumentatsiooni PHP strftime() funktsiooni kasutamise kohta ja kasutades "utc" vaata gmdate() funtsiooni kasutamist.';
+$strTransformation_text_plain__dateformat = 'Näitab TIME, TIMESTAMP, DATETIME või numbrilist unix´i ajatempli välja formaaditud kuupäevana. Esimene valik on ajanihe (tundides) mis lisatakse ajatemplile (Vaikimisi: 0). Kasuta teist valikut et täpsustada kuupäeva formaat. Kolmas valik annab valida kas kuupäev kasutab kohalikku aega või UTC oma (kasuta "local" (kohalik) või "utc" stringe). Sellest tulenevalt, kuupäeva formaadil on teine väärtus - "local" väärtuse täpsustamiseks vaata dokumentatsiooni PHP strftime() funktsiooni kasutamise kohta ja kasutades "utc" vaata gmdate() funtsiooni kasutamist.';
$strTransformation_text_plain__external = 'AINULT LINUXILE: Käivitab välise aplikatsiooni ja annab talle standard sisendisse ette välja sisu. Tagastab aplikatsiooni standard väljundi. Vaikimisi on selleks Tidy, et kuvada ilusti formaaditud HTML koodi. Turvariskide maandamiseks peate te käsitsi muutma faili libraries/transformations/text_plain__external.inc.php ja lisama sinna programmid mida te lasete käivitada. Esimene seade on siis kasutatava programmi number, teine seade on programmi parameetrid. Kui kolmas seade on 1 siis töödeldakse väljund funktsiooniga htmlspecialchars() (vaikimisi 1). Kui neljas seade on 1 pannakse NOWRAP sisu lahtrile nii, et kogu väljund kuvatakse ilma formaati muutmata(vaikimisi 1)';
$strTransformation_text_plain__formatted = 'Hoiab alles originaalset välja formaati. Ei varjestata.';
$strTransformation_text_plain__imagelink = 'Kuvab pildi ja lingi, väli sisaldab failinime; esimene seade on eelnev tekst nagu "http://domain.com/", teine seade on laius pikslites, kolmas on kõrgus.';
@@ -934,7 +934,7 @@ $strUpdateQuery = 'Uuenda päringut';
$strUpdComTab = 'Please see Documentation on how to update your Column_comments Table';
$strUpgrade = 'Te peaksite uuendama %s -i versioonini %s või uuemaks.';
$strUploadLimit = 'Te kindlasti proovisite laadida liiga suurt faili. Palun uuri dokumentatsiooni %sdocumentation%s selle limiidi seadmiseks.';
-$strUploadsNotAllowed = 'Faile pole lubatud laadida sellesse serverisse.';
+$strUploadsNotAllowed = 'Faile pole lubatud laadida sellesse serverisse.';
$strUsage = 'Kasutus';
$strUseBackquotes = 'Kasutage tagurpidi kaldkriipse tabelites või tabelinimedes';
$strUseHostTable = 'Kasuta host tabelit';
@@ -1471,4 +1471,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/finnish-utf-8.inc.php b/lang/finnish-utf-8.inc.php
index 403a2e91c..913dcdce7 100644
--- a/lang/finnish-utf-8.inc.php
+++ b/lang/finnish-utf-8.inc.php
@@ -1466,4 +1466,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/french-utf-8.inc.php b/lang/french-utf-8.inc.php
index e1408233d..8c412fd62 100644
--- a/lang/french-utf-8.inc.php
+++ b/lang/french-utf-8.inc.php
@@ -335,7 +335,7 @@ $strFunctions = 'Fonctions';
$strGenBy = 'Généré par';
$strGeneralRelationFeat = 'Fonctions relationnelles';
-$strGenerate = 'Générer';
+$strGenerate = 'Générer';
$strGeneratePassword = 'Générer un mot de passe';
$strGenTime = 'Généré le ';
$strGeorgian = 'géorgien';
@@ -383,7 +383,7 @@ $strImportProceedingFile = 'Le fichier est en traitement, veuillez patienter.';
$strImportSuccessfullyFinished = 'L\'importation s\'est terminée avec succès, %d requêtes exécutées.';
$strImportUploadInfoNotAvailable = 'Veuillez patienter, le fichier est téléchargé; les détails sur le chargement ne sont pas disponibles.';
$strIndexes = 'Index';
-$strIndexesSeemEqual = 'Les index %1$s et %2$s semblent identiques et l\'un d\'eux pourrait être supprimé.';
+$strIndexesSeemEqual = 'Les index %1$s et %2$s semblent identiques et l\'un d\'eux pourrait être supprimé.';
$strIndexHasBeenDropped = 'L\'index %s a été effacé';
$strIndex = 'Index';
$strIndexName = 'Nom de l\'index :';
@@ -471,7 +471,7 @@ $strLongOperation = 'Cette opération pourrait être longue. Procéder quand mê
$strMaxConnects = 'max. de connexions simultanées';
$strMaximalQueryLength = 'Taille maximum de la requête générée';
$strMaximumSize = 'Taille maximum: %s%s';
-$strMbExtensionMissing = 'L\'extension PHP mbstring n\'a pu être localisée et il semble que vous utilisiez un jeu de caractères multi-octets. Sans cette extension, phpMyAdmin est incapable de gérer correctement les caractères et il peut en résulter des problèmes.';
+$strMbExtensionMissing = 'L\'extension PHP mbstring n\'a pu être localisée et il semble que vous utilisiez un jeu de caractères multi-octets. Sans cette extension, phpMyAdmin est incapable de gérer correctement les caractères et il peut en résulter des problèmes.';
$strMbOverloadWarning = 'Vous avez activé mbstring.func_overload dans votre configuration PHP. Cette option est incompatible avec phpMyAdmin et peut nuire au traitement des données!';
$strMIME_available_mime = 'Types MIME disponibles';
$strMIME_available_transform = 'Transformations disponibles';
@@ -798,7 +798,7 @@ $strSessionValue = 'Valeur pour la session';
$strSetEnumVal = 'Les différentes valeurs des champs de type enum/set sont à spécifier sous la forme \'a\',\'b\',\'c\'... Pour utiliser un caractère "\\" ou "\'" dans l\'une de ces valeurs, faites-le précéder du caractère d\'échappement "\\" (par exemple \'\\\\xyz\' ou \'a\\\'b\').';
$strSetupAllowAnywhereRecoding_name = 'Active la conversion des caractères';
$strSetupAllowArbitraryServer_desc = 'Si activé, permet d\'entrer un nom de serveur MySQL sur le panneau de connexion (mode "cookie")';
-$strSetupAllowArbitraryServerMsg = 'Cette [a@?page=form&formset=features#tab_Security]option[/a] ne devrait pas être activée car elle permet à un attaquant de tenter de forcer l\'entrée sur tout serveur MySQL. Si vous en avez réellement besoin, utilisez [a@?page=form&formset=features#tab_Security]la liste des serveurs mandataires de confiance[/a].';
+$strSetupAllowArbitraryServerMsg = 'Cette [a@?page=form&formset=features#tab_Security]option[/a] ne devrait pas être activée car elle permet à un attaquant de tenter de forcer l\'entrée sur tout serveur MySQL. Si vous en avez réellement besoin, utilisez [a@?page=form&formset=features#tab_Security]la liste des serveurs mandataires de confiance[/a].';
$strSetupAllowArbitraryServer_name = 'Permettre de tenter une connexion à tout serveur MySQL';
$strSetupAllowUserDropDatabase_name = 'Montrer le lien pour détruire une base de données aux utilisateurs ordinaires';
$strSetupBlowfishSecretCharsMsg = 'La clé devrait contenir des lettres, des nombres et des caractères spéciaux';
@@ -810,12 +810,12 @@ $strSetupBrowseMarkerEnable_desc = '(utilisé quand on clique sur une ligne)';
$strSetupBrowseMarkerEnable_name = 'Activer le marqueur d\'enregistrements';
$strSetupBrowsePointerEnable_desc = '';
$strSetupBrowsePointerEnable_name = 'Activer le pointeur de surbrillance';
-$strSetupBZipDump_desc = 'Active la compression [a@http://en.wikipedia.org/wiki/Bzip2]bzip2[/a] pour les opérations d\'importation et d\'exportation';
+$strSetupBZipDump_desc = 'Active la compression [a@http://en.wikipedia.org/wiki/Bzip2]bzip2[/a] pour les opérations d\'importation et d\'exportation';
$strSetupBZipDump_name = 'Bzip2';
$strSetupBZipDumpWarning = '[a@?page=form&formset=features#tab_Import_export]La compression et décompression Bzip2[/a] requièrent des fonctions (%s) non disponibles sur ce serveur.';
$strSetupCannotLoadConfig = 'Impossible de charger ou sauvegarder la configuration';
$strSetupCannotLoadConfigMsg = 'Veuillez créer le répertoire [em]config[/em] accessible en écriture tel que décrit sur [a@../Documentation.html#setup_script]documentation[/a]. Sinon vous ne pourrez que télécharger ou afficher la configuration.';
-$strSetupCharEditing_desc = 'Déterminer la méthode d\'édition pour les colonnes CHAR et VARCHAR; [kbd]input[/kbd] - permet de limiter la taille, [kbd]textarea[/kbd] - permet la saisie de sauts de lignes';
+$strSetupCharEditing_desc = 'Déterminer la méthode d\'édition pour les colonnes CHAR et VARCHAR; [kbd]input[/kbd] - permet de limiter la taille, [kbd]textarea[/kbd] - permet la saisie de sauts de lignes';
$strSetupCharEditing_name = 'Édition des colonnes CHAR';
$strSetupCharTextareaCols_desc = '(colonnes CHAR/VARCHAR)';
$strSetupCharTextareaCols_name = 'Taille horizontale pour un "textarea"';
@@ -874,9 +874,9 @@ $strSetupExport_onserver_overwrite_name = 'Écraser un fichier existant';
$strSetupExport_remember_file_template_name = 'Se souvenir du modèle de nom de fichier';
$strSetupFalse = 'non';
$strSetupForceSSL_desc = 'Force des connexions https entre le navigateur et phpMyAdmin';
-$strSetupForceSSLMsg = 'Cette [a@?page=form&formset=features#tab_Security]option[/a] doit être activée si votre serveur la supporte.';
+$strSetupForceSSLMsg = 'Cette [a@?page=form&formset=features#tab_Security]option[/a] doit être activée si votre serveur la supporte.';
$strSetupForceSSL_name = 'Forcer les connexions SSL';
-$strSetupForeignKeyDropdownOrder_desc = '[kbd]content[/kbd] signifie la donnée référencée, [kbd]id[/kbd] représente la valeur de la clé';
+$strSetupForeignKeyDropdownOrder_desc = '[kbd]content[/kbd] signifie la donnée référencée, [kbd]id[/kbd] représente la valeur de la clé';
$strSetupForeignKeyDropdownOrder_name = 'Ordre dans le menu des clés étrangères';
$strSetupForeignKeyMaxLimit_desc = 'Un menu déroulant sera utilisé si le nombre de valeurs est inférieur à cette limite';
$strSetupForeignKeyMaxLimit_name = 'Limite pour clé étrangère';
@@ -927,7 +927,7 @@ $strSetupForm_Startup_desc = 'Personnaliser la page de départ';
$strSetupForm_Startup = 'Page de départ';
$strSetupForm_Tabs_desc = 'Personnaliser les onglets';
$strSetupForm_Tabs = 'Onglets';
-$strSetupGZipDump_desc = 'Active la compression [a@http://en.wikipedia.org/wiki/Gzip]gzip[/a] pour les opérations d\'importation et d\'exportation';
+$strSetupGZipDump_desc = 'Active la compression [a@http://en.wikipedia.org/wiki/Gzip]gzip[/a] pour les opérations d\'importation et d\'exportation';
$strSetupGZipDump_name = 'GZip';
$strSetupGZipDumpWarning = '[a@?page=form&formset=features#tab_Import_export]La compression et décompression GZip[/a] requièrent des fonctions (%s) non disponibles sur ce serveur.';
$strSetupHomepageLink = 'Site de phpMyAdmin';
@@ -980,7 +980,7 @@ $strSetupLoginCookieValidityMsg = '[a@?page=form&formset=features#tab_Security]L
$strSetupLoginCookieValidity_name = 'Durée de validité de la connexion (mode "cookie")';
$strSetupMaxCharactersInDisplayedSQL_desc = '...en nombre de caractères';
$strSetupMaxCharactersInDisplayedSQL_name = 'Taille maximum des requêtes SQL affichées';
-$strSetupMaxDbList_desc = '...affichées dans le panneau de gauche et la liste des bases';
+$strSetupMaxDbList_desc = '...affichées dans le panneau de gauche et la liste des bases';
$strSetupMaxDbList_name = 'Nombre maximum de bases de données';
$strSetupMaxRows_desc = '';
$strSetupMaxRows_name = 'Nombre maximum d\'enregistrements à afficher';
@@ -1047,7 +1047,7 @@ $strSetupServers_designer_coords_desc = 'Laisser vider pour désactiver, suggér
$strSetupServers_designer_coords_name = 'Table pour "concepteur"';
$strSetupServers_DisableIS_desc = 'Voir [a@http://sf.net/support/tracker.php?aid=1849494]ce bogue phpMyAdmin[/a] et [a@http://bugs.mysql.com/19588]ce bogue MySQL[/a]';
$strSetupServers_DisableIS_name = 'Empêcher l\'accès à INFORMATION_SCHEMA';
-$strSetupServerSecurityInfoMsg = 'Si vous l\'estimez nécessaire, utilisez des réglages de protection - [a@?page=servers&mode=edit&id=%1$d#tab_Server_config]authentification du serveur[/a] et [a@?page=form&formset=features#tab_Security]serveurs mandataires de confiance[/a].';
+$strSetupServerSecurityInfoMsg = 'Si vous l\'estimez nécessaire, utilisez des réglages de protection - [a@?page=servers&mode=edit&id=%1$d#tab_Server_config]authentification du serveur[/a] et [a@?page=form&formset=features#tab_Security]serveurs mandataires de confiance[/a].';
$strSetupServersEdit = 'Modifier serveur';
$strSetupServers_extension_desc = 'Quelle extension PHP utiliser (prenez mysqli si possible)';
$strSetupServers_extension_name = 'Extension PHP';
@@ -1060,7 +1060,7 @@ $strSetupServers_host_name = 'Nom du serveur';
$strSetupServers_LogoutURL_name = 'URL pour quitter';
$strSetupServers_nopassword_desc = 'Essayer de se connecter sans mot de passe';
$strSetupServers_nopassword_name = 'Connexion sans mot de passe';
-$strSetupServers_only_db_desc = 'Vous pouvez utiliser ces caractères passepartout (% et _), avec un caractère d\'échappement si vous les employez de manière littérale ("ma\_base" et non "ma_base")';
+$strSetupServers_only_db_desc = 'Vous pouvez utiliser ces caractères passepartout (% et _), avec un caractère d\'échappement si vous les employez de manière littérale ("ma\_base" et non "ma_base")';
$strSetupServers_only_db_name = 'Restreindre la liste des bases de données';
$strSetupServers_password_desc = 'Laisser vide si vous n\'utilisez pas la méthode d\'authentification "config"';
$strSetupServers_password_name = 'Mot de passe pour méthode "config"';
@@ -1072,7 +1072,7 @@ $strSetupServers_port_desc = 'Port sur lequel MySQL est en écoute, laisser vide
$strSetupServers_port_name = 'Port';
$strSetupServers_relation_desc = 'Laisser vider pour désactiver le support [a@http://wiki.phpmyadmin.net/pma/relation]relationnel[/a], suggéré : [kbd]pma_relation[/kbd]';
$strSetupServers_relation_name = 'Table relationnelle';
-$strSetupServers_ShowDatabasesCommand_desc = 'La commande SQL à utiliser pour acquérir la liste des bases de données';
+$strSetupServers_ShowDatabasesCommand_desc = 'La commande SQL à utiliser pour acquérir la liste des bases de données';
$strSetupServers_ShowDatabasesCommand_name = 'Commande SHOW DATABASES';
$strSetupServers_SignonSession_desc = 'Voir [a@http://wiki.phpmyadmin.net/pma/auth_types#signon]authentication types[/a] pour un exemple';
$strSetupServers_SignonSession_name = 'Nom de session pour méthode "signon"';
@@ -1261,13 +1261,13 @@ $strShowStatusSlave_retried_transactionsDescr = 'Nombre de fois (depuis le déma
$strShowStatusSlave_runningDescr = 'Ceci est à ON si ce serveur est un esclave connecté à un maître.';
$strShowStatusSlow_launch_threadsDescr = 'Le nombre de fils d\'exécution dont le temps de création a excédé slow_launch_time secondes.';
$strShowStatusSlow_queriesDescr = 'Le nombre de requêtes dont le temps d\'exécution a excédé long_query_time secondes.';
-$strShowStatusSort_merge_passesDescr = 'Le nombre d\'opérations de fusion effectuées par l\'algorithme de tri. Si ce nombre est élevé, augmentez la valeur du paramètre sort_buffer_size.';
+$strShowStatusSort_merge_passesDescr = 'Le nombre d\'opérations de fusion effectuées par l\'algorithme de tri. Si ce nombre est élevé, augmentez la valeur du paramètre sort_buffer_size.';
$strShowStatusSort_rangeDescr = 'Le nombre de tri effectués avec des plages.';
$strShowStatusSort_rowsDescr = 'Le nombre d\'enregistrements triés.';
$strShowStatusSort_scanDescr = 'Le nombre de tri effectués via un parcours de la table.';
$strShowStatusTable_locks_immediateDescr = 'Le nombre de fois qu\'un verrou de table a été acquis immédiatement.';
$strShowStatusTable_locks_waitedDescr = 'Le nombre de fois qu\'un verrou de table n\'a pu être acquis immédiatement, induisant un temps d\'attente. Si ce nombre est élevé et que vous éprouvez des problèmes de performance, commencez par optimiser vos requêtes, puis subdivisez vos tables ou encore utiliser la réplication.';
-$strShowStatusThreads_cachedDescr = 'Le nombre de fils dans la cache des fils d\'exécution. Si cette valeur est en rouge, vous devriez augmenter la taille de cette cache.';
+$strShowStatusThreads_cachedDescr = 'Le nombre de fils dans la cache des fils d\'exécution. Si cette valeur est en rouge, vous devriez augmenter la taille de cette cache.';
$strShowStatusThreads_connectedDescr = 'Le nombre de connexions ouvertes actuellement.';
$strShowStatusThreads_createdDescr = 'Le nombre de fils d\'exécution créés afin de gérer les connexions. Si ce nombre est trop grand, vous pourriez augmenter la valeur du paramètre thread_cache_size. (Normalement, ceci ne procure pas une amélioration perceptible de la performance si votre serveur gère correctement les fils d\'exécution.';
$strShowStatusThreads_runningDescr = 'Le nombre de fils d\'exécution non suspendus.';
@@ -1462,4 +1462,81 @@ $strYes = 'Oui';
$strZeroRemovesTheLimit = 'Note: Une valeur de 0 (zero) enlève la limite.';
$strZip = '"zippé"';
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/galician-utf-8.inc.php b/lang/galician-utf-8.inc.php
index 116d2a677..ec1e948a6 100644
--- a/lang/galician-utf-8.inc.php
+++ b/lang/galician-utf-8.inc.php
@@ -1464,4 +1464,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/georgian-utf-8.inc.php b/lang/georgian-utf-8.inc.php
index 0a39cd1d2..8e0eeb14c 100644
--- a/lang/georgian-utf-8.inc.php
+++ b/lang/georgian-utf-8.inc.php
@@ -1470,4 +1470,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/german-utf-8.inc.php b/lang/german-utf-8.inc.php
index ec15ac6c9..8ba62d729 100644
--- a/lang/german-utf-8.inc.php
+++ b/lang/german-utf-8.inc.php
@@ -91,6 +91,18 @@ $strBinLogName = 'Protokoll';
$strBinLogOriginalPosition = 'Ursprungsposition';
$strBinLogPosition = 'Position';
$strBinLogServerId = 'Server-ID';
+$strBLOBRepository = 'BLOB-Repository';
+$strBLOBRepositoryDamaged = 'Beschädigt';
+$strBLOBRepositoryDisableAreYouSure = 'Wirklich alle BLOB-Referenzen für Datenbank %s deaktivieren?';
+$strBLOBRepositoryDisabled = 'Deaktiviert';
+$strBLOBRepositoryDisable = 'Deaktivieren';
+$strBLOBRepositoryDisableStrongWarning = 'Sie sind dabei ein BLOB-Repository zu deaktivieren!';
+$strBLOBRepositoryEnable = 'Aktivieren';
+$strBLOBRepositoryEnabled = 'Aktiviert';
+$strBLOBRepositoryRemove = 'BLOB-Referenz entfernen';
+$strBLOBRepositoryRepair = 'Reparieren';
+$strBLOBRepositoryStatus = 'Status';
+$strBLOBRepositoryUpload = 'Zu BLOB-Repository hochladen';
$strBookmarkAllUsers = 'Diese gespeicherte SQL-Abfrage für jeden Benutzer verfügbar machen';
$strBookmarkCreated = 'Bookmark %s wurde gespeichert';
$strBookmarkDeleted = 'SQL-Abfrage wurde gelöscht.';
@@ -126,6 +138,26 @@ $strCardinality = 'Kardinalität';
$strCaseInsensitive = 'case-insensitive';
$strCaseSensitive = 'case-sensitive';
$strCentralEuropean = 'Mitteleuropäisch';
+$strChange = 'Ändern';
+$strChangeCopyModeCopy = ' ... behalte den alten bei.';
+$strChangeCopyModeDeleteAndReload = ' ... lösche den alten und lade anschließend die Benutzertabellen neu.';
+$strChangeCopyMode = 'Erstelle einen neuen Benutzer mit identischen Rechten und ...';
+$strChangeCopyModeJustDelete = ' ... lösche den alten von den Benutzertabellen.';
+$strChangeCopyModeRevoke = ' ... entziehe dem alten alle Rechte und lösche ihn anschließend.';
+$strChangeCopyUser = 'Anmelde-Information ändern / Benutzer kopieren';
+$strChangeDisplay = 'Anzuzeigende Spalte bestimmen';
+$strChangePassword = 'Passwort ändern';
+$strCharsetOfFile = 'Zeichencodierung der Datei:';
+$strCharsetsAndCollations = 'Zeichensätze und Kollationen';
+$strCharsets = 'Zeichensätze';
+$strCharset = 'Zeichensatz';
+$strCheckAll = 'Alle auswählen';
+$strCheckOverhead = 'Tabellen m. Überhang ausw.';
+$strCheckPrivsLong = 'Überprüft die Rechte für die Datenbank "%s".';
+$strCheckPrivs = 'Rechte überprüfen';
+$strCheckTable = 'Überprüfe Tabelle';
+$strCheck = 'Überprüfen';
+$strChoosePage = 'Bitte wählen Sie die zu bearbeitende Seite.';
$strColComFeat = 'Darstellung von Spaltenkommentaren';
$strCollation = 'Kollation';
$strColumnNames = 'Spaltennamen';
@@ -175,26 +207,6 @@ $strCustomColor = 'Benutzerdefinierte Farbe';
$strCyrillic = 'Kyrillisch';
$strCzechSlovak = 'Tschechoslowakisch';
$strCzech = 'Tschechisch';
-$strChange = 'Ändern';
-$strChangeCopyModeCopy = ' ... behalte den alten bei.';
-$strChangeCopyModeDeleteAndReload = ' ... lösche den alten und lade anschließend die Benutzertabellen neu.';
-$strChangeCopyMode = 'Erstelle einen neuen Benutzer mit identischen Rechten und ...';
-$strChangeCopyModeJustDelete = ' ... lösche den alten von den Benutzertabellen.';
-$strChangeCopyModeRevoke = ' ... entziehe dem alten alle Rechte und lösche ihn anschließend.';
-$strChangeCopyUser = 'Anmelde-Information ändern / Benutzer kopieren';
-$strChangeDisplay = 'Anzuzeigende Spalte bestimmen';
-$strChangePassword = 'Passwort ändern';
-$strCharsetOfFile = 'Zeichencodierung der Datei:';
-$strCharsetsAndCollations = 'Zeichensätze und Kollationen';
-$strCharsets = 'Zeichensätze';
-$strCharset = 'Zeichensatz';
-$strCheckAll = 'Alle auswählen';
-$strCheckOverhead = 'Tabellen m. Überhang ausw.';
-$strCheckPrivsLong = 'Überprüft die Rechte für die Datenbank "%s".';
-$strCheckPrivs = 'Rechte überprüfen';
-$strCheckTable = 'Überprüfe Tabelle';
-$strCheck = 'Überprüfen';
-$strChoosePage = 'Bitte wählen Sie die zu bearbeitende Seite.';
$strDanish = 'Dänisch';
$strDatabase = 'Datenbank';
@@ -285,10 +297,12 @@ $strEscapeWildcards = 'Platzhalter _ und % sollten mit einem \ escaped werden, u
$strEsperanto = 'Esperanto';
$strEstonian = 'Estnisch';
$strEvent = 'Ereignis';
+$strEvents = 'Ereignisse';
$strExcelEdition = 'Excel-Ausgabe';
$strExecuteBookmarked = 'Gespeicherte SQL-Anfrage ausführen';
$strExplain = 'SQL erklären';
$strExport = 'Exportieren';
+$strExportImportToScale = 'Export/Import skalieren';
$strExportMustBeFile = 'Der gewählte Export-Typ kann nur als Datei exportiert werden!';
$strExtendedInserts = 'Erweiterte \'INSERT\'s';
$strExtra = 'Extra';
@@ -317,6 +331,7 @@ $strFlushTable = 'Leeren des Tabellencaches ("FLUSH")';
$strFlushTables = 'Den Tabellencache leeren ("FLUSH")';
$strFontSize = 'Schriftgröße';
$strForeignKeyError = 'Fehler beim Erzeugen eines Fremdschlüssels für %1$s (überprüfen Sie die Datentypen)';
+$strForeignKeyRelationAdded = 'FOREIGN KEY Relation hinzugefügt';
$strFormat = 'Format';
$strFormEmpty = 'Das Formular ist leer !';
$strFreePages = 'Unbenutzte Seiten';
@@ -331,6 +346,7 @@ $strGeneratePassword = 'Passwort generieren';
$strGenTime = 'Erstellungszeit';
$strGeorgian = 'Georgisch';
$strGerman = 'Deutsch';
+$strGetMoreThemes = 'Mehr Designs herunterladen!';
$strGlobal = 'global';
$strGlobalPrivileges = 'Globale Rechte';
$strGlobalValue = 'Globaler Wert';
@@ -352,6 +368,7 @@ $strHome = 'Home';
$strHomepageOfficial = ' Offizielle Homepage ';
$strHostEmpty = 'Es wurde kein Host angegeben!';
$strHost = 'Host';
+$strHostTableExplanation = 'Wenn die Host-Tabelle aktiv ist, wird dieses Feld ignoriert und stattdessen die Werte aus der Host-Tabelle verwendet.';
$strHTMLExcel = 'Microsoft Excel 2000';
$strHTMLWord = 'Microsoft Word 2000';
$strHungarian = 'Ungarisch';
@@ -389,6 +406,7 @@ $strInsertAsNewRow = ' Als neuen Datensatz speichern ';
$strInsertedRowId = 'ID der eingefügten Zeile: %1$d';
$strInsert = 'Einfügen';
$strInterface = 'Oberfläche';
+$strInternalAndForeign = 'Eine interne Beziehung ist nicht notwendig, wenn bereits ein entsprechender FOREIGN KEY existiert.';
$strInternalRelationAdded = 'Interne Verknüpfung hinzugefügt';
$strInternalRelations = 'Interne Beziehungen';
$strInUse = 'in Benutzung';
@@ -423,6 +441,7 @@ $strKorean = 'Koreanisch';
$strLandscape = 'Querformat';
$strLanguage = 'Sprache';
$strLanguageUnknown = 'Unbekannte Sprache: "%1$s".';
+$strLatchedPages = 'Belegte Seiten';
$strLatexCaption = 'Tabellenbeschriftung';
$strLatexContent = 'Inhalt der Tabelle __TABLE__';
$strLatexContinuedCaption = 'Fortgesetzte Tabellenbeschriftung';
@@ -431,7 +450,6 @@ $strLatexIncludeCaption = 'Tabellenbeschriftung einfügen';
$strLatexLabel = 'Kennzeichen';
$strLaTeX = 'LaTeX';
$strLatexStructure = 'Struktur der Tabelle __TABLE__';
-$strLatchedPages = 'Belegte Seiten';
$strLatvian = 'Lettisch';
$strLDI = 'CSV mit LOAD DATA';
$strLDILocal = 'verwende LOCAL';
@@ -445,6 +463,7 @@ $strLocalhost = 'Lokal';
$strLocationTextfile = 'Datei';
$strLogin = 'Anmeldung';
$strLoginInformation = 'Anmelde-Informationen';
+$strLoginWithoutPassword = 'Login ohne Passwort ist verboten (siehe AllowNoPassword in der Konfiguration)';
$strLogout = 'Neu anmelden';
$strLogPassword = 'Passwort:';
$strLogServerHelp = 'Sie können einen Rechnernamen oder eine IP Adresse und einen Port durch Leerzeichen getrennt eingeben.';
@@ -488,9 +507,9 @@ $strMyISAMRepairThreadsDesc = 'Wenn dieser Wert größer als 1 ist, werden MyISA
$strMyISAMRepairThreads = 'Reparaturprozess';
$strMyISAMSortBufferSizeDesc = 'Der Puffer, der beim Sortieren des Indexes zugewiesen wird, wenn man ein REPAIR oder ausführt oder Indizes mit CREATE INDEX oder ALTER TABLE erzeugt.';
$strMyISAMSortBufferSize = 'Größe des Sortierungspuffers';
+$strMySQLCharset = 'MySQL-Zeichensatz';
$strMysqlClientVersion = 'MySQL-Client-Version';
$strMySQLConnectionCollation = 'Zeichensatz / Kollation der MySQL-Verbindung';
-$strMySQLCharset = 'MySQL-Zeichensatz';
$strMysqlLibDiffersServerVersion = 'Die Version der verwendeten PHP MySQL Bibliothek %s unterscheidet sich von der Version des MySQL Servers %s. Dies kann zu unerwartetem Verhalten führen.';
$strMySQLSaid = 'MySQL meldet: ';
$strMySQLShowProcess = 'Prozesse anzeigen';
@@ -558,11 +577,34 @@ $strPartitionDefinition = 'PARTITION Definition';
$strPartitioned = 'partitioniert';
$strPartitionMaintenance = 'Partitions-Hilfsmittel';
$strPartition = 'Partition %s';
+$strPasswordChanged = 'Das Passwort für %s wurde geändert.';
$strPasswordEmpty = 'Es wurde kein Passwort angegeben!';
$strPasswordHashing = 'Password-Verschlüsselung';
-$strPasswordChanged = 'Das Passwort für %s wurde geändert.';
$strPasswordNotSame = 'Die eingegebenen Passwörter sind nicht identisch!';
$strPassword = 'Passwort';
+$strPBXTCheckpointFrequency = 'Checkpoint-Frequenz';
+$strPBXTCheckpointFrequencyDesc = 'Die Menge an geschriebenen Daten in das Transaktionslog, bevor ein neuer Checkpoint angelegt wird. Die Voreinstellung ist 24 MB.';
+$strPBXTDataFileGrowSize = 'Dateiwachstumsgröße';
+$strPBXTDataFileGrowSizeDesc = 'Die Wachstumsgröße der Handle-Dateien (.xtd)';
+$strPBXTDataLogThreshold = 'Data Log Grenzwert';
+$strPBXTDataLogThresholdDesc = 'Die maximale Größe einer Logdatei. Der Standardwert ist 64 MB. PBXT kann maximal 32000 Logs erzeugen, welche von allen Tabellen genutzt werden. Diese Variable kann erhöht werden um die Menge an Daten, welche in der Datenbank gespeichert werden können zu vergrößern.';
+$strPBXTGarbageThresholdDesc = 'Der Prozentsatz an Müll in einer Logdatei bevor sie komprimiert wird. Der Wert kann zwischen 1 und 99 liegen, Voreinstellung ist 50.';
+$strPBXTGarbageThreshold = 'Müll-Grenzwert';
+$strPBXTIndexCacheSizeDesc = 'Die Menge an reserviertem Speicher für den Index-Cache. Die Voreinstellung ist 32 MB. Der Speicher wird nur zum cachen von Index-Seiten verwendet.';
+$strPBXTIndexCacheSize = 'Index-Cache Größe';
+$strPBXTLogBufferSizeDesc = 'Die Größe des Puffers zum Schreiben von Logdateien. Die Voreinstellung ist 256 MB. Pro Thread wird ein Puffer reserviert, aber nur wenn der Thread Logdateien schreiben können muss.';
+$strPBXTLogBufferSize = 'Log Puffergröße';
+$strPBXTLogCacheSizeDesc = 'Die Menge an reserviertem Speicher für den Transaktionslog. Die Voreinstellung ist 16 MB.';
+$strPBXTLogCacheSize = 'Log-Cache Größe';
+$strPBXTLogFileCountDesc = 'Die Anzahl an Transaktionslogdateien (pbxt/system/xlog*.xt), die vom System verwaltet werden. Sind mehr Logs vorhanden, werden alte Logs gelöscht, ansonsten werden sie umbenannt und bekommen die nächsthöhere Nummer.';
+$strPBXTLogFileCount = 'Log file Anzahl';
+$strPBXTLogFileThresholdDesc = 'Die Größe des Transaktionslog bevor ein Rollover durchgeführt wird und eine neue Logdatei angelegt wird. Die Voreinstellung ist 16 MB.';
+$strPBXTLogFileThreshold = 'Logdatei Grenzwert';
+$strPBXTRecordCacheSizeDesc = 'Die Menge an reserviertem Speicher zum Cachen von Tabellendaten. Die Voreinstellung ist 32 MB. Der Speicher wird verwendet um Änderungen an Handle-Dateien (.xtd) und Row-Pointer-Dateien (.xtr) zu cachen.';
+$strPBXTRowFileGrowSizeDesc = 'Wachstum der Row-Pointer-Dateien (.xtr).';
+$strPBXTRowFileGrowSize = 'Zeilenwachstum';
+$strPBXTTransactionBufferSizeDesc = 'Die Größe des globalen Transaktionslogpuffers (es werden zwei Puffer dieser Größe angelegt. Die Voreinstellung ist 1 MB.';
+$strPBXTTransactionBufferSize = 'Transaktionspuffergröße';
$strPdfDbSchema = 'Schema der Datenbank "%s" - Seite %s';
$strPdfInvalidTblName = 'Die Tabelle "%s" existiert nicht!';
$strPdfNoTables = 'keine Tabellen';
@@ -605,8 +647,8 @@ $strPrivDescDelete = 'Erlaubt das Löschen von Daten.';
$strPrivDescDropDb = 'Erlaubt das Löschen ganzer Datenbanken und Tabellen.';
$strPrivDescDropTbl = 'Erlaubt das Löschen ganzer Tabellen.';
$strPrivDescEvent = 'Erlaubt das Anlegen von Events für den Event-Scheduler';
-$strPrivDescExecute = 'Erlaubt das Ausführen gespeicherter Prozeduren; Hat keinen Effekt in dieser MySQL-Version.';
$strPrivDescExecute5 = 'Erlaubt das Ausführen von Routinen.';
+$strPrivDescExecute = 'Erlaubt das Ausführen gespeicherter Prozeduren; Hat keinen Effekt in dieser MySQL-Version.';
$strPrivDescFile = 'Erlaubt das Importieren von Daten aus und das Exportieren in externe Dateien.';
$strPrivDescGrant = 'Erlaubt das Hinzufügen von Benutzern und Rechten ohne den die Benutzerprofile neu laden zu müssen.';
$strPrivDescIndex = 'Erlaubt das Erstellen und Löschen von Indizes.';
@@ -749,11 +791,247 @@ $strSessionGCWarning = 'Ihre PHP Einstellung [a@http://php.net/manual/en/session
$strSessionStartupErrorGeneral = 'Die Sitzung konnte nicht ohne Fehler gestartet werden, schauen Sie bitte in das Fehlerprokoll von PHP und/oder Ihres Webservers und konfigurieren Sie PHP entsprechend (session.save_path, Schreibrechte).';
$strSessionValue = 'Wert für diese Sitzung';
$strSetEnumVal = 'Wenn das Feld vom Typ \'ENUM\' oder \'SET\' ist, benutzen Sie bitte das Format: \'a\',\'b\',\'c\',... Wann immer Sie ein Backslash ("\") oder ein einfaches Anführungszeichen ("\'") verwenden, setzen Sie bitte ein Backslash vor das Zeichen. (z. B.: \'\\\\xyz\' oder \'a\\\'b\').';
+$strSetupAllowAnywhereRecoding_name = 'Zeichensatzkonvertierung erlauben.';
+$strSetupAllowArbitraryServer_desc = 'Wenn aktiv kann ein Benutzer die Adresse eines beliebigen Servers beim Login angeben.';
+$strSetupAllowArbitraryServerMsg = 'Diese [a@?page=form&formset=features#tab_Security]Option[/a]This [a@?page=form&formset=features#tab_Security]option[/a] sollte deaktiviert sein, weil sie Angreifern erlaubt Bruteforce-Attacken auf beliebige (auch fremde) MySQL-Servern durchzuführen. Wenn Sie der Meinung sind, dass diese Option unbedingt notwendig ist, sollten Sie die [a@?page=form&formset=features#tab_Security]trusted proxy list[/a] verwenden. IP-basierte Regeln sind aber nie wirklich ausreichend.';
+$strSetupAllowArbitraryServer_name = 'Login zu beliebigen MySQL-Server erlauben.';
+$strSetupAllowUserDropDatabase_name = '"Drop Database" normalen Benutzern anzeigen.';
+$strSetupBlowfishSecretCharsMsg = 'Schlüssel sollte Buchstaben, Ziffern [em]und[/em] Sonderzeichen enthalten.';
+$strSetupblowfish_secret_desc = 'Geheime Passphrase zum Verschlüsseln der Cookies bei [kbd]cookie[/kbd]-Authentisierung';
+$strSetupBlowfishSecretLengthMsg = 'Schlüssel ist zu kurz, er muss mindestens 8 Zeichen lang sein.';
+$strSetupBlowfishSecretMsg = 'Sie hatten keinen Blowfish-Schlüssel angegeben, aber cookie-Authentisierung aktiviert, deshalb wurde ein Schlüssel automatisch erzeugt. Er wird zum Verschlüsseln der Cookies verwendet und muss nicht gemerkt werden.';
+$strSetupblowfish_secret_name = 'Blowfish-Schlüssel';
+$strSetupBrowseMarkerEnable_desc = 'Markierte Zeilen hervorheben';
+$strSetupBrowseMarkerEnable_name = 'Zeilenmarker';
+$strSetupBrowsePointerEnable_desc = 'Zeile unter Mauscursor hervorheben';
+$strSetupBrowsePointerEnable_name = 'Cursor hervorheben';
+$strSetupBZipDump_desc = '[a@http://en.wikipedia.org/wiki/Bzip2]bzip2[/a]-Kompression für Import und Export aktivieren.';
+$strSetupBZipDump_name = 'Bzip2';
+$strSetupBZipDumpWarning = '[a@?page=form&formset=features#tab_Import_export]Bzip2-Kompression und Dekompression[/a] benötigt Funktionen (%s), welche auf diesem System nicht verfügbar sind.';
+$strSetupCannotLoadConfig = 'Laden oder Speichern der Konfiguration fehlgeschlagen.';
+$strSetupCannotLoadConfigMsg = 'Bitte erstellen Sie den Ordner [em]config[/em] im phpMyAdmin-Verzeichnis, und setzen Sie der Berechtigungen entsprechend. Ansonsten können Sie die Konfiguration nur herunterladen bzw. anzeigen.';
+$strSetupCharEditing_desc = 'Definiert welcher Widgettyp zum Editieren von CHAR und VARCHAR-Feldern verwendet werden soll. [kbd]input[/kbd] - erlaubt das limitieren der Eingabelänge, [kbd]textarea[/kbd] - erlaubt Zeilenumbrüche in Feldern';
+$strSetupCharEditing_name = 'Bearbeitung von CHAR-Felder';
+$strSetupCharTextareaCols_desc = 'Spaltenanzahl der CHAR/VARCHAR-Textfelder';
+$strSetupCharTextareaCols_name = 'CHAR Textfeldspalten';
+$strSetupCharTextareaRows_desc = 'Zeilenanzahl der CHAR/VARCHAR-Textfelder';
+$strSetupCharTextareaRows_name = 'CHAR Textfeldzeilen';
+$strSetupCheckConfigurationPermissions_name = 'Configfile-Berechtigungen überprüfen';
+$strSetupClear = 'Werte löschen';
+$strSetupCompressOnFly_desc = 'gzip/bzip2 beim Exportieren verwenden ohne viel Speicher zu benötigen. Sollten Probleme mit komprimierten Dateien auftreten, ist diese Option zu deaktivieren.';
+$strSetupCompressOnFly_name = 'On the fly komprimieren';
+$strSetupConfigurationFile = 'Konfigurationsdatei';
+$strSetupConfirm_desc = 'Warnung ("Sind Sie wirklich sicher …") anzeigen, wenn Dateien verloren gehen könnten.';
+$strSetupConfirm_name = 'Nachfrage bei DROP-queries';
+$strSetupDefaultCharset_desc = 'Standardzeichensatz bei Konvertierung';
+$strSetupDefaultCharset_name = 'Standardzeichensatz';
+$strSetupDefaultLanguage = 'Voreingestellte Sprache';
+$strSetupDefaultServer = 'Standardserver';
+$strSetupDefaultTabDatabase_desc = 'Angezeigter Reiter beim Öffnen einer Datenbank';
+$strSetupDefaultTabDatabase_name = 'Standardtab bei Datenbanken';
+$strSetupDefaultTabServer_desc = 'Angezeigter Reiter beim Öffnen eines Servers';
+$strSetupDefaultTabServer_name = 'Standardtab bei Servern';
+$strSetupDefaultTabTable_desc = 'Angezeigter Reiter beim Öffnen einer Tabelle';
+$strSetupDefaultTabTable_name = 'Standardtab bei Tabellen';
+$strSetupDirectoryNotice = 'Diese Variable sollte sorgfältig geprüft wrden. Das angegebene Verzeichnis darf nicht von außen gelesen werden und andere Benutzer des Servers sollen keine Schreibrechte haben.';
+$strSetupDisplay = 'Anzeige';
+$strSetupDisplayDatabasesList_desc = 'Datenbanken als Liste statt Dropdownfeld anzeigen';
+$strSetupDisplayDatabasesList_name = 'Datenbanken als Liste anzeigen';
+$strSetupDisplayServersList_desc = 'Server als Liste statt Dropdownfeld anzeigen';
+$strSetupDisplayServersList_name = 'Server als Liste anzeigen';
+$strSetupDonateLink = 'Spenden';
+$strSetupDownload = 'Download';
+$strSetupEndOfLine = 'Zeilenenden';
+$strSetuperror_connection = 'Verbindungsaufbau zu MySQL-Server schlug fehl';
+$strSetuperror_empty_pmadb_password = 'Passwort des phpMyAdmin Hilfsusers ist leer, obwohl pmadb verwendet wird';
+$strSetuperror_empty_pmadb_user = 'Kein phpMyAdmin-Hilfsuser angegeben, obwohl pmadb verwendet wird';
+$strSetuperror_empty_signon_session = 'Leerer Sessionname, obwohl signon-Authentisierung verwendet wird';
+$strSetuperror_empty_signon_url = 'Leere signon-URL, obwohl signon-Authentisierung verwendet wird';
+$strSetuperror_empty_user_for_config_auth = 'Leerer Benutzername, obwohl config-Authentisierung verwnedet wird';
+$strSetuperror_form = 'Ausgefülltes Formular enthält Fehler';
+$strSetuperror_incorrect_ip_address = 'Ungültige IP-Adresse: %s';
+$strSetuperror_incorrect_port = 'Keine gültige Portnummer';
+$strSetuperror_incorrect_value = 'Ungültiger Wert';
+$strSetuperror_missing_field_data = 'Fehlende Daten für %s';
+$strSetuperror_nan_nneg = 'Keine nicht-negative Nummer';
+$strSetuperror_nan_p = 'Keine positive Nummer';
+$strSetupExecTimeLimit_desc = 'Die Anzahl der Sekunden, welche ein Script zur Ausführung benötigen darf([kbd]0[/kbd] für unbegrenzt)';
+$strSetupExecTimeLimit_name = 'Maximale Ausführungszeit';
+$strSetupExport_asfile_name = 'In Datei speichern';
+$strSetupExport_charset_name = 'Zeichensatz der Datei';
+$strSetupExport_compression_name = 'Kompression';
+$strSetupExport_file_template_database_name = 'Schablone für Datenbanknamen';
+$strSetupExport_file_template_server_name = 'Schablone für Servernamen';
+$strSetupExport_file_template_table_name = 'Schablone für Tabellennamen';
+$strSetupExport_format_name = 'Format';
+$strSetupExport_onserver_name = 'Auf Server speichern';
+$strSetupExport_onserver_overwrite_name = 'Existierende Datei(en) überschreiben';
+$strSetupExport_remember_file_template_name = 'Schablone für Dateinamen merken';
+$strSetupFalse = 'nein';
+$strSetupForceSSL_desc = 'Sicher Verbindung während der Nutzung von phpMyAdmin erzwingen';
+$strSetupForceSSLMsg = 'Falls vom Server unterstützt, sollte diese [a@?page=form&formset=features#tab_Security]Option[/a] aktiviert werden';
+$strSetupForceSSL_name = 'SSL-Verbindung erzwingen';
+$strSetupForeignKeyDropdownOrder_desc = 'Sortierreihenfolge für FOREIGN KEY Dropdownfelder. [kbd]content[/kbd] ist der referenzierte Wert, [kbd]id[/kbd] ist der Schlüsselwert';
+$strSetupForeignKeyDropdownOrder_name = 'Sortierreihenfolge für FOREIN KEY Dropdownfelder';
+$strSetupForeignKeyMaxLimit_desc = 'Es wird ein Dropdownfeld verwendet, falls weniger Einträge vorhanden sind.';
+$strSetupForeignKeyMaxLimit_name = 'FOREIGN KEY Limit';
+$strSetupForm_Browse = 'Anzeigemodus';
+$strSetupForm_Browse_desc = 'Anzeigemodus anpassen';
+$strSetupForm_Edit = 'Bearbeitungsmodus';
+$strSetupForm_Edit_desc = 'Bearbeitungsmodus anpassen';
+$strSetupForm_Export_defaults_desc = 'Standard-Exporteinstellungen anpassen';
+$strSetupForm_Export_defaults = 'Voreinstellung für Export';
+$strSetupForm_Import_defaults_desc = 'Standard-Importeinstellungen anpassen';
+$strSetupForm_Import_defaults = 'Voreinstellung für Import';
+$strSetupForm_Import_export_desc = 'Import/Export-Verzeichnis und Kompressionsoptionen setzen';
+$strSetupForm_Import_export = 'Import/export';
+$strSetupForm_Left_databases = 'Datenbanken';
+$strSetupForm_Left_databases_desc = 'Anzeigeoptionen für Datenbank';
+$strSetupForm_Left_frame_desc = 'Aussehen der Navigation anpassen';
+$strSetupForm_Left_frame = 'Navigationsframe';
+$strSetupForm_Left_servers_desc = 'Anzeigeoptionen für Server';
+$strSetupForm_Left_servers = 'Server';
+$strSetupForm_Left_tables_desc = 'Anzeigeoptionen für Tabellen';
+$strSetupForm_Left_tables = 'Tabellen';
+$strSetupForm_Main_frame = 'Hauptframe';
+$strSetupForm_Other_core_settings_desc = 'Einstellungen welche in keine andere Kategorie passten';
+$strSetupForm_Other_core_settings = 'Sonstige Einstellungen';
+$strSetupForm_Query_window_desc = 'Queryfenster-Einstellungen anpassen';
+$strSetupForm_Query_window = 'Queryfenster';
+$strSetupForm_Security_desc = 'Beachten Sie, dass phMyAdmin nur ein Userinterface ist und in keinster Weise die Möglichkeiten von MySQL limitiert';
+$strSetupForm_Security = 'Sicherheit';
+$strSetupForm_Server_config_desc = 'Erweiterte Serverkonfiguration, ändern Sie diese Einstellungen nur wenn Sie wissen was Sie tun';
+$strSetupForm_Server_config = 'Serverkonfiguration';
+$strSetupForm_Server_desc = 'Geben Sie die Verbindungsparameter für den Server ein';
+$strSetupForm_Server = 'Grundeinstellungen';
+$strSetupForm_Server_login_options_desc = 'Geben Sie die Login-Optionen für signon-Authentisierung an';
+$strSetupForm_Server_login_options = 'Optionen für Signon-Login';
+$strSetupForm_Server_pmadb_desc = 'Konfigurieren Sie eine phpMyAdmin-Datenbank um zusätzliche Features zu erhalten, siehe [a@../Documentation.html#linked-tables]linked-tables infrastructure[/a]';
+$strSetupForm_Server_pmadb = 'PMA-Datenbank';
+$strSetupFormset_customization = 'Anpassung';
+$strSetupFormset_export = 'Exportoptionen anpassen';
+$strSetupFormset_features = 'Features';
+$strSetupFormset_import = 'Importeinstellungen anpassen';
+$strSetupFormset_left_frame = 'Navigationsframe anpassen';
+$strSetupFormset_main_frame = 'Hauptframe anpassen';
+$strSetupForm_Sql_box_desc = 'Angezeigte Links in SQL-Querybox ändern';
+$strSetupForm_Sql_box = 'SQL-Querybox';
+$strSetupForm_Sql_queries_desc = 'SQL-Queryeinstellungen, für die SQL-Queryboxeinstellungen siehe [a@?page=form&formset=main_frame#tab_Sql_box]Navigationsframe[/a]einstellungen';
+$strSetupForm_Sql_queries = 'SQL-Querys';
+$strSetupForm_Startup_desc = 'Startseite anpassen';
+$strSetupForm_Startup = 'Start';
+$strSetupForm_Tabs_desc = 'Wählen Sie wie die Tabs funktionieren sollen';
+$strSetupForm_Tabs = 'Tabs';
+$strSetupGZipDump_desc = '[a@http://en.wikipedia.org/wiki/Gzip]GZip[/a]-Kompression für Import- und Exportoperationen aktiviren';
+$strSetupGZipDump_name = 'GZip';
+$strSetupGZipDumpWarning = '[a@?page=form&formset=features#tab_Import_export]GZip-Kompression und Dekompression[/a] benötigt Funktionen (%s), welche auf diesem System nicht verfügbar sind.';
+$strSetupHomepageLink = 'phpMyAdmin-Homepage';
+$strSetupIconvExtraParams_name = 'Extra Parameter für iconv';
+$strSetupIgnoreErrors = 'Fehler ignorieren';
+$strSetupIgnoreMultiSubmitErrors_desc = 'Wenn aktiv, fährt phpMyAdmin bei der Verarbeitung von multi-Statement-Querys fort, wenn eine Query fehlschlägt';
+$strSetupIgnoreMultiSubmitErrors_name = 'Fehler bei Multi-Statements ignorieren';
+$strSetupImport_allow_interrupt_desc = 'Unterbrechungen bei Import erlauben, falls das Skript feststellt, dass das Zeitlimit bald erreicht ist. Dies ist eine gute Idee zum Importieren von großen Files, kann aber Probleme mit Transaktionen verursachen.';
+$strSetupImport_allow_interrupt_name = 'Teilweiser Import: Unterbrechung erlauben';
+$strSetupImport_format_name = 'Format';
+$strSetupImport_skip_queries_name = 'Teilimport: Überspringe Anfragen';
+$strSetupInsecureConnectionMsg1 = 'Sie benutzen keine sichere Verbindung. Alle Daten (einschließlich sensitive Information wie Passwörter) werden unverschlüsselt übertragen!';
+$strSetupInsecureConnectionMsg2 = 'Falls Ihr Server HTTPS Anfragen akzeptiert, folgen Sie [a@%s]diesem Link[/a] um eine sichere Verbindung zu benutzen.';
+$strSetupInsecureConnection = 'Unsichere Verbindung';
+$strSetupLetUserChoose = 'lass den Benutzer entscheiden';
+$strSetupLoad = 'Laden';
+$strSetupLoginCookieDeleteAll_name = 'All Cookies beim Logout löschen';
+$strSetupLoginCookieRecall_name = 'Benutzername wiederherstellen';
+$strSetupLoginCookieStore_name = 'Login Cookie Speicherung';
+$strSetupLoginCookieValidityMsg = '[a@?page=form&formset=features#tab_Security]Login cookie validity[/a] sollte maximal auf 1800 Sekunden (30 minutes) gesetzt sein. Werte größer 1800 könnten ein Sicherheitsrisiko darstellen z.B. durch Imitation.';
+$strSetupLoginCookieValidity_name = 'Login Cookie Gültigkeit';
+$strSetupMaxCharactersInDisplayedSQL_name = 'Zeichen Maximum beim SQL Befehl anzeigen';
+$strSetupMaxDbList_name = 'Datenbanken Maximum';
+$strSetupMaxTableList_name = 'Tabellen Maximum';
+$strSetupMemoryLimit_name = 'Speicher Limit';
+$strSetupNewServer = 'Neuer Server';
+$strSetupNoServers = 'Es sind keine Server konfiguriert';
+$strSetupOBGzip_name = 'GZip Ausgabepufferung';
+$strSetupOptionNone = '- kein -';
+$strSetupOverview = 'Übersicht';
+$strSetupPersistentConnections_name = 'Persistente Verbindung';
+$strSetupQueryHistoryDB_name = 'Anfragelog speichern';
+$strSetupQueryHistoryMax_name = 'Anfragelog Länge';
+$strSetupRecodingEngine_name = 'Umwandlungs Engine';
+$strSetupRestoreDefaultValue = 'Standard wiederherstellen';
+$strSetupRevertErroneousFields = 'Versuche fehlerhafte Werte auf den Standardwert zu setzen';
+$strSetupSaveDir_name = 'Speicher Verzeichnis';
+$strSetupServerAuthConfigMsg = 'Sie haben die [kbd]config[/kbd] Authentifikation gewählt und einen Benutzernamen und Passwort für Auto-Login eingegeben, was für live Hosts nicht Wünschenswert ist. Jeder, der Ihre phpMyAdmin URL kennt oder errät kann direckt auf Ihre phpMyAdmin Oberfläche zugreifen. Setzen Sie den [a@?page=servers&mode=edit&id=%1$d#tab_Server]Authentifikationstyp[/a] auf [kbd]cookie[/kbd] oder [kbd]http[/kbd].';
+$strSetupServerExtensionMsg = 'Sie sollten mysqli wegen der Performance benutzen';
+$strSetupServerNoPasswordMsg = 'Sie erlauben Verbindungen mit dem Server ohne Passwort.';
+$strSetupServersAdd = 'Server hinzufügen';
+$strSetupServers_AllowDeny_order_name = 'Host Authentifikationsreihenfolge';
+$strSetupServers_AllowDeny_rules_name = 'Host Authentifikationsregeln';
+$strSetupServers_AllowNoPassword_name = 'Erlaube Logins ohne Passwort';
+$strSetupServers_AllowRoot_name = 'Erlaube root Login';
$strSetupServers_auth_swekey_config_desc = 'Pfad zur Konfigurationsdatei der [a@http://swekey.com]SweKey Hardware Authentifizierung[/a] (liegt nicht im Webhauptverzeichnis (document root); empfohlen: /etc/swekey.conf)';
+$strSetupServers_auth_swekey_config_name = 'SweKey Konfigurationsdatei';
+$strSetupServers_auth_type_name = 'Authentifikationstyp';
+$strSetupServers_bookmarktable_name = 'Bookmark Table';
+$strSetupServers_column_info_name = 'Column Info Table';
+$strSetupServers_compress_name = 'Verbindung komprimieren';
+$strSetupServers_connect_type_name = 'Verbindungstyp';
+$strSetupServers_controlpass_name = 'Control-user Passwort';
+$strSetupServers_controluser_name = 'Control-user';
+$strSetupServers_CountTables_name = 'Zähle Tabellen';
+$strSetupServers_designer_coords_name = 'Designer Coords Table';
+$strSetupServers_DisableIS_name = 'Benutzung von INFORMATION_SCHEMA deaktivieren';
+$strSetupServerSecurityInfoMsg = 'Falls Sie es für nötig halten, benutzen Sie die zusätzlichen Schutz Einstellungen - [a@?page=servers&mode=edit&id=%1$d#tab_Server_config]Host Authentifikation[/a] und [a@?page=form&formset=features#tab_Security]Vertrauenswürdige Proxies Liste[/a]. IP Basierter Schutz kann unzuverlässig sein, wenn die IP einem ISP gehört, mit dem tausende Benutzer, einschließlich Ihnen, verbunden sind.';
+$strSetupServersEdit = 'Server editieren';
$strSetupServers_extension_desc = 'Die zu verwendente PHP Erweiterung; sie sollten mysqli verwenden wenn es verfügbar ist';
+$strSetupServers_extension_name = 'PHP Erweiterung';
+$strSetupServers_hide_db_name = 'Datenbanken verstecken';
+$strSetupServers_history_name = 'History Table';
$strSetupServers_host_desc = 'Rechnername auf dem der MySQL Server läuft';
+$strSetupServers_host_name = 'Hostname';
+$strSetupServers_LogoutURL_name = 'Logout URL';
+$strSetupServers_nopassword_name = 'Ohne Passwort verbinden';
+$strSetupServers_only_db_name = 'Nur aufgelistete Datenbanken zeigen';
+$strSetupServers_password_name = 'Passwort für config Authentifikation';
+$strSetupServers_pdf_pages_name = 'PDF Pages Table';
+$strSetupServers_pmadb_name = 'PMA Datenbank';
+$strSetupServers_port_name = 'Port';
+$strSetupServers_relation_name = 'Relation Table';
+$strSetupServers_ShowDatabasesCommand_name = 'SHOW DATABASES Befehl';
+$strSetupServers_SignonSession_name = 'Signon Session-Name';
+$strSetupServers_SignonURL_name = 'Signon URL';
+$strSetupServerSslMsg = 'Sie sollten SSL Verbindungen benutzen, wenn Ihr Webserver es unterstützt';
+$strSetupServers_socket_name = 'Sockel';
+$strSetupServers_ssl_desc = '';
+$strSetupServers_ssl_name = 'Benutze SSL';
+$strSetupServers_table_coords_name = 'Table Coords Table';
+$strSetupServers_table_info_name = 'Table Info Table';
+$strSetupServers_user_name = 'Benutername für config Authentifikation';
+$strSetupServers_verbose_check_name = 'Tabellenprüfung';
$strSetupServers_verbose_desc = 'Benutzerfreundlicher Name des Servers. Leer lassen um den tatsächlichen Rechnernamen anzuzeigen.';
+$strSetupServers_verbose_name = 'Serverbezeichnung';
+$strSetupSetValue = 'Setze Wert: %s';
+$strSetupShowForm = 'Formular Zeigen';
+$strSetupShowHiddenMessages = 'Ausgeblendete Nachrichten anzeigen (#MSG_COUNT)';
+$strSetupShowSQL_name = 'Zeige SQL Anfragen';
+$strSetupSkipLockedTables_name = 'Überspringe gesperrte Tabellen';
+$strSetupTrue = 'Ja';
+$strSetupTrustedProxies_name = 'Liste der Vertrauenswürdigen Proxies für IP Filter';
+$strSetupUploadDir_name = 'Upload Verzeichnis';
+$strSetupUseDbSearch_name = 'Datenbank Suche';
+$strSetupVerboseMultiSubmit_name = 'Auswirkungen von Mehrfachbefehlen zeigen';
+$strSetupVersionCheckDataError = 'Lesen der Versioninformationen fehlgeschlagen. Vielleicht sind Sie offline oder der Server antwortet nicht.';
+$strSetupVersionCheckInvalid = 'Ungültige Versionsinformation erhalten';
+$strSetupVersionCheckLink = 'Auf neue Version prüfen';
$strSetupVersionCheckNewAvailable = 'Es ist eine neuere Version von phpMyAdmin verfügbar zu der sie aktualisieren sollten. Die neuste Version ist %s, erschienen %s.';
+$strSetupVersionCheckNewAvailableSvn = 'Sie benutzen eine SVN Version, starten Sie [kbd]svn update[/kbd] :-)[br]Die neuste stabile Version ist %s, veröffentlicht am %s.';
+$strSetupVersionCheckNone = 'Keine neuere stabile Version verfügbar';
+$strSetupVersionCheckUnparsable = 'Versionsinformation nicht analysierbar';
+$strSetupVersionCheck = 'Versionsüberprüfung';
+$strSetupVersionCheckWrapperError = 'Weder URL Wrapper noch CURL sind verfügbar. Versionsüberprüfung ist nicht möglich.';
+$strSetupWarning = 'Warnung';
+$strSetupZipDumpExportWarning = '[a@?page=form&formset=features#tab_Import_export]Zip Komprimierung[/a] benötigt die Funktionen (%s) die auf dem System nicht zur Verfügung stehen.';
+$strSetupZipDumpImportWarning = '[a@?page=form&formset=features#tab_Import_export]Zip Dekomprimierung[/a] benötigt die Funktionen (%s) die auf dem System nicht zur Verfügung stehen.';
+$strSetupZipDump_name = 'ZIP';
$strShowAll = 'Alles anzeigen';
$strShowBinaryContents = 'Binäre Inhalte anzeigen';
$strShowBLOBContents = 'BLOB Inhalte anzeigen';
@@ -860,8 +1138,8 @@ $strShowStatusReset = 'Zurücksetzen';
$strShowStatusRpl_statusDescr = 'Der Status der ausfallsicheren Replikation.';
$strShowStatusSelect_full_joinDescr = 'Anzahl der Joins ohne Schlüssel. Wenn dieser Wert nicht 0 ist sollten die Indizes der Tabellen sorgfältig überprüft werden.';
$strShowStatusSelect_full_range_joinDescr = 'Anzahl der Joins, bei denen eine Bereichssuche auf die Referenztabelle statt fand.';
-$strShowStatusSelect_rangeDescr = 'Anzahl der Joins, bei denen Bereiche auf die erste Tabelle benutzt wurden. (Es ist normalerweise unkritisch, wenn dieser Wert hoch ist.)';
$strShowStatusSelect_range_checkDescr = 'Anzahl der Joins ohne Schlüssel, bei denen nach jeder Zeile auf Schlüsselbenutzung geprüft wurde. Wenn dieser Wert nicht 0 ist sollten die Indizes der Tabellen sorgfältig überprüft werden.';
+$strShowStatusSelect_rangeDescr = 'Anzahl der Joins, bei denen Bereiche auf die erste Tabelle benutzt wurden. (Es ist normalerweise unkritisch, wenn dieser Wert hoch ist.)';
$strShowStatusSelect_scanDescr = 'Anzahl der Joins, bei denen die erste Tabelle gescannt wurde.';
$strShowStatusSlave_open_temp_tablesDescr = 'Anzahl der temporären Tabellen, die momentan vom Slave-Prozess geöffnet sind.';
$strShowStatusSlave_retried_transactionsDescr = 'Gesamtzahl (seit Start des Servers) der vom Replikations-Slave-SQL-Thread wiederversuchten Transaktionen.';
@@ -908,9 +1186,10 @@ $strSQPBugInvalidIdentifer = 'Ungültiger Bezeichner';
$strSQPBugUnclosedQuote = 'Nicht geschlossene Anführungszeichen';
$strSQPBugUnknownPunctuation = 'Unbekannte Interpunktion';
$strStandInStructureForView = 'Stellvertreter-Struktur des Views';
+$strStatCheckTime = 'Letzter Check am';
$strStatCreateTime = 'Erzeugt am';
$strStatement = 'Angaben';
-$strStatCheckTime = 'Letzter Check am';
+$strStatic = 'statisch';
$strStatisticsOverrun = 'Auf stark frequentierten Server kann der Byte-Zähler "überlaufen" (Wieder bei 0 beginnen), deshalb können diese Werte wie sie vom MySQL Server ausgegeben werden falsch sein.';
$strStatUpdateTime = 'Aktualisiert am';
$strStatus = 'Status';
@@ -926,8 +1205,10 @@ $strStructureForView = 'Struktur des Views';
$strStructure = 'Struktur';
$strSubmit = 'Abschicken';
$strSuccess = 'Ihr SQL-Befehl wurde erfolgreich ausgeführt.';
+$strSuhosin = 'Der Server läuft mit Suhosin. Bitte lesen Sie die %sDokumentation%s wegen möglicher Probleme.';
$strSum = 'Gesamt';
$strSwedish = 'Schwedisch';
+$strSwekeyAuthenticating = 'Authentifiziere ...';
$strSwekeyAuthFailed = 'Hardware Authentisierung fehlgeschlagen';
$strSwekeyNoKeyId = 'Die Datei %s enthält keine Schlüsselnummer';
$strSwekeyNoKey = 'Kein gültiger Authentisierungsschlüssel angeschlossen';
@@ -954,6 +1235,7 @@ $strTakeIt = 'auswählen';
$strTblPrivileges = 'Tabellenspezifische Rechte';
$strTempData = 'Temporäre Daten';
$strTextAreaLength = 'Wegen seiner Länge ist dieses Feld vielleicht nicht editierbar.';
+$strTexyText = 'Texy! Text';
$strThai = 'Thai';
$strThemeDefaultNotFound = 'Standard-Oberflächendesign "%s" nicht gefunden!';
$strThemeNoPreviewAvailable = 'Keine Vorschau verfügbar.';
@@ -974,6 +1256,58 @@ $strToggleSmallBig = 'Wechseln klein/groß';
$strToSelectRelation = 'Um eine Relation auszuwählen, klicken Sie :';
$strTotal = 'insgesamt';
$strTotalUC = 'Insgesamt';
+$strTrackingActivated = 'Tracking der Tabelle %s.%s ist aktiviert.';
+$strTrackingActivateNow = 'Jetzt aktivieren';
+$strTrackingActivateTrackingFor = 'Aktiviere tracking mechanismus für %s.%s';
+$strTrackingCreateVersion = 'Erzeuge Version';
+$strTrackingCreateVersionOf = 'Erzeuge Version %s von %s.%s';
+$strTrackingDataDefinitionStatement = 'DDL Befehl';
+$strTrackingDataManipulationStatement = 'DML Befehl';
+$strTrackingDate = 'Datum';
+$strTrackingDeactivateNow = 'Jetzt deaktivieren';
+$strTrackingDeactivateTrackingFor = 'Deaktiviere Tracking Mechanismus für %s.%s';
+$strTrackingDoIt = 'Los';
+$strTrackingExportAs = 'Export als %s';
+$strTrackingIsActive = 'Tracking ist aktiviert.';
+$strTrackingIsDeactive = 'Tracking is deactive.';
+$strTrackingMechanism = 'Tracking Mechanismus';
+$strTrackingReportClose = 'Schliesse';
+$strTrackingReport = 'Tracking Report';
+$strTrackingSelectDataOnly = 'Nur Daten';
+$strTrackingSelectStructureAndData = 'Struktur und Daten';
+$strTrackingSelectStructureOnly = 'Nur Struktur';
+$strTrackingShowLogDateUsers = 'Zeige %s mit Datum von %s bis %s und Benutzer %s %s';
+$strTrackingShowVersions = 'Zeige Versionen';
+$strTrackingSQLDumpFile = 'SQL Dump (Datei Download)';
+$strTrackingSQLDump = 'SQL Dump';
+$strTrackingSQLExecuted = 'SQL Befehle ausgeführt.';
+$strTrackingSQLExecutionAlert = 'Diese Option ersetzt Ihre Tabelle und enthaltene Daten.';
+$strTrackingSQLExecution = 'SQL Ausführung';
+$strTrackingSQLExported = 'SQL Befehle exportiert.';
+$strTrackingStatements = 'Verfolge die Befehle';
+$strTrackingStatusActive = 'aktiv';
+$strTrackingStatusDeactive = 'deaktiv';
+$strTrackingStructureSnapshot = 'Struktur Schnapschuss';
+$strTrackingThCreated = 'Erstellt';
+$strTrackingThDatabase = 'Datenbank';
+$strTrackingThLastVersion = 'Letzte Version';
+$strTrackingThShow = 'Zeige';
+$strTrackingThStatus = 'Status';
+$strTrackingThTable = 'Tabelle';
+$strTrackingThUpdated = 'Aktualisiert';
+$strTrackingThVersion = 'Version';
+$strTrackingTrackDDStatements = 'Verfolge diese Datenbeschreibungsbefehle (DDL):';
+$strTrackingTrackDMStatements = 'Verfolge diese Datenbearbeitungsbefehle (DML):';
+$strTrackingTrackedTables = 'Verfolgte Tabellen';
+$strTracking = 'Tracking';
+$strTrackingTrackTable = 'Verfolge Tabelle';
+$strTrackingUntrackedTables = 'Nicht verfolgte Tabellen';
+$strTrackingUsername = 'Benutzername';
+$strTrackingVersionActivated = 'Tracking von %s.%s , Version %s ist aktiviert.';
+$strTrackingVersionCreated = 'Version %s ist erstellt, Tracking von %s.%s ist aktiviert.';
+$strTrackingVersionDeactivated = 'Tracking von %s.%s , Version %s ist deaktiviert.';
+$strTrackingVersionSnapshotSQL = 'Version %s Schnapschuss (SQL code)';
+$strTrackingVersions = 'Versionen';
$strTraditionalChinese = 'Traditionelles Chinesisch';
$strTraditionalSpanish = 'Traditionelles Spanisch';
$strTraffic = 'Traffic';
@@ -1041,6 +1375,7 @@ $strView = 'Ansicht';
$strViewDumpDatabases = 'Dump (Schema) der Datenbanken anzeigen';
$strViewDumpDB = 'Dump (Schema) der Datenbank anzeigen';
$strViewDump = 'Dump (Schema) der Tabelle anzeigen';
+$strViewHasAtLeast = 'Dieser View hat mindestens diese Anzahl von Zeilen. Bitte lesen Sie die %sDokumentation%s.';
$strViewHasBeenDropped = 'Die Ansicht %s wurde gelöscht';
$strViewImage = 'Bild anzeigen';
$strViewName = 'VIEW Name';
@@ -1066,206 +1401,29 @@ $strZeroRemovesTheLimit = 'Der Wert 0 (null) entfernt die Beschränkung.';
$strZip = 'Zip-komprimiert';
// To translate:
+$strAndSmall = 'and'; //to translate
-$strBLOBRepository = 'BLOB Repository'; //to translate
-$strBLOBRepositoryDamaged = 'Damaged'; //to translate
-$strBLOBRepositoryDisableAreYouSure = 'Are you sure you want to disable all BLOB references for database %s?'; //to translate
-$strBLOBRepositoryDisabled = 'Disabled'; //to translate
-$strBLOBRepositoryDisable = 'Disable'; //to translate
-$strBLOBRepositoryDisableStrongWarning = 'You are about to DISABLE a BLOB Repository!'; //to translate
-$strBLOBRepositoryEnabled = 'Enabled'; //to translate
-$strBLOBRepositoryEnable = 'Enable'; //to translate
-$strBLOBRepositoryRemove = 'Remove BLOB Repository Reference'; //to translate
-$strBLOBRepositoryRepair = 'Repair'; //to translate
-$strBLOBRepositoryStatus = 'Status'; //to translate
-$strBLOBRepositoryUpload = 'Upload to BLOB repository'; //to translate
+$strConfigDirectoryWarning = 'Directory [code]config[/code], which is used by the setup script, still exists in your phpMyAdmin directory. You should remove it once phpMyAdmin has been configured.'; //to translate
-$strEvents = 'Events'; //to translate
-$strExportImportToScale = 'Export/Import to scale'; // to translate
+$strDoNotAutoIncrementZeroValues = 'Do not use AUTO_INCREMENT for zero values'; //to translate
-$strForeignKeyRelationAdded = 'FOREIGN KEY relation added'; //to translate
+$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
+$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
+$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
-$strGetMoreThemes = 'Get more themes!'; //to translate
+$strNavTableFilter = 'Filter'; //to translate
-$strHostTableExplanation = 'When Host table is used, this field is ignored and values stored in Host table are used instead.'; //to translate
-
-$strInternalAndForeign = 'An internal relation is not necessary when a corresponding FOREIGN KEY relation exists.'; //to translate
-
-$strLoginWithoutPassword = 'Login without a password is forbidden by configuration (see AllowNoPassword)'; //to translate
-
-$strPBXTDataFileGrowSize = 'Data file grow size'; //to translate
-$strPBXTDataFileGrowSizeDesc = 'The grow size of the handle data (.xtd) files.'; //to translate
-$strPBXTDataLogThreshold = 'Data log threshold'; //to translate
-$strPBXTDataLogThresholdDesc = 'The maximum size of a data log file. The default value is 64MB. PBXT can create a maximum of 32000 data logs, which are used by all tables. So the value of this variable can be increased to increase the total amount of data that can be stored in the database.'; //to translate
-$strPBXTGarbageThresholdDesc = 'The percentage of garbage in a data log file before it is compacted. This is a value between 1 and 99. The default is 50.'; //to translate
-$strPBXTGarbageThreshold = 'Garbage threshold'; //to translate
-$strPBXTCheckpointFrequencyDesc = 'The amount of data written to the transaction log before a checkpoint is performed. The default value is 24MB.'; //to translate
-$strPBXTCheckpointFrequency = 'Checkpoint frequency'; //to translate
-$strPBXTIndexCacheSizeDesc = 'This is the amount of memory allocated to the index cache. Default value is 32MB. The memory allocated here is used only for caching index pages.'; //to translate
-$strPBXTIndexCacheSize = 'Index cache size'; //to translate
-$strPBXTLogBufferSizeDesc = 'The size of the buffer used when writing a data log. The default is 256MB. The engine allocates one buffer per thread, but only if the thread is required to write a data log.'; //to translate
-$strPBXTLogBufferSize = 'Log buffer size'; //to translate
-$strPBXTLogCacheSizeDesc = 'The amount of memory allocated to the transaction log cache used to cache on transaction log data. The default is 16MB.'; //to translate
-$strPBXTLogCacheSize = 'Log cache size'; //to translate
-$strPBXTLogFileCountDesc = 'This is the number of transaction log files (pbxt/system/xlog*.xt) the system will maintain. If the number of logs exceeds this value then old logs will be deleted, otherwise they are renamed and given the next highest number.'; //to translate
-$strPBXTLogFileCount = 'Log file count'; //to translate
-$strPBXTLogFileThresholdDesc = 'The size of a transaction log before rollover, and a new log is created. The default value is 16MB.'; //to translate
-$strPBXTLogFileThreshold = 'Log file threshold'; //to translate
-$strPBXTRecordCacheSizeDesc = 'This is the amount of memory allocated to the record cache used to cache table data. The default value is 32MB. This memory is used to cache changes to the handle data (.xtd) and row pointer (.xtr) files.'; //to translate
$strPBXTRecordCacheSize = 'Record cache size'; //to translate
-$strPBXTRowFileGrowSizeDesc = 'The grow size of the row pointer (.xtr) files.'; //to translate
-$strPBXTRowFileGrowSize = 'Row file grow size'; //to translate
-$strPBXTTransactionBufferSizeDesc = 'The size of the global transaction log buffer (the engine allocates 2 buffers of this size). The default is 1MB.'; //to translate
-$strPBXTTransactionBufferSize = 'Transaction buffer size'; //to translate
+$strPhpArray = 'PHP array'; //to translate
+
+$strRemoveCRLF = 'Remove CRLF characters within fields'; //to translate
+$strReplicationStatusInfo = 'This MySQL server works as %s in replication process. For further information about replication status on the server, please visit the replication section.'; //to translate
+$strReplicationStatus_master = 'Master status'; //to translate
+$strReplicationStatus = 'Replication status'; //to translate
+$strReplicationStatus_slave = 'Slave status'; //to translate
-$strSetupAllowAnywhereRecoding_name = 'Allow character set conversion'; //to translate
-$strSetupAllowArbitraryServer_desc = 'If enabled user can enter any MySQL server in login form for cookie auth'; //to translate
-$strSetupAllowArbitraryServerMsg = 'This [a@?page=form&formset=features#tab_Security]option[/a] should be disabled as it allows attackers to bruteforce login to any MySQL server. If you feel this is necessary, use [a@?page=form&formset=features#tab_Security]trusted proxies list[/a]. However, IP-based protection may not be reliable if your IP belongs to an ISP where thousands of users, including you, are connected to.'; //to translate
-$strSetupAllowArbitraryServer_name = 'Allow login to any MySQL server'; //to translate
-$strSetupAllowUserDropDatabase_name = 'Show "Drop database" link to normal users'; //to translate
-$strSetupblowfish_secret_desc = 'Secret passphrase used for encrypting cookies in [kbd]cookie[/kbd] authentication'; //to translate
-$strSetupBlowfishSecretCharsMsg = 'Key should contain letters, numbers [em]and[/em] special characters'; //to translate
-$strSetupBlowfishSecretLengthMsg = 'Key is too short, it should have at least 8 characters'; //to translate
-$strSetupBlowfishSecretMsg = 'You didn\'t have blowfish secret set and have enabled cookie authentication, so a key was automatically generated for you. It is used to encrypt cookies; you don\'t need to remember it.'; //to translate
-$strSetupblowfish_secret_name = 'Blowfish secret'; //to translate
-$strSetupBrowseMarkerEnable_desc = 'Highlight selected rows'; //to translate
-$strSetupBrowseMarkerEnable_name = 'Row marker'; //to translate
-$strSetupBrowsePointerEnable_desc = 'Highlight row pointed by the mouse cursor'; //to translate
-$strSetupBrowsePointerEnable_name = 'Highlight pointer'; //to translate
-$strSetupBZipDump_desc = 'Enable [a@http://en.wikipedia.org/wiki/Bzip2]bzip2[/a] compression for import and export operations'; //to translate
-$strSetupBZipDump_name = 'Bzip2'; //to translate
-$strSetupBZipDumpWarning = '[a@?page=form&formset=features#tab_Import_export]Bzip2 compression and decompression[/a] requires functions (%s) which are unavailable on this system.'; //to translate
-$strSetupCannotLoadConfig = 'Cannot load or save configuration'; //to translate
-$strSetupCannotLoadConfigMsg = 'Please create web server writable folder [em]config[/em] in phpMyAdmin top level directory as described in [a@../Documentation.html#setup_script]documentation[/a]. Otherwise you will be only able to download or display it.'; //to translate
-$strSetupClear = 'Clear'; //to translate
-$strSetupCompressOnFly_desc = 'Compress gzip/bzip2 exports on the fly without the need for much memory; if you encounter problems with created gzip/bzip2 files disable this feature'; //to translate
-$strSetupCompressOnFly_name = 'Compress on the fly'; //to translate
-$strSetupConfigurationFile = 'Configuration file'; //to translate
-$strSetupConfirm_desc = 'Whether a warning ("Are your really sure...") should be displayed when you\'re about to lose data'; //to translate
-$strSetupConfirm_name = 'Confirm DROP queries'; //to translate
-$strSetupDefaultCharset_desc = 'Default character set used for conversions'; //to translate
-$strSetupDefaultCharset_name = 'Default character set'; //to translate
-$strSetupDefaultLanguage = 'Default language'; //to translate
-$strSetupDefaultServer = 'Default server'; //to translate
-$strSetupDefaultTabDatabase_desc = 'Tab that is displayed when entering a database'; //to translate
-$strSetupDefaultTabDatabase_name = 'Default database tab'; //to translate
-$strSetupDefaultTabServer_desc = 'Tab that is displayed when entering a server'; //to translate
-$strSetupDefaultTabServer_name = 'Default server tab'; //to translate
-$strSetupDefaultTabTable_desc = 'Tab that is displayed when entering a table'; //to translate
-$strSetupDefaultTabTable_name = 'Default table tab'; //to translate
-$strSetupDirectoryNotice = 'This value should be double checked to ensure that this directory is neither world accessible nor readable or writable by other users on your server.'; //to translate
-$strSetupDisplayDatabasesList_desc = 'Show database listing as a list instead of a drop down'; //to translate
-$strSetupDisplayDatabasesList_name = 'Display databases as a list'; //to translate
-$strSetupDisplay = 'Display'; //to translate
-$strSetupDisplayServersList_desc = 'Show server listing as a list instead of a drop down'; //to translate
-$strSetupDisplayServersList_name = 'Display servers as a list'; //to translate
-$strSetupDonateLink = 'Donate'; //to translate
-$strSetupDownload = 'Download'; //to translate
-$strSetupEndOfLine = 'End of line'; //to translate
-$strSetuperror_connection = 'Could not connect to MySQL server'; //to translate
-$strSetuperror_empty_pmadb_password = 'Empty phpMyAdmin control user password while using pmadb'; //to translate
-$strSetuperror_empty_pmadb_user = 'Empty phpMyAdmin control user while using pmadb'; //to translate
-$strSetuperror_empty_signon_session = 'Empty signon session name while using signon authentication method'; //to translate
-$strSetuperror_empty_signon_url = 'Empty signon URL while using signon authentication method'; //to translate
-$strSetuperror_empty_user_for_config_auth = 'Empty username while using config authentication method'; //to translate
-$strSetuperror_form = 'Submitted form contains errors'; //to translate
-$strSetuperror_incorrect_ip_address = 'Incorrect IP address: %s'; //to translate
-$strSetuperror_incorrect_port = 'Not a valid port number'; //to translate
-$strSetuperror_incorrect_value = 'Incorrect value'; //to translate
-$strSetuperror_missing_field_data = 'Missing data for %s'; //to translate
-$strSetuperror_nan_nneg = 'Not a non-negative number'; //to translate
-$strSetuperror_nan_p = 'Not a positive number'; //to translate
-$strSetupExecTimeLimit_desc = 'Set the number of seconds a script is allowed to run ([kbd]0[/kbd] for no limit)'; //to translate
-$strSetupExecTimeLimit_name = 'Maximum execution time'; //to translate
-$strSetupExport_asfile_name = 'Save as file'; //to translate
-$strSetupExport_compression_name = 'Compression'; //to translate
-$strSetupExport_file_template_database_name = 'Database name template'; //to translate
-$strSetupExport_file_template_server_name = 'Server name template'; //to translate
-$strSetupExport_file_template_table_name = 'Table name template'; //to translate
-$strSetupExport_format_name = 'Format'; //to translate
-$strSetupExport_charset_name = 'Character set of the file'; //to translate
-$strSetupExport_onserver_name = 'Save on server'; //to translate
-$strSetupExport_onserver_overwrite_name = 'Overwrite existing file(s)'; //to translate
-$strSetupExport_remember_file_template_name = 'Remember file name template'; //to translate
-$strSetupFalse = 'no'; //to translate
-$strSetupForceSSL_desc = 'Force secured connection while using phpMyAdmin'; //to translate
-$strSetupForceSSLMsg = 'This [a@?page=form&formset=features#tab_Security]option[/a] should be enabled if your web server supports it'; //to translate
-$strSetupForceSSL_name = 'Force SSL connection'; //to translate
-$strSetupForeignKeyDropdownOrder_desc = 'Sort order for items in a foreign-key dropdown box; [kbd]content[/kbd] is the referenced data, [kbd]id[/kbd] is the key value'; //to translate
-$strSetupForeignKeyDropdownOrder_name = 'Foreign key dropdown order'; //to translate
-$strSetupForeignKeyMaxLimit_desc = 'A dropdown will be used if fewer items are present'; //to translate
-$strSetupForeignKeyMaxLimit_name = 'Foreign key limit'; //to translate
-$strSetupForm_Browse = 'Browse mode'; //to translate
-$strSetupForm_Browse_desc = 'Customize browse mode'; //to translate
-$strSetupForm_Edit_desc = 'Customize edit mode'; //to translate
-$strSetupForm_Edit = 'Edit mode'; //to translate
-$strSetupForm_Export_defaults_desc = 'Customize default export options'; //to translate
-$strSetupForm_Export_defaults = 'Export defaults'; //to translate
-$strSetupForm_Import_defaults_desc = 'Customize default common import options'; //to translate
-$strSetupForm_Import_defaults = 'Import defaults'; //to translate
-$strSetupForm_Import_export_desc = 'Set import and export directories and compression options'; //to translate
-$strSetupForm_Import_export = 'Import / export'; //to translate
-$strSetupForm_Left_databases = 'Databases'; //to translate
-$strSetupForm_Left_databases_desc = 'Databases display options'; //to translate
-$strSetupForm_Left_frame_desc = 'Customize appearance of the navigation frame'; //to translate
-$strSetupForm_Left_frame = 'Navigation frame'; //to translate
-$strSetupForm_Left_servers_desc = 'Servers display options'; //to translate
-$strSetupForm_Left_servers = 'Servers'; //to translate
-$strSetupForm_Left_tables_desc = 'Tables display options'; //to translate
-$strSetupForm_Left_tables = 'Tables'; //to translate
-$strSetupForm_Main_frame = 'Main frame'; //to translate
-$strSetupForm_Other_core_settings_desc = 'Settings that didn\'t fit enywhere else'; //to translate
-$strSetupForm_Other_core_settings = 'Other core settings'; //to translate
-$strSetupForm_Query_window_desc = 'Customize query window options'; //to translate
-$strSetupForm_Query_window = 'Query window'; //to translate
-$strSetupForm_Security_desc = 'Please note that phpMyAdmin is just a user interface and its features do not limit MySQL'; //to translate
-$strSetupForm_Security = 'Security'; //to translate
-$strSetupForm_Server = 'Basic settings'; //to translate
-$strSetupForm_Server_config_desc = 'Advanced server configuration, do not change these options unless you know what they are for'; //to translate
-$strSetupForm_Server_config = 'Server configuration'; //to translate
-$strSetupForm_Server_desc = 'Enter server connection parameters'; //to translate
-$strSetupForm_Server_login_options_desc = 'Enter login options for signon authentication'; //to translate
-$strSetupForm_Server_login_options = 'Signon login options'; //to translate
-$strSetupForm_Server_pmadb_desc = 'Configure phpMyAdmin database to gain access to additional features, see [a@../Documentation.html#linked-tables]linked-tables infrastructure[/a] in documentation'; //to translate
-$strSetupForm_Server_pmadb = 'PMA database'; //to translate
-$strSetupFormset_customization = 'Customization'; //to translate
-$strSetupFormset_export = 'Customize export options'; //to translate
-$strSetupFormset_features = 'Features'; //to translate
-$strSetupFormset_import = 'Customize import defaults'; //to translate
-$strSetupFormset_left_frame = 'Customize navigation frame'; //to translate
-$strSetupFormset_main_frame = 'Customize main frame'; //to translate
-$strSetupForm_Sql_box_desc = 'Customize links shown in SQL Query boxes'; //to translate
-$strSetupForm_Sql_box = 'SQL Query box'; //to translate
-$strSetupForm_Sql_queries_desc = 'SQL queries settings, for SQL Query box options see [a@?page=form&formset=main_frame#tab_Sql_box]Navigation frame[/a] settings'; //to translate
-$strSetupForm_Sql_queries = 'SQL queries'; //to translate
-$strSetupForm_Startup_desc = 'Customize startup page'; //to translate
-$strSetupForm_Startup = 'Startup'; //to translate
-$strSetupForm_Tabs_desc = 'Choose how you want tabs to work'; //to translate
-$strSetupForm_Tabs = 'Tabs'; //to translate
-$strSetupGZipDump_desc = 'Enable [a@http://en.wikipedia.org/wiki/Gzip]gzip[/a] compression for import and export operations'; //to translate
-$strSetupGZipDump_name = 'GZip'; //to translate
-$strSetupGZipDumpWarning = '[a@?page=form&formset=features#tab_Import_export]GZip compression and decompression[/a] requires functions (%s) which are unavailable on this system.'; //to translate
-$strSetupHomepageLink = 'phpMyAdmin homepage'; //to translate
-$strSetupCharEditing_desc = 'Defines which type of editing controls should be used for CHAR and VARCHAR fields; [kbd]input[/kbd] - allows limiting of input length, [kbd]textarea[/kbd] - allows newlines in fields'; //to translate
-$strSetupCharEditing_name = 'CHAR fields editing'; //to translate
-$strSetupCharTextareaCols_desc = 'Number of columns for CHAR/VARCHAR textareas'; //to translate
-$strSetupCharTextareaCols_name = 'CHAR textarea columns'; //to translate
-$strSetupCharTextareaRows_desc = 'Number of rows for CHAR/VARCHAR textareas'; //to translate
-$strSetupCharTextareaRows_name = 'CHAR textarea rows'; //to translate
-$strSetupCheckConfigurationPermissions_name = 'Check config file permissions'; //to translate
-$strSetupIconvExtraParams_name = 'Extra parameters for iconv'; //to translate
-$strSetupIgnoreErrors = 'Ignore errors'; //to translate
-$strSetupIgnoreMultiSubmitErrors_desc = 'If enabled, phpMyAdmin continues computing multiple-statement queries even if one of the queries failed'; //to translate
-$strSetupIgnoreMultiSubmitErrors_name = 'Ignore multiple statement errors'; //to translate
-$strSetupImport_allow_interrupt_desc = 'Allow interrupt of import in case script detects it is close to time limit. This might be good way to import large files, however it can break transactions.'; //to translate
-$strSetupImport_allow_interrupt_name = 'Partial import: allow interrupt'; //to translate
$strSetupImport_format_desc = 'Default format; be aware that this list depends on location (database, table) and only SQL is always available'; //to translate
-$strSetupImport_format_name = 'Format of imported file'; //to translate
$strSetupImport_skip_queries_desc = 'Number of records (queries) to skip from start'; //to translate
-$strSetupImport_skip_queries_name = 'Partial import: skip queries'; //to translate
-$strSetupInsecureConnection = 'Insecure connection'; //to translate
-$strSetupInsecureConnectionMsg1 = 'You are not using a secure connection; all data (including potentially sensitive information, like passwords) is transferred unencrypted!'; //to translate
-$strSetupInsecureConnectionMsg2 = 'If your server is also configured to accept HTTPS requests follow [a@%s]this link[/a] to use a secure connection.'; //to translate
$strSetupInsertRows_desc = 'How many rows can be inserted at one time'; //to translate
$strSetupInsertRows_name = 'Number of inserted rows'; //to translate
$strSetupLeftDefaultTabTable_name = 'Target for quick access icon'; //to translate
@@ -1287,144 +1445,72 @@ $strSetupLeftLogoLinkWindow_desc = 'Open the linked page in the main window ([kb
$strSetupLeftLogoLinkWindow_name = 'Logo link target'; //to translate
$strSetupLeftPointerEnable_desc = 'Highlight server under the mouse cursor'; //to translate
$strSetupLeftPointerEnable_name = 'Enable highlighting'; //to translate
-$strSetupLetUserChoose = 'let the user choose'; //to translate
$strSetupLightTabs_desc = 'Use less graphically intense tabs'; //to translate
$strSetupLightTabs_name = 'Light tabs'; //to translate
-$strSetupLoad = 'Load'; //to translate
$strSetupLoginCookieDeleteAll_desc = 'If TRUE, logout deletes cookies for all servers; when set to FALSE, logout only occurs for the current server. Setting this to FALSE makes it easy to forget to log out from other servers when connected to multiple servers.'; //to translate
-$strSetupLoginCookieDeleteAll_name = 'Delete all cookies on logout'; //to translate
$strSetupLoginCookieRecall_desc = 'Define whether the previous login should be recalled or not in cookie authentication mode'; //to translate
-$strSetupLoginCookieRecall_name = 'Recall user name'; //to translate
$strSetupLoginCookieStore_desc = 'Define how long (in seconds) a login cookie should be stored in browser. The default of 0 means that it will be kept for the existing session only, and will be deleted as soon as you close the browser window. This is recommended for non-trusted environments.'; //to translate
-$strSetupLoginCookieStore_name = 'Login cookie store'; //to translate
$strSetupLoginCookieValidity_desc = 'Define how long (in seconds) a login cookie is valid'; //to translate
-$strSetupLoginCookieValidityMsg = '[a@?page=form&formset=features#tab_Security]Login cookie validity[/a] should be should be set to 1800 seconds (30 minutes) at most. Values larger than 1800 may pose a security risk such as impersonation.'; //to translate
-$strSetupLoginCookieValidity_name = 'Login cookie validity'; //to translate
-$strSetupMaxDbList_desc = 'Maximum number of databases displayed in left frame and database list'; //to translate
-$strSetupMaxDbList_name = 'Maximum databases'; //to translate
$strSetupMaxCharactersInDisplayedSQL_desc = 'Maximum number of characters used when a SQL query is displayed'; //to translate
-$strSetupMaxCharactersInDisplayedSQL_name = 'Maximum displayed SQL length'; //to translate
+$strSetupMaxDbList_desc = 'Maximum number of databases displayed in left frame and database list'; //to translate
$strSetupMaxRows_desc = 'Number of rows displayed when browsing a result set. If the result set contains more rows, "Previous" and "Next" links will be shown.'; //to translate
$strSetupMaxRows_name = 'Maximum number of rows to display'; //to translate
$strSetupMaxTableList_desc = 'Maximum number of tables displayed in table list'; //to translate
-$strSetupMaxTableList_name = 'Maximum tables'; //to translate
$strSetupMemoryLimit_desc = 'The number of bytes a script is allowed to allocate, eg. [kbd]32M[/kbd] ([kbd]0[/kbd] for no limit)'; //to translate
-$strSetupMemoryLimit_name = 'Memory limit'; //to translate
$strSetupNavigationBarIconic_desc = 'Use only icons, only text or both'; //to translate
$strSetupNavigationBarIconic_name = 'Iconic navigation bar'; //to translate
-$strSetupNewServer = 'New server'; //to translate
-$strSetupNoServers = 'There are no configured servers'; //to translate
$strSetupOBGzip_desc = 'use GZip output buffering for increased speed in HTTP transfers'; //to translate
-$strSetupOBGzip_name = 'GZip output buffering'; //to translate
-$strSetupOptionNone = '- none -'; //to translate
$strSetupOrder_desc = '[kbd]SMART[/kbd] - i.e. descending order for fields of type TIME, DATE, DATETIME and TIMESTAMP, ascending order otherwise'; //to translate
$strSetupOrder_name = 'Default sorting order'; //to translate
-$strSetupOverview = 'Overview'; //to translate
$strSetupPersistentConnections_desc = 'Use persistent connections to MySQL databases'; //to translate
-$strSetupPersistentConnections_name = 'Persistent connections'; //to translate
$strSetupPropertiesIconic_desc = 'Use only icons, only text or both'; //to translate
$strSetupPropertiesIconic_name = 'Iconic table operations'; //to translate
$strSetupProtectBinary_desc = 'Disallow BLOB and BINARY fields from editing'; //to translate
$strSetupProtectBinary_name = 'Protect binary fields'; //to translate
$strSetupQueryHistoryDB_desc = 'Enable if you want DB-based query history (requires pmadb). If disabled, this utilizes JS-routines to display query history (lost by window close).'; //to translate
-$strSetupQueryHistoryDB_name = 'Permanent query history'; //to translate
$strSetupQueryHistoryMax_desc = 'How many queries are kept in history'; //to translate
-$strSetupQueryHistoryMax_name = 'Query history length'; //to translate
$strSetupQueryWindowDefTab_desc = 'Tab displayed when opening a new query window'; //to translate
$strSetupQueryWindowDefTab_name = 'Default query window tab'; //to translate
$strSetupRecodingEngine_desc = 'Select which functions will be used for character set conversion'; //to translate
-$strSetupRecodingEngine_name = 'Recoding engine'; //to translate
-$strSetupRestoreDefaultValue = 'Restore default value'; //to translate
-$strSetupRevertErroneousFields = 'Try to revert erroneous fields to their default values'; //to translate
$strSetupSaveDir_desc = 'Directory where exports can be saved on server'; //to translate
-$strSetupSaveDir_name = 'Save directory'; //to translate
-$strSetupServerAuthConfigMsg = 'You set the [kbd]config[/kbd] authentication type and included username and password for auto-login, which is not a desirable option for live hosts. Anyone who knows or guesses your phpMyAdmin URL can directly access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=%1$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http[/kbd].'; //to translate
-$strSetupServerExtensionMsg = 'You should use mysqli for performance reasons'; //to translate
-$strSetupServerNoPasswordMsg = 'You allow for connecting to the server without a password.'; //to translate
-$strSetupServersAdd = 'Add a new server'; //to translate
$strSetupServers_AllowDeny_order_desc = 'Leave blank if not used'; //to translate
-$strSetupServers_AllowDeny_order_name = 'Host authentication order'; //to translate
$strSetupServers_AllowDeny_rules_desc = 'Leave blank for defaults'; //to translate
-$strSetupServers_AllowDeny_rules_name = 'Host authentication rules'; //to translate
-$strSetupServers_AllowNoPassword_name = 'Allow logins without a password'; //to translate
-$strSetupServers_AllowRoot_name = 'Allow root login'; //to translate
-$strSetupServers_auth_swekey_config_name = 'SweKey config file'; //to translate
$strSetupServers_auth_type_desc = 'Authentication method to use'; //to translate
-$strSetupServers_auth_type_name = 'Authentication type'; //to translate
$strSetupServers_bookmarktable_desc = 'Leave blank for no [a@http://wiki.phpmyadmin.net/pma/bookmark]bookmark[/a] support, suggested: [kbd]pma_bookmark[/kbd]'; //to translate
-$strSetupServers_bookmarktable_name = 'Bookmark table'; //to translate
$strSetupServers_column_info_desc = 'Leave blank for no column comments/mime types, suggested: [kbd]pma_column_info[/kbd]'; //to translate
-$strSetupServers_column_info_name = 'Column information table'; //to translate
$strSetupServers_compress_desc = 'Compress connection to MySQL server'; //to translate
-$strSetupServers_compress_name = 'Compress connection'; //to translate
$strSetupServers_connect_type_desc = 'How to connect to server, keep tcp if unsure'; //to translate
-$strSetupServers_connect_type_name = 'Connection type'; //to translate
-$strSetupServers_controlpass_name = 'Control user password'; //to translate
$strSetupServers_controluser_desc = 'A special MySQL user configured with limited permissions, more information available on [a@http://wiki.phpmyadmin.net/pma/controluser]wiki[/a]'; //to translate
-$strSetupServers_controluser_name = 'Control user'; //to translate
$strSetupServers_CountTables_desc = 'Count tables when showing database list'; //to translate
-$strSetupServers_CountTables_name = 'Count tables'; //to translate
$strSetupServers_designer_coords_desc = 'Leave blank for no Designer support, suggested: [kbd]pma_designer_coords[/kbd]'; //to translate
-$strSetupServers_designer_coords_name = 'Designer table'; //to translate
$strSetupServers_DisableIS_desc = 'More information on [a@http://sf.net/support/tracker.php?aid=1849494]PMA bug tracker[/a] and [a@http://bugs.mysql.com/19588]MySQL Bugs[/a]'; //to translate
-$strSetupServers_DisableIS_name = 'Disable use of INFORMATION_SCHEMA'; //to translate
-$strSetupServerSecurityInfoMsg = 'If you feel this is necessary, use additional protection settings - [a@?page=servers&mode=edit&id=%1$d#tab_Server_config]host authentication[/a] settings and [a@?page=form&formset=features#tab_Security]trusted proxies list[/a]. However, IP-based protection may not be reliable if your IP belongs to an ISP where thousands of users, including you, are connected to.'; //to translate
-$strSetupServersEdit = 'Edit server'; //to translate
-$strSetupServers_extension_name = 'PHP extension to use'; //to translate
$strSetupServers_hide_db_desc = 'Hide databases matching regular expression (PCRE)'; //to translate
-$strSetupServers_hide_db_name = 'Hide databases'; //to translate
$strSetupServers_history_desc = 'Leave blank for no SQL query history support, suggested: [kbd]pma_history[/kbd]'; //to translate
-$strSetupServers_history_name = 'SQL query history table'; //to translate
-$strSetupServers_host_name = 'Server hostname'; //to translate
-$strSetupServers_LogoutURL_name = 'Logout URL'; //to translate
$strSetupServers_nopassword_desc = 'Try to connect without password'; //to translate
-$strSetupServers_nopassword_name = 'Connect without password'; //to translate
$strSetupServers_only_db_desc = 'You can use MySQL wildcard characters (% and _), escape them if you want to use their literal instances, i.e. use \'my\_db\' and not \'my_db\''; //to translate
-$strSetupServers_only_db_name = 'Show only listed databases'; //to translate
$strSetupServers_password_desc = 'Leave empty if not using config auth'; //to translate
-$strSetupServers_password_name = 'Password for config auth'; //to translate
$strSetupServers_pdf_pages_desc = 'Leave blank for no PDF schema support, suggested: [kbd]pma_pdf_pages[/kbd]'; //to translate
-$strSetupServers_pdf_pages_name = 'PDF schema: pages table'; //to translate
$strSetupServers_pmadb_desc = 'Database used for relations, bookmarks, and PDF features. See [a@http://wiki.phpmyadmin.net/pma/pmadb]pmadb[/a] for complete information. Leave blank for no support. Suggested: [kbd]phpmyadmin[/kbd]'; //to translate
-$strSetupServers_pmadb_name = 'PMA database'; //to translate
$strSetupServers_port_desc = 'Port on which MySQL server is listening, leave empty for default'; //to translate
-$strSetupServers_port_name = 'Server port'; //to translate
$strSetupServers_relation_desc = 'Leave blank for no [a@http://wiki.phpmyadmin.net/pma/relation]relation-links[/a] support, suggested: [kbd]pma_relation[/kbd]'; //to translate
-$strSetupServers_relation_name = 'Relation table'; //to translate
$strSetupServers_ShowDatabasesCommand_desc = 'SQL command to fetch available databases'; //to translate
-$strSetupServers_ShowDatabasesCommand_name = 'SHOW DATABASES command'; //to translate
$strSetupServers_SignonSession_desc = 'See [a@http://wiki.phpmyadmin.net/pma/auth_types#signon]authentication types[/a] for an example'; //to translate
-$strSetupServers_SignonSession_name = 'Signon session name'; //to translate
-$strSetupServers_SignonURL_name = 'Signon URL'; //to translate
-$strSetupServerSslMsg = 'You should use SSL connections if your web server supports it'; //to translate
$strSetupServers_socket_desc = 'Socket on which MySQL server is listening, leave empty for default'; //to translate
-$strSetupServers_socket_name = 'Server socket'; //to translate
-$strSetupServers_ssl_desc = ''; //to translate
-$strSetupServers_ssl_name = 'Use SSL'; //to translate
$strSetupServers_table_coords_desc = 'Leave blank for no PDF schema support, suggested: [kbd]pma_table_coords[/kbd]'; //to translate
-$strSetupServers_table_coords_name = 'PDF schema: table coordinates'; //to translate
$strSetupServers_table_info_desc = 'Table to describe the display fields, leave blank for no support; suggested: [kbd]pma_table_info[/kbd]'; //to translate
-$strSetupServers_table_info_name = 'Display fields table'; //to translate
$strSetupServers_user_desc = 'Leave empty if not using config auth'; //to translate
-$strSetupServers_user_name = 'User for config auth'; //to translate
$strSetupServers_verbose_check_desc = 'Disable if you know that your pma_* tables are up to date. This prevents compatibility checks and thereby increases performance'; //to translate
-$strSetupServers_verbose_check_name = 'Verbose check'; //to translate
-$strSetupServers_verbose_name = 'Verbose name of this server'; //to translate
-$strSetupSetValue = 'Set value: %s'; //to translate
$strSetupShowAll_desc = 'Whether a user should be displayed a "show all (records)" button'; //to translate
$strSetupShowAll_name = 'Allow to display all the rows'; //to translate
-$strSetupShowCreateDb_name = 'Show create database form'; //to translate
-$strSetupShowForm = 'Show form'; //to translate
-$strSetupShowFunctionFields_desc = 'Display the function fields in edit/insert mode'; //to translate
-$strSetupShowFunctionFields_name = 'Show function fields'; //to translate
-$strSetupShowHiddenMessages = 'Show hidden messages (#MSG_COUNT)'; //to translate
$strSetupShowChgPassword_desc = 'Please note that enabling this has no effect with [kbd]config[/kbd] authentication mode because the password is hard coded in the configuration file; this does not limit the ability to execute the same command directly'; //to translate
$strSetupShowChgPassword_name = 'Show password change form'; //to translate
+$strSetupShowCreateDb_name = 'Show create database form'; //to translate
+$strSetupShowFunctionFields_desc = 'Display the function fields in edit/insert mode'; //to translate
+$strSetupShowFunctionFields_name = 'Show function fields'; //to translate
$strSetupShowPhpInfo_desc = 'Shows link to [a@http://php.net/manual/function.phpinfo.php]phpinfo()[/a] output'; //to translate
$strSetupShowPhpInfo_name = 'Show phpinfo() link'; //to translate
$strSetupShowServerInfo_name = 'Show detailed MySQL server information'; //to translate
$strSetupShowSQL_desc = 'Defines whether SQL queries generated by phpMyAdmin should be displayed'; //to translate
-$strSetupShowSQL_name = 'Show SQL queries'; //to translate
$strSetupShowStats_desc = 'Allow to display database and table statistics (eg. space usage)'; //to translate
$strSetupShowStats_name = 'Show statistics'; //to translate
$strSetupShowTooltipAliasDB_desc = 'If tooltips are enabled and a database comment is set, this will flip the comment and the real name'; //to translate
@@ -1433,7 +1519,6 @@ $strSetupShowTooltipAliasTB_desc = 'When setting this to [kbd]nested[/kbd], the
$strSetupShowTooltipAliasTB_name = 'Display table comment instead of its name'; //to translate
$strSetupShowTooltip_name = 'Display table comments in tooltips'; //to translate
$strSetupSkipLockedTables_desc = 'Mark used tables and make it possible to show databases with locked tables'; //to translate
-$strSetupSkipLockedTables_name = 'Skip locked tables'; //to translate
$strSetupSQLQuery_Edit_name = 'Edit'; //to translate
$strSetupSQLQuery_Explain_name = 'Explain SQL'; //to translate
$strSetupSQLQuery_Refresh_name = 'Refresh'; //to translate
@@ -1441,47 +1526,35 @@ $strSetupSQLQuery_ShowAsPHP_name = 'Create PHP Code'; //to translate
$strSetupSQLQuery_Validate_name = 'Validate SQL'; //to translate
$strSetupSuggestDBName_desc = 'Suggest a database name on the "Create Database" form (if possible) or keep the text field empty'; //to translate
$strSetupSuggestDBName_name = 'Suggest new database name'; //to translate
-$strSetupTrue = 'yes'; //to translate
$strSetupTrustedProxies_desc = 'Input proxies as [kbd]IP: trusted HTTP header[/kbd]. The following example specifies that phpMyAdmin should trust a HTTP_X_FORWARDED_FOR (X-Forwarded-For) header coming from the proxy 1.2.3.4:[br][kbd]1.2.3.4: HTTP_X_FORWARDED_FOR[/kbd]'; //to translate
-$strSetupTrustedProxies_name = 'List of trusted proxies for IP allow/deny'; //to translate
$strSetupUploadDir_desc = 'Directory on server where you can upload files for import'; //to translate
-$strSetupUploadDir_name = 'Upload directory'; //to translate
$strSetupUseDbSearch_desc = 'Allow for searching inside the entire database'; //to translate
-$strSetupUseDbSearch_name = 'Use database search'; //to translate
$strSetupVerboseMultiSubmit_desc = 'Show affected rows of each statement on multiple-statement queries. See libraries/import.lib.php for defaults on how many queries a statement may contain.'; //to translate
-$strSetupVerboseMultiSubmit_name = 'Verbose multiple statements'; //to translate
-$strSetupVersionCheckDataError = 'Reading of version failed. Maybe you\'re offline or the upgrade server does not respond.'; //to translate
-$strSetupVersionCheckInvalid = 'Got invalid version string from server'; //to translate
-$strSetupVersionCheckLink = 'Check for latest version'; //to translate
-$strSetupVersionCheckNewAvailableSvn = 'You are using subversion version, run [kbd]svn update[/kbd] :-)[br]The latest stable version is %s, released on %s.'; //to translate
-$strSetupVersionCheckNone = 'No newer stable version is available'; //to translate
-$strSetupVersionCheckUnparsable = 'Unparsable version string'; //to translate
-$strSetupVersionCheck = 'Version check'; //to translate
-$strSetupVersionCheckWrapperError = 'Neither URL wrapper nor CURL is available. Version check is not possible.'; //to translate
-$strSetupWarning = 'Warning'; //to translate
$strSetupZipDump_desc = 'Enable [a@http://en.wikipedia.org/wiki/ZIP_(file_format)]ZIP[/a] compression for import and export operations'; //to translate
-$strSetupZipDumpExportWarning = '[a@?page=form&formset=features#tab_Import_export]Zip compression[/a] requires functions (%s) which are unavailable on this system.'; //to translate
-$strSetupZipDumpImportWarning = '[a@?page=form&formset=features#tab_Import_export]Zip decompression[/a] requires functions (%s) which are unavailable on this system.'; //to translate
-$strSetupZipDump_name = 'ZIP'; //to translate
-$strStatic = 'static'; //to translate
-$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
-$strSwekeyAuthenticating = 'Authentisiere ...'; //to translate
-$strTexyText = 'Texy! text'; //to translate
-
-$strViewHasAtLeast = 'This view has at least this number of rows. Please refer to %sdocumentation%s.'; //to translate
-
-$strConfigDirectoryWarning = 'Directory [code]config[/code], which is used by the setup script, still exists in your phpMyAdmin directory. You should remove it once phpMyAdmin has been configured.'; //to translate
-$strRemoveCRLF = 'Remove CRLF characters within fields'; //to translate
-$strDoNotAutoIncrementZeroValues = 'Do not use AUTO_INCREMENT for zero values'; //to translate
-$strAndSmall = 'and'; //to translate
-$strReplicationStatus = 'Replication status'; //to translate
-$strReplicationStatusInfo = 'This MySQL server works as %s in replication process. For further information about replication status on the server, please visit the replication section.'; //to translate
-$strReplicationStatus_master = 'Master status'; //to translate
-$strReplicationStatus_slave = 'Slave status'; //to translate
-$strNavTableFilter = 'Filter'; //to translate
-$strPhpArray = 'PHP array'; //to translate
-$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
-$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
-$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
?>
diff --git a/lang/greek-utf-8.inc.php b/lang/greek-utf-8.inc.php
index b2474e4ee..80785c519 100644
--- a/lang/greek-utf-8.inc.php
+++ b/lang/greek-utf-8.inc.php
@@ -18,24 +18,24 @@ $datefmt = '%d %B %Y, στις %I:%M %p';
// To Arrange
-$timespanfmt = '%s μέρες, %s ώρες, %s λεπτά and %s δευτερόλεπτα';
+$timespanfmt = '%s μέρες, %s ώρες, %s λεπτά and %s δευτερόλεπτα';
-$strAbortedClients = 'Ακυρωμένες συνδέσεις';
-$strAccessDeniedExplanation = 'Το phpMyAdmin προσπάθησε να συνδεθεί με τον διακομιστή MySQL αλλά ο διακομιστής απέριψε τη σύνδεση. Θα πρέπει να ελέγξετε την διεύθυνση, το όνομα χρήστη και τον κωδικό πρόσβασης στο αρχείο ρυθμίσεων config.inc.php και να βεβαιωθείτε ότι αντιστοιχούν σε αυτά που σας έχει δώσει ο διαχειρηστής του διακομιστή MySQL.';
+$strAbortedClients = 'Ακυρωμένες συνδέσεις';
+$strAccessDeniedExplanation = 'Το phpMyAdmin προσπάθησε να συνδεθεί με τον διακομιστή MySQL αλλά ο διακομιστής απέριψε τη σύνδεση. Θα πρέπει να ελέγξετε την διεύθυνση, το όνομα χρήστη και τον κωδικό πρόσβασης στο αρχείο ρυθμίσεων config.inc.php και να βεβαιωθείτε ότι αντιστοιχούν σε αυτά που σας έχει δώσει ο διαχειρηστής του διακομιστή MySQL.';
$strAccessDenied = '\'Αρνηση Πρόσβασης';
$strAction = 'Ενέργεια';
-$strAddAutoIncrement = 'Προσθήκη τιμής AUTO_INCREMENT';
+$strAddAutoIncrement = 'Προσθήκη τιμής AUTO_INCREMENT';
$strAddDeleteColumn = 'Προσθήκη/Αφαίρεση Στήλης Πεδίου';
$strAddDeleteRow = 'Προσθήκη/Αφαίρεση Γραμμής Κριτηρίων';
$strAddIntoComments = 'Προσθήκη στα σχόλια';
$strAddNewField = 'Προσθήκη νέου Πεδίου';
-$strAddPrivilegesOnDb = 'Προσθήκη προνομίων στην ακόλουθη βάση δεδομένων';
-$strAddPrivilegesOnTbl = 'Προσθήκη δεδομένων στον ακόλουθο πίνακα';
+$strAddPrivilegesOnDb = 'Προσθήκη προνομίων στην ακόλουθη βάση δεδομένων';
+$strAddPrivilegesOnTbl = 'Προσθήκη δεδομένων στον ακόλουθο πίνακα';
$strAddSearchConditions = 'Προσθήκη νέου όρου (σώμα της "where" πρότασης):';
$strAddToIndex = 'Προσθήκη στο ευρετήριο %s κολώνας(ων)';
$strAddUserMessage = 'Προσθέσατε ένα νέο χρήστη.';
$strAddUser = 'Προσθήκη νέου Χρήστη';
-$strAdministration = 'Διαχείριση';
+$strAdministration = 'Διαχείριση';
$strAfterInsertBack = 'Επιστροφή';
$strAfterInsertNewInsert = 'Εισαγωγή νέας εγγραφής';
$strAfter = 'Μετά το %s';
@@ -49,18 +49,18 @@ $strAnyHost = 'Οποιοδήποτε Σύστημα';
$strAnyUser = 'Οποιοσδήποτε Χρήστης';
$strAny = 'Οποιοδήποτε';
$strAPrimaryKey = 'Ένα πρωτεύον κλειδί προστέθηκε στο %s';
-$strArabic = 'Αραβικά';
-$strArmenian = 'Αρμενικά';
+$strArabic = 'Αραβικά';
+$strArmenian = 'Αρμενικά';
$strAscending = 'Αύξουσα';
$strAtBeginningOfTable = 'Στην αρχή του Πίνακα';
$strAtEndOfTable = 'Στο τέλος του Πίνακα';
$strAttr = 'Χαρακτηριστικά';
-$strAutomaticLayout = 'Αυτόματη διάταξη';
+$strAutomaticLayout = 'Αυτόματη διάταξη';
$strBack = 'Επιστροφή';
-$strBaltic = 'Βαλτικής';
-$strBeginCut = 'BEGIN CUT';
-$strBeginRaw = 'BEGIN RAW';
+$strBaltic = 'Βαλτικής';
+$strBeginCut = 'BEGIN CUT';
+$strBeginRaw = 'BEGIN RAW';
$strBinaryDoNotEdit = 'Δυαδικό - χωρίς δυνατότητα επεξεργασίας';
$strBinary = 'Δυαδικό';
$strBookmarkDeleted = 'Η ετικέτα διεγράφη.';
@@ -69,196 +69,196 @@ $strBookmarkQuery = 'Αποθηκευμένο επερώτημα SQL';
$strBookmarkThis = 'Αποθήκευση αυτού του επερωτήματος SQL';
$strBookmarkView = 'Μόνο ανάγνωση';
$strBrowse = 'Περιήγηση';
-$strBulgarian = 'Βουλγαρικά';
+$strBulgarian = 'Βουλγαρικά';
$strBzip = 'συμπίεση «bzip»';
-$strCannotLogin = 'Δεν ήταν δυνατή η σύνδεση με τον διακομιστή MySQL';
-$strCantLoadRecodeIconv = 'Δεν είναι δυνατή η φόρτωση της επέκτασης iconv ή recode που χρειάζεται για την μετατροπή του σετ χαρακτήρων. Ρυθμίστε την php να επιτρέπει την χρήση αυτών των επεκτάσεων ή απανεργοποιήστε την μετατροπή χαρακτήρων στο phpMyAdmin.';
-$strCantLoad = 'δεν ήταν δυνατή η φόρτωση της επέκτασης %s , παρακαλώ ελέγξτε τις ρυθμίσεις της PHP';
+$strCannotLogin = 'Δεν ήταν δυνατή η σύνδεση με τον διακομιστή MySQL';
+$strCantLoadRecodeIconv = 'Δεν είναι δυνατή η φόρτωση της επέκτασης iconv ή recode που χρειάζεται για την μετατροπή του σετ χαρακτήρων. Ρυθμίστε την php να επιτρέπει την χρήση αυτών των επεκτάσεων ή απανεργοποιήστε την μετατροπή χαρακτήρων στο phpMyAdmin.';
+$strCantLoad = 'δεν ήταν δυνατή η φόρτωση της επέκτασης %s , παρακαλώ ελέγξτε τις ρυθμίσεις της PHP';
$strCantRenameIdxToPrimary = 'Η μετονομασία του ευρετηρίου σε PRIMARY σε είναι εφικτή!';
-$strCantUseRecodeIconv = 'Δεν είναι δυνατή η χρήση της επέκτασης iconv ούτε της libiconv ούτε της ρουτίνας recode_string, ενώ η επέκταση έχει φορτωθεί. Ελέξτε τις ρυθμίσεις της php.';
+$strCantUseRecodeIconv = 'Δεν είναι δυνατή η χρήση της επέκτασης iconv ούτε της libiconv ούτε της ρουτίνας recode_string, ενώ η επέκταση έχει φορτωθεί. Ελέξτε τις ρυθμίσεις της php.';
$strCardinality = 'Μοναδικότητα';
-$strCentralEuropean = 'Κεντρικής Ευρώπης';
-$strChangeCopyModeCopy = '... διατήρηση του παλιού χρήστη.';
-$strChangeCopyModeDeleteAndReload = ' ... διαγραφή του παλιού χρήστη από τους πίνακες χρηστών και επαναφόρτωση των προνομίων.';
-$strChangeCopyModeJustDelete = ' ... διαγραφή του παλιού χρήστη από τους πίνακες χρηστών.';
-$strChangeCopyModeRevoke = ' ... ανάκληση των προνομίων του παλιού χρήστη και διαγραφή του.';
-$strChangeCopyMode = 'Δημιουργία νέα χρήστη με τα ίδια προνόμια και ...';
-$strChangeCopyUser = 'Αλλαγή Στοιχείων Πρόσβασης / Αντιγραφή Χρήστη';
+$strCentralEuropean = 'Κεντρικής Ευρώπης';
+$strChangeCopyModeCopy = '... διατήρηση του παλιού χρήστη.';
+$strChangeCopyModeDeleteAndReload = ' ... διαγραφή του παλιού χρήστη από τους πίνακες χρηστών και επαναφόρτωση των προνομίων.';
+$strChangeCopyModeJustDelete = ' ... διαγραφή του παλιού χρήστη από τους πίνακες χρηστών.';
+$strChangeCopyModeRevoke = ' ... ανάκληση των προνομίων του παλιού χρήστη και διαγραφή του.';
+$strChangeCopyMode = 'Δημιουργία νέα χρήστη με τα ίδια προνόμια και ...';
+$strChangeCopyUser = 'Αλλαγή Στοιχείων Πρόσβασης / Αντιγραφή Χρήστη';
$strChangeDisplay = 'Επιλέξτε πεδίο για εμφάνιση';
$strChangePassword = 'Αλλαγή κωδικού πρόσβασης';
$strChange = 'Αλλαγή';
-$strCharsetOfFile = 'Σετ χαρακτήρων του αρχείου:';
-$strCharsets = 'Σετ χαρακτήρων';
-$strCharset = 'Σετ χαρακτήρων';
+$strCharsetOfFile = 'Σετ χαρακτήρων του αρχείου:';
+$strCharsets = 'Σετ χαρακτήρων';
+$strCharset = 'Σετ χαρακτήρων';
$strCheckAll = 'Επιλογή όλων';
-$strCheckPrivsLong = 'Έλεγχος προνομίων για τη βάση "%s".';
-$strCheckPrivs = 'Έλεγχος Προνομίων';
+$strCheckPrivsLong = 'Έλεγχος προνομίων για τη βάση "%s".';
+$strCheckPrivs = 'Έλεγχος Προνομίων';
$strCheckTable = 'Έλεγχος πίνακα';
-$strChoosePage = 'Παρακαλώ επιλέξτε σελίδα για αλλαγή';
+$strChoosePage = 'Παρακαλώ επιλέξτε σελίδα για αλλαγή';
$strColComFeat = 'Εμφάνιση σχολίων πεδίων';
$strColumnNames = 'Ονόματα στηλών';
-$strColumnPrivileges = 'Προνόμια πεδίων';
-$strCommand = 'Εντολή';
-$strComments = 'Σχόλια';
+$strColumnPrivileges = 'Προνόμια πεδίων';
+$strCommand = 'Εντολή';
+$strComments = 'Σχόλια';
$strCompleteInserts = 'Ολοκληρωμένες εντολές «Insert»';
-$strCompression = 'Συμπίεση';
-$strConfigFileError = 'Το phpMyAdmin δεν μπόρεσε να διαβάσει το αρχείο ρυθμίσεων! Αυτό μπορεί να συμβεί εάν η php βρει κάποιο λάθος στο αρχείο ή εάν η php δεν μπορεί να βρει το αρχείο. Παρακαλώ καλέστε το αρχείο ρυθμίσεων απ\' ευθείας χρησιμοποιώντας το ακόλουθο link και διαβάστε τα μυνήματα λάθους που θα επιστρέψει η php. Στις περισσότερες περιπτώσεις κάπου λείπουν εισαγωγικά (") ή ερωτιματικά (;). Εάν η php επιστρέψει μια λευκή σελίδα, όλα είναι σωστά.';
-$strConfigureTableCoord = 'Παρακαλώ ορίστε τις συντεταγμένες για τον πίνακα %s';
-$strConnections = 'Συνδέσεις';
+$strCompression = 'Συμπίεση';
+$strConfigFileError = 'Το phpMyAdmin δεν μπόρεσε να διαβάσει το αρχείο ρυθμίσεων! Αυτό μπορεί να συμβεί εάν η php βρει κάποιο λάθος στο αρχείο ή εάν η php δεν μπορεί να βρει το αρχείο. Παρακαλώ καλέστε το αρχείο ρυθμίσεων απ\' ευθείας χρησιμοποιώντας το ακόλουθο link και διαβάστε τα μυνήματα λάθους που θα επιστρέψει η php. Στις περισσότερες περιπτώσεις κάπου λείπουν εισαγωγικά (") ή ερωτιματικά (;). Εάν η php επιστρέψει μια λευκή σελίδα, όλα είναι σωστά.';
+$strConfigureTableCoord = 'Παρακαλώ ορίστε τις συντεταγμένες για τον πίνακα %s';
+$strConnections = 'Συνδέσεις';
$strCookiesRequired = 'Από αυτό το σημείο πρέπει να έχετε ενεργοποιημένα cookies.';
$strCopyTableOK = 'Ο Πίνακας %s αντιγράφηκε στο %s.';
-$strCopyTableSameNames = 'Δεν είναι δυνατή η αντιγραφή του πίνακα στον εαυτό του!';
+$strCopyTableSameNames = 'Δεν είναι δυνατή η αντιγραφή του πίνακα στον εαυτό του!';
$strCopyTable = 'Αντιγραφή πίνακα σε (βάση.πίνακας):';
-$strCouldNotKill = 'Το phpMyAdmin δεν μπόρεσε να διακόψει τη λειτουργία %s. Μπορεί να έχει ήδη σταματήσει.';
+$strCouldNotKill = 'Το phpMyAdmin δεν μπόρεσε να διακόψει τη λειτουργία %s. Μπορεί να έχει ήδη σταματήσει.';
$strCreateIndexTopic = 'Δημιουργία νέου ευρετηρίου';
$strCreateIndex = 'Δημιουργία ευρετηρίου σε %s πεδία';
$strCreateNewDatabase = 'Δημιουργία νέας βάσης';
$strCreateNewTable = 'Δημιουργία νέου πίνακα στη βάση %s';
-$strCreatePage = 'Δημιουργία νέας σελίδας';
+$strCreatePage = 'Δημιουργία νέας σελίδας';
$strCreatePdfFeat = 'Δημιουργία αρχείων PDF';
$strCreate = 'Δημιουργία';
$strCriteria = 'Κριτήρια';
-$strCroatian = 'Κροατικά';
-$strCyrillic = 'Κυριλλικά';
-$strCzech = 'Τσεχικά';
+$strCroatian = 'Κροατικά';
+$strCyrillic = 'Κυριλλικά';
+$strCzech = 'Τσεχικά';
-$strDanish = 'Δανικά';
+$strDanish = 'Δανικά';
$strDatabaseExportOptions = 'Επιλογές εξαγωγής βάσης δεδομένων';
$strDatabaseHasBeenDropped = 'Η βάση δεδομένων %s διεγράφη.';
-$strDatabasesDropped = '%s βάσεις δεδομένων διεγράφησαν επιτυχώς.';
-$strDatabasesStatsDisable = 'Απενεργοποίηση Στατιστικών';
-$strDatabasesStatsEnable = 'Ενεργοποίηση Στατιστικών';
-$strDatabasesStatsHeavyTraffic = 'Σημείωση: Η ενεργοποίηση στατιστικών μπορεί να προκαλέσει μεγάλη μεταφορά δεδομένων μεταξύ του διακομιστή διαδικτύου και του διακομιστή MySQL.';
+$strDatabasesDropped = '%s βάσεις δεδομένων διεγράφησαν επιτυχώς.';
+$strDatabasesStatsDisable = 'Απενεργοποίηση Στατιστικών';
+$strDatabasesStatsEnable = 'Ενεργοποίηση Στατιστικών';
+$strDatabasesStatsHeavyTraffic = 'Σημείωση: Η ενεργοποίηση στατιστικών μπορεί να προκαλέσει μεγάλη μεταφορά δεδομένων μεταξύ του διακομιστή διαδικτύου και του διακομιστή MySQL.';
$strDatabasesStats = 'Στατιστικά βάσης';
$strDatabases = 'Βάσεις Δεδομένων';
$strDatabase = 'Βάση';
-$strDataDict = 'Λεξικό δεδομένων';
+$strDataDict = 'Λεξικό δεδομένων';
$strDataOnly = 'Μόνο τα δεδομένα';
$strData = 'Δεδομένα';
$strDBComment = 'Σχόλιο βάσης: ';
-$strDbPrivileges = 'Προνόμια βάσης δεδομένων';
-$strDbSpecific = 'Χρήστης Βάσης';
-$strDefaultValueHelp = 'Για προκαθορισμένες τιμές, παρακαλώ εισάγετε μία τιμή, χωρίς χαρακτήρες διαφυγής ή εισαγωγικά, χρησιμοποιώντας τη μορφή: a';
+$strDbPrivileges = 'Προνόμια βάσης δεδομένων';
+$strDbSpecific = 'Χρήστης Βάσης';
+$strDefaultValueHelp = 'Για προκαθορισμένες τιμές, παρακαλώ εισάγετε μία τιμή, χωρίς χαρακτήρες διαφυγής ή εισαγωγικά, χρησιμοποιώντας τη μορφή: a';
$strDefault = 'Προκαθορισμένο';
-$strDeleteAndFlushDescr = 'Αυτός είναι ο πιο "καθαρός" τρόπος, αλλά η επαναφόρτωση των προνομίων μπορεί να καθυστερήσει.';
-$strDeleteAndFlush = 'Διαγραφή των χρηστών και επαναφόρτωση των προνομίων.';
+$strDeleteAndFlushDescr = 'Αυτός είναι ο πιο "καθαρός" τρόπος, αλλά η επαναφόρτωση των προνομίων μπορεί να καθυστερήσει.';
+$strDeleteAndFlush = 'Διαγραφή των χρηστών και επαναφόρτωση των προνομίων.';
$strDeleted = 'Η Εγγραφή έχει διαγραφεί';
$strDelete = 'Διαγραφή';
-$strDeleting = 'Διαγραφή %s';
-$strDelOld = 'Η τρέχουσα σελίδα έχει αναφορές σε πίνακες που δεν υπάρχουν πια. Θέλετε να διαγραφές αυτές οι αναφορές;';
+$strDeleting = 'Διαγραφή %s';
+$strDelOld = 'Η τρέχουσα σελίδα έχει αναφορές σε πίνακες που δεν υπάρχουν πια. Θέλετε να διαγραφές αυτές οι αναφορές;';
$strDescending = 'Φθίνουσα';
-$strDescription = 'Περιγραφή';
-$strDictionary = 'λεξικό';
+$strDescription = 'Περιγραφή';
+$strDictionary = 'λεξικό';
$strDisabled = 'Απενεργοποιημένο';
$strDisplayFeat = 'Λειτουργίες εμφάνισης';
$strDisplayOrder = 'Σειρά εμφάνισης:';
-$strDisplayPDF = 'Εμφάνιση σχήματος PDF';
+$strDisplayPDF = 'Εμφάνιση σχήματος PDF';
$strDoAQuery = 'Εκτέλεσε ένα «επερώτημα κατά παράδειγμα» (χαρακτήρας μπαλαντέρ "%")';
$strDocu = 'Τεκμηρίωση';
$strDoYouReally = 'Θέλετε να εκτελέσετε την εντολή';
-$strDropUsersDb = 'Διαγραφή βάσεων δεδομένων που έχουν ίδια ονόματα με χρήστες.';
+$strDropUsersDb = 'Διαγραφή βάσεων δεδομένων που έχουν ίδια ονόματα με χρήστες.';
$strDrop = 'Διαγραφή';
$strDumpingData = '\'Αδειασμα δεδομένων του πίνακα';
-$strDumpSaved = 'Το αρχείο εξόδου αποθηκεύτηκε ως %s.';
-$strDumpXRows = 'Εμφάνιση %s εγγραφών ξεκινώντας από την εγγραφή %s.';
+$strDumpSaved = 'Το αρχείο εξόδου αποθηκεύτηκε ως %s.';
+$strDumpXRows = 'Εμφάνιση %s εγγραφών ξεκινώντας από την εγγραφή %s.';
$strDynamic = 'δυναμικά';
-$strEditPDFPages = 'Αλλαγή σελίδων PDF';
+$strEditPDFPages = 'Αλλαγή σελίδων PDF';
$strEditPrivileges = 'Επεξεργασία Προνομίων';
$strEdit = 'Επεξεργασία';
$strEffective = 'Αποτελεσματικός';
$strEmptyResultSet = 'Η MySQL επέστρεψε ένα άδειο σύνολο αποτελεσμάτων (π.χ. καμμία εγγραφή).';
$strEmpty = '\'Αδειασμα';
$strEnabled = 'Ενεργοποιημένο';
-$strEndCut = 'END CUT';
-$strEndRaw = 'END RAW';
+$strEndCut = 'END CUT';
+$strEndRaw = 'END RAW';
$strEnd = 'Τέλος';
$strEnglishPrivileges = ' Σημείωση: Τα ονόματα προνομίων της MySQL εκφράζονται στα Αγγλικά ';
-$strEnglish = 'Αγγλικά';
+$strEnglish = 'Αγγλικά';
$strError = 'λάθος';
-$strEstonian = 'Εσθονικά';
-$strExecuteBookmarked = 'Εκτέλεση αποθηκευμένου επερωτήματος';
-$strExplain = 'Ανάλυση SQL';
-$strExport = 'Εξαγωγή';
+$strEstonian = 'Εσθονικά';
+$strExecuteBookmarked = 'Εκτέλεση αποθηκευμένου επερωτήματος';
+$strExplain = 'Ανάλυση SQL';
+$strExport = 'Εξαγωγή';
$strExtendedInserts = 'Εκτεταμένες εντολές «Insert»';
$strExtra = 'Πρόσθετα';
-$strFailedAttempts = 'Αποτυχημένες προσπάθειες';
+$strFailedAttempts = 'Αποτυχημένες προσπάθειες';
$strFieldHasBeenDropped = 'Το πεδίο %s διεγράφη';
$strFieldsEnclosedBy = 'Πεδία που περικλείονται σε';
$strFieldsEscapedBy = 'Τα πεδία χρησιμοποιούν το χαρακτήρα διαφυγής ';
$strFieldsTerminatedBy = 'Πεδία που τελειώνουν σε';
$strFields = 'Πεδία';
$strField = 'Πεδίο';
-$strFileAlreadyExists = 'Το αρχείο %s υπάρχει ήδη στον διακομιστή. Επιλέξτε διαφορετικό όνομα αρχείου ή ενεργοποιήστε την επιλογή αντικατάστασης.';
-$strFileCouldNotBeRead = 'Δεν ήταν δυνατή η ανάγνωση του αρχείου';
+$strFileAlreadyExists = 'Το αρχείο %s υπάρχει ήδη στον διακομιστή. Επιλέξτε διαφορετικό όνομα αρχείου ή ενεργοποιήστε την επιλογή αντικατάστασης.';
+$strFileCouldNotBeRead = 'Δεν ήταν δυνατή η ανάγνωση του αρχείου';
$strFileNameTemplateRemember = 'αποθήκευση μορφής';
$strFileNameTemplate = 'Μορφή ονόματος αρχείου';
-$strFlushPrivilegesNote = 'Σημείωση: Το phpMyAdmin διαβάζει τα προνόμια των χρηστών απ\' ευθείεας από τους πίνακες προνομίων της MySQL. Το περιεχόμενο αυτών των πινάκων μπορεί να διαφέρει από τα προνόμια που χρησιμοποιεί ο διακομιστής εάν έχουν γίνει αλλαγές χειροκίνητα. Σε αυτήν την περίπτωση, θα πρέπει να %sεπαναφορτώσετε τα προνόμια%s πριν συνεχίσετε.';
+$strFlushPrivilegesNote = 'Σημείωση: Το phpMyAdmin διαβάζει τα προνόμια των χρηστών απ\' ευθείεας από τους πίνακες προνομίων της MySQL. Το περιεχόμενο αυτών των πινάκων μπορεί να διαφέρει από τα προνόμια που χρησιμοποιεί ο διακομιστής εάν έχουν γίνει αλλαγές χειροκίνητα. Σε αυτήν την περίπτωση, θα πρέπει να %sεπαναφορτώσετε τα προνόμια%s πριν συνεχίσετε.';
$strFlushTable = 'Εκκαθάριση ("FLUSH") πίνακα';
$strFormat = 'Μορφοποίηση';
$strFormEmpty = 'Ελλειπής τιμή στο πεδίο !';
$strFullText = 'Πλήρη κείμενα';
$strFunction = 'Έλεγχος';
-$strGenBy = 'Δημιουργήθηκε από:';
+$strGenBy = 'Δημιουργήθηκε από:';
$strGeneralRelationFeat = 'Γενικές λειτουργίες συσχέτισης';
$strGenTime = 'Χρόνος δημιουργίας';
-$strGerman = 'Γερμανικά';
-$strGlobalPrivileges = 'Γενικά προνόμια';
-$strGlobalValue = 'Γενική τιμή';
-$strGlobal = 'Γενικός';
+$strGerman = 'Γερμανικά';
+$strGlobalPrivileges = 'Γενικά προνόμια';
+$strGlobalValue = 'Γενική τιμή';
+$strGlobal = 'Γενικός';
$strGo = 'Εκτέλεση';
$strGrantOption = 'Χορήγηση'; // Grant
-$strGreek = 'Ελληνικά';
+$strGreek = 'Ελληνικά';
$strGzip = 'συμπίεση «gzip»';
$strHasBeenAltered = 'έχει αλλαχθεί.';
-$strHaveToShow = 'Πρέπει να επιλέξετε τουλάχιστον μία στήλη για εμφάνιση';
-$strHebrew = 'Εβραϊκά';
+$strHaveToShow = 'Πρέπει να επιλέξετε τουλάχιστον μία στήλη για εμφάνιση';
+$strHebrew = 'Εβραϊκά';
$strHomepageOfficial = 'Επίσημη σελίδα του phpMyAdmin';
$strHome = 'Κεντρική σελίδα';
$strHostEmpty = 'Το όνομα του Συστήματος είναι κενό!';
$strHost = 'Σύστημα';
-$strHungarian = 'Ουγγρικά';
+$strHungarian = 'Ουγγρικά';
-$strId = 'ID';
+$strId = 'ID';
$strIdxFulltext = 'Πλήρες κείμενο';
$strIgnore = 'Παράληψη';
-$strImportFiles = 'Εισαγωγή αρχείων';
+$strImportFiles = 'Εισαγωγή αρχείων';
$strIndexes = 'Ευρετήρια';
$strIndexHasBeenDropped = 'Το ευρετήριο %s διεγράφη';
$strIndexName = 'Όνομα ευρετηρίου :';
$strIndexType = 'Τύπος ευρετηρίου :';
$strIndex = 'Ευρετήριο';
-$strInnodbStat = 'Κατάσταση InnoDB';
-$strInsecureMySQL = 'Το αρχείο ρυθμίσεών σας περιέχει ρυθμίσεις (χρήστης root χωρίς κωδικό πρόσβασης) που αντιστοιχούν στον εξ\' ορισμού λογαριασμό χρήστη MySQL. Ο διακομιστής MySQL σας που τρέχει με αυτή τη ρύθμιση, είναι ανοιχτός σε επιθέσεις και θα πρέπει να διορθώσετε το πρόβλημα.';
+$strInnodbStat = 'Κατάσταση InnoDB';
+$strInsecureMySQL = 'Το αρχείο ρυθμίσεών σας περιέχει ρυθμίσεις (χρήστης root χωρίς κωδικό πρόσβασης) που αντιστοιχούν στον εξ\' ορισμού λογαριασμό χρήστη MySQL. Ο διακομιστής MySQL σας που τρέχει με αυτή τη ρύθμιση, είναι ανοιχτός σε επιθέσεις και θα πρέπει να διορθώσετε το πρόβλημα.';
$strInsertAsNewRow = 'Εισαγωγή ως νέα εγγραφές';
$strInsert = 'Εισαγωγή';
$strInUse = 'σε χρήση';
-$strJapanese = 'Ιαπωνικά';
-$strJumpToDB = 'Μεταπήδηση στην βάση "%s".';
-$strJustDeleteDescr = 'Οι "διεγραμμένοι" χρήστες θα συνεχίσουν να έχουν πρόσβαση στον διακομιστή μέχρις ότου να επαναφορτωθούν οι πίνακες προνομίων.';
-$strJustDelete = 'Απλή διαγραφή των χρηστών από τους πίνακες προνομίων.';
+$strJapanese = 'Ιαπωνικά';
+$strJumpToDB = 'Μεταπήδηση στην βάση "%s".';
+$strJustDeleteDescr = 'Οι "διεγραμμένοι" χρήστες θα συνεχίσουν να έχουν πρόσβαση στον διακομιστή μέχρις ότου να επαναφορτωθούν οι πίνακες προνομίων.';
+$strJustDelete = 'Απλή διαγραφή των χρηστών από τους πίνακες προνομίων.';
$strKeepPass = 'Διατήρηση κωδικού πρόσβασης';
$strKeyname = 'Όνομα κλειδιού';
$strKill = 'Τερματισμός';
-$strKorean = 'Κορεατικά';
+$strKorean = 'Κορεατικά';
-$strLandscape = 'Οριζόντια διάταξη';
-$strLaTeX = 'LaTeX';
+$strLandscape = 'Οριζόντια διάταξη';
+$strLaTeX = 'LaTeX';
$strLengthSet = 'Μήκος/Τιμές*';
$strLimitNumRows = 'Εγγραφές ανά σελίδα';
$strLinesTerminatedBy = 'Γραμμές που τελειώνουν σε';
-$strLinkNotFound = 'Δεν βρέθηκε η σύνδεση';
-$strLinksTo = 'Σύνδεση με';
-$strLithuanian = 'Λιθουανικά';
+$strLinkNotFound = 'Δεν βρέθηκε η σύνδεση';
+$strLinksTo = 'Σύνδεση με';
+$strLithuanian = 'Λιθουανικά';
$strLocalhost = 'Τοπικό';
$strLocationTextfile = 'Τοποθεσία του αρχείου κειμένου';
-$strLoginInformation = 'Πληροφορίες Σύνδεσης';
+$strLoginInformation = 'Πληροφορίες Σύνδεσης';
$strLogin = 'Σύνδεση';
$strLogout = 'Αποσύνδεση';
$strLogPassword = 'Κωδικός πρόσβασης:';
@@ -278,20 +278,20 @@ $strModifications = 'Οι αλλαγές αποθηκεύτηκαν';
$strModifyIndexTopic = 'Αλλαγή ενός ευρετηρίου';
$strModify = 'Τροποποίηση';
$strMoveTableOK = 'Ο πίνακας %s μεταφέρθηκε στο %s.';
-$strMoveTableSameNames = 'Δεν είναι δυνατή η μεταφορά του πίνακα στον εαυτό του!';
+$strMoveTableSameNames = 'Δεν είναι δυνατή η μεταφορά του πίνακα στον εαυτό του!';
$strMoveTable = 'Μεταφορά πίνακα σε (βάση.πίνακας):';
-$strMultilingual = 'πολυγλωσσικό';
-$strMySQLCharset = 'Σετ χαρακτήρων της MySQL';
+$strMultilingual = 'πολυγλωσσικό';
+$strMySQLCharset = 'Σετ χαρακτήρων της MySQL';
$strMySQLSaid = 'Η MySQL επέστρεψε το μύνημα: ';
$strMySQLShowProcess = 'Εμφάνιση διεργασιών';
$strName = 'Όνομα';
$strNext = 'Επόμενο';
-$strNoDatabasesSelected = 'Δεν έχετε επιλέξει βάσεις.';
+$strNoDatabasesSelected = 'Δεν έχετε επιλέξει βάσεις.';
$strNoDatabases = 'Δεν υπάρχουν βάσεις δεδομένων';
-$strNoDescription = 'χωρίς περιγραφή';
+$strNoDescription = 'χωρίς περιγραφή';
$strNoDropDatabases = 'Οι εντολές «DROP DATABASE» έχουν απενεργοποιηθεί.';
-$strNoExplain = 'Χωρίς ανάλυση SQL';
+$strNoExplain = 'Χωρίς ανάλυση SQL';
$strNoFrames = 'Το phpMyAdmin είναι πιο φιλικό με έναν browser που υποστηρίζει frames.';
$strNoIndexPartsDefined = 'Δεν ορίστηκαν τα στοιχεία του ευρετηρίου!';
$strNoIndex = 'Δεν ορίστηκε ευρετήριο!';
@@ -299,49 +299,49 @@ $strNoModification = 'Χωρίς αλλαγή';
$strNone = 'Κανένα';
$strNoOptions = 'Αυτή η μορφή δεν έχει επιλογές';
$strNoPassword = 'Χωρίς Κωδικό Πρόσβασης';
-$strNoPermission = 'Ο διακομιστής δεν έχει δικαιώματα αποθήκευσης του αρχείου %s.';
-$strNoPhp = 'χωρίς κώδικα PHP';
+$strNoPermission = 'Ο διακομιστής δεν έχει δικαιώματα αποθήκευσης του αρχείου %s.';
+$strNoPhp = 'χωρίς κώδικα PHP';
$strNoPrivileges = 'Χωρίς Προνόμια';
$strNoRights = 'Δεν έχετε αρκετά δικαιώματα να είσαστε εδώ τώρα!';
-$strNoSpace = 'Δεν υπάρχει διαθέσιμος χώρος για την αποθήκευση του αρχείου %s.';
+$strNoSpace = 'Δεν υπάρχει διαθέσιμος χώρος για την αποθήκευση του αρχείου %s.';
$strNoTablesFound = 'Δεν βρέθηκαν Πίνακες στη βάση.';
$strNotNumber = 'Αυτό δεν είναι αριθμός!';
$strNotOK = 'ΛΑΘΟΣ';
-$strNotSet = 'Ο πίνακας %s δεν βρέθηκε ή δεν ορίστηκε στη %s';
+$strNotSet = 'Ο πίνακας %s δεν βρέθηκε ή δεν ορίστηκε στη %s';
$strNoUsersFound = 'Δεν βρέθηκαν χρήστες.';
-$strNoValidateSQL = 'Skip Validate SQL';
+$strNoValidateSQL = 'Skip Validate SQL';
$strNo = 'Όχι';
$strNull = 'Κενό';
$strNumSearchResultsInTable = '%s αποτελέσματα στον πίνακα %s';
$strNumSearchResultsTotal = 'Σύνολο:%s αποτελέσματα';
-$strNumTables = 'Πίνακες';
+$strNumTables = 'Πίνακες';
$strOK = 'OK';
-$strOperations = 'Λειτουργίες';
+$strOperations = 'Λειτουργίες';
$strOptimizeTable = 'Βελτιστοποίηση Πίνακα';
$strOr = 'Ή';
$strOverhead = 'Επιβάρυνση';
-$strOverwriteExisting = 'Αντικατάσταση υπαρχόντων αρχείων';
+$strOverwriteExisting = 'Αντικατάσταση υπαρχόντων αρχείων';
-$strPageNumber = 'Σελίδα:';
-$strPaperSize = 'Μέγεθος χαρτιού';
+$strPageNumber = 'Σελίδα:';
+$strPaperSize = 'Μέγεθος χαρτιού';
$strPartialText = 'Επιμέρους κείμενα';
-$strPasswordChanged = 'Ο Κωδικός Πρόσβασης για τον χρήστη %s άλλαξε επιτυχώς.';
+$strPasswordChanged = 'Ο Κωδικός Πρόσβασης για τον χρήστη %s άλλαξε επιτυχώς.';
$strPasswordEmpty = 'Ο Κωδικός Πρόσβασης είναι κενός!';
$strPasswordNotSame = 'Οι κωδικοί πρόσβασης δεν είναι ίδιοι!';
$strPassword = 'Κωδικός Πρόσβασης';
-$strPdfDbSchema = 'Σχήμα της βάσης "%s" - Σελίδα %s';
-$strPdfInvalidTblName = 'Ο πίνακας "%s" δεν υπάρχει!';
+$strPdfDbSchema = 'Σχήμα της βάσης "%s" - Σελίδα %s';
+$strPdfInvalidTblName = 'Ο πίνακας "%s" δεν υπάρχει!';
$strPdfNoTables = 'Δεν υπάρχουν πίνακες';
-$strPerHour = 'ανά ώρα';
+$strPerHour = 'ανά ώρα';
$strPerMinute = 'ανά λεπτό';
$strPerSecond = 'ανά δευτερόλεπτο';
-$strPhoneBook = 'τηλ. κατάλογος';
+$strPhoneBook = 'τηλ. κατάλογος';
$strPHPVersion = 'Έκδοση PHP';
-$strPhp = 'Δημιουργία κώδικα PHP';
+$strPhp = 'Δημιουργία κώδικα PHP';
$strPmaDocumentation = 'Τεκμηρίωση phpMyAdmin';
$strPmaUriError = 'Η εντολή $cfg[\'PmaAbsoluteUri\'] ΠΡΕΠΕΙ να οριστεί στο αρχείο ρυθμίσεων!';
-$strPortrait = 'Κάθετη διάταξη';
+$strPortrait = 'Κάθετη διάταξη';
$strPos1 = 'Αρχή';
$strPrevious = 'Προηγούμενο';
$strPrimaryKeyHasBeenDropped = 'Το πρωτεύον κλειδί διεγράφη';
@@ -349,39 +349,39 @@ $strPrimaryKeyName = 'Το όνομα του πρωτεύοντος κλειδι
$strPrimaryKeyWarning = '("PRIMARY" πρέπει να είναι το όνομα του πρωτεύοντος κλειδιού και μόνο αυτού !)';
$strPrimary = 'Πρωτεύον';
$strPrintView = 'Εμφάνιση για εκτύπωση';
-$strPrint = 'Εκτύπωση';
-$strPrivDescAllPrivileges = 'Περιλαμβάνει όλα τα προνόμια εκτός από το GRANT.';
-$strPrivDescAlter = 'Επιτρέπει την αλλαγή δομής των υπαρχόντων πινάκων.';
-$strPrivDescCreateDb = 'Επιτρέπει τη δημιουργία νέων βάσεων και πινάκων.';
-$strPrivDescCreateTbl = 'Επιτρέπει τη δημιουργία νέων πινάκων.';
-$strPrivDescCreateTmpTable = 'Επιτρέπει τη δημιουργία προσωρινών πινάκων.';
-$strPrivDescDelete = 'Επιτρέπει τη διαγραφή δεδομένων.';
-$strPrivDescDropDb = 'Επιτρέπει τη διαγραφή βάσεων και πινάκων.';
-$strPrivDescDropTbl = 'Επιτρέπει τη διαγραφή πινάκων.';
-$strPrivDescExecute = 'Επιτρέπει την εκτέλεση αποθηκευμένων ρουτινών. Δεν έχει χρήση σε αυτήν την έκδοση MySQL version.';
-$strPrivDescFile = 'Επιτρέπει την εισαγωγή και εξαγωγή δεδομένων από και σε αρχεία.';
-$strPrivDescGrant = 'Επιτρέπει την προσθήκη χρηστών και προνομίων χωρίς να επαναφορτώσετε τους πίνακες προνομίων.';
-$strPrivDescIndex = 'Επιτρέπει την δημιουργία και την διαγραφή ευρετηρίων.';
-$strPrivDescInsert = 'Επιτρέπει την εισαγωγή και την αντικατάσταση δεδομένων.';
-$strPrivDescLockTables = 'Επιτρέπει το κλείδωμα πινάκων για την τρέχουσα λειτουργία.';
+$strPrint = 'Εκτύπωση';
+$strPrivDescAllPrivileges = 'Περιλαμβάνει όλα τα προνόμια εκτός από το GRANT.';
+$strPrivDescAlter = 'Επιτρέπει την αλλαγή δομής των υπαρχόντων πινάκων.';
+$strPrivDescCreateDb = 'Επιτρέπει τη δημιουργία νέων βάσεων και πινάκων.';
+$strPrivDescCreateTbl = 'Επιτρέπει τη δημιουργία νέων πινάκων.';
+$strPrivDescCreateTmpTable = 'Επιτρέπει τη δημιουργία προσωρινών πινάκων.';
+$strPrivDescDelete = 'Επιτρέπει τη διαγραφή δεδομένων.';
+$strPrivDescDropDb = 'Επιτρέπει τη διαγραφή βάσεων και πινάκων.';
+$strPrivDescDropTbl = 'Επιτρέπει τη διαγραφή πινάκων.';
+$strPrivDescExecute = 'Επιτρέπει την εκτέλεση αποθηκευμένων ρουτινών. Δεν έχει χρήση σε αυτήν την έκδοση MySQL version.';
+$strPrivDescFile = 'Επιτρέπει την εισαγωγή και εξαγωγή δεδομένων από και σε αρχεία.';
+$strPrivDescGrant = 'Επιτρέπει την προσθήκη χρηστών και προνομίων χωρίς να επαναφορτώσετε τους πίνακες προνομίων.';
+$strPrivDescIndex = 'Επιτρέπει την δημιουργία και την διαγραφή ευρετηρίων.';
+$strPrivDescInsert = 'Επιτρέπει την εισαγωγή και την αντικατάσταση δεδομένων.';
+$strPrivDescLockTables = 'Επιτρέπει το κλείδωμα πινάκων για την τρέχουσα λειτουργία.';
$strPrivDescMaxConnections = 'Περιορίζει τον αριθμό των νέων συνδέσεων που ο χρήστης μπορεί να ξεκινήσει ανά ώρα.';
$strPrivDescMaxQuestions = 'Περιορίζει τον αριθμό των επερωτημάτων που ο χρήστης μπορεί να στείλει στον διακομιστή ανά ώρα.';
$strPrivDescMaxUpdates = 'Περιορίζει τον αριθμό των αλλαγής πινάκων ή βάσεων που ο χρήστης μπορεί να εκετελέσει ανά ώρα.';
-$strPrivDescReferences = 'Δεν έχει χρήση σε αυτήν την έκδοση MySQL.';
-$strPrivDescReload = 'Επιτρέπει την επανεκκίνηση του διακομιστή και τον καθαρισμό των προσωρινών αρχείων του.';
-$strPrivDescReplClient = 'Δίνει το δικαίωμα στον χρήστη να βρει που είναι οι κύριοι και δευτερεύοντες διακομιστές.';
-$strPrivDescReplSlave = 'Απαιτείται για τους δευτερευόντες διακομιστές αναπαραγωγής.';
-$strPrivDescSelect = 'Επιτρέπει την ανάγνωση δεδομένων.';
-$strPrivDescShowDb = 'Δίνει πρόσβαση στην πλήρη λίστα των βάσεων δεδομένων.';
-$strPrivDescShutdown = 'Επιτρέπει την διακοπή λειτουργίας του διακομιστή.';
-$strPrivDescSuper = 'Επιτρέπει τη σύνδεση, ακόμα και όταν ο μέγιστος αριθμός συνδέσεων έχει καλυθφεί; Απαιτείται για τις περισσότερες λειτουργίες διαχείρισης όπως ο ορισμός γενικών μεταβλητών ή τη διακοπή λειτουργιών άλλων χρηστών.';
-$strPrivDescUpdate = 'Επιτρέπει την αλλαγή δεδομένων.';
-$strPrivDescUsage = 'Χωρίς προνόμια.';
-$strPrivilegesReloaded = 'Τα προνόμια επαναφορτώθηκαν επιτυχώς.';
+$strPrivDescReferences = 'Δεν έχει χρήση σε αυτήν την έκδοση MySQL.';
+$strPrivDescReload = 'Επιτρέπει την επανεκκίνηση του διακομιστή και τον καθαρισμό των προσωρινών αρχείων του.';
+$strPrivDescReplClient = 'Δίνει το δικαίωμα στον χρήστη να βρει που είναι οι κύριοι και δευτερεύοντες διακομιστές.';
+$strPrivDescReplSlave = 'Απαιτείται για τους δευτερευόντες διακομιστές αναπαραγωγής.';
+$strPrivDescSelect = 'Επιτρέπει την ανάγνωση δεδομένων.';
+$strPrivDescShowDb = 'Δίνει πρόσβαση στην πλήρη λίστα των βάσεων δεδομένων.';
+$strPrivDescShutdown = 'Επιτρέπει την διακοπή λειτουργίας του διακομιστή.';
+$strPrivDescSuper = 'Επιτρέπει τη σύνδεση, ακόμα και όταν ο μέγιστος αριθμός συνδέσεων έχει καλυθφεί; Απαιτείται για τις περισσότερες λειτουργίες διαχείρισης όπως ο ορισμός γενικών μεταβλητών ή τη διακοπή λειτουργιών άλλων χρηστών.';
+$strPrivDescUpdate = 'Επιτρέπει την αλλαγή δεδομένων.';
+$strPrivDescUsage = 'Χωρίς προνόμια.';
+$strPrivilegesReloaded = 'Τα προνόμια επαναφορτώθηκαν επιτυχώς.';
$strPrivileges = 'Προνόμια';
-$strProcesses = 'Διεργασίες';
-$strProcesslist = 'Λίστα διεργασιών';
-$strPutColNames = 'Εμφάνιση ονομάτων πεδίων στην πρώτη γραμμή';
+$strProcesses = 'Διεργασίες';
+$strProcesslist = 'Λίστα διεργασιών';
+$strPutColNames = 'Εμφάνιση ονομάτων πεδίων στην πρώτη γραμμή';
$strQBEDel = 'Διαγραφή';
$strQBEIns = 'Εισαγωγή';
@@ -391,28 +391,28 @@ $strQueryOnDb = 'Εντολή SQL στη βάση %s:';
$strQuerySQLHistory = 'Ιστορικό SQL';
$strQueryStatistics = 'Στατιστικά επερωτημάτων: Από την έναρξη λειτουργίας, %s επερωτήματα έχουν σταλεί στον διακομιστή.';
$strQueryTime = 'Το επερώτημα χρειάστηκε %01.4f δευτ/τα';
-$strQueryType = 'Τύπος επερωτήματος';
-$strQueryWindowLock = 'Να μην αλλάξει το επερώτημα από εξωτερική πηγή';
+$strQueryType = 'Τύπος επερωτήματος';
+$strQueryWindowLock = 'Να μην αλλάξει το επερώτημα από εξωτερική πηγή';
-$strReceived = 'Λήφθησαν';
+$strReceived = 'Λήφθησαν';
$strRecords = 'Εγγραφές';
$strReferentialIntegrity = 'Έλεγχος ακεραιότητας σχέσεων:';
-$strRelationalSchema = 'Σχεσιακό σχήμα';
+$strRelationalSchema = 'Σχεσιακό σχήμα';
$strRelationNotWorking = 'Οι επιπρόσθετες λειτουργίες για εργασία με συσχετισμένους πίνακες έχουν απενεργοποιηθεί. Για να μάθετε γιατί, πατήστε %sεδώ%s.';
-$strRelations = 'Σχέσεις';
-$strRelationView = 'Εμφάνιση σχέσεων';
-$strReloadingThePrivileges = 'Επαναφόρτωση προνομίων';
-$strRemoveSelectedUsers = 'Διαγραφή των επιλεγμένων χρηστών';
+$strRelations = 'Σχέσεις';
+$strRelationView = 'Εμφάνιση σχέσεων';
+$strReloadingThePrivileges = 'Επαναφόρτωση προνομίων';
+$strRemoveSelectedUsers = 'Διαγραφή των επιλεγμένων χρηστών';
$strRenameTableOK = 'Ο Πίνακας %s μετονομάσθηκε σε %s';
$strRenameTable = 'Μετονομασία πίνακα σε';
$strRepairTable = 'Επιδιόρθωση πίνακα';
-$strReplaceNULLBy = 'Αντικατάσταση τιμής NULL με';
+$strReplaceNULLBy = 'Αντικατάσταση τιμής NULL με';
$strReplaceTable = 'Αντικατάσταση δεδομένων Πίνακα με το αρχείο';
$strReset = 'Επαναφορά';
-$strResourceLimits = 'Όρια πόρων';
+$strResourceLimits = 'Όρια πόρων';
$strReType = 'Επαναεισαγωγή';
-$strRevokeAndDeleteDescr = 'Οι χρήστες θα συνεχίσουν να έχουν το προνόμιο USAGE μέχρις ότου επαναφορτωθούν τα προνόμια.';
-$strRevokeAndDelete = 'Ανάκληση όλων των ενεργών προνομίων από τους χρήστες και διαγραφή τους.';
+$strRevokeAndDeleteDescr = 'Οι χρήστες θα συνεχίσουν να έχουν το προνόμιο USAGE μέχρις ότου επαναφορτωθούν τα προνόμια.';
+$strRevokeAndDelete = 'Ανάκληση όλων των ενεργών προνομίων από τους χρήστες και διαγραφή τους.';
$strRevokeMessage = 'Ανακαλέσατε τα προνόμια για %s';
$strRevoke = 'Ανάκληση';
$strRowLength = 'Μέγεθος Γραμμής';
@@ -427,11 +427,11 @@ $strRows = 'Εγγραφές';
$strRunning = 'που εκτελείται στο %s';
$strRunQuery = 'Υποβολή επερωτήματος';
$strRunSQLQuery = 'Εκτέλεση εντολής/εντολών SQL στη βάση δεδομένων %s';
-$strRussian = 'Ρωσσικά';
+$strRussian = 'Ρωσσικά';
-$strSaveOnServer = 'Αποθήκευση στον διακομιστή στον φάκελο %s';
+$strSaveOnServer = 'Αποθήκευση στον διακομιστή στον φάκελο %s';
$strSave = 'Αποθήκευση';
-$strScaleFactorSmall = 'Η κλίμακα είναι πολύ μικρή για να εμφανιστεί το σχήμα σε μία σελίδα';
+$strScaleFactorSmall = 'Η κλίμακα είναι πολύ μικρή για να εμφανιστεί το σχήμα σε μία σελίδα';
$strSearchFormTitle = 'Αναζήτηση στη βάση';
$strSearchInTables = 'Μέσα στους πίνακες:';
$strSearchNeedle = 'Όροι ή τιμές για αναζήτηση (μπαλαντέρ: "%"):';
@@ -442,65 +442,65 @@ $strSearchOption4 = 'ως regular expression';
$strSearchResultsFor = 'Αποτελέσματα αναζήτησης για "%s" %s:';
$strSearchType = 'Έυρεση:';
$strSearch = 'Αναζήτηση';
-$strSecretRequired = 'Το αρχείο ρυθμίσεων χρειάζεται τώρα μία μυστική φράση-κλειδί (blowfish_secret).';
+$strSecretRequired = 'Το αρχείο ρυθμίσεων χρειάζεται τώρα μία μυστική φράση-κλειδί (blowfish_secret).';
$strSelectADb = 'Παρακαλώ επιλέξτε μία βάση δεδομένων';
$strSelectAll = 'Επιλογή όλων';
$strSelectFields = 'Επιλογή πεδίων (τουλάχιστον ένα)';
$strSelectNumRows = 'στην εντολή';
-$strSelectTables = 'Επιλογή Πινάκων';
+$strSelectTables = 'Επιλογή Πινάκων';
$strSend = 'Αποστολή';
-$strSent = 'Εστάλησαν';
+$strSent = 'Εστάλησαν';
$strServerChoice = 'Επιλογή Διακομιστή';
-$strServerStatusUptime = 'Αυτός ο διακομιστής MySQL λειτουργεί για %s. Ξεκίνησε στις %s.';
-$strServerStatus = 'Πληροφορίες εκτέλεσης';
-$strServerTabVariables = 'Μεταβλητές';
+$strServerStatusUptime = 'Αυτός ο διακομιστής MySQL λειτουργεί για %s. Ξεκίνησε στις %s.';
+$strServerStatus = 'Πληροφορίες εκτέλεσης';
+$strServerTabVariables = 'Μεταβλητές';
$strServerTrafficNotes = 'Κίνηση Διακομιστή: Αυτοί οι πίνακες δείχνουν στατιστικά χρήσης δικτύου αυτού του διακομιστή MySQL από την έναρξη της λειτουργίας του.';
-$strServerVars = 'Ρυθμίσεις και μεταβλητές του διακομιστή';
+$strServerVars = 'Ρυθμίσεις και μεταβλητές του διακομιστή';
$strServerVersion = 'Έκδοση Διακομιστή';
-$strServer = 'Διακομιστής';
-$strSessionValue = 'Τιμή Session';
+$strServer = 'Διακομιστής';
+$strSessionValue = 'Τιμή Session';
$strSetEnumVal = 'Αν ο τύπος του πεδίου είναι «enum» ή «set», παρακαλώ εισάγετε τις τιμές χρησιμοποιώντας την εξής μορφή: \'α\',\'β\',\'γ\'... Αν χρειάζεται να εισάγετε την ανάποδη κάθετο ("\") ή απλά εισαγωγικά ("\'"), προθέστε τα με ανάποδη κάθετο στην αρχή (για παράδειγμα \'\\\\χψω\' ή \'α\\\'β\').';
$strShowAll = 'Εμφάνιση όλων';
-$strShowColor = 'Εμφάνιση χρωμάτων';
-$strShowDatadictAs = 'Μορφή λεξικού δεδομένων';
-$strShowFullQueries = 'Πλήρης εμφάνιση επερωτημάτων';
-$strShowGrid = 'Εμφάνιση πλέγματος';
+$strShowColor = 'Εμφάνιση χρωμάτων';
+$strShowDatadictAs = 'Μορφή λεξικού δεδομένων';
+$strShowFullQueries = 'Πλήρης εμφάνιση επερωτημάτων';
+$strShowGrid = 'Εμφάνιση πλέγματος';
$strShowingRecords = 'Εμφάνιση εγγραφής ';
$strShowPHPInfo = 'Εμφάνιση πληροφοριών της PHP';
-$strShowTableDimension = 'Εμφάνιση διαστάσεων πινάκων';
+$strShowTableDimension = 'Εμφάνιση διαστάσεων πινάκων';
$strShowTables = 'Εμφάνιση πινάκων';
$strShowThisQuery = ' Εμφάνισε εδώ ξανά αυτό το επερώτημα';
$strShow = 'Εμφάνιση';
-$strSimplifiedChinese = 'Απλοποιημένα Κινεζικά';
+$strSimplifiedChinese = 'Απλοποιημένα Κινεζικά';
$strSingly = '(μοναδικά)';
$strSize = 'Μέγεθος';
$strSort = 'Ταξινόμηση';
$strSpaceUsage = 'Χρήση χώρου';
$strSplitWordsWithSpace = 'Οι λέξεις χωρίζονται από τον χαρακτήρα διαστήματος (" ").';
-$strSQLParserBugMessage = 'Υπάρχει περίπτωση να εντοπίσατε ένα πρόβλημα στον SQL parser. Παρακαλώ εξετάστε το επερώτημά σας προσεκτικά και ελέγξτε ότι όλα τα εισαγωγικά ανοίγουν και κλείνουν σωστά. \'Αλλες πιθανές αιτίες μπορούν να είναι η αποστολή αρχείου με δυαδικό κώδικα εκτός εισαγωγικών. Μπορείτε επίσης να δοκιμάσετε το επερώτημά σας στη γραμμή εντολών της MySQL. Εάν συνεχίζετε να έχετε πρόβλημα, ή εάν ο parser αποτυγχάνει όπου η γραμμή εντολών επιτυγχάνει, παρακαλώ απομονώστε το επερώτημα εκείνο που δημιουργεί το πρόβλημα και στείλτε αναφορά λάθους με τα δεδομένα που βρίσκονται στο τμήμα CUT που ακολουθεί:';
+$strSQLParserBugMessage = 'Υπάρχει περίπτωση να εντοπίσατε ένα πρόβλημα στον SQL parser. Παρακαλώ εξετάστε το επερώτημά σας προσεκτικά και ελέγξτε ότι όλα τα εισαγωγικά ανοίγουν και κλείνουν σωστά. \'Αλλες πιθανές αιτίες μπορούν να είναι η αποστολή αρχείου με δυαδικό κώδικα εκτός εισαγωγικών. Μπορείτε επίσης να δοκιμάσετε το επερώτημά σας στη γραμμή εντολών της MySQL. Εάν συνεχίζετε να έχετε πρόβλημα, ή εάν ο parser αποτυγχάνει όπου η γραμμή εντολών επιτυγχάνει, παρακαλώ απομονώστε το επερώτημα εκείνο που δημιουργεί το πρόβλημα και στείλτε αναφορά λάθους με τα δεδομένα που βρίσκονται στο τμήμα CUT που ακολουθεί:';
$strSQLParserUserError = 'Φαίνεται να υπάρχει ένα λάθος στο επερώτημά σας. Το κάτωθι λάθος διακομιστή MySQL, εάν υπάρχει κάποιο, μπορεί επίσης να σας βοηθήσει να διαγνώσετε το πρόβλημα.';
$strSQLQuery = 'Εντολή SQL';
-$strSQLResult = 'αποτέλεσμα SQL';
-$strSQL = 'SQL';
-$strSQPBugInvalidIdentifer = '\'Αγνωστο Αναγνωριστικό';
-$strSQPBugUnclosedQuote = 'Ανοιχτά εισαγωγικά';
-$strSQPBugUnknownPunctuation = '\'Αγνωστο σημείο στίξης';
+$strSQLResult = 'αποτέλεσμα SQL';
+$strSQL = 'SQL';
+$strSQPBugInvalidIdentifer = '\'Αγνωστο Αναγνωριστικό';
+$strSQPBugUnclosedQuote = 'Ανοιχτά εισαγωγικά';
+$strSQPBugUnknownPunctuation = '\'Αγνωστο σημείο στίξης';
$strStatCheckTime = 'τελευταίος έλεγχος';
$strStatCreateTime = 'Δημιουργία';
$strStatement = 'Δηλώσεις';
$strStatUpdateTime = 'Τελευταία ενημέρωση';
-$strStatus = 'Κατάσταση';
+$strStatus = 'Κατάσταση';
$strStrucCSV = 'Δεδομένα CSV';
$strStrucData = 'Δομή και δεδομένα';
$strStrucExcelCSV = 'Μορφή CSV για δεδομένα MS Excel';
$strStrucOnly = 'Μόνο η δομή';
-$strStructPropose = 'Προτεινόμενη δομή πίνακα';
-$strStructure = 'Δομή';
+$strStructPropose = 'Προτεινόμενη δομή πίνακα';
+$strStructure = 'Δομή';
$strSubmit = 'Αποστολή';
$strSuccess = 'Η SQL εντολή σας εκτελέσθηκε επιτυχώς';
$strSum = 'Σύνολο';
-$strSwedish = 'Σουηδικά';
-$strSwitchToTable = 'Μεταφορά στον αντεγραμμένο πίνακα';
+$strSwedish = 'Σουηδικά';
+$strSwitchToTable = 'Μεταφορά στον αντεγραμμένο πίνακα';
$strTableComments = 'Σχόλια Πίνακα';
$strTableEmpty = 'Το όνομα του Πίνακα είναι κενό!';
@@ -508,73 +508,73 @@ $strTableHasBeenDropped = 'Ο Πίνακας %s διεγράφη';
$strTableHasBeenEmptied = 'Ο Πίνακας %s άδειασε';
$strTableHasBeenFlushed = 'Ο Πίνακας %s εκκαθαρίστικε ("FLUSH")';
$strTableMaintenance = 'Συντήρηση Πίνακα';
-$strTableOfContents = 'Πίνακας περιεχομένων';
-$strTableOptions = 'Επιλογές πίνακα';
+$strTableOfContents = 'Πίνακας περιεχομένων';
+$strTableOptions = 'Επιλογές πίνακα';
$strTables = '%s Πίνακας/Πίνακες';
$strTableStructure = 'Δομή Πίνακα για τον Πίνακα';
$strTable = 'Πίνακας ';
-$strTblPrivileges = 'Προνόμια πινάκων';
+$strTblPrivileges = 'Προνόμια πινάκων';
$strTextAreaLength = ' Εξαιτίας του μεγέθος του, αυτό το πεδίο ίσως να μη μπορεί να διορθωθεί ';
-$strThai = 'Ταϋλανδικά';
-$strThisHost = 'Αυτός ο διακομιστής';
-$strThreadSuccessfullyKilled = 'Η λειτουργία %s διεκόπη.';
-$strTime = 'Χρόνος';
-$strToggleScratchboard = '(Απ)ενεργοποίηση πίνακα σχεδιασμού';
-$strTotalUC = 'Σύνολο';
+$strThai = 'Ταϋλανδικά';
+$strThisHost = 'Αυτός ο διακομιστής';
+$strThreadSuccessfullyKilled = 'Η λειτουργία %s διεκόπη.';
+$strTime = 'Χρόνος';
+$strToggleScratchboard = '(Απ)ενεργοποίηση πίνακα σχεδιασμού';
+$strTotalUC = 'Σύνολο';
$strTotal = 'συνολικά';
-$strTraditionalChinese = 'Παραδοσιακά Κινεζικά';
-$strTraffic = 'Κίνηση';
+$strTraditionalChinese = 'Παραδοσιακά Κινεζικά';
+$strTraffic = 'Κίνηση';
$strTransformation_image_jpeg__inline = 'Εμφανίζει μια εικόνα προεπισκόπησης με σύνδεσμο; επιλογές: πλάτος, ύψος σε pixels (διατηρεί τις αρχικές αναλογίες)';
$strTransformation_image_jpeg__link = 'Εμφανίζει έναν σύνδεσμο για αυτήν την εικόνα.';
-$strTransformation_image_png__inline = 'Δείτε image/jpeg: inline';
+$strTransformation_image_png__inline = 'Δείτε image/jpeg: inline';
$strTransformation_text_plain__external = 'ΜΟΝΟ ΓΙΑ LINUX: Εκτελεί μία εξωτερική εφαρμογή και στέλνει τα δεδομένα μέσω \'standard input\'. Επιστρέφει το αποτέλεσμα της εφαρμογής. Εξ\' ορισμού τιμή είναι το Tidy, που τυπώνει μορφοποιημένο κώδικα HTML. Για λόγους ασφαλείες, πρέπει χειροκίνητα να αλλάξετε το αρχείο libraries/transformations/text_plain__external.inc.php και να εισάγετε τις εφαρμογές που εσείς επιτρέπετε να εκτελούνται. Η πρώτη επιλογή είναι ο αριθμός της εφαρμογής που θέλετε να χρησιμοποιήσετε και η δεύτερη επιλογή είναι οι παράμετροι της. Η τρίτη επιλογή, αν τεθεί σε 1 θα μετατρέψει το αποτέλεσμα χρησιμοποιώντας την εντολή htmlspecialchars() (Εξ\' ορισμού τιμή: 1). Η τέταρτη επιλογή, αν τεθεί σε 1 θα εισάγει NOWRAP στο κελί περιεχομένου ούτως ώστε όλο το αποτέλεσμα να εμφανιστεί χωρίς αλλαγές στην διάταξη (Εξ\' ορισμού τιμή: 1)';
$strTransformation_text_plain__formatted = 'Διατηρεί την αρχική μορφοποίηση του πεδίου. Δεν χρησιμοποιούνται χαρακτήρες διαφυγής.';
-$strTransformation_text_plain__imagelink = 'Εμφανίζει μία εικόνα και ένα σύνδεσμο, το πεδίο περιέχει το όνομα αρχείου. Η πρώτη επιλογή είναι ένα πρόθεμα όπως "http://domain.com/", η δεύτερη επιλογή είναι το πλάτος σε pixels, η τρίτη είναι το ύψος.';
-$strTransformation_text_plain__link = 'Εμφανίζει ένα σύνδεσμο, το πεδίο περιέχει το όνομα αρχείου. Η πρώτη επιλογή είναι ένα πρόθεμα όπως "http://domain.com/", η δεύτερη επιλογή είναι ένας τίτλος για τον σύνδεσμο.';
+$strTransformation_text_plain__imagelink = 'Εμφανίζει μία εικόνα και ένα σύνδεσμο, το πεδίο περιέχει το όνομα αρχείου. Η πρώτη επιλογή είναι ένα πρόθεμα όπως "http://domain.com/", η δεύτερη επιλογή είναι το πλάτος σε pixels, η τρίτη είναι το ύψος.';
+$strTransformation_text_plain__link = 'Εμφανίζει ένα σύνδεσμο, το πεδίο περιέχει το όνομα αρχείου. Η πρώτη επιλογή είναι ένα πρόθεμα όπως "http://domain.com/", η δεύτερη επιλογή είναι ένας τίτλος για τον σύνδεσμο.';
$strTransformation_text_plain__substr = 'Εμφανίζει μόνο μέρος ενός αλφαριθμητικού. Η πρώτη επιλογή είναι η θέση στην οποία ξεκινά η εμφάνιση του κειμένου (Εξ\' ορισμού 0). Η δεύτερη επιλογή είναι το μήκος του κειμένου. Αν μείνει κενό θα επιστραφεί όλο το αλφαριθμητικό. Η τρίτη επιλογή καθορίζει ποιοι χαρακτήρες θα ακολουθούν το κείμενο όταν εμφανίζεται μέρος του (Εξ\' ορισμού: ...) .';
-$strTruncateQueries = 'Αποκοπή εμφανιζόμενων επερωτημάτων';
-$strTurkish = 'Τουρκικά';
+$strTruncateQueries = 'Αποκοπή εμφανιζόμενων επερωτημάτων';
+$strTurkish = 'Τουρκικά';
$strType = 'Τύπος';
-$strUkrainian = 'Ουκρανικά';
+$strUkrainian = 'Ουκρανικά';
$strUncheckAll = 'Απεπιλογή όλων';
-$strUnicode = 'Unicode';
+$strUnicode = 'Unicode';
$strUnique = 'Μοναδικό';
-$strUnknown = 'άγνωστο';
+$strUnknown = 'άγνωστο';
$strUnselectAll = 'Απεπιλογή όλων';
$strUpdatePrivMessage = 'Τα προνόμια του χρήστη %s ενημερώθηκαν.';
$strUpdateProfileMessage = 'Τα στοιχεία ανανεώθηκαν.';
$strUpdateQuery = 'Ενημέρωση της εντολής';
-$strUpdComTab = 'Παρακαλώ διαβάστε στην τεκμηρίωση για το πως μπορείτε να ανανεώσετε τον πίνακα Column_comments';
+$strUpdComTab = 'Παρακαλώ διαβάστε στην τεκμηρίωση για το πως μπορείτε να ανανεώσετε τον πίνακα Column_comments';
$strUsage = 'Χρήση';
$strUseBackquotes = 'Χρήση ανάποδων εισαγωγικών στα ονόματα των Πινάκων και των Πεδίων';
-$strUseHostTable = 'Use Host Table';
-$strUserAlreadyExists = 'Ο χρήστης %s υπάρχει ήδη!';
+$strUseHostTable = 'Use Host Table';
+$strUserAlreadyExists = 'Ο χρήστης %s υπάρχει ήδη!';
$strUserEmpty = 'Το όνομα του χρήστη είναι κενό!';
$strUserName = 'Όνομα χρήστη';
-$strUserNotFound = 'Ο επιλεγμένος χρήστης δεν βρέθηκε στον πίνακα προνομίων.';
-$strUserOverview = 'Περίληψη χρηστών';
-$strUsersDeleted = 'Οι επιλεγμένοι χρήστες διεγράφησαν επιτυχώς.';
-$strUsersHavingAccessToDb = 'Χρήστες με πρόσβαση στη βάση "%s"';
+$strUserNotFound = 'Ο επιλεγμένος χρήστης δεν βρέθηκε στον πίνακα προνομίων.';
+$strUserOverview = 'Περίληψη χρηστών';
+$strUsersDeleted = 'Οι επιλεγμένοι χρήστες διεγράφησαν επιτυχώς.';
+$strUsersHavingAccessToDb = 'Χρήστες με πρόσβαση στη βάση "%s"';
$strUser = 'Χρήστης';
$strUseTables = 'Χρήση Πινάκων';
-$strUseTextField = 'Χρησιμοποιήστε το πεδίο κειμένου';
-$strUseThisValue = 'Χρήση αυτής της τιμής';
+$strUseTextField = 'Χρησιμοποιήστε το πεδίο κειμένου';
+$strUseThisValue = 'Χρήση αυτής της τιμής';
-$strValidateSQL = 'Επικύρωση SQL';
-$strValidatorError = 'Ο επικυρωτής SQL δεν μπόρεσε να ενεργοποιηθεί. Παρακαλώ ελέγξτε ότι έχετε εγκαταστήσει της απαραίτητες επεκτάσεις της php όπως περιγράφεται στην %sdocumentation%s.';
+$strValidateSQL = 'Επικύρωση SQL';
+$strValidatorError = 'Ο επικυρωτής SQL δεν μπόρεσε να ενεργοποιηθεί. Παρακαλώ ελέγξτε ότι έχετε εγκαταστήσει της απαραίτητες επεκτάσεις της php όπως περιγράφεται στην %sdocumentation%s.';
$strValue = 'Τιμή';
-$strVar = 'Μεταβλητή';
+$strVar = 'Μεταβλητή';
$strViewDumpDatabases = 'Εμφάνισης σχήματος βάσεων';
$strViewDumpDB = 'Εμφάνιση σχήματος της βάσης';
$strViewDump = 'Εμφάνιση σχήματος του πίνακα';
-$strWebServerUploadDirectoryError = 'Ο υποκατάλογος που ορίσατε για την αποθήκευση αρχείων δεν μπόρεσε να βρεθεί';
-$strWebServerUploadDirectory = 'Υποκατάλογος αποθήκευσης αρχείων διακομιστή';
+$strWebServerUploadDirectoryError = 'Ο υποκατάλογος που ορίσατε για την αποθήκευση αρχείων δεν μπόρεσε να βρεθεί';
+$strWebServerUploadDirectory = 'Υποκατάλογος αποθήκευσης αρχείων διακομιστή';
$strWelcome = 'Καλωσήρθατε στο %s';
-$strWestEuropean = 'Δυτικής Ευρώπης';
-$strWildcard = 'μπαλαντέρ';
-$strWindowNotFound = 'Δεν ήταν δυνατό να ανανεωθεί το target παράθυρο του περιηγητή. Ίσως κλείσατε το parent παράθυρο ή ο περιηγητής σας δεν επιτρέπει τις ανανεώσεις μεταξύ παραθύρων λόγω ρυθμίσεων ασφαλείας.';
+$strWestEuropean = 'Δυτικής Ευρώπης';
+$strWildcard = 'μπαλαντέρ';
+$strWindowNotFound = 'Δεν ήταν δυνατό να ανανεωθεί το target παράθυρο του περιηγητή. Ίσως κλείσατε το parent παράθυρο ή ο περιηγητής σας δεν επιτρέπει τις ανανεώσεις μεταξύ παραθύρων λόγω ρυθμίσεων ασφαλείας.';
$strWithChecked = 'Με τους επιλεγμένους:';
$strWrongUser = 'Λανθασμένο όνομα χρήστη/κωδικός πρόσβασης. \'Αρνηση πρόσβασης.';
@@ -582,7 +582,7 @@ $strXML = 'XML';
$strYes = 'Ναι';
-$strZeroRemovesTheLimit = 'Σημείωση: Αν ορίσετε αυτές τις επιλογές σε 0 (μηδέν) αφαιρείτε ο περιορισμός.';
+$strZeroRemovesTheLimit = 'Σημείωση: Αν ορίσετε αυτές τις επιλογές σε 0 (μηδέν) αφαιρείτε ο περιορισμός.';
$strZip = 'συμπίεση «zip»';
// To translate:
@@ -1488,4 +1488,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/hebrew-utf-8.inc.php b/lang/hebrew-utf-8.inc.php
index 9d0c1b43a..4676f82e8 100644
--- a/lang/hebrew-utf-8.inc.php
+++ b/lang/hebrew-utf-8.inc.php
@@ -1,5 +1,5 @@
*/
$charset = 'utf-8';
@@ -1483,4 +1483,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/hindi-utf-8.inc.php b/lang/hindi-utf-8.inc.php
index 33ad4de0d..b9ca19539 100644
--- a/lang/hindi-utf-8.inc.php
+++ b/lang/hindi-utf-8.inc.php
@@ -26,8 +26,8 @@ $timespanfmt = '%s days, %s hours, %s minutes and %s seconds';
$strAccessDenied = 'प्रवेश निषेध';
$strAction = ' कार्य';
$strAddNewField = 'नया फील्ड जोडो';
-$strAddPrivilegesOnDb = 'इन डाटाबेसों के लिये प्रिविलेज जोडिये';
-$strAddPrivilegesOnTbl = 'इन टेबल के लिये प्रिविलेज जोडिये';
+$strAddPrivilegesOnDb = 'इन डाटाबेसों के लिये प्रिविलेज जोडिये';
+$strAddPrivilegesOnTbl = 'इन टेबल के लिये प्रिविलेज जोडिये';
$strAddUser = 'नया यूसर बनाओ';
$strAddUserMessage = 'आपने नया यूसर बना लिया ।';
$strAfterInsertBack = 'पिछले पृष्ट पर वापस जाओ';
@@ -42,7 +42,7 @@ $strAny = 'कोई';
$strAnyHost = 'कोई भी होस्ट';
$strAnyUser = 'कोई भी यूसर';
$strAPrimaryKey = ' %s पर एक प्राईमरी की बनाया';
-$strArabic = 'पर्शियन';
+$strArabic = 'पर्शियन';
$strAtBeginningOfTable = ' टेबल के शुरू में';
$strAtEndOfTable = ' टेबल के आखिर में';
$strAttr = ' विशेषता';
@@ -50,10 +50,10 @@ $strAttr = ' विशेषता';
$strBack = 'वापस';
$strBinary = 'बइनरी';
$strBinaryDoNotEdit = 'बइनरी - एडिट मत करिये';
-$strBookmarkDeleted = 'यह bookmark डिलीट कर दिया गया।';
+$strBookmarkDeleted = 'यह bookmark डिलीट कर दिया गया।';
$strBookmarkLabel = 'लेबल';
-$strBookmarkQuery = 'Bookmark किया हुआ SQL-क्वरी';
-$strBookmarkThis = 'इस SQL-क्वरी को bookmark कीजिये ';
+$strBookmarkQuery = 'Bookmark किया हुआ SQL-क्वरी';
+$strBookmarkThis = 'इस SQL-क्वरी को bookmark कीजिये ';
$strBookmarkView = 'केवल देखिये';
$strBrowse = ' ब्रौस';
@@ -61,17 +61,17 @@ $strCantRenameIdxToPrimary = 'इन्डेक्स को PRIMARY नाम
$strChange = 'बदलिये';
$strChangePassword = 'पासव्रड बदलिये';
$strCheckAll = 'सभी को चेक करें';
-$strCheckPrivs = 'प्रिविलेज चेक करें';
-$strCheckPrivsLong = 'डाटाबेस के प्रिविलेज चेक करें "%s".';
+$strCheckPrivs = 'प्रिविलेज चेक करें';
+$strCheckPrivsLong = 'डाटाबेस के प्रिविलेज चेक करें "%s".';
$strCheckTable = ' टेबल को चेक करें';
$strChoosePage = ' एडिट करने के लिये पेज़ चुने';
$strColumnNames = 'कोलम के नाम';
-$strColumnPrivileges = ' केवल कोलम के प्रिविलेज';
+$strColumnPrivileges = ' केवल कोलम के प्रिविलेज';
$strComments = ' टिप्पणी';
$strCompleteInserts = 'पूरा इनसर्टस';
$strCopyTable = ' (database.table) में टेबल को कापी करें:';
$strCopyTableOK = ' %s टेबल को %s में कापी कर दिया.';
-$strCouldNotKill = 'thread %s को मारने में phpMyAdmin असफल हुआ। शायद वह खतम हो चुका है।';
+$strCouldNotKill = 'thread %s को मारने में phpMyAdmin असफल हुआ। शायद वह खतम हो चुका है।';
$strCreate = 'बनाइये';
$strCreateIndex = ' %s कोलम पर इन्डेक्स बनाऐं ';
$strCreateIndexTopic = 'एक नया इन्डेक्स बनाऐं';
@@ -83,26 +83,26 @@ $strData = ' डाटा';
$strDatabase = ' डाटाबेस';
$strDatabaseHasBeenDropped = 'डाटाबेस %s को ड्रोप कर दिया ।';
$strDatabases = ' डाटाबेस';
-$strDatabasesDropped = '%s डाटाबेस को सफलता से डिलीट कर दिया गया।';
+$strDatabasesDropped = '%s डाटाबेस को सफलता से डिलीट कर दिया गया।';
$strDatabasesStats = ' डाटाबेसों के आँकडे';
-$strDatabasesStatsDisable = 'आँकडे Disable करें';
-$strDatabasesStatsEnable = 'आँकडे Enable करें';
-$strDatabasesStatsHeavyTraffic = ' नोट: यहां डाटाबेस के आँकडे Enable करने से webserver और MySQL के बीच में ट्रेफिक बडने की संभावना है। ';
+$strDatabasesStatsDisable = 'आँकडे Disable करें';
+$strDatabasesStatsEnable = 'आँकडे Enable करें';
+$strDatabasesStatsHeavyTraffic = ' नोट: यहां डाटाबेस के आँकडे Enable करने से webserver और MySQL के बीच में ट्रेफिक बडने की संभावना है। ';
$strDataOnly = 'केवल डाटा';
-$strDBComment = 'डाटाबेस की टिप्पणि: ';
-$strDbPrivileges = ' केवल डाटाबेस के प्रिविलेज';
+$strDBComment = 'डाटाबेस की टिप्पणि: ';
+$strDbPrivileges = ' केवल डाटाबेस के प्रिविलेज';
$strDefault = 'Default';
$strDelete = 'डिलीट';
$strDeleted = 'रौ को डिलीट कर दिया';
-$strDescription = 'वर्णन';
-$strDictionary = 'शब्दकोश';
+$strDescription = 'वर्णन';
+$strDictionary = 'शब्दकोश';
$strDisplayFeat = 'फीचरस दिखाओ';
$strDisplayOrder = 'क्रम से दिखाओ:';
$strDisplayPDF = 'PDF schema दिखाओ';
$strDocu = 'डोक्युमेंटेशन';
$strDoYouReally = 'क्या आप सचमुच चाहते है की';
$strDrop = ' ड्रोप';
-$strDropUsersDb = 'Drop the databases that have the same names as the users.';
+$strDropUsersDb = 'Drop the databases that have the same names as the users.';
$strEdit = 'एडिट';
$strEditPDFPages = 'PDF पेज एडिट करें';
@@ -110,8 +110,8 @@ $strEditPrivileges = ' प्रिविलेज एडिट करें';
$strEffective = ' वास्तविक';
$strEmpty = 'खाली करें';
$strEnd = 'आखरी';
-$strEnglish = 'अंग्रेजी';
-$strEnglishPrivileges = ' नोट: MySQL प्रिविलेज नामों को अंग्रेजी मे लिखा गया है ';
+$strEnglish = 'अंग्रेजी';
+$strEnglishPrivileges = ' नोट: MySQL प्रिविलेज नामों को अंग्रेजी मे लिखा गया है ';
$strError = 'गल्ती';
$strExplain = 'SQL की व्याख्या ';
$strExport = 'एक्सपोर्ट';
@@ -123,23 +123,23 @@ $strFieldHasBeenDropped = ' फील्ड %s ड्रोप कर दिय
$strFields = ' फील्डस';
$strFlushTable = ' टेबल को Flush करें ("FLUSH")';
-$strGenTime = 'समय पर बनाया';
-$strGerman = 'जर्मन';
-$strGreek = ' ग्रीक';
+$strGenTime = 'समय पर बनाया';
+$strGerman = 'जर्मन';
+$strGreek = ' ग्रीक';
-$strHasBeenAltered = 'को बदला गया। ';
+$strHasBeenAltered = 'को बदला गया। ';
$strHome = 'होम';
$strHomepageOfficial = 'phpMyAdmin का आधिकारिक होमपेज';
$strHost = 'होस्ट';
-$strHostEmpty = 'होस्ट का नाम (hostname) खाली है!';
+$strHostEmpty = 'होस्ट का नाम (hostname) खाली है!';
$strInsert = 'इनसर्ट';
-$strInsertAsNewRow = 'इसको नया रौ में जोडे ';
+$strInsertAsNewRow = 'इसको नया रौ में जोडे ';
-$strJapanese = 'जापानी';
+$strJapanese = 'जापानी';
-$strKeepPass = 'पासवर्ड मत बदलिये';
-$strKorean = 'कोरियन';
+$strKeepPass = 'पासवर्ड मत बदलिये';
+$strKorean = 'कोरियन';
$strLengthSet = 'लंबाई/अर्थ*';
$strLimitNumRows = 'प्रति पृष्ट कितने रौ';
@@ -158,12 +158,12 @@ $strName = 'नाम';
$strNext = ' अगला';
$strNo = 'नहीं';
$strNoDatabases = 'कोइ डाटाबेस नहिं';
-$strNoDatabasesSelected = ' कोइ डाटाबेस नहीं चुना गया है।';
-$strNoModification = 'कोइ बदलाव नहीं';
-$strNoPassword = 'पासवर्ड नहीं है';
-$strNoPrivileges = 'कोइ प्रिविलेज नहीं';
+$strNoDatabasesSelected = ' कोइ डाटाबेस नहीं चुना गया है।';
+$strNoModification = 'कोइ बदलाव नहीं';
+$strNoPassword = 'पासवर्ड नहीं है';
+$strNoPrivileges = 'कोइ प्रिविलेज नहीं';
$strNoTablesFound = 'डाटाबेस में कोई टेबल नहीं।';
-$strNotNumber = 'यह नंबर नहीं है!';
+$strNotNumber = 'यह नंबर नहीं है!';
$strNoUsersFound = 'कोई यूसर नहीं।';
$strOperations = 'कार्रवाई';
@@ -176,7 +176,7 @@ $strPmaDocumentation = 'phpMyAdmin डोक्युमेंटेशन';
$strPrivDescMaxConnections = 'Limits the number of new connections the user may open per hour.';
$strPrivDescMaxQuestions = 'Limits the number of queries the user may send to the server per hour.';
$strPrivDescMaxUpdates = 'Limits the number of commands that change any table or database the user may execute per hour.';
-$strPrivileges = ' प्रिविलेज';
+$strPrivileges = ' प्रिविलेज';
$strQBE = 'क्वरी';
$strQueryFrame = 'क्वरी पेज';
@@ -194,7 +194,7 @@ $strRowsModeOptions = ' %s रूप में और %s सेल के बा
$strRowsModeVertical = 'खडा';
$strRunning = ' %s पर चल रहा है';
$strRunSQLQuery = 'डाटाबेस %s में SQL query/queries चलाइये ';
-$strRussian = 'रशियन';
+$strRussian = 'रशियन';
$strSearch = 'सर्च';
$strSearchFormTitle = 'डाटाबेस में सर्च करें';
@@ -235,10 +235,10 @@ $strTableHasBeenEmptied = ' टेबल %s को खाली किया';
$strTableHasBeenFlushed = ' टेबल %s को flush किया';
$strTableMaintenance = ' टेबल रख-रखाव';
$strTables = ' %s टेबल(s)';
-$strTblPrivileges = ' केवल टेबल के प्रिविलेज';
-$strThreadSuccessfullyKilled = 'Thread %s को सफलता से मारा गया।';
+$strTblPrivileges = ' केवल टेबल के प्रिविलेज';
+$strThreadSuccessfullyKilled = 'Thread %s को सफलता से मारा गया।';
$strTotal = ' कुल';
-$strTurkish = 'तुर्क';
+$strTurkish = 'तुर्क';
$strType = ' प्रकार';
$strUncheckAll = ' सभी को अनचेक करें';
@@ -1491,4 +1491,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/hungarian-utf-8.inc.php b/lang/hungarian-utf-8.inc.php
index 4737f199a..8dd09a14c 100644
--- a/lang/hungarian-utf-8.inc.php
+++ b/lang/hungarian-utf-8.inc.php
@@ -11,7 +11,7 @@ $number_decimal_separator = '.';
// shortcuts for Byte, Kilo, Mega, Giga, Tera, Peta, Exa
$byteUnits = array('Bájt', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB');
-// MySQL manual language definition, this is optional, en will be used
+// MySQL manual language definition, this is optional, en will be used
// if not defined
$mysql_4_1_doc_lang = 'en';
$mysql_5_0_doc_lang = 'en';
@@ -1467,4 +1467,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/indonesian-utf-8.inc.php b/lang/indonesian-utf-8.inc.php
index 89d7a7534..d0b886625 100644
--- a/lang/indonesian-utf-8.inc.php
+++ b/lang/indonesian-utf-8.inc.php
@@ -1481,4 +1481,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/italian-utf-8.inc.php b/lang/italian-utf-8.inc.php
index 5f582c1e2..b22d1ade0 100644
--- a/lang/italian-utf-8.inc.php
+++ b/lang/italian-utf-8.inc.php
@@ -1470,4 +1470,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/japanese-utf-8.inc.php b/lang/japanese-utf-8.inc.php
index c18293875..164c2b65f 100644
--- a/lang/japanese-utf-8.inc.php
+++ b/lang/japanese-utf-8.inc.php
@@ -1471,4 +1471,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/korean-utf-8.inc.php b/lang/korean-utf-8.inc.php
index 6c1fed753..687757f29 100644
--- a/lang/korean-utf-8.inc.php
+++ b/lang/korean-utf-8.inc.php
@@ -1486,4 +1486,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/latvian-utf-8.inc.php b/lang/latvian-utf-8.inc.php
index dac3807cd..4aaa6f8c0 100644
--- a/lang/latvian-utf-8.inc.php
+++ b/lang/latvian-utf-8.inc.php
@@ -1488,4 +1488,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/lithuanian-utf-8.inc.php b/lang/lithuanian-utf-8.inc.php
index 944f90c93..43a2b35f9 100644
--- a/lang/lithuanian-utf-8.inc.php
+++ b/lang/lithuanian-utf-8.inc.php
@@ -231,7 +231,7 @@ $strErrorInZipFile = 'Klaida ZIP archyve:';
$strError = 'Klaida';
$strEscapeWildcards = 'Norint naudoti _ ir % simblius, juos reikėtų eskeipinti su \\';
$strEsperanto = 'Esperanto';
-$strEstonian = 'Estų';
+$strEstonian = 'Estų';
$strExcelEdition = 'Excel variantas';
$strExecuteBookmarked = 'Įvykdyti išsaugotą užklausą';
$strExplain = 'Paaiškinti';
@@ -306,7 +306,7 @@ $strIndexName = 'Indekso vardas :';
$strIndexType = 'Indekso tipas :';
$strIndexWarningTable = 'Iškilo problemos su `%s` lentelės indeksais';
$strInnoDBBufferPoolSize = 'Buferio pool\'o dydis';
-$strInnoDBDataFilePath = 'Duomenų failai';
+$strInnoDBDataFilePath = 'Duomenų failai';
$strInnoDBDataHomeDirDesc = 'Bendra direktorijų kelio dalis visiems InnoDB duomenų failams.';
$strInnoDBPages = 'puslapiai';
$strInnodbStat = 'InnoDB būsena';
@@ -1480,4 +1480,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/macedonian_cyrillic-utf-8.inc.php b/lang/macedonian_cyrillic-utf-8.inc.php
index 97e0c03f4..999a24231 100644
--- a/lang/macedonian_cyrillic-utf-8.inc.php
+++ b/lang/macedonian_cyrillic-utf-8.inc.php
@@ -1466,4 +1466,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/malay-utf-8.inc.php b/lang/malay-utf-8.inc.php
index 680efc00c..68525e5c5 100644
--- a/lang/malay-utf-8.inc.php
+++ b/lang/malay-utf-8.inc.php
@@ -1503,4 +1503,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/mongolian-utf-8.inc.php b/lang/mongolian-utf-8.inc.php
index 75c3b6d31..1e07479a6 100644
--- a/lang/mongolian-utf-8.inc.php
+++ b/lang/mongolian-utf-8.inc.php
@@ -54,7 +54,7 @@ $strAlterOrderBy = 'Хүснэгтийг эрэмбэлэлтээр өөрчлө
$strAnalyzeTable = 'Хүснэгтийг задлах';
$strAndThen = 'ба тэгээд';
$strAnd = 'БА';
-$strAngularLinks = 'Шууд бус холбоос';
+$strAngularLinks = 'Шууд бус холбоос';
$strAnIndex = '%s-д индекс нэмэгдсэн байна';
$strAnyHost = 'Дурын хост';
$strAnyUser = 'Дурын хэрэглэгч';
@@ -93,15 +93,15 @@ $strBookmarkView = 'Зөвхөн харах';
$strBrowseDistinctValues = 'Онцгой утгуудыг харах';
$strBrowseForeignValues = 'Browse foreign values';
$strBrowse = 'Хөтлөх';
-$strBufferPoolActivity = 'Буффер Pool Идэвхжил';
-$strBufferPoolUsage = 'Буффер Pool Хэрэглээ';
-$strBufferPool = 'Буффер Pool';
-$strBufferReadMissesInPercent = 'Уншилт алдсан нь %';
-$strBufferReadMisses = 'Уншилт алдагдсан';
-$strBufferWriteWaitsInPercent = 'Бичихээр хүлээгдэх нь %';
-$strBufferWriteWaits = 'Бичихээр хүлээх';
+$strBufferPoolActivity = 'Буффер Pool Идэвхжил';
+$strBufferPoolUsage = 'Буффер Pool Хэрэглээ';
+$strBufferPool = 'Буффер Pool';
+$strBufferReadMissesInPercent = 'Уншилт алдсан нь %';
+$strBufferReadMisses = 'Уншилт алдагдсан';
+$strBufferWriteWaitsInPercent = 'Бичихээр хүлээгдэх нь %';
+$strBufferWriteWaits = 'Бичихээр хүлээх';
$strBulgarian = 'Болгар';
-$strBusyPages = 'Завгүй хуудсууд';
+$strBusyPages = 'Завгүй хуудсууд';
$strBzip = 'bzip-ээр шахагдсан';
$strCalendar = 'Цагалбар';
@@ -159,7 +159,7 @@ $strCopyTableSameNames = ' Адил нэртэй хүснэгт рүү хуул
$strCopyTable = 'Хүснэгт хуулах(өгөгдлийн сан.хүснэгт):';
$strCopy = 'Хуулах';
$strCouldNotKill = 'phpMyAdmin нь thread %s-ийг хааж чадсангүй. Энэ аль хэдийн хаагдсан байна.';
-$strCreateDatabaseBeforeCopying = 'хуулахын өмнө CREATE DATABASE';
+$strCreateDatabaseBeforeCopying = 'хуулахын өмнө CREATE DATABASE';
$strCreateIndex = ' %s багануудад индекс үүсгэх';
$strCreateIndexTopic = 'Шинэ индекс үүсгэх';
$strCreateNewDatabase = 'Шинэ ӨС үүсгэх';
@@ -192,7 +192,7 @@ $strDatabases = 'Өгөгдлийн сангууд';
$strDatabase = 'ӨС';
$strDataDict = 'Өгөгдлийн толь';
$strDataOnly = 'Зөвхөн өгөгдөл';
-$strDataPages = 'Хуудсуудын агуулсан өгөгдөл';
+$strDataPages = 'Хуудсуудын агуулсан өгөгдөл';
$strData = 'Өгөгдөл';
$strDBComment = 'ӨС-ийн тайлбар: ';
$strDBCopy = 'Өгөгдлийн сан хуулах нь';
@@ -200,7 +200,7 @@ $strDbIsEmpty = 'Өгөгдлийн сан хоосон санагдаж бай
$strDbPrivileges = ' Онцгой эрх, өгөгдлийн сангийн эрх';
$strDBRename = 'Өгөгдлийн санг д.нэрлэх нь';
$strDbSpecific = 'Өгөгдлийн сангийн эрх';
-$strDefaultEngine = '%s нь уг MySQL сервэрийн анхдагч агуулах хөдөлгүүр байна.';
+$strDefaultEngine = '%s нь уг MySQL сервэрийн анхдагч агуулах хөдөлгүүр байна.';
$strDefaultValueHelp = 'Анхдагч утгаар энэ тогтнолыг ашиглан ташуу зураас, хашилтгүй ганц утга оруулна уу: a';
$strDefault = 'Анхдагч';
$strDefragment = 'Хүснэгт янзлах';
@@ -219,7 +219,7 @@ $strDescription = 'Тайлбар';
$strDesigner = 'Дизайнч';
$strDictionary = 'толь';
$strDirectLinks = 'Шууд холбоос';
-$strDirtyPages = 'Бохир хуудсууд';
+$strDirtyPages = 'Бохир хуудсууд';
$strDisabled = 'Хаагдсан';
$strDisableForeignChecks = 'Гадаад түлхүүр шалгалтыг хаах';
$strDisplayFeat = 'Онцлог харуулах';
@@ -248,10 +248,10 @@ $strEncloseInTransaction = 'Хэлэлцээр дэх гаргалтыг хаа
$strEndCut = 'END CUT';
$strEndRaw = 'END RAW';
$strEnd = 'Төгс';
-$strEngineAvailable = '%s нь уг MySQL сервэрт идэвхтэй байна.';
-$strEngineDisabled = '%s нь уг MySQL сервэр дээр хаалттай байна.';
-$strEngines = 'Хөдөлгүүрүүд';
-$strEngineUnsupported = 'Энэ MySQL сервэр нь %s агуулах хөдөлгүүрийг дэмжихгүй.';
+$strEngineAvailable = '%s нь уг MySQL сервэрт идэвхтэй байна.';
+$strEngineDisabled = '%s нь уг MySQL сервэр дээр хаалттай байна.';
+$strEngines = 'Хөдөлгүүрүүд';
+$strEngineUnsupported = 'Энэ MySQL сервэр нь %s агуулах хөдөлгүүрийг дэмжихгүй.';
$strEnglishPrivileges = ' Тэмдэглэл: MySQL онцгой эрхийн нэр нь англиар илэрхийлэгдсэн ';
$strEnglish = 'Англи';
$strErrorInZipFile = 'ZIP архивт байгаа алдаа:';
@@ -293,7 +293,7 @@ $strFontSize = 'Үсгийн хэмжээ';
$strForeignKeyError = 'Гадаад түлхүүр үүсгэхэд алдаа гарлаа (өгөгдлийн төрлөө шалга)';
$strFormat = 'Тогтнол';
$strFormEmpty = 'Форм дахь утгыг орхисон!';
-$strFreePages = 'Чөлөөт хуудсууд';
+$strFreePages = 'Чөлөөт хуудсууд';
$strFullText = 'Бүтэн бичвэр';
$strFunctions = 'Функцүүд';
$strFunction = 'Функц';
@@ -301,7 +301,7 @@ $strFunction = 'Функц';
$strGenBy = 'Үүсгэгч';
$strGeneralRelationFeat = 'Ерөнхий хамаатай онцлог';
$strGeneratePassword = 'Нууц үг бий болгох';
-$strGenerate = 'Бий болгох';
+$strGenerate = 'Бий болгох';
$strGenTime = 'Үүссэн цаг';
$strGeorgian = 'Гүрж';
$strGerman = 'Немец';
@@ -325,8 +325,8 @@ $strHomepageOfficial = 'phpMyAdmin-ын албан ёсны вэб сайт';
$strHome = 'Гэр';
$strHostEmpty = 'Хостын нэр хоосон!';
$strHost = 'Хост';
-$strHTMLExcel = 'Microsoft Excel 2000';
-$strHTMLWord = 'Microsoft Word 2000';
+$strHTMLExcel = 'Microsoft Excel 2000';
+$strHTMLWord = 'Microsoft Word 2000';
$strHungarian = 'Унгар';
$strIcelandic = 'Исланд';
@@ -346,14 +346,14 @@ $strIndexName = 'Индексийн нэр :';
$strIndexType = 'Индексийн төрөл :';
$strIndexWarningTable = 'Хүснэгт `%s`-ийн индекс асуудалтай';
$strIndex = 'Индекс';
-$strInnoDBAutoextendIncrementDesc = ' The increment size for extending the size of an autoextending tablespace when it becomes full.';
-$strInnoDBAutoextendIncrement = 'Авто нэмэгдэлт';
-$strInnoDBBufferPoolSizeDesc = 'Энэ хүснэгтийн кэш өгөгдөл, индекст хэрэглэх InnoDB санах ойн буфферийн хэмжээ.';
-$strInnoDBBufferPoolSize = 'Буффер pool хэмжээ';
-$strInnoDBDataFilePath = 'Өгөгдлийн файлууд';
-$strInnoDBDataHomeDirDesc = 'Бүх InnoDB өгөгдлийн файлын хавтсын замын үндсэн хэсэг.';
-$strInnoDBDataHomeDir = 'Өгөгдлийн үндсэн хавтас';
-$strInnoDBPages = 'хуудсууд';
+$strInnoDBAutoextendIncrementDesc = ' The increment size for extending the size of an autoextending tablespace when it becomes full.';
+$strInnoDBAutoextendIncrement = 'Авто нэмэгдэлт';
+$strInnoDBBufferPoolSizeDesc = 'Энэ хүснэгтийн кэш өгөгдөл, индекст хэрэглэх InnoDB санах ойн буфферийн хэмжээ.';
+$strInnoDBBufferPoolSize = 'Буффер pool хэмжээ';
+$strInnoDBDataFilePath = 'Өгөгдлийн файлууд';
+$strInnoDBDataHomeDirDesc = 'Бүх InnoDB өгөгдлийн файлын хавтсын замын үндсэн хэсэг.';
+$strInnoDBDataHomeDir = 'Өгөгдлийн үндсэн хавтас';
+$strInnoDBPages = 'хуудсууд';
$strInnodbStat = 'InnoDB байдал';
$strInsecureMySQL = 'Таны тохиргооны файл нь MySQL-ын анхдагч онцгой эрхийг (нэвтрэгч root нь нууц үггүй) агуулжээ. Таны MySQL сервэр энэ анхдагчаар ажиллаж байгаа нь хэн ч урилгагүй орох боломжийг өгнө. Та хамгаалалтын асуудлаа засах хэрэгтэй';
$strInsertAsNewRow = 'Шинэ мөр оруулаад';
@@ -391,7 +391,7 @@ $strKorean = 'Солонгос';
$strLandscape = 'Ландшафт';
$strLanguageUnknown = 'Үл мэдэгдэх хэл: %1$s.';
$strLanguage = 'Хэл';
-$strLatchedPages = 'Latched хуудсууд';
+$strLatchedPages = 'Latched хуудсууд';
$strLatexCaption = 'Хүснэгтийн гарчиг';
$strLatexContent = '__TABLE__ хүснэгтийн агуулга';
$strLatexContinuedCaption = 'Үргэлжилсэн хүснэгтийн гарчиг';
@@ -417,7 +417,7 @@ $strLogout = 'Гарах';
$strLogPassword = 'Нууц үг:';
$strLogServer = 'Сервэр';
$strLogUsername = 'Нэвтрэгч:';
-$strLongOperation = 'Энэ үйлдэл удах янзтай. Юутай ч үргэлжлүүлэх үү?';
+$strLongOperation = 'Энэ үйлдэл удах янзтай. Юутай ч үргэлжлүүлэх үү?';
$strMaxConnects = 'ХИ. давхацсан холболтууд';
$strMaximalQueryLength = 'Үүсгэгдсэн асуудлын хамгийн их урт';
@@ -443,18 +443,18 @@ $strMoveTableOK = 'Хүснэгт %s нь %s руу зөөгдөв.';
$strMoveTableSameNames = 'Адил нэр байсан тул хүснэгтийг зөөсөнгүй!';
$strMoveTable = 'Хүснэгтийг зөөх (өгөгдлийн сан.хүснэгт):';
$strMultilingual = 'олонхэлийн';
-$strMyISAMDataPointerSizeDesc = 'Анхдагч заагчийн хэмжээ байтаар илэрхийлэгдэх ба, CREATE TABLE -ээр MyISAM хүснэгтийг MAX_ROWS сонголт тодорхойлогдоогүй үед хэрэглэгдэнэ.';
-$strMyISAMDataPointerSize = 'Өгөгдөл заагчийн хэмжээ';
-$strMyISAMMaxExtraSortFileSizeDesc = 'Хэрэв завсрын файл MyISAM индекс үүсгэлтэд хэрэглэгдсэн бол үүнээс их энд тодорхойлогдсон хэмжээгээр key cache хэрэглэх хэрэгтэй, key cache аргыг илүүд үзвэл.';
-$strMyISAMMaxExtraSortFileSize = 'Индекс үүсгэлт дэх завсрын файлын ХИ хэмжээ';
-$strMyISAMMaxSortFileSizeDesc = 'Завсрын MySQL файлын ХИ хэмжээ нь MyISAM индексийг да-үүсгэхэд (REPAIR TABLE, ALTER TABLE, болон LOAD DATA INFILE -ын үед) хэрэглэгдэнэ.';
-$strMyISAMMaxSortFileSize = 'Завсрын эрэмбэлэх файлын ХИ хэмжээ';
-$strMyISAMRecoverOptionsDesc = 'Горим нь эвдэрсэн MyISAM хүснэгтийг автоматаар засна, серверийн эхлэлийн --myisam-recover сонголтоор.';
-$strMyISAMRecoverOptions = 'Авто сэргээх горим';
-$strMyISAMRepairThreadsDesc = 'Хэрэв энэ утга нь 1 -ээс их байвал, эрэмбэлэх процессоор Засах үед MyISAM хүснэгтийн индексүүд нь зэрэгцээгээр (индекс бүрт өөрийн процесс) үүсгэгдсэн.';
-$strMyISAMRepairThreads = 'Thread засах';
-$strMyISAMSortBufferSizeDesc = 'REPAIR TABLE -ийн үед MyISAM индексийг эрэмбэлэх эсвэл CREATE INDEX болон ALTER TABLE -ээр индекс үүсгэх үед буффер хуваарилагдсан.';
-$strMyISAMSortBufferSize = 'Буфферийн хэмжээг эрэмбэлэх';
+$strMyISAMDataPointerSizeDesc = 'Анхдагч заагчийн хэмжээ байтаар илэрхийлэгдэх ба, CREATE TABLE -ээр MyISAM хүснэгтийг MAX_ROWS сонголт тодорхойлогдоогүй үед хэрэглэгдэнэ.';
+$strMyISAMDataPointerSize = 'Өгөгдөл заагчийн хэмжээ';
+$strMyISAMMaxExtraSortFileSizeDesc = 'Хэрэв завсрын файл MyISAM индекс үүсгэлтэд хэрэглэгдсэн бол үүнээс их энд тодорхойлогдсон хэмжээгээр key cache хэрэглэх хэрэгтэй, key cache аргыг илүүд үзвэл.';
+$strMyISAMMaxExtraSortFileSize = 'Индекс үүсгэлт дэх завсрын файлын ХИ хэмжээ';
+$strMyISAMMaxSortFileSizeDesc = 'Завсрын MySQL файлын ХИ хэмжээ нь MyISAM индексийг да-үүсгэхэд (REPAIR TABLE, ALTER TABLE, болон LOAD DATA INFILE -ын үед) хэрэглэгдэнэ.';
+$strMyISAMMaxSortFileSize = 'Завсрын эрэмбэлэх файлын ХИ хэмжээ';
+$strMyISAMRecoverOptionsDesc = 'Горим нь эвдэрсэн MyISAM хүснэгтийг автоматаар засна, серверийн эхлэлийн --myisam-recover сонголтоор.';
+$strMyISAMRecoverOptions = 'Авто сэргээх горим';
+$strMyISAMRepairThreadsDesc = 'Хэрэв энэ утга нь 1 -ээс их байвал, эрэмбэлэх процессоор Засах үед MyISAM хүснэгтийн индексүүд нь зэрэгцээгээр (индекс бүрт өөрийн процесс) үүсгэгдсэн.';
+$strMyISAMRepairThreads = 'Thread засах';
+$strMyISAMSortBufferSizeDesc = 'REPAIR TABLE -ийн үед MyISAM индексийг эрэмбэлэх эсвэл CREATE INDEX болон ALTER TABLE -ээр индекс үүсгэх үед буффер хуваарилагдсан.';
+$strMyISAMSortBufferSize = 'Буфферийн хэмжээг эрэмбэлэх';
$strMySQLCharset = 'MySQL-кодлол';
$strMysqlClientVersion = 'MySQL клиент хувилбар';
$strMySQLConnectionCollation = 'MySQL холболтын кодлол';
@@ -467,7 +467,7 @@ $strNoActivity = '%s секунд ба түүнээс их идэвхгүй ба
$strNoDatabasesSelected = 'ӨС сонгогдоогүй.';
$strNoDatabases = 'ӨС байхгүй';
$strNoDescription = 'тайлбаргүй';
-$strNoDetailsForEngine = 'Энд уг агуулах хөдөлгүүрийн дэлгэрэнгүй төлвийн мэдээлэл алга.';
+$strNoDetailsForEngine = 'Энд уг агуулах хөдөлгүүрийн дэлгэрэнгүй төлвийн мэдээлэл алга.';
$strNoDropDatabases = '"ӨС устгах" нь хаалттай.';
$strNoExplain = 'SQL тайлбарлахыг орхих';
$strNoFilesFoundInZip = 'ZIP архив дотор файл байхгүй байна!';
@@ -510,7 +510,7 @@ $strOverhead = 'Толгой дээр';
$strOverwriteExisting = 'Файл(ууд)-г дарж бичих';
$strPageNumber = 'Хуудасны дугаар:';
-$strPagesToBeFlushed = 'Хуудсууд зайлагдсан';
+$strPagesToBeFlushed = 'Хуудсууд зайлагдсан';
$strPaperSize = 'Цаасны хэмжээ';
$strPartialImport = 'Хэсэгчлэн оруулах';
$strPartialText = 'Бичвэрийн зарим хэсэг';
@@ -546,18 +546,18 @@ $strPrintViewFull = 'Хэвлэхээр харах (бүх бичвэртэй н
$strPrintView = 'Хэвлэхээр харах';
$strPrint = 'Хэвлэх';
$strPrivDescAllPrivileges = 'Includes all privileges except GRANT.';
-$strPrivDescAlterRoutine = 'Хадгалагдсан заншил устгах, өөрчлөхийг зөвшөөрөх.';
+$strPrivDescAlterRoutine = 'Хадгалагдсан заншил устгах, өөрчлөхийг зөвшөөрөх.';
$strPrivDescAlter = 'Байгаа хүснэгтийн бүтцийг өөрчлөхийг зөвшөөрөх.';
$strPrivDescCreateDb = 'Шинэ өгөгдлийн сан, хүснэгт үүсгэхийг зөвшөөрөх.';
-$strPrivDescCreateRoutine = 'Хадгалагдсан заншил үүсгэхийг зөвшөөрөх.';
+$strPrivDescCreateRoutine = 'Хадгалагдсан заншил үүсгэхийг зөвшөөрөх.';
$strPrivDescCreateTbl = 'Шинэ хүснэгт үүсгэхийг зөвшөөрөх.';
$strPrivDescCreateTmpTable = 'Завсрын хүснэгт үүсгэхийг зөвшөөрөх.';
-$strPrivDescCreateUser = 'Хэрэглэгчийн эрхийг үүсгэх, устгах, да.нэрлэхийг зөвшөөрөх.';
-$strPrivDescCreateView = 'Шинэ харц үүсгэхийг зөвшөөрөх.';
+$strPrivDescCreateUser = 'Хэрэглэгчийн эрхийг үүсгэх, устгах, да.нэрлэхийг зөвшөөрөх.';
+$strPrivDescCreateView = 'Шинэ харц үүсгэхийг зөвшөөрөх.';
$strPrivDescDelete = 'Өгөгдөл устгахыг зөвшөөрөх.';
$strPrivDescDropDb = 'ӨС, хүснэгт устгахыг зөвшөөрөх ';
$strPrivDescDropTbl = 'Хүснэгт устгахыг зөвшөөрөх.';
-$strPrivDescExecute5 = 'Хадгалагдсан заншлыг ажиллуулахыг зөвшөөрөх.';
+$strPrivDescExecute5 = 'Хадгалагдсан заншлыг ажиллуулахыг зөвшөөрөх.';
$strPrivDescExecute = 'Агуулагдсан (stored) процедурыг ажиллуулахыг зөвшөөрөх; MySQL-ын энэ хувилбарт үйлчлэлгүй.';
$strPrivDescFile = 'Өгөгдөл оруулах, файл руу гаргахыг зөвшөөрөх.';
$strPrivDescGrant = 'Хэрэглэгч болон онцгой эрхийг онцгой эрхийн хүснэгтийг дуудалгүй нэмэхийг зөвшөөрөх.';
@@ -574,7 +574,7 @@ $strPrivDescReplClient = 'Gives the right to the user to ask where the slaves /
$strPrivDescReplSlave = 'Needed for the replication slaves.';
$strPrivDescSelect = 'Өгөгдөл уншихыг зөвшөөрөх.';
$strPrivDescShowDb = 'Өгөгдлийн сангийн бүрэн жагсаалт руу хандахыг өгөх.';
-$strPrivDescShowView = 'SHOW CREATE VIEW асуултыг хийхийг зөвшөөрөх.';
+$strPrivDescShowView = 'SHOW CREATE VIEW асуултыг хийхийг зөвшөөрөх.';
$strPrivDescShutdown = 'Сервэрийг унтраахыг зөвшөөрөх.';
$strPrivDescSuper = 'Хэрэв ХИ холболтын тоо гүйцсэн ч холбогдохыг зөвшөөрөх. Бусад хэрэглэгчийн процессыг үгүй хийх эсвэл глобал утгыг өөрчлөх шаардлагатай болно.';
$strPrivDescUpdate = 'Өгөгдөл солихыг зөвшөөрөх.';
@@ -600,7 +600,7 @@ $strQueryTime = 'Асуулт нь %01.4f сек авлаа';
$strQueryType = 'Асуултын төрөл';
$strQueryWindowLock = 'Цонхны гаднаас энэ асуултыг давхарлахгүй байх';
-$strReadRequests = 'Унших гуйлт';
+$strReadRequests = 'Унших гуйлт';
$strReceived = 'Ирсэн';
$strRecommended = 'сайшаагдсан';
$strRecords = 'Бичлэгүүд';
@@ -754,7 +754,7 @@ $strSize = 'Хэмжээ';
$strSlovak = 'Словак';
$strSlovenian = 'Словени';
$strSmallBigAll = 'Жижиш/Том Бүгдийг';
-$strSocketProblem = '(эсвэл дотоод MySQL сервэрийн socket нь зөв тохируулагдаагүй)';
+$strSocketProblem = '(эсвэл дотоод MySQL сервэрийн socket нь зөв тохируулагдаагүй)';
$strSortByKey = 'Түлхүүрээр эрэмбэлэх';
$strSorting = 'Эрэмбэлж байна';
$strSort = 'Эрэмбэлэх';
@@ -776,8 +776,8 @@ $strStatCreateTime = 'Үүсгэлт';
$strStatement = 'Баримтжуулал';
$strStatUpdateTime = 'Сүүлийн шинэчлэл';
$strStatus = 'Статус';
-$strStorageEngines = 'Агуулах хөдөлгүүрүүд';
-$strStorageEngine = 'Агуулах хөдөлгүүр';
+$strStorageEngines = 'Агуулах хөдөлгүүрүүд';
+$strStorageEngine = 'Агуулах хөдөлгүүр';
$strStrucCSV = 'CSV өгөгдөл';
$strStrucData = 'Бүтэц ба өгөгдөл';
$strStrucExcelCSV = 'CSV өгөгдлийг MS Excel-ээр';
@@ -876,12 +876,12 @@ $strValidateSQL = 'SQL-ийг батлах';
$strValidatorError = 'SQL баталгаажуулагч эхлэгдсэнгүй. Хэрэв PHP өргөтгөл суугдсан бол шалгана уу, %sбаримтжуулалд%s тодорхойлогдсон.';
$strValue = 'Утга';
$strVar = 'Хувьсагч';
-$strVersionInformation = 'Хувилбарын мэдээлэл';
+$strVersionInformation = 'Хувилбарын мэдээлэл';
$strViewDumpDatabases = 'ӨС-ийн схем харах';
$strViewDumpDB = 'ӨС-ийн схем харах';
$strViewDump = 'Хүснэгтийн схем харах';
-$strViewHasBeenDropped = 'Харц %s нь устгагдсан';
-$strView = 'Харц';
+$strViewHasBeenDropped = 'Харц %s нь устгагдсан';
+$strView = 'Харц';
$strWebServerUploadDirectoryError = 'Таны сонгосон хавтас "upload" хийгдэхгүй байна';
$strWebServerUploadDirectory = 'web-сервэр түлхэх хавтас';
@@ -890,7 +890,7 @@ $strWestEuropean = 'Баруун-Европ';
$strWildcard = 'загвар';
$strWindowNotFound = 'Зорилтот хөтчийн цонх шинэчлэгдсэнгүй. Магадгүй та эх цонхыг хаасан эсвэл таны хөтөч хамгаалалтын тохиргооны улмаас шинэчлэлтийг хориглогдсон';
$strWithChecked = 'Сонгогдсонтой:';
-$strWriteRequests = 'Бичих гуйлт';
+$strWriteRequests = 'Бичих гуйлт';
$strWrongUser = 'Нэвтрэгч/нууц үг буруу. Хандах боломжгүй';
$strXML = 'XML';
@@ -1486,4 +1486,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/norwegian-utf-8.inc.php b/lang/norwegian-utf-8.inc.php
index 916de7e9f..54cbc3a4c 100644
--- a/lang/norwegian-utf-8.inc.php
+++ b/lang/norwegian-utf-8.inc.php
@@ -1463,4 +1463,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/persian-utf-8.inc.php b/lang/persian-utf-8.inc.php
index dbaac3c52..22e7c958e 100644
--- a/lang/persian-utf-8.inc.php
+++ b/lang/persian-utf-8.inc.php
@@ -337,45 +337,45 @@ $strWrongUser = 'نام كاربر/اسم رمز اشتباه است. دسترس
$strYes = 'بلي';
$strZip = '"zipped"';
-$strArmenian = 'ارمنی';
+$strArmenian = 'ارمنی';
$strArabic = 'عربی';
-$strAndThen = 'و سپس';
-$strBinLogInfo = 'اطلاعات';
-$strBulgarian = 'بلغاری';
-$strAfterInsertSame = 'برگرد به این صفحه';
+$strAndThen = 'و سپس';
+$strBinLogInfo = 'اطلاعات';
+$strBulgarian = 'بلغاری';
+$strAfterInsertSame = 'برگرد به این صفحه';
$strCalendar = 'تقویم';
$strCommand = 'دستور';
-$strCopy = 'نسخه برداری';
-$strDanish = 'دانمارکی';
-$strEnglish = 'انگلیسی';
-$strGreek = 'یونانی';
+$strCopy = 'نسخه برداری';
+$strDanish = 'دانمارکی';
+$strEnglish = 'انگلیسی';
+$strGreek = 'یونانی';
$strGeorgian = 'گرجی';
$strGerman = 'آلمانی';
-$strXML = 'XML';
-$strAfterInsertNext = 'ویرایش کردن ردیف بعدی';
-$strAdministration = 'مدیریت';
-$strSpanish = 'اسپانیایی';
+$strXML = 'XML';
+$strAfterInsertNext = 'ویرایش کردن ردیف بعدی';
+$strAdministration = 'مدیریت';
+$strSpanish = 'اسپانیایی';
$strDeleting = 'در حال پاک کردن %s';
-$strDictionary = 'لغت نامه';
-$strJapanese = 'ژاپنی';
-$strKorean = 'کرهای';
-$strDescription = 'توضیحات';
+$strDictionary = 'لغت نامه';
+$strJapanese = 'ژاپنی';
+$strKorean = 'کرهای';
+$strDescription = 'توضیحات';
$strEngines = 'موتور';
-$strId = 'شناسه';
+$strId = 'شناسه';
$strLanguageUnknown = 'زبانِ ناشناس : %1$s.';
-$strTurkish = 'ترکی';
+$strTurkish = 'ترکی';
$strUkrainian = 'اوکراینی';
$strUnknown = 'ناشناس';
-$strVar = 'متغییر';
-$strView = 'نمایش';
-$strWestEuropean = 'اروپای غربی';
-$strAddClause = 'افزودن %s';
-$strLocalhost = 'محلی';
+$strVar = 'متغییر';
+$strView = 'نمایش';
+$strWestEuropean = 'اروپای غربی';
+$strAddClause = 'افزودن %s';
+$strLocalhost = 'محلی';
$strLoginInformation = 'اطلاعات ورود';
-$strPerHour = 'در ساعت';
-$strPerMinute = 'در دقیقه';
+$strPerHour = 'در ساعت';
+$strPerMinute = 'در دقیقه';
$strPerSecond = 'در ثانیه';
-$strPolish = 'لهستانی';
+$strPolish = 'لهستانی';
@@ -1517,4 +1517,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/polish-utf-8.inc.php b/lang/polish-utf-8.inc.php
index 767dda022..575775c9c 100644
--- a/lang/polish-utf-8.inc.php
+++ b/lang/polish-utf-8.inc.php
@@ -1177,7 +1177,7 @@ $strSetupForm_Sql_queries = 'Zapytania SQL';
$strSetupForm_Sql_queries_desc = 'SQL queries settings, for SQL Query box options see [a@?page=form&formset=main_frame#tab_Sql_box]Navigation frame[/a] settings'; //to translate
$strSetupForm_Other_core_settings = 'Inne kluczowe ustawienia';
$strSetupForm_Other_core_settings_desc = 'Settings that didn\'t fit enywhere else'; //to translate
-$strSetupForm_Left_frame = 'Ramka nawigacji';
+$strSetupForm_Left_frame = 'Ramka nawigacji';
$strSetupForm_Left_frame_desc = 'Customize appearance of the navigation frame'; //to translate
$strSetupForm_Left_servers = 'Serwery';
$strSetupForm_Left_servers_desc = 'Servers display options'; //to translate
@@ -1459,4 +1459,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/portuguese-utf-8.inc.php b/lang/portuguese-utf-8.inc.php
index 0849e40a2..fc6d4535f 100644
--- a/lang/portuguese-utf-8.inc.php
+++ b/lang/portuguese-utf-8.inc.php
@@ -1492,4 +1492,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/romanian-utf-8.inc.php b/lang/romanian-utf-8.inc.php
index 1f5420e9c..eee388bf7 100644
--- a/lang/romanian-utf-8.inc.php
+++ b/lang/romanian-utf-8.inc.php
@@ -9,7 +9,7 @@ $number_decimal_separator = '.';
// shortcuts for Byte, Kilo, Mega, Giga, Tera, Peta, Exa
$byteUnits = array('octeți', 'KiO', 'MiO', 'GiO', 'TiO', 'PiO', 'EiO');
-// MySQL manual language definition, this is optional, en will be used
+// MySQL manual language definition, this is optional, en will be used
// if not defined
$mysql_4_1_doc_lang = 'en';
$mysql_5_0_doc_lang = 'en';
@@ -1472,4 +1472,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/russian-utf-8.inc.php b/lang/russian-utf-8.inc.php
index 91502755b..4b6c6380e 100644
--- a/lang/russian-utf-8.inc.php
+++ b/lang/russian-utf-8.inc.php
@@ -397,7 +397,7 @@ $strInvalidColumn = 'Выбран неверный столбец (%s)!';
$strInvalidCSVFieldCount = 'Неправильное количество полей во входных CSV-данных в строке %d.';
$strInvalidCSVFormat = 'Неправильный формат входных CSV-данных в строке %d.';
$strInvalidCSVParameter = 'Неправильный параметр импорта CSV: %s';
-$strInvalidDatabase = 'Некорректная база данных';
+$strInvalidDatabase = 'Некорректная база данных';
$strInvalidFieldAddCount = 'Необходимо добавить хотя бы одно поле.';
$strInvalidFieldCount = 'У таблицы должно быть, как минимум, одно поле.';
$strInvalidLDIImport = 'Этот модуль не поддерживает импорт сжатых данных!';
@@ -1476,4 +1476,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/serbian_cyrillic-utf-8.inc.php b/lang/serbian_cyrillic-utf-8.inc.php
index 8a01e8ac9..6c358f877 100644
--- a/lang/serbian_cyrillic-utf-8.inc.php
+++ b/lang/serbian_cyrillic-utf-8.inc.php
@@ -1465,4 +1465,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/serbian_latin-utf-8.inc.php b/lang/serbian_latin-utf-8.inc.php
index 239fe2476..92c90376b 100644
--- a/lang/serbian_latin-utf-8.inc.php
+++ b/lang/serbian_latin-utf-8.inc.php
@@ -1465,4 +1465,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/sinhala-utf-8.inc.php b/lang/sinhala-utf-8.inc.php
index c8fa43205..f0a1d5d7d 100644
--- a/lang/sinhala-utf-8.inc.php
+++ b/lang/sinhala-utf-8.inc.php
@@ -1,6 +1,6 @@
diff --git a/lang/slovak-utf-8.inc.php b/lang/slovak-utf-8.inc.php
index f9a58a335..080170c2a 100644
--- a/lang/slovak-utf-8.inc.php
+++ b/lang/slovak-utf-8.inc.php
@@ -1466,4 +1466,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/slovenian-utf-8.inc.php b/lang/slovenian-utf-8.inc.php
index bafa4056d..90b62833d 100644
--- a/lang/slovenian-utf-8.inc.php
+++ b/lang/slovenian-utf-8.inc.php
@@ -1485,4 +1485,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/spanish-utf-8.inc.php b/lang/spanish-utf-8.inc.php
index 06327c38c..df71e3a66 100644
--- a/lang/spanish-utf-8.inc.php
+++ b/lang/spanish-utf-8.inc.php
@@ -93,14 +93,14 @@ $strBrowseDistinctValues = 'Navegar los valores distintivos';
$strBrowse = 'Examinar';
$strBrowseForeignValues = 'Mostrar los valores extranjeros';
$strBufferPoolActivity = 'Actividad de la memoria (búfer) de tránsito común';
-$strBufferPool = 'Total de memoria del búfer';
-$strBufferPoolUsage = 'Total de memoria del búfer consumido';
+$strBufferPool = 'Total de memoria del búfer';
+$strBufferPoolUsage = 'Total de memoria del búfer consumido';
$strBufferReadMissesInPercent = 'Leer los fallos en %';
$strBufferReadMisses = 'Leer los fallos';
$strBufferWriteWaits = 'Escribir las esperas';
$strBufferWriteWaitsInPercent = 'Escribir las esperas en %';
$strBulgarian = 'Búlgaro';
-$strBusyPages = 'Páginas activas';
+$strBusyPages = 'Páginas activas';
$strBzip = '"Comprimido con bzip"';
$strCalendar = 'Calendario';
@@ -126,9 +126,9 @@ $strChangeCopyUser = 'Cambiar la información de la cuenta / Copiar el usuario';
$strChangeDisplay = 'Elegir el campo a mostrar';
$strChangePassword = 'Cambio de contraseña';
$strCharset = 'Juego de caracteres';
-$strCharsetOfFile = 'Juego de caracteres del archivo:';
-$strCharsetsAndCollations = 'Juego de caracteres y sus cotejamientos';
-$strCharsets = 'Juegos de caracteres';
+$strCharsetOfFile = 'Juego de caracteres del archivo:';
+$strCharsetsAndCollations = 'Juego de caracteres y sus cotejamientos';
+$strCharsets = 'Juegos de caracteres';
$strCheckAll = 'Marcar todos/as';
$strCheckOverhead = 'Marcar las tablas con residuo a depurar';
$strCheckPrivsLong = 'Revisar los privilegios para la base de datos "%s".';
@@ -200,7 +200,7 @@ $strDatabasesStatsHeavyTraffic = 'Nota: Activar aquí las estadísticas de la ba
$strData = 'Datos';
$strDataDict = 'Diccionario de datos';
$strDataOnly = 'Solamente datos';
-$strDataPages = 'Páginas que contienen datos';
+$strDataPages = 'Páginas que contienen datos';
$strDBComment = 'Comentario de la base de datos: ';
$strDBCopy = 'Copiar la base de datos a';
$strDbIsEmpty = 'La base de datos, ¡parece estar vacía!';
@@ -228,7 +228,7 @@ $strDesignerHelpDisplayField = 'El campo Display se halla en color rosado. Para
$strDetails = 'Detalles...';
$strDictionary = 'diccionario';
$strDirectLinks = 'Enlaces directos';
-$strDirtyPages = 'Páginas que requieren ser depuradas';
+$strDirtyPages = 'Páginas que requieren ser depuradas';
$strDisabled = 'Deshabilitado';
$strDisableForeignChecks = 'Deshabilitar la revisión de las llaves extranjeras (foreign keys)';
$strDisplayFeat = 'Mostrar las opciones'; //Features = ¿opciones, componentes?
@@ -260,7 +260,7 @@ $strEndRaw = 'FIN DEL VOLCADO';
$strEngineAvailable = '%s está disponible en este servidor MySQL.';
$strEngineDisabled = '%s ha sido deshabilitado para este motor de almacenamiento.';
$strEngines = 'Motores';
-$strEngineUnsupported = 'Este servidor MySQL no es compatible con el motor de almacenamiento %s.';
+$strEngineUnsupported = 'Este servidor MySQL no es compatible con el motor de almacenamiento %s.';
$strEnglish = 'Inglés';
$strEnglishPrivileges = ' Nota: Los nombres de los privilegios de MySQL están expresados en inglés ';
$strError = 'Error';
@@ -310,7 +310,7 @@ $strForeignKeyError = 'Ocurrió un error al crear la llave extranjera en %1$s (r
$strForeignKeyRelationAdded = 'Se añadió una relación FOREIGN KEY';
$strFormat = 'Formato';
$strFormEmpty = '¡Falta un valor en el formulario!';
-$strFreePages = 'Páginas libres';
+$strFreePages = 'Páginas libres';
$strFullText = 'Textos completos';
$strFunction = 'Función';
$strFunctions = 'Funciones';
@@ -366,12 +366,12 @@ $strIndex = 'Índice';
$strIndexName = 'Nombre del índice :';
$strIndexType = 'Tipo de índice :';
$strIndexWarningTable = 'Problemas con los índices de la tabla `%s`';
-$strInnoDBAutoextendIncrementDesc = 'El tamaño a incrementar para que se extienda el ancho de una tabla capaz de autoextenderse cuando se llena.';
-$strInnoDBAutoextendIncrement = 'Incremente el valor AUTOEXTEND';
+$strInnoDBAutoextendIncrementDesc = 'El tamaño a incrementar para que se extienda el ancho de una tabla capaz de autoextenderse cuando se llena.';
+$strInnoDBAutoextendIncrement = 'Incremente el valor AUTOEXTEND';
$strInnoDBBufferPoolSizeDesc = 'El tamaño de la memoria intermedia (búfer) usado por InnoDB para almacenar, en el cache, los datos e índices de sus tablas.';
$strInnoDBBufferPoolSize = 'Tamaño de la memoria (búfer) de tránsito común';
-$strInnoDBDataFilePath = 'Archivos de datos';
-$strInnoDBDataHomeDirDesc = 'La parte constante de la ruta del directorio para todos los archivos de datos InnoDB.';
+$strInnoDBDataFilePath = 'Archivos de datos';
+$strInnoDBDataHomeDirDesc = 'La parte constante de la ruta del directorio para todos los archivos de datos InnoDB.';
$strInnoDBDataHomeDir = 'Directorio raíz de los datos';
$strInnoDBPages = 'páginas';
$strInnodbStat = 'Estado del InnoDB';
@@ -470,13 +470,13 @@ $strMultilingual = 'multilingüe';
$strMyISAMDataPointerSizeDesc = 'El tamaño predeterminado del puntero de datos en bytes, para su uso en CREATE TABLE para las tablas MyISAM cuando no se ha especificado la opción MAX_ROWS.';
$strMyISAMDataPointerSize = 'Tamaño del puntero de datos';
$strMyISAMMaxExtraSortFileSizeDesc = 'Si el archivo temporal usado para la generación rápida de índices MyISAM fuese mayor que el uso del key cache por la cantidad especificada aquí, preferir el método key cache.';
-$strMyISAMMaxExtraSortFileSize = 'Tamaño máximo de los archivos temporales durante la generación del índice';
+$strMyISAMMaxExtraSortFileSize = 'Tamaño máximo de los archivos temporales durante la generación del índice';
$strMyISAMMaxSortFileSizeDesc = 'El tamaño máximo del archivo temporal que MySQL puede generar mientras genera un nuevo índice MyISAM del archivo temporal (durante REPAIR TABLE, ALTER TABLE, o LOAD DATA INFILE).';
$strMyISAMMaxSortFileSize = 'Tamaño máximo para los archivos temporales generados durante la organización';
-$strMyISAMRecoverOptionsDesc = 'La modalidad para la recuperación automática de tablas MyISAM caídas catastróficamente, como fuera determinado mediante la opción al arranque del servidor --myisam-recover.';
+$strMyISAMRecoverOptionsDesc = 'La modalidad para la recuperación automática de tablas MyISAM caídas catastróficamente, como fuera determinado mediante la opción al arranque del servidor --myisam-recover.';
$strMyISAMRecoverOptions = 'Modalidad de recuperación automática';
$strMyISAMRepairThreadsDesc = 'Si este valor es superior a 1, se generan en paralelo los índices de las tablas MyISAM (cada índice con su propio proceso) durante el proceso \"Reparar mediante organización\".';
-$strMyISAMRepairThreads = 'Reparar los procesos';
+$strMyISAMRepairThreads = 'Reparar los procesos';
$strMyISAMSortBufferSizeDesc = 'La cantidad de memoria que se asigna para organizar los índices MyISAM durante la operación REPAIR TABLE o cuando se generan índices con CREATE INDEX o ALTER TABLE.';
$strMyISAMSortBufferSize = 'Organizar el tamaño del búfer de memoria';
$strMySQLCharset = 'Juegos de caracteres de MySQL';
@@ -540,7 +540,7 @@ $strOverwriteExisting = 'Sobreescribir el(los) archivo(s) existente(s)';
$strPacked = 'Empacado';
$strPageNumber = 'Número de página:';
-$strPagesToBeFlushed = 'Páginas que serán eliminadas';
+$strPagesToBeFlushed = 'Páginas que serán eliminadas';
$strPaperSize = 'Tamaño del papel';
$strPartialImport = 'Importación parcial';
$strPartialText = 'Textos parciales';
@@ -890,7 +890,7 @@ $strSimplifiedChinese = 'Chino simplificado';
$strSingly = '(solamente)';
$strSize = 'Tamaño';
$strSkipQueries = 'Número de registros (consultas) a saltarse desde el inicio';
-$strSlovak = 'Eslovaco';
+$strSlovak = 'Eslovaco';
$strSlovenian = 'Esloveno';
$strSmallBigAll = 'Pequeño/grande todos';
$strSnapToGrid = 'Cuadrícula magnética';
@@ -1463,4 +1463,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/swedish-utf-8.inc.php b/lang/swedish-utf-8.inc.php
index ce47d4c06..ae78b73ed 100644
--- a/lang/swedish-utf-8.inc.php
+++ b/lang/swedish-utf-8.inc.php
@@ -380,7 +380,10 @@ $strImportExportCoords = 'Importera/exportera koordinater för PDF-schema';
$strImportFiles = 'Importera filer';
$strImportFormat = 'Format på importerad fil';
$strImport = 'Importera';
+$strImportLargeFileUploading = 'Filen som laddas upp är förmodligen större än maximalt tillåtna storlek eller så är detta än känd bugg i webkit-baserade webbläsare (Safari, Google Chrome, Arora etc.).';
+$strImportProceedingFile = 'Filen bearbetas, vänligen vänta.';
$strImportSuccessfullyFinished = 'Importen har avslutats korrekt, %d frågor utförda.';
+$strImportUploadInfoNotAvailable = 'Var god vänta, filen håller på att laddas upp. Detaljer om denna uppladdning är inte tillgängliga.';
$strIndexes = 'Index';
$strIndexesSeemEqual = 'Indexen %1$s och %2$s verkar vara identiska och ett av dem kan möjligen tas bort.';
$strIndexHasBeenDropped = 'Index %s har tagits bort';
@@ -511,6 +514,7 @@ $strMySQLSaid = 'MySQL sa: ';
$strMySQLShowProcess = 'Visa processer';
$strName = 'Namn';
+$strNavTableFilter = 'Filter';
$strNext = 'Nästa';
$strNoActivity = 'Ingen aktivitet sedan %s sekunder eller mer. Var god logga in igen';
$strNoDatabases = 'Inga databaser';
@@ -613,6 +617,7 @@ $strPerMinute = 'per minut';
$strPerSecond = 'per sekund';
$strPersian = 'Persiska';
$strPhoneBook = 'telefonbok';
+$strPhpArray = 'PHP-array';
$strPHPExtension = 'PHP-tillägg';
$strPhp = 'Skapa PHP-kod';
$strPHPVersion = 'PHP-version';
@@ -1026,9 +1031,9 @@ $strSetupServers_auth_swekey_config_desc = 'Sökväg till konfigurationsfilen f
$strSetupServers_auth_swekey_config_name = 'SweKey konfigurationsfil';
$strSetupServers_auth_type_desc = 'Autentiseringsmetod att använda';
$strSetupServers_auth_type_name = 'Typ av autentisering';
-$strSetupServers_bookmarktable_desc = 'Lämna tomt för inget stöd för [a@http://wiki.phpmyadmin.net/pma/bookmark]bokmärken[/a], standard: [kbd]pma_bookmark[/kbd]';
+$strSetupServers_bookmarktable_desc = 'Lämna tomt för inget stöd för [a@http://wiki.phpmyadmin.net/pma/bookmark]bokmärken[/a], förslag: [kbd]pma_bookmark[/kbd]';
$strSetupServers_bookmarktable_name = 'Tabell för bokmärken';
-$strSetupServers_column_info_desc = 'Lämna tomt för inget stöd för kolumnkommentarer/mime-typer, standard: [kbd]pma_column_info[/kbd]';
+$strSetupServers_column_info_desc = 'Lämna tomt för inget stöd för kolumnkommentarer/mime-typer, förslag: [kbd]pma_column_info[/kbd]';
$strSetupServers_column_info_name = 'Tabell för kolumninformation';
$strSetupServers_compress_desc = 'Komprimera anslutning till MySQL-servern';
$strSetupServers_compress_name = 'Komprimera anslutning';
@@ -1039,7 +1044,7 @@ $strSetupServers_controluser_desc = 'En speciell MySQL-användare konfigurerad m
$strSetupServers_controluser_name = 'Kontrollanvändare';
$strSetupServers_CountTables_desc = 'Räkna tabeller vid visning av databaslista';
$strSetupServers_CountTables_name = 'Räkna tabeller';
-$strSetupServers_designer_coords_desc = 'Lämna tomt för inget stöd för Designer, standard: [kbd]pma_designer_coords[/kbd]';
+$strSetupServers_designer_coords_desc = 'Lämna tomt för inget stöd för Designer, förslag: [kbd]pma_designer_coords[/kbd]';
$strSetupServers_designer_coords_name = 'Tabell för Designer';
$strSetupServers_DisableIS_desc = 'Mer information på [a@http://sf.net/support/tracker.php?aid=1849494]PMA bug tracker[/a] och [a@http://bugs.mysql.com/19588]MySQL Bugs[/a]';
$strSetupServers_DisableIS_name = 'Inaktivera användning av INFORMATION_SCHEMA';
@@ -1049,7 +1054,7 @@ $strSetupServers_extension_desc = 'Vilket PHP-tillägg som ska användas; du bö
$strSetupServers_extension_name = 'PHP-tillägg att använda';
$strSetupServers_hide_db_desc = 'Dölj databaser som matchar reguljärt uttryck (PCRE)';
$strSetupServers_hide_db_name = 'Dölj databaser';
-$strSetupServers_history_desc = 'Lämna tomt för inget stöd för SQL-frågehistorik, standard: [kbd]pma_history[/kbd]';
+$strSetupServers_history_desc = 'Lämna tomt för inget stöd för SQL-frågehistorik, förslag: [kbd]pma_history[/kbd]';
$strSetupServers_history_name = 'Tabell för SQL-frågehistorik';
$strSetupServers_host_desc = 'Värdnamn där MySQL-servern körs';
$strSetupServers_host_name = 'Serverns värdnamn';
@@ -1060,13 +1065,13 @@ $strSetupServers_only_db_desc = 'Du kan använda MySQL:s jokertecken (% och _),
$strSetupServers_only_db_name = 'Visa endast listade databaser';
$strSetupServers_password_desc = 'Lämna tomt om inte autentisering config används';
$strSetupServers_password_name = 'Löseenord för autentisering config';
-$strSetupServers_pdf_pages_desc = 'Lämna tomt för inget stöd för PDF-schema, standard: [kbd]pma_pdf_pages[/kbd]';
+$strSetupServers_pdf_pages_desc = 'Lämna tomt för inget stöd för PDF-schema, förslag: [kbd]pma_pdf_pages[/kbd]';
$strSetupServers_pdf_pages_name = 'PDF-schema: Tabell för sidor';
-$strSetupServers_pmadb_desc = 'Databas som används för relationer, bokmärken och PDF-funktioner. Se [a@http://wiki.phpmyadmin.net/pma/pmadb]pmadb[/a] för komplett information. Lämna tomt för utan stöd. Standard: [kbd]phpmyadmin[/kbd]';
+$strSetupServers_pmadb_desc = 'Databas som används för relationer, bokmärken och PDF-funktioner. Se [a@http://wiki.phpmyadmin.net/pma/pmadb]pmadb[/a] för komplett information. Lämna tomt för utan stöd. Förslag: [kbd]phpmyadmin[/kbd]';
$strSetupServers_pmadb_name = 'PMA databas';
$strSetupServers_port_desc = 'Port som MySQL-servern lyssnar på, lämna tomt för standard';
$strSetupServers_port_name = 'Serverport';
-$strSetupServers_relation_desc = 'Lämna tomt för inget stöd för [a@http://wiki.phpmyadmin.net/pma/relation]relationslänkar[/a], standard: [kbd]pma_relation[/kbd]';
+$strSetupServers_relation_desc = 'Lämna tomt för inget stöd för [a@http://wiki.phpmyadmin.net/pma/relation]relationslänkar[/a], förslag: [kbd]pma_relation[/kbd]';
$strSetupServers_relation_name = 'Tabell för relationer';
$strSetupServers_ShowDatabasesCommand_desc = 'SQL-kommando för att hämta tillgängliga databaser';
$strSetupServers_ShowDatabasesCommand_name = 'SHOW DATABASES-kommando';
@@ -1078,9 +1083,9 @@ $strSetupServers_socket_desc = 'Sockel som MySQL-servern lyssnar på, lämna tom
$strSetupServers_socket_name = 'Serversockel';
$strSetupServers_ssl_desc = '';
$strSetupServers_ssl_name = 'Använd SSL';
-$strSetupServers_table_coords_desc = 'Lämna tomt för inget stöd för PDF-schema, standard: [kbd]pma_table_coords[/kbd]';
+$strSetupServers_table_coords_desc = 'Lämna tomt för inget stöd för PDF-schema, förslag: [kbd]pma_table_coords[/kbd]';
$strSetupServers_table_coords_name = 'PDF-schema: tabellkoordinater';
-$strSetupServers_table_info_desc = 'Tabell för att beskriva fält att visa, lämna tomt för inget stöd; standard: [kbd]pma_table_info[/kbd]';
+$strSetupServers_table_info_desc = 'Tabell för att beskriva fält att visa, lämna tomt för inget stöd; förslag: [kbd]pma_table_info[/kbd]';
$strSetupServers_table_info_name = 'Tabell för visa fält';
$strSetupServers_user_desc = 'Lämna tomt om inte autentisering config används';
$strSetupServers_user_name = 'Användare för autentisering config';
@@ -1457,10 +1462,81 @@ $strYes = 'Ja';
$strZeroRemovesTheLimit = 'Anm: Genom att sätta dessa alternativ till 0 (noll) tas begränsningarna bort.';
$strZip = '"zippad"';
-
-$strNavTableFilter = 'Filter'; //to translate
-$strPhpArray = 'PHP array'; //to translate
-$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
-$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
-$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/tatarish-utf-8.inc.php b/lang/tatarish-utf-8.inc.php
index c76cb5347..46cb0895d 100644
--- a/lang/tatarish-utf-8.inc.php
+++ b/lang/tatarish-utf-8.inc.php
@@ -1476,4 +1476,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/thai-utf-8.inc.php b/lang/thai-utf-8.inc.php
index a8cd28190..b7ed548b6 100644
--- a/lang/thai-utf-8.inc.php
+++ b/lang/thai-utf-8.inc.php
@@ -46,7 +46,7 @@ $strAny = 'ใดๆ';
$strAnyHost = 'โฮสต์ใดๆ';
$strAnyUser = 'ผู้ใช้ใดๆ';
$strAPrimaryKey = 'ได้เพิ่มไพรมารีคีย์แล้วใน %s';
-$strArabic = 'อารบิค';
+$strArabic = 'อารบิค';
$strArmenian = 'อาร์เมเนีย';
$strAscending = 'น้อยไปมาก';
$strAtBeginningOfTable = 'ที่จุดเริ่มต้นของตาราง';
@@ -1487,4 +1487,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/turkish-utf-8.inc.php b/lang/turkish-utf-8.inc.php
index 61d5d13a3..c4445a46b 100644
--- a/lang/turkish-utf-8.inc.php
+++ b/lang/turkish-utf-8.inc.php
@@ -12,7 +12,7 @@ $number_decimal_separator = '.';
// shortcuts for Byte, Kilo, Mega, Giga, Tera, Peta, Exa
$byteUnits = array('B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB');
-// MySQL manual language definition, this is optional, en will be used
+// MySQL manual language definition, this is optional, en will be used
// if not defined
$mysql_4_1_doc_lang = 'tr';
$mysql_5_0_doc_lang = 'tr';
@@ -82,13 +82,13 @@ $strBeginCut = 'BEGIN CUT';
$strBeginRaw = 'BEGIN RAW';
$strBinary = 'Binari';
$strBinaryDoNotEdit = 'Binari - düzenlemeyiniz';
-$strBinaryLog = 'Binari günlüğü';
-$strBinLogEventType = 'Olay türü';
-$strBinLogInfo = 'Bilgi';
+$strBinaryLog = 'Binari günlüğü';
+$strBinLogEventType = 'Olay türü';
+$strBinLogInfo = 'Bilgi';
$strBinLogName = 'Günlük ismi';
$strBinLogOriginalPosition = 'Orijinal konum';
-$strBinLogPosition = 'Konum';
-$strBinLogServerId = 'Sunucu ID';
+$strBinLogPosition = 'Konum';
+$strBinLogServerId = 'Sunucu ID';
$strBLOBRepository = 'BLOB Havuzu';
$strBLOBRepositoryDamaged = 'Hasarlı';
$strBLOBRepositoryDisableAreYouSure = 'Tüm BLOB referanslarını %s veritabanı için etkisizleştirmek istediğinize emin misiniz?';
@@ -120,7 +120,7 @@ $strBufferReadMisses = 'Okuma kaçırıyor';
$strBufferWriteWaitsInPercent = 'Yazma beklemesi %';
$strBufferWriteWaits = 'Yazma bekliyor';
$strBulgarian = 'Bulgarca';
-$strBusyPages = 'Meşgul sayfalar';
+$strBusyPages = 'Meşgul sayfalar';
$strBzip = '"bzip olarak"';
$strCalendar = 'Takvim';
@@ -163,7 +163,7 @@ $strColumnPrivileges = 'Sütuna özgü yetkiler';
$strCommand = 'Komut';
$strComment = 'Yorum';
$strComments = 'Yorumlar';
-$strCompatibleHashing = 'MySQL 4.0 uyumlu';
+$strCompatibleHashing = 'MySQL 4.0 uyumlu';
$strCompleteInserts = 'Bütün eklemeler';
$strCompression = 'Sıkıştırma';
$strCompressionWillBeDetected = 'İçeri aktarılmış dosya sıkıştırması otomatik olarak bu dosya türlerinden algılanacak: %s';
@@ -228,7 +228,7 @@ $strDbPrivileges = 'Veritabanına özgü yetkiler';
$strDBRename = 'Veritabanını şuna yeniden adlandır';
$strDbSpecific = 'Veritabanına özgü';
$strDefault = 'Varsayılan';
-$strDefaultEngine = '%s bu MySQL sunucusundaki varsayılan depolama motorudur.';
+$strDefaultEngine = '%s bu MySQL sunucusundaki varsayılan depolama motorudur.';
$strDefaultValueHelp = 'Varsayılan değerler için lütfen sola eğik çizgisiz veya alıntısız sadece tek değer girin. Bu biçimi kullanın: a';
$strDefragment = 'Tabloyu birleştir';
$strDelayedInserts = 'Gecikmiş eklemeleri kullan';
@@ -331,7 +331,7 @@ $strForeignKeyError = '%1$s üzerinde dış anahtar oluşturma hatası (veri tü
$strForeignKeyRelationAdded = 'FOREIGN KEY bağlantısı eklendi';
$strFormat = 'Biçim';
$strFormEmpty = 'Formda eksik değer!';
-$strFreePages = 'Serbest sayfalar';
+$strFreePages = 'Serbest sayfalar';
$strFullText = 'Tam Metinler';
$strFunctions = 'İşlevler';
$strFunction = 'İşlev';
@@ -499,8 +499,8 @@ $strMyISAMRecoverOptionsDesc = '-myisam-recover sunucusu başlat seçeneği yolu
$strMyISAMRecoverOptions = 'Otomatik kurtarma kipi';
$strMyISAMRepairThreadsDesc = 'Eğer bu değer 1\'den büyükse, sıralama işlemi tarafından yapılan onarma sırasında, MyISAM tablosu indeksleri (her bir indeks kendi işlemi içinde) paralel olarak oluşturulur.';
$strMyISAMRepairThreads = 'İşlemleri onar';
-$strMyISAMSortBufferSize = 'Ara bellek boyutunu sırala';
-$strMyISAMSortBufferSizeDesc = 'Bir REPAIR TABLE komutu sırasında MyISAM indeksleri sıralanırken ya da CREATE INDEX veya ALTER TABLE komutuyla indeksler oluşturulduğunda ayrılan ara bellek miktarı.';
+$strMyISAMSortBufferSize = 'Ara bellek boyutunu sırala';
+$strMyISAMSortBufferSizeDesc = 'Bir REPAIR TABLE komutu sırasında MyISAM indeksleri sıralanırken ya da CREATE INDEX veya ALTER TABLE komutuyla indeksler oluşturulduğunda ayrılan ara bellek miktarı.';
$strMySQLCharset = 'MySQL karakter grubu';
$strMysqlClientVersion = 'MySQL istemci sürümü';
$strMySQLConnectionCollation = 'MySQL bağlantı karşılaştırması';
@@ -515,7 +515,7 @@ $strNoDatabasesSelected = 'Veritabanı seçilmedi.';
$strNoDatabases = 'Veritabanı yok';
$strNoDataReceived = 'İçeri aktarmak için veri alınmadı. Ya dosya adı gönderilmedi ya da PHP yapılandırmanız tarafından izin verilen en fazla boyut aşıldı. SSS 1.16\'ya bakın.';
$strNoDescription = 'Açıklama yok';
-$strNoDetailsForEngine = 'Bu depolama motoru için ayrıntılı durum bilgisi mevcut değil.';
+$strNoDetailsForEngine = 'Bu depolama motoru için ayrıntılı durum bilgisi mevcut değil.';
$strNoDropDatabases = '"DROP DATABASE" ifadesi etkisiz.';
$strNoExplain = 'SQL Açıklamasını atla';
$strNoFilesFoundInZip = 'ZIP arşivi içinde hiç dosya bulunamadı!';
@@ -572,7 +572,7 @@ $strPartitionMaintenance = 'Bölüm bakımı';
$strPartition = 'Bölüm %s';
$strPasswordChanged = '%s için parola başarılı olarak değiştirildi.';
$strPasswordEmpty = 'Parola boş!';
-$strPasswordHashing = 'Parola Hesaplanıyor';
+$strPasswordHashing = 'Parola Hesaplanıyor';
$strPasswordNotSame = 'Parolalar birbiriyle aynı değil!';
$strPassword = 'Parola';
$strPBXTCheckpointFrequency = 'Kontrol noktası sıklığı';
@@ -969,7 +969,7 @@ $strSetupLoginCookieValidityMsg = '[a@?page=form&formset=features#tab_Security]O
$strSetupLoginCookieValidity_name = 'Oturum açma tanımlama bilgisi geçerliliği';
$strSetupMaxCharactersInDisplayedSQL_desc = 'SQL sorgusu görüntülendiğinde kullanılan en fazla karakter sayısıdır';
$strSetupMaxCharactersInDisplayedSQL_name = 'En fazla görüntülenecek SQL uzunluğu';
-$strSetupMaxDbList_desc = 'Sol çerçevede ve veritabanı listesinde görüntülenecek olan en fazla veritabanı sayısıdır';
+$strSetupMaxDbList_desc = 'Sol çerçevede ve veritabanı listesinde görüntülenecek olan en fazla veritabanı sayısıdır';
$strSetupMaxDbList_name = 'En fazla veritabanı';
$strSetupMaxRows_desc = 'Sonuç grubuna göz atarken görüntülenecek satır sayısıdır. Eğer sonuç grubu daha fazla satır içeriyorsa, "Önceki" ve "Sonraki" bağlantıları gösterilecektir.';
$strSetupMaxRows_name = 'Görüntülemek için en fazla satır sayısı';
@@ -1310,7 +1310,7 @@ $strSwekeyAuthenticating = 'Kimlik denetleniyor...';
$strSwekeyAuthFailed = 'Donanım kimlik denetimi başarısız';
$strSwekeyNoKeyId = '%s dosyası herhangi bir anahtar kimliği içermiyor';
$strSwekeyNoKey = 'Geçerli kimlik denetimi anahtarı takılı değil';
-$strSwitchToDatabase = 'Kopyalanmış veritabanına geç.';
+$strSwitchToDatabase = 'Kopyalanmış veritabanına geç.';
$strSwitchToTable = 'Kopyalanmış tabloya geç';
$strTableAlreadyExists = '%s tablosu zaten var!';
@@ -1469,4 +1469,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/ukrainian-utf-8.inc.php b/lang/ukrainian-utf-8.inc.php
index cbcf41db1..ba3a0f182 100644
--- a/lang/ukrainian-utf-8.inc.php
+++ b/lang/ukrainian-utf-8.inc.php
@@ -1485,4 +1485,81 @@ $strPhpArray = 'PHP array'; //to translate
$strImportLargeFileUploading = 'The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.'; //to translate
$strImportProceedingFile = 'The file is being processed, please be patient.'; //to translate
$strImportUploadInfoNotAvailable = 'Please be patient, the file is being uploaded. Details about the upload are not available.'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/uzbek_cyrillic-utf-8.inc.php b/lang/uzbek_cyrillic-utf-8.inc.php
index 930b36b70..c415d6aa5 100644
--- a/lang/uzbek_cyrillic-utf-8.inc.php
+++ b/lang/uzbek_cyrillic-utf-8.inc.php
@@ -418,7 +418,7 @@ $strInvalidColumnCount = 'Устунлар сони нолдан кўп бўли
$strInvalidCSVFieldCount = 'Киритилаётган CSV маълумотларнинг %d қаторидаги майдонлар сони нотўғри.';
$strInvalidCSVFormat = 'Киритилаётган CSV маълумотларнинг %d қаторидаги маълумотлар формати нотўғри.';
$strInvalidCSVParameter = 'CSV импортидаги парамерт нотўғри: "%s"';
-$strInvalidDatabase = 'Нотўғри маълумотлар базаси';
+$strInvalidDatabase = 'Нотўғри маълумотлар базаси';
$strInvalidFieldAddCount = 'Ҳеч бўлмаганда битта майдон киритиш шарт.';
$strInvalidFieldCount = 'Жадвалда, ҳеч бўлмаганда, битта майдон бўлиши шарт.';
$strInvalidLDIImport = 'Ушбу модул қисилган маълумотларни импорт қила олмайди!';
@@ -810,7 +810,7 @@ $strSetupblowfish_secret_desc = '[kbd]cookie[/kbd]-аутентификация
$strSetupblowfish_secret_name = 'Сирли калит сўз (Blowfish)';
$strSetupBlowfishSecretCharsMsg = 'Калит ҳарфлар, рақамлар [em]ва[/em] махсус белгиларни олиши керак';
$strSetupBlowfishSecretLengthMsg = 'Калит жуда қисқа, у камида 8 та белгидан иборат бўлиши керак';
-$strSetupBlowfishSecretMsg = 'Сиз конфигурацион файлда калит сўз(Blowfish)ни белгиламагансиз, лекин cookie-аутентификация усулидан фойдаланаяпсиз, шунинг учун калит сўз автоматик тарзда тузилди. Ушбу калит сўз шифрлашда қўлланилади, уни эслаб қолишингиз шарт эмас.';
+$strSetupBlowfishSecretMsg = 'Сиз конфигурацион файлда калит сўз(Blowfish)ни белгиламагансиз, лекин cookie-аутентификация усулидан фойдаланаяпсиз, шунинг учун калит сўз автоматик тарзда тузилди. Ушбу калит сўз шифрлашда қўлланилади, уни эслаб қолишингиз шарт эмас.';
$strSetupBrowseMarkerEnable_desc = 'Танланган қаторларни белгилаш';
$strSetupBrowseMarkerEnable_name = 'Қатор маркери';
$strSetupBrowsePointerEnable_desc = 'Сичқонча курсори кўрсатиб турган қаторни белгилаш';
@@ -895,7 +895,7 @@ $strSetupForm_Import_defaults = 'Импорт';
$strSetupForm_Import_defaults_desc = 'Импорт афзалликларини созлаш';
$strSetupForm_Import_export = 'Импорт/Экспорт';
$strSetupForm_Import_export_desc = 'Импорт ва экспорт каталоглари ва қисиш усулларини белгилаш';
-$strSetupForm_Left_databases = 'Маълумотлар базалари';
+$strSetupForm_Left_databases = 'Маълумотлар базалари';
$strSetupForm_Left_databases_desc = 'Маълумотлар базаларини кўрсатиш афзалликлари';
$strSetupForm_Left_frame = 'Навигация панели';
$strSetupForm_Left_frame_desc = 'Навигация панели кўринишини созлаш';
@@ -948,7 +948,7 @@ $strSetupImport_skip_queries_desc = 'Файл бошидаги эътибор б
$strSetupImport_skip_queries_name = 'Қисман импорт: сўровларга эътибор бермаслик';
$strSetupInsecureConnection = 'Нохавфсиз уланиш';
$strSetupInsecureConnectionMsg1 = 'Сизнинг уланишингиз хавфсиз эмас; барча маълумотлар (шу жумладан, сирли маълумотлар, масалан, пароллар) шифрланмаган ҳолда узатилади!';
-$strSetupInsecureConnectionMsg2 = 'Агар серверингиз HTTPS талабларига жавоб бера олса, унда хавфсиз уланишни ишлатиш учун [a@"%s"]ушбу боғдан[/a] фойдаланинг.';
+$strSetupInsecureConnectionMsg2 = 'Агар серверингиз HTTPS талабларига жавоб бера олса, унда хавфсиз уланишни ишлатиш учун [a@"%s"]ушбу боғдан[/a] фойдаланинг.';
$strSetupInsertRows_desc = 'Бир вақтнинг ўзиданечта қатор қўйилиши мумкин';
$strSetupInsertRows_name = 'Қўйилган қаторлар сони';
$strSetupLeftDefaultTabTable_name = 'Тезкор мурожаат пиктограммаси учун нишон';
@@ -1467,4 +1467,81 @@ $strZeroRemovesTheLimit = 'ИЗОҲ: параметр қийматларини 0
$strZip = 'zip';
$strSetupServers_AllowNoPassword_name = 'Allow logins without a password'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/lang/uzbek_latin-utf-8.inc.php b/lang/uzbek_latin-utf-8.inc.php
index 1d8e35000..7c0431b83 100644
--- a/lang/uzbek_latin-utf-8.inc.php
+++ b/lang/uzbek_latin-utf-8.inc.php
@@ -418,7 +418,7 @@ $strInvalidColumnCount = 'Ustunlar soni noldan ko‘p bo‘lishi shart.';
$strInvalidCSVFieldCount = 'Kiritilayotgan CSV ma`lumotlarning %d qatoridagi maydonlar soni noto‘g‘ri.';
$strInvalidCSVFormat = 'Kiritilayotgan CSV ma`lumotlarning %d qatoridagi ma`lumotlar formati noto‘g‘ri.';
$strInvalidCSVParameter = 'CSV importidagi paramert noto‘g‘ri: "%s"';
-$strInvalidDatabase = 'Noto‘g‘ri ma`lumotlar bazasi';
+$strInvalidDatabase = 'Noto‘g‘ri ma`lumotlar bazasi';
$strInvalidFieldAddCount = 'Hech bo‘lmaganda bitta maydon kiritish shart.';
$strInvalidFieldCount = 'Jadvalda, hech bo‘lmaganda, bitta maydon bo‘lishi shart.';
$strInvalidLDIImport = 'Ushbu modul qisilgan ma`lumotlarni import qila olmaydi!';
@@ -810,7 +810,7 @@ $strSetupblowfish_secret_desc = '[kbd]cookie[/kbd]-autentifikatsiya usulida cook
$strSetupblowfish_secret_name = 'Sirli kalit so‘z (Blowfish)';
$strSetupBlowfishSecretCharsMsg = 'Kalit harflar, raqamlar [em]va[/em] maxsus belgilarni olishi kerak';
$strSetupBlowfishSecretLengthMsg = 'Kalit juda qisqa, u kamida 8 ta belgidan iborat bo‘lishi kerak';
-$strSetupBlowfishSecretMsg = 'Siz konfiguratsion faylda kalit so‘z(Blowfish)ni belgilamagansiz, lekin cookie-autentifikatsiya usulidan foydalanayapsiz, shuning uchun kalit so‘z avtomatik tarzda tuzildi. Ushbu kalit so‘z shifrlashda qo‘llaniladi, uni eslab qolishingiz shart emas.';
+$strSetupBlowfishSecretMsg = 'Siz konfiguratsion faylda kalit so‘z(Blowfish)ni belgilamagansiz, lekin cookie-autentifikatsiya usulidan foydalanayapsiz, shuning uchun kalit so‘z avtomatik tarzda tuzildi. Ushbu kalit so‘z shifrlashda qo‘llaniladi, uni eslab qolishingiz shart emas.';
$strSetupBrowseMarkerEnable_desc = 'Tanlangan qatorlarni belgilash';
$strSetupBrowseMarkerEnable_name = 'Qator markeri';
$strSetupBrowsePointerEnable_desc = 'Sichqoncha kursori ko‘rsatib turgan qatorni belgilash';
@@ -895,7 +895,7 @@ $strSetupForm_Import_defaults = 'Import';
$strSetupForm_Import_defaults_desc = 'Import afzalliklarini sozlash';
$strSetupForm_Import_export = 'Import/Eksport';
$strSetupForm_Import_export_desc = 'Import va eksport kataloglari va qisish usullarini belgilash';
-$strSetupForm_Left_databases = 'Ma`lumotlar bazalari';
+$strSetupForm_Left_databases = 'Ma`lumotlar bazalari';
$strSetupForm_Left_databases_desc = 'Ma`lumotlar bazalarini ko‘rsatish afzalliklari';
$strSetupForm_Left_frame = 'Navigatsiya paneli';
$strSetupForm_Left_frame_desc = 'Navigatsiya paneli ko‘rinishini sozlash';
@@ -948,7 +948,7 @@ $strSetupImport_skip_queries_desc = 'Fayl boshidagi e`tibor berish kerak bo‘lm
$strSetupImport_skip_queries_name = 'Qisman import: so‘rovlarga e`tibor bermaslik';
$strSetupInsecureConnection = 'Noxavfsiz ulanish';
$strSetupInsecureConnectionMsg1 = 'Sizning ulanishingiz xavfsiz emas; barcha ma`lumotlar (shu jumladan, sirli ma`lumotlar, masalan, parollar) shifrlanmagan holda uzatiladi!';
-$strSetupInsecureConnectionMsg2 = 'Agar serveringiz HTTPS talablariga javob bera olsa, unda xavfsiz ulanishni ishlatish uchun [a@"%s"]ushbu bog‘dan[/a] foydalaning.';
+$strSetupInsecureConnectionMsg2 = 'Agar serveringiz HTTPS talablariga javob bera olsa, unda xavfsiz ulanishni ishlatish uchun [a@"%s"]ushbu bog‘dan[/a] foydalaning.';
$strSetupInsertRows_desc = 'Bir vaqtning o‘zidanechta qator qo‘yilishi mumkin';
$strSetupInsertRows_name = 'Qo‘yilgan qatorlar soni';
$strSetupLeftDefaultTabTable_name = 'Tezkor murojaat piktogrammasi uchun nishon';
@@ -1467,4 +1467,81 @@ $strZeroRemovesTheLimit = 'IZOH: parametr qiymatlarini 0 (nol) deb belgilash mav
$strZip = 'zip';
$strSetupServers_AllowNoPassword_name = 'Allow logins without a password'; //to translate
+$strImportNoticePt1 = 'The following structures have either been created or altered. Here you can:'; //to translate
+$strImportNoticePt3 = 'Change any of its settings by clicking the corresponding "Options" link'; //to translate
+$strGoToDatabase = 'Go to database'; //to translate
+$strGoToTable = 'Go to table'; //to translate
+$strGoToView = 'Go to view'; //to translate
+$strStructureLC = 'structure'; //to translate
+$strSettings = 'settings'; //to translate
+$strImportODS = 'Open Document Spreadsheet'; //to translate
+$strImportColNames = 'Column names in first row'; //to translate
+$strImportEmptyRows = 'Do not import empty rows'; //to translate
+$strImportODSPercents = 'Import percentages as proper decimals (12.00% to .12)'; //to translate
+$strImportODSCurrency = 'Import currencies ($5.00 to 5.00)'; //to translate
+$strImportXLS = 'Excel 97-2003 XLS Workbook'; //to translate
+$strImportNoticePt2 = 'View a structure`s contents by clicking on its name'; //to translate
+$strImportNoticePt4 = 'Edit its structure by following the "Structure" link'; //to translate
+$strImportXLSX = 'Excel 2007 XLSX Workbook'; //to translate
+$strXMLError = 'The XML file specified was either malformed or incomplete. Please correct the issue and try again.'; //to translate
+$strXMLExportContents = 'Export contents'; //to translate
+$strXMLExportFunctions = 'Export functions'; //to translate
+$strXMLExportProcedures = 'Export procedures'; //to translate
+$strXMLExportStructs = 'Export Structure Schemas (recommended)'; //to translate
+$strXMLExportTables = 'Export tables'; //to translate
+$strXMLExportTriggers = 'Export triggers'; //to translate
+$strXMLExportViews = 'Export views'; //to translate
+$strTracking = 'Tracking'; //to translate
+$strTrackingActivateTrackingFor = 'Activate tracking for %s.%s'; //to translate
+$strTrackingActivated = 'Tracking of %s.%s is activated.'; //to translate
+$strTrackingActivateNow = 'Activate now'; //to translate
+$strTrackingCreateVersion = 'Create version'; //to translate
+$strTrackingCreateVersionOf = 'Create version %s of %s.%s'; //to translate
+$strTrackingDataDefinitionStatement = 'Data definition statement'; //to translate
+$strTrackingDataManipulationStatement = 'Data manipulation statement'; //to translate
+$strTrackingDate = 'Date'; //to translate
+$strTrackingDeactivateNow = 'Deactivate now'; //to translate
+$strTrackingDeactivateTrackingFor = 'Deactivate tracking for %s.%s'; //to translate
+$strTrackingDoIt = 'Do it'; //to translate
+$strTrackingExportAs = 'Export as %s'; //to translate
+$strTrackingIsActive = 'Tracking is active.'; //to translate
+$strTrackingIsDeactive = 'Tracking is deactive.'; //to translate
+$strTrackingMechanism = 'Tracking Mechanism'; //to translate
+$strTrackingReport = 'Tracking report'; //to translate
+$strTrackingReportClose = 'Close'; //to translate
+$strTrackingSelectStructureAndData = 'Structure and Data'; //to translate
+$strTrackingSelectDataOnly = 'Data only'; //to translate
+$strTrackingSelectStructureOnly = 'Structure only'; //to translate
+$strTrackingShowLogDateUsers = 'Show %s with dates from %s to %s by user %s %s'; //to translate
+$strTrackingShowVersions = 'Show versions'; //to translate
+$strTrackingSQLDump = 'SQL dump'; //to translate
+$strTrackingSQLDumpFile = 'SQL dump (file download)'; //to translate
+$strTrackingSQLExecution = 'SQL execution'; //to translate
+$strTrackingSQLExecutionAlert = 'This option will replace your table and contained data.'; //to translate
+$strTrackingSQLExecuted = 'SQL statements executed.'; //to translate
+$strTrackingSQLExported = 'SQL statements exported. Please copy the dump or execute it.'; //to translate
+$strTrackingStatements = 'Tracking statements'; //to translate
+$strTrackingStatusActive = 'active'; //to translate
+$strTrackingStatusDeactive = 'deactive'; //to translate
+$strTrackingStructureSnapshot = 'Structure snapshot'; //to translate
+$strTrackingThDatabase = 'Database'; //to translate
+$strTrackingThTable = 'Table'; //to translate
+$strTrackingThLastVersion = 'Last version'; //to translate
+$strTrackingThVersion = 'Version'; //to translate
+$strTrackingThCreated = 'Created'; //to translate
+$strTrackingThUpdated = 'Updated'; //to translate
+$strTrackingThStatus = 'Status'; //to translate
+$strTrackingThShow = 'Show'; //to translate
+$strTrackingTrackDDStatements = 'Track these data definition statements:'; //to translate
+$strTrackingTrackDMStatements = 'Track these data manipulation statements:'; //to translate
+$strTrackingTrackTable = 'Track table'; //to translate
+$strTrackingTrackedTables = 'Tracked tables'; //to translate
+$strTrackingUntrackedTables = 'Untracked tables'; //to translate
+$strTrackingUsername = 'Username'; //to translate
+$strTrackingVersions = 'Versions'; //to translate
+$strTrackingVersionCreated = 'Version %s is created, tracking for %s.%s is activated.'; //to translate
+$strTrackingVersionActivated = 'Tracking for %s.%s , version %s is activated.'; //to translate
+$strTrackingVersionDeactivated = 'Tracking for %s.%s , version %s is deactivated.'; //to translate
+$strTrackingVersionSnapshotSQL = 'Version %s snapshot (SQL code)'; //to translate
+$strTrackingDatabaseLog = 'Database Log'; //to translate
?>
diff --git a/libraries/Message.class.php b/libraries/Message.class.php
index ceca49e96..e7947b854 100644
--- a/libraries/Message.class.php
+++ b/libraries/Message.class.php
@@ -4,7 +4,7 @@
* Holds class PMA_Message
*
* @author Sebastian Mendel
- * @version $Id: Error.class.php 10738 2007-10-08 16:02:58Z cybot_tm $
+ * @version $Id$
* @package phpMyAdmin
*/
diff --git a/libraries/PHPExcel/PHPExcel.php b/libraries/PHPExcel/PHPExcel.php
new file mode 100644
index 000000000..ac5f00246
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel.php
@@ -0,0 +1,749 @@
+_workSheetCollection = array();
+ $this->_workSheetCollection[] = new PHPExcel_Worksheet($this);
+ $this->_activeSheetIndex = 0;
+
+ // Create document properties
+ $this->_properties = new PHPExcel_DocumentProperties();
+
+ // Create document security
+ $this->_security = new PHPExcel_DocumentSecurity();
+
+ // Set named ranges
+ $this->_namedRanges = array();
+
+ // Create the cellXf supervisor
+ $this->_cellXfSupervisor = new PHPExcel_Style(true);
+ $this->_cellXfSupervisor->bindParent($this);
+
+ // Create the default style
+ $this->addCellXf(new PHPExcel_Style);
+ $this->addCellStyleXf(new PHPExcel_Style);
+ }
+
+ /**
+ * Get properties
+ *
+ * @return PHPExcel_DocumentProperties
+ */
+ public function getProperties()
+ {
+ return $this->_properties;
+ }
+
+ /**
+ * Set properties
+ *
+ * @param PHPExcel_DocumentProperties $pValue
+ */
+ public function setProperties(PHPExcel_DocumentProperties $pValue)
+ {
+ $this->_properties = $pValue;
+ }
+
+ /**
+ * Get security
+ *
+ * @return PHPExcel_DocumentSecurity
+ */
+ public function getSecurity()
+ {
+ return $this->_security;
+ }
+
+ /**
+ * Set security
+ *
+ * @param PHPExcel_DocumentSecurity $pValue
+ */
+ public function setSecurity(PHPExcel_DocumentSecurity $pValue)
+ {
+ $this->_security = $pValue;
+ }
+
+ /**
+ * Get active sheet
+ *
+ * @return PHPExcel_Worksheet
+ */
+ public function getActiveSheet()
+ {
+ return $this->_workSheetCollection[$this->_activeSheetIndex];
+ }
+
+ /**
+ * Create sheet and add it to this workbook
+ *
+ * @return PHPExcel_Worksheet
+ */
+ public function createSheet($iSheetIndex = null)
+ {
+ $newSheet = new PHPExcel_Worksheet($this);
+ $this->addSheet($newSheet, $iSheetIndex);
+ return $newSheet;
+ }
+
+ /**
+ * Add sheet
+ *
+ * @param PHPExcel_Worksheet $pSheet
+ * @throws Exception
+ */
+ public function addSheet(PHPExcel_Worksheet $pSheet = null, $iSheetIndex = null)
+ {
+ if(is_null($iSheetIndex))
+ {
+ $this->_workSheetCollection[] = $pSheet;
+ }
+ else
+ {
+ // Insert the sheet at the requested index
+ array_splice(
+ $this->_workSheetCollection,
+ $iSheetIndex,
+ 0,
+ array($pSheet)
+ );
+ }
+ }
+
+ /**
+ * Remove sheet by index
+ *
+ * @param int $pIndex Active sheet index
+ * @throws Exception
+ */
+ public function removeSheetByIndex($pIndex = 0)
+ {
+ if ($pIndex > count($this->_workSheetCollection) - 1) {
+ throw new Exception("Sheet index is out of bounds.");
+ } else {
+ array_splice($this->_workSheetCollection, $pIndex, 1);
+ }
+ }
+
+ /**
+ * Get sheet by index
+ *
+ * @param int $pIndex Sheet index
+ * @return PHPExcel_Worksheet
+ * @throws Exception
+ */
+ public function getSheet($pIndex = 0)
+ {
+ if ($pIndex > count($this->_workSheetCollection) - 1) {
+ throw new Exception("Sheet index is out of bounds.");
+ } else {
+ return $this->_workSheetCollection[$pIndex];
+ }
+ }
+
+ /**
+ * Get all sheets
+ *
+ * @return PHPExcel_Worksheet[]
+ */
+ public function getAllSheets()
+ {
+ return $this->_workSheetCollection;
+ }
+
+ /**
+ * Get sheet by name
+ *
+ * @param string $pName Sheet name
+ * @return PHPExcel_Worksheet
+ * @throws Exception
+ */
+ public function getSheetByName($pName = '')
+ {
+ $worksheetCount = count($this->_workSheetCollection);
+ for ($i = 0; $i < $worksheetCount; ++$i) {
+ if ($this->_workSheetCollection[$i]->getTitle() == $pName) {
+ return $this->_workSheetCollection[$i];
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * Get index for sheet
+ *
+ * @param PHPExcel_Worksheet $pSheet
+ * @return Sheet index
+ * @throws Exception
+ */
+ public function getIndex(PHPExcel_Worksheet $pSheet)
+ {
+ foreach ($this->_workSheetCollection as $key => $value) {
+ if ($value->getHashCode() == $pSheet->getHashCode()) {
+ return $key;
+ }
+ }
+ }
+
+ /**
+ * Set index for sheet by sheet name.
+ *
+ * @param string $sheetName Sheet name to modify index for
+ * @param int $newIndex New index for the sheet
+ * @return New sheet index
+ * @throws Exception
+ */
+ public function setIndexByName($sheetName, $newIndex)
+ {
+ $oldIndex = $this->getIndex($this->getSheetByName($sheetName));
+ $pSheet = array_splice(
+ $this->_workSheetCollection,
+ $oldIndex,
+ 1
+ );
+ array_splice(
+ $this->_workSheetCollection,
+ $newIndex,
+ 0,
+ $pSheet
+ );
+ return $newIndex;
+ }
+
+ /**
+ * Get sheet count
+ *
+ * @return int
+ */
+ public function getSheetCount()
+ {
+ return count($this->_workSheetCollection);
+ }
+
+ /**
+ * Get active sheet index
+ *
+ * @return int Active sheet index
+ */
+ public function getActiveSheetIndex()
+ {
+ return $this->_activeSheetIndex;
+ }
+
+ /**
+ * Set active sheet index
+ *
+ * @param int $pIndex Active sheet index
+ * @throws Exception
+ * @return PHPExcel_Worksheet
+ */
+ public function setActiveSheetIndex($pIndex = 0)
+ {
+ if ($pIndex > count($this->_workSheetCollection) - 1) {
+ throw new Exception("Active sheet index is out of bounds.");
+ } else {
+ $this->_activeSheetIndex = $pIndex;
+ }
+ return $this->getActiveSheet();
+ }
+
+ /**
+ * Get sheet names
+ *
+ * @return string[]
+ */
+ public function getSheetNames()
+ {
+ $returnValue = array();
+ $worksheetCount = $this->getSheetCount();
+ for ($i = 0; $i < $worksheetCount; ++$i) {
+ array_push($returnValue, $this->getSheet($i)->getTitle());
+ }
+
+ return $returnValue;
+ }
+
+ /**
+ * Add external sheet
+ *
+ * @param PHPExcel_Worksheet $pSheet External sheet to add
+ * @throws Exception
+ * @return PHPExcel_Worksheet
+ */
+ public function addExternalSheet(PHPExcel_Worksheet $pSheet) {
+ if (!is_null($this->getSheetByName($pSheet->getTitle()))) {
+ throw new Exception("Workbook already contains a worksheet named '{$pSheet->getTitle()}'. Rename the external sheet first.");
+ }
+
+ // count how many cellXfs there are in this workbook currently, we will need this below
+ $countCellXfs = count($this->_cellXfCollection);
+
+ // copy all the shared cellXfs from the external workbook and append them to the current
+ foreach ($pSheet->getParent()->getCellXfCollection() as $cellXf) {
+ $this->addCellXf(clone $cellXf);
+ }
+
+ // move sheet to this workbook
+ $pSheet->rebindParent($this);
+
+ // update the cellXfs
+ foreach ($pSheet->getCellCollection(false) as $cell) {
+ $cell->setXfIndex( $cell->getXfIndex() + $countCellXfs );
+ }
+
+ return $this->addSheet($pSheet);
+ }
+
+ /**
+ * Get named ranges
+ *
+ * @return PHPExcel_NamedRange[]
+ */
+ public function getNamedRanges() {
+ return $this->_namedRanges;
+ }
+
+ /**
+ * Add named range
+ *
+ * @param PHPExcel_NamedRange $namedRange
+ * @return PHPExcel
+ */
+ public function addNamedRange(PHPExcel_NamedRange $namedRange) {
+ $this->_namedRanges[$namedRange->getWorksheet()->getTitle().'!'.$namedRange->getName()] = $namedRange;
+ return true;
+ }
+
+ /**
+ * Get named range
+ *
+ * @param string $namedRange
+ */
+ public function getNamedRange($namedRange, PHPExcel_Worksheet $pSheet = null) {
+ if ($namedRange != '' && !is_null($namedRange)) {
+ if (!is_null($pSheet)) {
+ $key = $pSheet->getTitle().'!'.$namedRange;
+ if (isset($this->_namedRanges[$key])) {
+ return $this->_namedRanges[$key];
+ }
+ }
+ $returnCount = 0;
+ foreach($this->_namedRanges as $_namedRange) {
+ if ($_namedRange->getName() == $namedRange) {
+ if ((!is_null($pSheet)) && ($_namedRange->getWorksheet()->getTitle() == $pSheet->getTitle())) {
+ return $_namedRange;
+ } else {
+ $returnCount++;
+ $returnValue = $_namedRange;
+ }
+ }
+ }
+ if ($returnCount == 1) {
+ return $returnValue;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * Remove named range
+ *
+ * @param string $namedRange
+ * @return PHPExcel
+ */
+ public function removeNamedRange($namedRange, PHPExcel_Worksheet $pSheet = null) {
+ if ($namedRange != '' && !is_null($namedRange)) {
+ if (!is_null($pSheet)) {
+ $key = $pSheet->getTitle().'!'.$namedRange;
+ if (isset($this->_namedRanges[$key])) {
+ unset($this->_namedRanges[$key]);
+ }
+ }
+ foreach($this->_namedRanges as $_namedRange) {
+ if ($_namedRange->getName() == $namedRange) {
+ if ((!is_null($pSheet)) && ($_namedRange->getWorksheet()->getTitle() == $pSheet->getTitle())) {
+ $key = $pSheet->getTitle().'!'.$namedRange;
+ if (isset($this->_namedRanges[$key])) {
+ unset($this->_namedRanges[$key]);
+ }
+ }
+ }
+ }
+ }
+ return $this;
+ }
+
+ /**
+ * Get worksheet iterator
+ *
+ * @return PHPExcel_WorksheetIterator
+ */
+ public function getWorksheetIterator() {
+ return new PHPExcel_WorksheetIterator($this);
+ }
+
+ /**
+ * Copy workbook (!= clone!)
+ *
+ * @return PHPExcel
+ */
+ public function copy() {
+ $copied = clone $this;
+
+ $worksheetCount = count($this->_workSheetCollection);
+ for ($i = 0; $i < $worksheetCount; ++$i) {
+ $this->_workSheetCollection[$i] = $this->_workSheetCollection[$i]->copy();
+ $this->_workSheetCollection[$i]->rebindParent($this);
+ }
+
+ return $copied;
+ }
+
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone() {
+ foreach($this as $key => $val) {
+ if (is_object($val) || (is_array($val))) {
+ $this->{$key} = unserialize(serialize($val));
+ }
+ }
+ }
+
+ /**
+ * Get the workbook collection of cellXfs
+ *
+ * @return PHPExcel_Style[]
+ */
+ public function getCellXfCollection()
+ {
+ return $this->_cellXfCollection;
+ }
+
+ /**
+ * Get cellXf by index
+ *
+ * @param int $index
+ * @return PHPExcel_Style
+ */
+ public function getCellXfByIndex($pIndex = 0)
+ {
+ return $this->_cellXfCollection[$pIndex];
+ }
+
+ /**
+ * Get cellXf by hash code
+ *
+ * @param string $pValue
+ * @return PHPExcel_Style|false
+ */
+ public function getCellXfByHashCode($pValue = '')
+ {
+ foreach ($this->_cellXfCollection as $cellXf) {
+ if ($cellXf->getHashCode() == $pValue) {
+ return $cellXf;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * Get default style
+ *
+ * @return PHPExcel_Style
+ * @throws Exception
+ */
+ public function getDefaultStyle()
+ {
+ if (isset($this->_cellXfCollection[0])) {
+ return $this->_cellXfCollection[0];
+ }
+ throw new Exception('No default style found for this workbook');
+ }
+
+ /**
+ * Add a cellXf to the workbook
+ *
+ * @param PHPExcel_Style
+ */
+ public function addCellXf(PHPExcel_Style $style)
+ {
+ $this->_cellXfCollection[] = $style;
+ $style->setIndex(count($this->_cellXfCollection) - 1);
+ }
+
+ /**
+ * Remove cellXf by index. It is ensured that all cells get their xf index updated.
+ *
+ * @param int $pIndex Index to cellXf
+ * @throws Exception
+ */
+ public function removeCellXfByIndex($pIndex = 0)
+ {
+ if ($pIndex > count($this->_cellXfCollection) - 1) {
+ throw new Exception("CellXf index is out of bounds.");
+ } else {
+ // first remove the cellXf
+ array_splice($this->_cellXfCollection, $pIndex, 1);
+
+ // then update cellXf indexes for cells
+ foreach ($this->_workSheetCollection as $worksheet) {
+ foreach ($worksheet->getCellCollection(false) as $cell) {
+ $xfIndex = $cell->getXfIndex();
+ if ($xfIndex > $pIndex ) {
+ // decrease xf index by 1
+ $cell->setXfIndex($xfIndex - 1);
+ } else if ($xfIndex == $pIndex) {
+ // set to default xf index 0
+ $cell->setXfIndex(0);
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Get the cellXf supervisor
+ *
+ * @return PHPExcel_Style
+ */
+ public function getCellXfSupervisor()
+ {
+ return $this->_cellXfSupervisor;
+ }
+
+ /**
+ * Get the workbook collection of cellStyleXfs
+ *
+ * @return PHPExcel_Style[]
+ */
+ public function getCellStyleXfCollection()
+ {
+ return $this->_cellStyleXfCollection;
+ }
+
+ /**
+ * Get cellStyleXf by index
+ *
+ * @param int $pIndex
+ * @return PHPExcel_Style
+ */
+ public function getCellStyleXfByIndex($pIndex = 0)
+ {
+ return $this->_cellStyleXfCollection[$pIndex];
+ }
+
+ /**
+ * Get cellStyleXf by hash code
+ *
+ * @param string $pValue
+ * @return PHPExcel_Style|false
+ */
+ public function getCellStyleXfByHashCode($pValue = '')
+ {
+ foreach ($this->_cellXfStyleCollection as $cellStyleXf) {
+ if ($cellStyleXf->getHashCode() == $pValue) {
+ return $cellStyleXf;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * Add a cellStyleXf to the workbook
+ *
+ * @param PHPExcel_Style $pStyle
+ */
+ public function addCellStyleXf(PHPExcel_Style $pStyle)
+ {
+ $this->_cellStyleXfCollection[] = $pStyle;
+ $pStyle->setIndex(count($this->_cellStyleXfCollection) - 1);
+ }
+
+ /**
+ * Remove cellStyleXf by index
+ *
+ * @param int $pIndex
+ * @throws Exception
+ */
+ public function removeCellStyleXfByIndex($pIndex = 0)
+ {
+ if ($pIndex > count($this->_cellStyleXfCollection) - 1) {
+ throw new Exception("CellStyleXf index is out of bounds.");
+ } else {
+ array_splice($this->_cellStyleXfCollection, $pIndex, 1);
+ }
+ }
+
+ /**
+ * Eliminate all unneeded cellXf and afterwards update the xfIndex for all cells in the workbook
+ */
+ public function garbageCollect()
+ {
+ // how many references are there to each cellXf ?
+ $countReferencesCellXf = array();
+ foreach ($this->_cellXfCollection as $index => $cellXf) {
+ $countReferencesCellXf[$index] = 0;
+ }
+
+ foreach ($this->getWorksheetIterator() as $sheet) {
+ foreach ($sheet->getCellCollection(false) as $cell) {
+ ++$countReferencesCellXf[$cell->getXfIndex()];
+ }
+ }
+
+ // remove those cellXfs that have zero references and create mapping so we can update xfIndex for all cells
+ $countNeededCellXfs = 0;
+ foreach ($this->_cellXfCollection as $index => $cellXf) {
+ if ($countReferencesCellXf[$index] > 0 || $index == 0) { // we must never remove the first cellXf
+ ++$countNeededCellXfs;
+ } else {
+ unset($this->_cellXfCollection[$index]);
+ }
+ $map[$index] = $countNeededCellXfs - 1;
+ }
+ $this->_cellXfCollection = array_values($this->_cellXfCollection);
+
+ // if we removed the first style by accident, recreate it
+ if (count($this->_cellXfCollection) == 0) {
+ $this->_cellXfCollection[] = new PHPExcel_Style();
+ }
+
+ // update the xfIndex for all cells
+ foreach ($this->getWorksheetIterator() as $sheet) {
+ foreach ($sheet->getCellCollection(false) as $cell) {
+ $cell->setXfIndex( $map[$cell->getXfIndex()] );
+ }
+ }
+
+ // also do garbage collection for all the sheets
+ foreach ($this->getWorksheetIterator() as $sheet) {
+ $sheet->garbageCollect();
+ }
+ }
+
+}
diff --git a/libraries/PHPExcel/PHPExcel/Calculation.php b/libraries/PHPExcel/PHPExcel/Calculation.php
new file mode 100644
index 000000000..5ade6558c
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Calculation.php
@@ -0,0 +1,3075 @@
+', '<', '=', '>=', '<=', '<>');
+
+
+ /**
+ * List of binary operators (those that expect two operands)
+ *
+ * @access private
+ * @var array
+ */
+ private $_binaryOperators = array('+', '-', '*', '/', '^', '&', '>', '<', '=', '>=', '<=', '<>');
+
+ public $suppressFormulaErrors = false;
+ public $formulaError = null;
+ public $writeDebugLog = false;
+ private $debugLogStack = array();
+ public $debugLog = array();
+
+
+ // Constant conversion from text name/value to actual (datatyped) value
+ private $_ExcelConstants = array('TRUE' => True,
+ 'FALSE' => False,
+ 'NULL' => Null
+ );
+
+ // PHPExcel functions
+ private $_PHPExcelFunctions = array( // PHPExcel functions
+ 'ABS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'abs',
+ 'argumentCount' => '1'
+ ),
+ 'ACCRINT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::ACCRINT',
+ 'argumentCount' => '4-7'
+ ),
+ 'ACCRINTM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::ACCRINTM',
+ 'argumentCount' => '3-5'
+ ),
+ 'ACOS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'acos',
+ 'argumentCount' => '1'
+ ),
+ 'ACOSH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'acosh',
+ 'argumentCount' => '1'
+ ),
+ 'ADDRESS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::CELL_ADDRESS',
+ 'argumentCount' => '2-5'
+ ),
+ 'AMORDEGRC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '6,7'
+ ),
+ 'AMORLINC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '6,7'
+ ),
+ 'AND' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::LOGICAL_AND',
+ 'argumentCount' => '1+'
+ ),
+ 'AREAS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1'
+ ),
+ 'ASC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1'
+ ),
+ 'ASIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'asin',
+ 'argumentCount' => '1'
+ ),
+ 'ASINH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'asinh',
+ 'argumentCount' => '1'
+ ),
+ 'ATAN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'atan',
+ 'argumentCount' => '1'
+ ),
+ 'ATAN2' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::REVERSE_ATAN2',
+ 'argumentCount' => '2'
+ ),
+ 'ATANH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'atanh',
+ 'argumentCount' => '1'
+ ),
+ 'AVEDEV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::AVEDEV',
+ 'argumentCount' => '1+'
+ ),
+ 'AVERAGE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::AVERAGE',
+ 'argumentCount' => '1+'
+ ),
+ 'AVERAGEA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::AVERAGEA',
+ 'argumentCount' => '1+'
+ ),
+ 'AVERAGEIF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '2,3'
+ ),
+ 'AVERAGEIFS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '3+'
+ ),
+ 'BAHTTEXT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1'
+ ),
+ 'BESSELI' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::BESSELI',
+ 'argumentCount' => '2'
+ ),
+ 'BESSELJ' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::BESSELJ',
+ 'argumentCount' => '2'
+ ),
+ 'BESSELK' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::BESSELK',
+ 'argumentCount' => '2'
+ ),
+ 'BESSELY' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::BESSELY',
+ 'argumentCount' => '2'
+ ),
+ 'BETADIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::BETADIST',
+ 'argumentCount' => '3-5'
+ ),
+ 'BETAINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::BETAINV',
+ 'argumentCount' => '3-5'
+ ),
+ 'BIN2DEC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::BINTODEC',
+ 'argumentCount' => '1'
+ ),
+ 'BIN2HEX' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::BINTOHEX',
+ 'argumentCount' => '1,2'
+ ),
+ 'BIN2OCT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::BINTOOCT',
+ 'argumentCount' => '1,2'
+ ),
+ 'BINOMDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::BINOMDIST',
+ 'argumentCount' => '4'
+ ),
+ 'CEILING' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::CEILING',
+ 'argumentCount' => '2'
+ ),
+ 'CELL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1,2'
+ ),
+ 'CHAR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::CHARACTER',
+ 'argumentCount' => '1'
+ ),
+ 'CHIDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::CHIDIST',
+ 'argumentCount' => '2'
+ ),
+ 'CHIINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::CHIINV',
+ 'argumentCount' => '2'
+ ),
+ 'CHITEST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '2'
+ ),
+ 'CHOOSE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::CHOOSE',
+ 'argumentCount' => '2+'
+ ),
+ 'CLEAN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::TRIMNONPRINTABLE',
+ 'argumentCount' => '1'
+ ),
+ 'CODE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::ASCIICODE',
+ 'argumentCount' => '1'
+ ),
+ 'COLUMN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::COLUMN',
+ 'argumentCount' => '-1'
+ ),
+ 'COLUMNS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1'
+ ),
+ 'COMBIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::COMBIN',
+ 'argumentCount' => '2'
+ ),
+ 'COMPLEX' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::COMPLEX',
+ 'argumentCount' => '2,3'
+ ),
+ 'CONCATENATE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::CONCATENATE',
+ 'argumentCount' => '1+'
+ ),
+ 'CONFIDENCE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::CONFIDENCE',
+ 'argumentCount' => '3'
+ ),
+ 'CONVERT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::CONVERTUOM',
+ 'argumentCount' => '3'
+ ),
+ 'CORREL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::CORREL',
+ 'argumentCount' => '2'
+ ),
+ 'COS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'cos',
+ 'argumentCount' => '1'
+ ),
+ 'COSH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'cosh',
+ 'argumentCount' => '1'
+ ),
+ 'COUNT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::COUNT',
+ 'argumentCount' => '1+'
+ ),
+ 'COUNTA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::COUNTA',
+ 'argumentCount' => '1+'
+ ),
+ 'COUNTBLANK' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::COUNTBLANK',
+ 'argumentCount' => '1'
+ ),
+ 'COUNTIF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::COUNTIF',
+ 'argumentCount' => '2'
+ ),
+ 'COUNTIFS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '2'
+ ),
+ 'COUPDAYBS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '3,4'
+ ),
+ 'COUPDAYS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '3,4'
+ ),
+ 'COUPDAYSNC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '3,4'
+ ),
+ 'COUPNCD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '3,4'
+ ),
+ 'COUPNUM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '3,4'
+ ),
+ 'COUPPCD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '3,4'
+ ),
+ 'COVAR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::COVAR',
+ 'argumentCount' => '2'
+ ),
+ 'CRITBINOM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::CRITBINOM',
+ 'argumentCount' => '3'
+ ),
+ 'CUBEKPIMEMBER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_CUBE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'CUBEMEMBER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_CUBE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'CUBEMEMBERPROPERTY' => array('category' => PHPExcel_Calculation_Function::CATEGORY_CUBE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'CUBERANKEDMEMBER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_CUBE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'CUBESET' => array('category' => PHPExcel_Calculation_Function::CATEGORY_CUBE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'CUBESETCOUNT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_CUBE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'CUBEVALUE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_CUBE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'CUMIPMT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::CUMIPMT',
+ 'argumentCount' => '6'
+ ),
+ 'CUMPRINC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::CUMPRINC',
+ 'argumentCount' => '6'
+ ),
+ 'DATE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DATE',
+ 'argumentCount' => '3'
+ ),
+ 'DATEDIF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DATEDIF',
+ 'argumentCount' => '3'
+ ),
+ 'DATEVALUE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DATEVALUE',
+ 'argumentCount' => '1'
+ ),
+ 'DAVERAGE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'DAY' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DAYOFMONTH',
+ 'argumentCount' => '1'
+ ),
+ 'DAYS360' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DAYS360',
+ 'argumentCount' => '2,3'
+ ),
+ 'DB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DB',
+ 'argumentCount' => '4,5'
+ ),
+ 'DCOUNT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'DCOUNTA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'DDB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DDB',
+ 'argumentCount' => '4,5'
+ ),
+ 'DEC2BIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DECTOBIN',
+ 'argumentCount' => '1,2'
+ ),
+ 'DEC2HEX' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DECTOHEX',
+ 'argumentCount' => '1,2'
+ ),
+ 'DEC2OCT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DECTOOCT',
+ 'argumentCount' => '1,2'
+ ),
+ 'DEGREES' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'rad2deg',
+ 'argumentCount' => '1'
+ ),
+ 'DELTA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DELTA',
+ 'argumentCount' => '1,2'
+ ),
+ 'DEVSQ' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DEVSQ',
+ 'argumentCount' => '1+'
+ ),
+ 'DGET' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'DISC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DISC',
+ 'argumentCount' => '4,5'
+ ),
+ 'DMAX' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'DMIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'DOLLAR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DOLLAR',
+ 'argumentCount' => '1,2'
+ ),
+ 'DOLLARDE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DOLLARDE',
+ 'argumentCount' => '2'
+ ),
+ 'DOLLARFR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DOLLARFR',
+ 'argumentCount' => '2'
+ ),
+ 'DPRODUCT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'DSTDEV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'DSTDEVP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'DSUM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'DURATION' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '5,6'
+ ),
+ 'DVAR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'DVARP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'EDATE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::EDATE',
+ 'argumentCount' => '2'
+ ),
+ 'EFFECT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::EFFECT',
+ 'argumentCount' => '2'
+ ),
+ 'EOMONTH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::EOMONTH',
+ 'argumentCount' => '2'
+ ),
+ 'ERF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::ERF',
+ 'argumentCount' => '1,2'
+ ),
+ 'ERFC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::ERFC',
+ 'argumentCount' => '1'
+ ),
+ 'ERROR.TYPE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::ERROR_TYPE',
+ 'argumentCount' => '1'
+ ),
+ 'EVEN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::EVEN',
+ 'argumentCount' => '1'
+ ),
+ 'EXACT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '2'
+ ),
+ 'EXP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'exp',
+ 'argumentCount' => '1'
+ ),
+ 'EXPONDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::EXPONDIST',
+ 'argumentCount' => '3'
+ ),
+ 'FACT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::FACT',
+ 'argumentCount' => '1'
+ ),
+ 'FACTDOUBLE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::FACTDOUBLE',
+ 'argumentCount' => '1'
+ ),
+ 'FALSE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::LOGICAL_FALSE',
+ 'argumentCount' => '0'
+ ),
+ 'FDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '3'
+ ),
+ 'FIND' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SEARCHSENSITIVE',
+ 'argumentCount' => '2,3'
+ ),
+ 'FINDB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SEARCHSENSITIVE',
+ 'argumentCount' => '2,3'
+ ),
+ 'FINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '3'
+ ),
+ 'FISHER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::FISHER',
+ 'argumentCount' => '1'
+ ),
+ 'FISHERINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::FISHERINV',
+ 'argumentCount' => '1'
+ ),
+ 'FIXED' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::FIXEDFORMAT',
+ 'argumentCount' => '1-3'
+ ),
+ 'FLOOR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::FLOOR',
+ 'argumentCount' => '2'
+ ),
+ 'FORECAST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::FORECAST',
+ 'argumentCount' => '3'
+ ),
+ 'FREQUENCY' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '2'
+ ),
+ 'FTEST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '2'
+ ),
+ 'FV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::FV',
+ 'argumentCount' => '3-5'
+ ),
+ 'FVSCHEDULE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '2'
+ ),
+ 'GAMMADIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::GAMMADIST',
+ 'argumentCount' => '4'
+ ),
+ 'GAMMAINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::GAMMAINV',
+ 'argumentCount' => '3'
+ ),
+ 'GAMMALN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::GAMMALN',
+ 'argumentCount' => '1'
+ ),
+ 'GCD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::GCD',
+ 'argumentCount' => '1+'
+ ),
+ 'GEOMEAN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::GEOMEAN',
+ 'argumentCount' => '1+'
+ ),
+ 'GESTEP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::GESTEP',
+ 'argumentCount' => '1,2'
+ ),
+ 'GETPIVOTDATA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '2+'
+ ),
+ 'GROWTH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::GROWTH',
+ 'argumentCount' => '1-4'
+ ),
+ 'HARMEAN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::HARMEAN',
+ 'argumentCount' => '1+'
+ ),
+ 'HEX2BIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::HEXTOBIN',
+ 'argumentCount' => '1,2'
+ ),
+ 'HEX2DEC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::HEXTODEC',
+ 'argumentCount' => '1'
+ ),
+ 'HEX2OCT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::HEXTOOCT',
+ 'argumentCount' => '1,2'
+ ),
+ 'HLOOKUP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '3,4'
+ ),
+ 'HOUR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::HOUROFDAY',
+ 'argumentCount' => '1'
+ ),
+ 'HYPERLINK' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1,2'
+ ),
+ 'HYPGEOMDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::HYPGEOMDIST',
+ 'argumentCount' => '4'
+ ),
+ 'IF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::STATEMENT_IF',
+ 'argumentCount' => '1-3'
+ ),
+ 'IFERROR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::STATEMENT_IFERROR',
+ 'argumentCount' => '1'
+ ),
+ 'IMABS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMABS',
+ 'argumentCount' => '1'
+ ),
+ 'IMAGINARY' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMAGINARY',
+ 'argumentCount' => '1'
+ ),
+ 'IMARGUMENT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMARGUMENT',
+ 'argumentCount' => '1'
+ ),
+ 'IMCONJUGATE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMCONJUGATE',
+ 'argumentCount' => '1'
+ ),
+ 'IMCOS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMCOS',
+ 'argumentCount' => '1'
+ ),
+ 'IMDIV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMDIV',
+ 'argumentCount' => '2'
+ ),
+ 'IMEXP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMEXP',
+ 'argumentCount' => '1'
+ ),
+ 'IMLN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMLN',
+ 'argumentCount' => '1'
+ ),
+ 'IMLOG10' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMLOG10',
+ 'argumentCount' => '1'
+ ),
+ 'IMLOG2' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMLOG2',
+ 'argumentCount' => '1'
+ ),
+ 'IMPOWER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMPOWER',
+ 'argumentCount' => '2'
+ ),
+ 'IMPRODUCT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMPRODUCT',
+ 'argumentCount' => '1+'
+ ),
+ 'IMREAL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMREAL',
+ 'argumentCount' => '1'
+ ),
+ 'IMSIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMSIN',
+ 'argumentCount' => '1'
+ ),
+ 'IMSQRT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMSQRT',
+ 'argumentCount' => '1'
+ ),
+ 'IMSUB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMSUB',
+ 'argumentCount' => '2'
+ ),
+ 'IMSUM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IMSUM',
+ 'argumentCount' => '1+'
+ ),
+ 'INDEX' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::INDEX',
+ 'argumentCount' => '1-4'
+ ),
+ 'INDIRECT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1,2'
+ ),
+ 'INFO' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1'
+ ),
+ 'INT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::INTVALUE',
+ 'argumentCount' => '1'
+ ),
+ 'INTERCEPT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::INTERCEPT',
+ 'argumentCount' => '2'
+ ),
+ 'INTRATE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::INTRATE',
+ 'argumentCount' => '4,5'
+ ),
+ 'IPMT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IPMT',
+ 'argumentCount' => '4-6'
+ ),
+ 'IRR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1,2'
+ ),
+ 'ISBLANK' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IS_BLANK',
+ 'argumentCount' => '1'
+ ),
+ 'ISERR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IS_ERR',
+ 'argumentCount' => '1'
+ ),
+ 'ISERROR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IS_ERROR',
+ 'argumentCount' => '1'
+ ),
+ 'ISEVEN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IS_EVEN',
+ 'argumentCount' => '1'
+ ),
+ 'ISLOGICAL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IS_LOGICAL',
+ 'argumentCount' => '1'
+ ),
+ 'ISNA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IS_NA',
+ 'argumentCount' => '1'
+ ),
+ 'ISNONTEXT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IS_NONTEXT',
+ 'argumentCount' => '1'
+ ),
+ 'ISNUMBER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IS_NUMBER',
+ 'argumentCount' => '1'
+ ),
+ 'ISODD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IS_ODD',
+ 'argumentCount' => '1'
+ ),
+ 'ISPMT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '4'
+ ),
+ 'ISREF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1'
+ ),
+ 'ISTEXT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::IS_TEXT',
+ 'argumentCount' => '1'
+ ),
+ 'JIS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1'
+ ),
+ 'KURT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::KURT',
+ 'argumentCount' => '1+'
+ ),
+ 'LARGE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::LARGE',
+ 'argumentCount' => '2'
+ ),
+ 'LCM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::LCM',
+ 'argumentCount' => '1+'
+ ),
+ 'LEFT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::LEFT',
+ 'argumentCount' => '1,2'
+ ),
+ 'LEFTB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::LEFT',
+ 'argumentCount' => '1,2'
+ ),
+ 'LEN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::STRINGLENGTH',
+ 'argumentCount' => '1'
+ ),
+ 'LENB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::STRINGLENGTH',
+ 'argumentCount' => '1'
+ ),
+ 'LINEST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::LINEST',
+ 'argumentCount' => '1-4'
+ ),
+ 'LN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'log',
+ 'argumentCount' => '1'
+ ),
+ 'LOG' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::LOG_BASE',
+ 'argumentCount' => '1,2'
+ ),
+ 'LOG10' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'log10',
+ 'argumentCount' => '1'
+ ),
+ 'LOGEST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::LOGEST',
+ 'argumentCount' => '1-4'
+ ),
+ 'LOGINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::LOGINV',
+ 'argumentCount' => '3'
+ ),
+ 'LOGNORMDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::LOGNORMDIST',
+ 'argumentCount' => '3'
+ ),
+ 'LOOKUP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::LOOKUP',
+ 'argumentCount' => '2,3'
+ ),
+ 'LOWER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::LOWERCASE',
+ 'argumentCount' => '1'
+ ),
+ 'MATCH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MATCH',
+ 'argumentCount' => '2,3'
+ ),
+ 'MAX' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MAX',
+ 'argumentCount' => '1+'
+ ),
+ 'MAXA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MAXA',
+ 'argumentCount' => '1+'
+ ),
+ 'MDETERM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MDETERM',
+ 'argumentCount' => '1'
+ ),
+ 'MDURATION' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '5,6'
+ ),
+ 'MEDIAN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MEDIAN',
+ 'argumentCount' => '1+'
+ ),
+ 'MID' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MID',
+ 'argumentCount' => '3'
+ ),
+ 'MIDB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MID',
+ 'argumentCount' => '3'
+ ),
+ 'MIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MIN',
+ 'argumentCount' => '1+'
+ ),
+ 'MINA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MINA',
+ 'argumentCount' => '1+'
+ ),
+ 'MINUTE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MINUTEOFHOUR',
+ 'argumentCount' => '1'
+ ),
+ 'MINVERSE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MINVERSE',
+ 'argumentCount' => '1'
+ ),
+ 'MIRR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '3'
+ ),
+ 'MMULT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MMULT',
+ 'argumentCount' => '2'
+ ),
+ 'MOD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MOD',
+ 'argumentCount' => '2'
+ ),
+ 'MODE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MODE',
+ 'argumentCount' => '1+'
+ ),
+ 'MONTH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MONTHOFYEAR',
+ 'argumentCount' => '1'
+ ),
+ 'MROUND' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MROUND',
+ 'argumentCount' => '2'
+ ),
+ 'MULTINOMIAL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::MULTINOMIAL',
+ 'argumentCount' => '1+'
+ ),
+ 'N' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1'
+ ),
+ 'NA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::NA',
+ 'argumentCount' => '0'
+ ),
+ 'NEGBINOMDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::NEGBINOMDIST',
+ 'argumentCount' => '3'
+ ),
+ 'NETWORKDAYS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::NETWORKDAYS',
+ 'argumentCount' => '2+'
+ ),
+ 'NOMINAL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::NOMINAL',
+ 'argumentCount' => '2'
+ ),
+ 'NORMDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::NORMDIST',
+ 'argumentCount' => '4'
+ ),
+ 'NORMINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::NORMINV',
+ 'argumentCount' => '3'
+ ),
+ 'NORMSDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::NORMSDIST',
+ 'argumentCount' => '1'
+ ),
+ 'NORMSINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::NORMSINV',
+ 'argumentCount' => '1'
+ ),
+ 'NOT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::LOGICAL_NOT',
+ 'argumentCount' => '1'
+ ),
+ 'NOW' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DATETIMENOW',
+ 'argumentCount' => '0'
+ ),
+ 'NPER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::NPER',
+ 'argumentCount' => '3-5'
+ ),
+ 'NPV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::NPV',
+ 'argumentCount' => '2+'
+ ),
+ 'OCT2BIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::OCTTOBIN',
+ 'argumentCount' => '1,2'
+ ),
+ 'OCT2DEC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::OCTTODEC',
+ 'argumentCount' => '1'
+ ),
+ 'OCT2HEX' => array('category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::OCTTOHEX',
+ 'argumentCount' => '1,2'
+ ),
+ 'ODD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::ODD',
+ 'argumentCount' => '1'
+ ),
+ 'ODDFPRICE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '8,9'
+ ),
+ 'ODDFYIELD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '8,9'
+ ),
+ 'ODDLPRICE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '7,8'
+ ),
+ 'ODDLYIELD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '7,8'
+ ),
+ 'OFFSET' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::OFFSET',
+ 'argumentCount' => '3,5'
+ ),
+ 'OR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::LOGICAL_OR',
+ 'argumentCount' => '1+'
+ ),
+ 'PEARSON' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::CORREL',
+ 'argumentCount' => '2'
+ ),
+ 'PERCENTILE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::PERCENTILE',
+ 'argumentCount' => '2'
+ ),
+ 'PERCENTRANK' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::PERCENTRANK',
+ 'argumentCount' => '2,3'
+ ),
+ 'PERMUT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::PERMUT',
+ 'argumentCount' => '2'
+ ),
+ 'PHONETIC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1'
+ ),
+ 'PI' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'pi',
+ 'argumentCount' => '0'
+ ),
+ 'PMT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::PMT',
+ 'argumentCount' => '3-5'
+ ),
+ 'POISSON' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::POISSON',
+ 'argumentCount' => '3'
+ ),
+ 'POWER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::POWER',
+ 'argumentCount' => '2'
+ ),
+ 'PPMT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::PPMT',
+ 'argumentCount' => '4-6'
+ ),
+ 'PRICE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '6,7'
+ ),
+ 'PRICEDISC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::PRICEDISC',
+ 'argumentCount' => '4,5'
+ ),
+ 'PRICEMAT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::PRICEMAT',
+ 'argumentCount' => '5,6'
+ ),
+ 'PROB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '3,4'
+ ),
+ 'PRODUCT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::PRODUCT',
+ 'argumentCount' => '1+'
+ ),
+ 'PROPER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::PROPERCASE',
+ 'argumentCount' => '1'
+ ),
+ 'PV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::PV',
+ 'argumentCount' => '3-5'
+ ),
+ 'QUARTILE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::QUARTILE',
+ 'argumentCount' => '2'
+ ),
+ 'QUOTIENT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::QUOTIENT',
+ 'argumentCount' => '2'
+ ),
+ 'RADIANS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'deg2rad',
+ 'argumentCount' => '1'
+ ),
+ 'RAND' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::RAND',
+ 'argumentCount' => '0'
+ ),
+ 'RANDBETWEEN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::RAND',
+ 'argumentCount' => '2'
+ ),
+ 'RANK' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::RANK',
+ 'argumentCount' => '2,3'
+ ),
+ 'RATE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '3-6'
+ ),
+ 'RECEIVED' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::RECEIVED',
+ 'argumentCount' => '4-5'
+ ),
+ 'REPLACE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::REPLACE',
+ 'argumentCount' => '4'
+ ),
+ 'REPLACEB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::REPLACE',
+ 'argumentCount' => '4'
+ ),
+ 'REPT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'str_repeat',
+ 'argumentCount' => '2'
+ ),
+ 'RIGHT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::RIGHT',
+ 'argumentCount' => '1,2'
+ ),
+ 'RIGHTB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::RIGHT',
+ 'argumentCount' => '1,2'
+ ),
+ 'ROMAN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::ROMAN',
+ 'argumentCount' => '1,2'
+ ),
+ 'ROUND' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'round',
+ 'argumentCount' => '2'
+ ),
+ 'ROUNDDOWN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::ROUNDDOWN',
+ 'argumentCount' => '2'
+ ),
+ 'ROUNDUP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::ROUNDUP',
+ 'argumentCount' => '2'
+ ),
+ 'ROW' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::ROW',
+ 'argumentCount' => '-1'
+ ),
+ 'ROWS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1'
+ ),
+ 'RSQ' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::RSQ',
+ 'argumentCount' => '2'
+ ),
+ 'RTD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1+'
+ ),
+ 'SEARCH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SEARCHINSENSITIVE',
+ 'argumentCount' => '2,3'
+ ),
+ 'SEARCHB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SEARCHINSENSITIVE',
+ 'argumentCount' => '2,3'
+ ),
+ 'SECOND' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SECONDOFMINUTE',
+ 'argumentCount' => '1'
+ ),
+ 'SERIESSUM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SERIESSUM',
+ 'argumentCount' => '4'
+ ),
+ 'SIGN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SIGN',
+ 'argumentCount' => '1'
+ ),
+ 'SIN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'sin',
+ 'argumentCount' => '1'
+ ),
+ 'SINH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'sinh',
+ 'argumentCount' => '1'
+ ),
+ 'SKEW' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SKEW',
+ 'argumentCount' => '1+'
+ ),
+ 'SLN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SLN',
+ 'argumentCount' => '3'
+ ),
+ 'SLOPE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SLOPE',
+ 'argumentCount' => '2'
+ ),
+ 'SMALL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SMALL',
+ 'argumentCount' => '2'
+ ),
+ 'SQRT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'sqrt',
+ 'argumentCount' => '1'
+ ),
+ 'SQRTPI' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SQRTPI',
+ 'argumentCount' => '1'
+ ),
+ 'STANDARDIZE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::STANDARDIZE',
+ 'argumentCount' => '3'
+ ),
+ 'STDEV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::STDEV',
+ 'argumentCount' => '1+'
+ ),
+ 'STDEVA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::STDEVA',
+ 'argumentCount' => '1+'
+ ),
+ 'STDEVP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::STDEVP',
+ 'argumentCount' => '1+'
+ ),
+ 'STDEVPA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::STDEVPA',
+ 'argumentCount' => '1+'
+ ),
+ 'STEYX' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::STEYX',
+ 'argumentCount' => '2'
+ ),
+ 'SUBSTITUTE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '3,4'
+ ),
+ 'SUBTOTAL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SUBTOTAL',
+ 'argumentCount' => '2+'
+ ),
+ 'SUM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SUM',
+ 'argumentCount' => '1+'
+ ),
+ 'SUMIF' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SUMIF',
+ 'argumentCount' => '2,3'
+ ),
+ 'SUMIFS' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ ),
+ 'SUMPRODUCT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1+'
+ ),
+ 'SUMSQ' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SUMSQ',
+ 'argumentCount' => '1+'
+ ),
+ 'SUMX2MY2' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SUMX2MY2',
+ 'argumentCount' => '2'
+ ),
+ 'SUMX2PY2' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SUMX2PY2',
+ 'argumentCount' => '2'
+ ),
+ 'SUMXMY2' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SUMXMY2',
+ 'argumentCount' => '2'
+ ),
+ 'SYD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::SYD',
+ 'argumentCount' => '4'
+ ),
+ 'T' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::RETURNSTRING',
+ 'argumentCount' => '1'
+ ),
+ 'TAN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'tan',
+ 'argumentCount' => '1'
+ ),
+ 'TANH' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'tanh',
+ 'argumentCount' => '1'
+ ),
+ 'TBILLEQ' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::TBILLEQ',
+ 'argumentCount' => '3'
+ ),
+ 'TBILLPRICE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::TBILLPRICE',
+ 'argumentCount' => '3'
+ ),
+ 'TBILLYIELD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::TBILLYIELD',
+ 'argumentCount' => '3'
+ ),
+ 'TDIST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::TDIST',
+ 'argumentCount' => '3'
+ ),
+ 'TEXT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::TEXTFORMAT',
+ 'argumentCount' => '2'
+ ),
+ 'TIME' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::TIME',
+ 'argumentCount' => '3'
+ ),
+ 'TIMEVALUE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::TIMEVALUE',
+ 'argumentCount' => '1'
+ ),
+ 'TINV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::TINV',
+ 'argumentCount' => '2'
+ ),
+ 'TODAY' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DATENOW',
+ 'argumentCount' => '0'
+ ),
+ 'TRANSPOSE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::TRANSPOSE',
+ 'argumentCount' => '1'
+ ),
+ 'TREND' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::TREND',
+ 'argumentCount' => '1-4'
+ ),
+ 'TRIM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::TRIMSPACES',
+ 'argumentCount' => '1'
+ ),
+ 'TRIMMEAN' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::TRIMMEAN',
+ 'argumentCount' => '2'
+ ),
+ 'TRUE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::LOGICAL_TRUE',
+ 'argumentCount' => '0'
+ ),
+ 'TRUNC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::TRUNC',
+ 'argumentCount' => '1,2'
+ ),
+ 'TTEST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '4'
+ ),
+ 'TYPE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1'
+ ),
+ 'UPPER' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::UPPERCASE',
+ 'argumentCount' => '1'
+ ),
+ 'USDOLLAR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '2'
+ ),
+ 'VALUE' => array('category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '1'
+ ),
+ 'VAR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::VARFunc',
+ 'argumentCount' => '1+'
+ ),
+ 'VARA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::VARA',
+ 'argumentCount' => '1+'
+ ),
+ 'VARP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::VARP',
+ 'argumentCount' => '1+'
+ ),
+ 'VARPA' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::VARPA',
+ 'argumentCount' => '1+'
+ ),
+ 'VDB' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '5-7'
+ ),
+ 'VERSION' => array('category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::VERSION',
+ 'argumentCount' => '0'
+ ),
+ 'VLOOKUP' => array('category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::VLOOKUP',
+ 'argumentCount' => '3,4'
+ ),
+ 'WEEKDAY' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DAYOFWEEK',
+ 'argumentCount' => '1,2'
+ ),
+ 'WEEKNUM' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::WEEKOFYEAR',
+ 'argumentCount' => '1,2'
+ ),
+ 'WEIBULL' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::WEIBULL',
+ 'argumentCount' => '4'
+ ),
+ 'WORKDAY' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::WORKDAY',
+ 'argumentCount' => '2+'
+ ),
+ 'XIRR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '2,3'
+ ),
+ 'XNPV' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '3'
+ ),
+ 'YEAR' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::YEAR',
+ 'argumentCount' => '1'
+ ),
+ 'YEARFRAC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::YEARFRAC',
+ 'argumentCount' => '2,3'
+ ),
+ 'YIELD' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '6,7'
+ ),
+ 'YIELDDISC' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::YIELDDISC',
+ 'argumentCount' => '4,5'
+ ),
+ 'YIELDMAT' => array('category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::YIELDMAT',
+ 'argumentCount' => '5,6'
+ ),
+ 'ZTEST' => array('category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL,
+ 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY',
+ 'argumentCount' => '?'
+ )
+ );
+
+
+ // Internal functions used for special control purposes
+ private $_controlFunctions = array(
+ 'MKMATRIX' => array('argumentCount' => '*',
+ 'functionCall' => array('self','_mkMatrix')
+ )
+ );
+
+
+
+
+ /**
+ * Get an instance of this class
+ *
+ * @access public
+ * @return PHPExcel_Calculation
+ */
+ public static function getInstance() {
+ if (!isset(self::$_instance) || is_null(self::$_instance)) {
+ self::$_instance = new PHPExcel_Calculation();
+ }
+
+ return self::$_instance;
+ } // function getInstance()
+
+
+ /**
+ * __clone implementation. Cloning should not be allowed in a Singleton!
+ *
+ * @access public
+ * @throws Exception
+ */
+ public final function __clone() {
+ throw new Exception ( 'Cloning a Singleton is not allowed!' );
+ } // function __clone()
+
+
+ /**
+ * Set the Array Return Type (Array or Value of first element in the array)
+ *
+ * @access public
+ * @param string $returnType Array return type
+ * @return boolean Success or failure
+ */
+ public static function setArrayReturnType($returnType) {
+ if (($returnType == self::RETURN_ARRAY_AS_VALUE) ||
+ ($returnType == self::RETURN_ARRAY_AS_ARRAY)) {
+ self::$returnArrayAsType = $returnType;
+ return True;
+ }
+ return False;
+ } // function setExcelCalendar()
+
+
+ /**
+ * Return the Array Return Type (Array or Value of first element in the array)
+ *
+ * @access public
+ * @return string $returnType Array return type
+ */
+ public static function getArrayReturnType() {
+ return self::$returnArrayAsType;
+ } // function getExcelCalendar()
+
+
+ /**
+ * Is calculation caching enabled?
+ *
+ * @access public
+ * @return boolean
+ */
+ public function getCalculationCacheEnabled() {
+ return $this->_calculationCacheEnabled;
+ } // function getCalculationCacheEnabled()
+
+
+ /**
+ * Enable/disable calculation cache
+ *
+ * @access public
+ * @param boolean $pValue
+ */
+ public function setCalculationCacheEnabled($pValue = true) {
+ $this->_calculationCacheEnabled = $pValue;
+ $this->clearCalculationCache();
+ } // function setCalculationCacheEnabled()
+
+
+ /**
+ * Enable calculation cache
+ */
+ public function enableCalculationCache() {
+ $this->setCalculationCacheEnabled(true);
+ } // function enableCalculationCache()
+
+
+ /**
+ * Disable calculation cache
+ */
+ public function disableCalculationCache() {
+ $this->setCalculationCacheEnabled(false);
+ } // function disableCalculationCache()
+
+
+ /**
+ * Clear calculation cache
+ */
+ public function clearCalculationCache() {
+ $this->_calculationCache = array();
+ } // function clearCalculationCache()
+
+
+ /**
+ * Get calculation cache expiration time
+ *
+ * @return float
+ */
+ public function getCalculationCacheExpirationTime() {
+ return $this->_calculationCacheExpirationTime;
+ } // getCalculationCacheExpirationTime()
+
+
+ /**
+ * Set calculation cache expiration time
+ *
+ * @param float $pValue
+ */
+ public function setCalculationCacheExpirationTime($pValue = 0.01) {
+ $this->_calculationCacheExpirationTime = $pValue;
+ } // function setCalculationCacheExpirationTime()
+
+
+
+
+ /**
+ * Wrap string values in quotes
+ *
+ * @param mixed $value
+ * @return mixed
+ */
+ public static function _wrapResult($value) {
+ if (is_string($value)) {
+ // Error values cannot be "wrapped"
+ if (preg_match('/^'.self::CALCULATION_REGEXP_ERROR.'$/i', $value, $match)) {
+ // Return Excel errors "as is"
+ return $value;
+ }
+ // Return strings wrapped in quotes
+ return '"'.$value.'"';
+ // Convert numeric errors to NaN error
+ } else if((is_float($value)) && ((is_nan($value)) || (is_infinite($value)))) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ return $value;
+ } // function _wrapResult()
+
+
+ /**
+ * Remove quotes used as a wrapper to identify string values
+ *
+ * @param mixed $value
+ * @return mixed
+ */
+ public static function _unwrapResult($value) {
+ if (is_string($value)) {
+ if ((strlen($value) > 0) && ($value{0} == '"') && (substr($value,-1) == '"')) {
+ return substr($value,1,-1);
+ }
+ // Convert numeric errors to NaN error
+ } else if((is_float($value)) && ((is_nan($value)) || (is_infinite($value)))) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return $value;
+ } // function _unwrapResult()
+
+
+
+
+ /**
+ * Calculate cell value (using formula from a cell ID)
+ * Retained for backward compatibility
+ *
+ * @access public
+ * @param PHPExcel_Cell $pCell Cell to calculate
+ * @return mixed
+ * @throws Exception
+ */
+ public function calculate(PHPExcel_Cell $pCell = null) {
+ return $this->calculateCellValue($pCell);
+ } // function calculate()
+
+
+ /**
+ * Calculate the value of a cell formula
+ *
+ * @access public
+ * @param PHPExcel_Cell $pCell Cell to calculate
+ * @param Boolean $resetLog Flag indicating whether the debug log should be reset or not
+ * @return mixed
+ * @throws Exception
+ */
+ public function calculateCellValue(PHPExcel_Cell $pCell = null, $resetLog = true) {
+ if ($resetLog) {
+ // Initialise the logging settings if requested
+ $this->formulaError = null;
+ $this->debugLog = array();
+ $this->debugLogStack = array();
+ }
+
+ // Read the formula from the cell
+ if (is_null($pCell)) {
+ return null;
+ }
+ $formula = $pCell->getValue();
+ $cellID = $pCell->getCoordinate();
+
+ // Execute the calculation for the cell formula
+ return self::_unwrapResult($this->_calculateFormulaValue($formula, $cellID, $pCell));
+ } // function calculateCellValue(
+
+
+ /**
+ * Validate and parse a formula string
+ *
+ * @param string $formula Formula to parse
+ * @return array
+ * @throws Exception
+ */
+ public function parseFormula($formula) {
+ // Basic validation that this is indeed a formula
+ // We return an empty array if not
+ $formula = trim($formula);
+ if ($formula{0} != '=') return array();
+ $formula = trim(substr($formula,1));
+ $formulaLength = strlen($formula);
+ if ($formulaLength < 1) return array();
+
+ // Parse the formula and return the token stack
+ return $this->_parseFormula($formula);
+ } // function parseFormula()
+
+
+ /**
+ * Calculate the value of a formula
+ *
+ * @param string $formula Formula to parse
+ * @return mixed
+ * @throws Exception
+ */
+ public function calculateFormula($formula, $cellID=null, PHPExcel_Cell $pCell = null) {
+ // Initialise the logging settings
+ $this->formulaError = null;
+ $this->debugLog = array();
+ $this->debugLogStack = array();
+
+ // Disable calculation cacheing because it only applies to cell calculations, not straight formulae
+ // But don't actually flush any cache
+ $resetCache = $this->getCalculationCacheEnabled();
+ $this->_calculationCacheEnabled = false;
+ // Execute the calculation
+ $result = self::_unwrapResult($this->_calculateFormulaValue($formula, $cellID, $pCell));
+ // Reset calculation cacheing to its previous state
+ $this->_calculationCacheEnabled = $resetCache;
+
+ return $result;
+ } // function calculateFormula()
+
+
+ /**
+ * Parse a cell formula and calculate its value
+ *
+ * @param string $formula The formula to parse and calculate
+ * @param string $cellID The ID (e.g. A3) of the cell that we are calculating
+ * @param PHPExcel_Cell $pCell Cell to calculate
+ * @return mixed
+ * @throws Exception
+ */
+ public function _calculateFormulaValue($formula, $cellID=null, PHPExcel_Cell $pCell = null) {
+// echo ''.$cellID.' ';
+ $cellValue = '';
+
+ // Basic validation that this is indeed a formula
+ // We simply return the "cell value" (formula) if not
+ $formula = trim($formula);
+ if ($formula{0} != '=') return self::_wrapResult($formula);
+ $formula = trim(substr($formula,1));
+ $formulaLength = strlen($formula);
+ if ($formulaLength < 1) return self::_wrapResult($formula);
+
+ // Is calculation cacheing enabled?
+ if (!is_null($cellID)) {
+ if ($this->_calculationCacheEnabled) {
+ // Is the value present in calculation cache?
+// echo 'Testing cache value ';
+ if (isset($this->_calculationCache[$pCell->getParent()->getTitle()][$pCell->getCoordinate()])) {
+// echo 'Value is in cache ';
+ $this->_writeDebug($cellID,'Testing cache value');
+ // Is cache still valid?
+ if ((time() + microtime()) - $this->_calculationCache[$pCell->getParent()->getTitle()][$pCell->getCoordinate()]['time'] < $this->_calculationCacheExpirationTime) {
+// echo 'Cache time is still valid ';
+ $this->_writeDebug($cellID,'Retrieving value from cache');
+ // Return the cached result
+ $returnValue = $this->_calculationCache[$pCell->getParent()->getTitle()][$pCell->getCoordinate()]['data'];
+// echo 'Retrieving data value of '.$returnValue.' for '.$pCell->getCoordinate().' from cache ';
+ if (is_array($returnValue)) {
+ return array_shift(PHPExcel_Calculation_Functions::flattenArray($returnValue));
+ }
+ return $returnValue;
+ } else {
+// echo 'Cache has expired ';
+ $this->_writeDebug($cellID,'Cache value has expired');
+ // Clear the cache if it's no longer valid
+ unset($this->_calculationCache[$pCell->getParent()->getTitle()][$pCell->getCoordinate()]);
+ }
+ }
+ }
+ }
+
+ $this->debugLogStack[] = $cellID;
+ // Parse the formula onto the token stack and calculate the value
+ $cellValue = $this->_processTokenStack($this->_parseFormula($formula), $cellID, $pCell);
+ array_pop($this->debugLogStack);
+
+ // Save to calculation cache
+ if (!is_null($cellID)) {
+ if ($this->_calculationCacheEnabled) {
+ $this->_calculationCache[$pCell->getParent()->getTitle()][$pCell->getCoordinate()]['time'] = (time() + microtime());
+ $this->_calculationCache[$pCell->getParent()->getTitle()][$pCell->getCoordinate()]['data'] = $cellValue;
+ }
+ }
+
+ // Return the calculated value
+ if (is_array($cellValue)) {
+ $cellValue = array_shift(PHPExcel_Calculation_Functions::flattenArray($cellValue));
+ }
+
+ return $cellValue;
+ } // function _calculateFormulaValue()
+
+
+ /**
+ * Ensure that paired matrix operands are both matrices and of the same size
+ *
+ * @param mixed $operand1 First matrix operand
+ * @param mixed $operand2 Second matrix operand
+ */
+ private static function _checkMatrixOperands(&$operand1,&$operand2,$resize = 1) {
+ // Examine each of the two operands, and turn them into an array if they aren't one already
+ // Note that this function should only be called if one or both of the operand is already an array
+ if (!is_array($operand1)) {
+ list($matrixRows,$matrixColumns) = self::_getMatrixDimensions($operand2);
+ $operand1 = array_fill(0,$matrixRows,array_fill(0,$matrixColumns,$operand1));
+ $resize = 0;
+ } elseif (!is_array($operand2)) {
+ list($matrixRows,$matrixColumns) = self::_getMatrixDimensions($operand1);
+ $operand2 = array_fill(0,$matrixRows,array_fill(0,$matrixColumns,$operand2));
+ $resize = 0;
+ }
+
+ // Given two matrices of (potentially) unequal size, convert the smaller in each dimension to match the larger
+ if ($resize == 2) {
+ self::_resizeMatricesExtend($operand1,$operand2);
+ } elseif ($resize == 1) {
+ self::_resizeMatricesShrink($operand1,$operand2);
+ }
+ } // function _checkMatrixOperands()
+
+
+ /**
+ * Re-index a matrix with straight numeric keys starting from row 0, column 0
+ *
+ * @param mixed $matrix matrix operand
+ * @return array The re-indexed matrix
+ */
+ private static function _reindexMatrixDimensions($matrix) {
+ foreach($matrix as $rowKey => $rowValue) {
+ $matrix[$rowKey] = array_values($rowValue);
+ }
+ return array_values($matrix);
+ } // function _getMatrixDimensions()
+
+
+ /**
+ * Read the dimensions of a matrix, and re-index it with straight numeric keys starting from row 0, column 0
+ *
+ * @param mixed $matrix matrix operand
+ * @return array An array comprising the number of rows, and number of columns
+ */
+ private static function _getMatrixDimensions(&$matrix) {
+ $matrixRows = count($matrix);
+ $matrixColumns = 0;
+ foreach($matrix as $rowKey => $rowValue) {
+ $colCount = count($rowValue);
+ if ($colCount > $matrixColumns) {
+ $matrixColumns = $colCount;
+ }
+ $matrix[$rowKey] = array_values($rowValue);
+ }
+ $matrix = array_values($matrix);
+ return array($matrixRows,$matrixColumns);
+ } // function _getMatrixDimensions()
+
+
+ /**
+ * Ensure that paired matrix operands are both matrices of the same size
+ *
+ * @param mixed $matrix1 First matrix operand
+ * @param mixed $matrix2 Second matrix operand
+ */
+ private static function _resizeMatricesShrink(&$matrix1,&$matrix2) {
+ list($matrix1Rows,$matrix1Columns) = self::_getMatrixDimensions($matrix1);
+ list($matrix2Rows,$matrix2Columns) = self::_getMatrixDimensions($matrix2);
+
+ if (($matrix2Columns < $matrix1Columns) || ($matrix2Rows < $matrix1Rows)) {
+ if ($matrix2Columns < $matrix1Columns) {
+ for ($i = 0; $i < $matrix1Rows; ++$i) {
+ for ($j = $matrix2Columns; $j < $matrix1Columns; ++$j) {
+ unset($matrix1[$i][$j]);
+ }
+ }
+ }
+ if ($matrix2Rows < $matrix1Rows) {
+ for ($i = $matrix2Rows; $i < $matrix1Rows; ++$i) {
+ unset($matrix1[$i]);
+ }
+ }
+ }
+
+ if (($matrix1Columns < $matrix2Columns) || ($matrix1Rows < $matrix2Rows)) {
+ if ($matrix1Columns < $matrix2Columns) {
+ for ($i = 0; $i < $matrix2Rows; ++$i) {
+ for ($j = $matrix1Columns; $j < $matrix2Columns; ++$j) {
+ unset($matrix2[$i][$j]);
+ }
+ }
+ }
+ if ($matrix1Rows < $matrix2Rows) {
+ for ($i = $matrix1Rows; $i < $matrix2Rows; ++$i) {
+ unset($matrix2[$i]);
+ }
+ }
+ }
+ } // function _resizeMatricesShrink()
+
+
+ /**
+ * Ensure that paired matrix operands are both matrices of the same size
+ *
+ * @param mixed $matrix1 First matrix operand
+ * @param mixed $matrix2 Second matrix operand
+ */
+ private static function _resizeMatricesExtend(&$matrix1,&$matrix2) {
+ list($matrix1Rows,$matrix1Columns) = self::_getMatrixDimensions($matrix1);
+ list($matrix2Rows,$matrix2Columns) = self::_getMatrixDimensions($matrix2);
+
+ if (($matrix2Columns < $matrix1Columns) || ($matrix2Rows < $matrix1Rows)) {
+ if ($matrix2Columns < $matrix1Columns) {
+ for ($i = 0; $i < $matrix2Rows; ++$i) {
+ $x = $matrix2[$i][$matrix2Columns-1];
+ for ($j = $matrix2Columns; $j < $matrix1Columns; ++$j) {
+ $matrix2[$i][$j] = $x;
+ }
+ }
+ }
+ if ($matrix2Rows < $matrix1Rows) {
+ $x = $matrix2[$matrix2Rows-1];
+ for ($i = 0; $i < $matrix1Rows; ++$i) {
+ $matrix2[$i] = $x;
+ }
+ }
+ }
+
+ if (($matrix1Columns < $matrix2Columns) || ($matrix1Rows < $matrix2Rows)) {
+ if ($matrix1Columns < $matrix2Columns) {
+ for ($i = 0; $i < $matrix1Rows; ++$i) {
+ $x = $matrix1[$i][$matrix1Columns-1];
+ for ($j = $matrix1Columns; $j < $matrix2Columns; ++$j) {
+ $matrix1[$i][$j] = $x;
+ }
+ }
+ }
+ if ($matrix1Rows < $matrix2Rows) {
+ $x = $matrix1[$matrix1Rows-1];
+ for ($i = 0; $i < $matrix2Rows; ++$i) {
+ $matrix1[$i] = $x;
+ }
+ }
+ }
+ } // function _resizeMatricesExtend()
+
+
+ /**
+ * Format details of an operand for display in the log (based on operand type)
+ *
+ * @param mixed $value First matrix operand
+ * @return mixed
+ */
+ private static function _showValue($value) {
+ if (is_array($value)) {
+ $retVal = '';
+ $i = 0;
+ foreach($value as $row) {
+ if (is_array($row)) {
+ if ($i > 0) { $retVal .= '; '; }
+ $j = 0;
+ foreach($row as $column) {
+ if ($j > 0) { $retVal .= ', '; }
+ $retVal .= $column;
+ ++$j;
+ }
+ } else {
+ if ($i > 0) { $retVal .= ', '; }
+ $retVal .= $row;
+ }
+ ++$i;
+ }
+ return '{ '.$retVal.' }';
+ } elseif(is_bool($value)) {
+ return ($value) ? 'TRUE' : 'FALSE';
+ }
+
+ return $value;
+ } // function _showValue()
+
+
+ /**
+ * Format type and details of an operand for display in the log (based on operand type)
+ *
+ * @param mixed $value First matrix operand
+ * @return mixed
+ */
+ private static function _showTypeDetails($value) {
+ switch (gettype($value)) {
+ case 'double' :
+ case 'float' :
+ $typeString = 'a floating point number';
+ break;
+ case 'integer' :
+ $typeString = 'an integer number';
+ break;
+ case 'boolean' :
+ $typeString = 'a boolean';
+ break;
+ case 'array' :
+ $typeString = 'a matrix';
+ break;
+ case 'string' :
+ if ($value == '') {
+ return 'an empty string';
+ } elseif ($value{0} == '#') {
+ return 'a '.$value.' error';
+ } else {
+ $typeString = 'a string';
+ }
+ break;
+ case 'NULL' :
+ return 'a null value';
+ }
+ return $typeString.' with a value of '.self::_showValue($value);
+ } // function _showTypeDetails()
+
+
+ private static function _convertMatrixReferences($formula) {
+ static $matrixReplaceFrom = array('{',';','}');
+ static $matrixReplaceTo = array('MKMATRIX(MKMATRIX(','),MKMATRIX(','))');
+
+ // Convert any Excel matrix references to the MKMATRIX() function
+ if (strpos($formula,'{') !== false) {
+ // Open and Closed counts used for trapping mismatched braces in the formula
+ $openCount = $closeCount = 0;
+ // If there is the possibility of braces within a quoted string, then we don't treat those as matrix indicators
+ if (strpos($formula,'"') !== false) {
+ // So instead we skip replacing in any quoted strings by only replacing in every other array element after we've exploded
+ // the formula
+ $temp = explode('"',$formula);
+ $i = 0;
+ foreach($temp as &$value) {
+ // Only count/replace in alternate array entries
+ if (($i++ % 2) == 0) {
+ $openCount += substr_count($value,'{');
+ $closeCount += substr_count($value,'}');
+ $value = str_replace($matrixReplaceFrom,$matrixReplaceTo,$value);
+ }
+ }
+ unset($value);
+ // Then rebuild the formula string
+ $formula = implode('"',$temp);
+ } else {
+ // If there's no quoted strings, then we do a simple count/replace
+ $openCount += substr_count($formula,'{');
+ $closeCount += substr_count($formula,'}');
+ $formula = str_replace($matrixReplaceFrom,$matrixReplaceTo,$formula);
+ }
+ // Trap for mismatched braces and trigger an appropriate error
+ if ($openCount < $closeCount) {
+ if ($openCount > 0) {
+ return $this->_raiseFormulaError("Formula Error: Mismatched matrix braces '}'");
+ } else {
+ return $this->_raiseFormulaError("Formula Error: Unexpected '}' encountered");
+ }
+ } elseif ($openCount > $closeCount) {
+ if ($closeCount > 0) {
+ return $this->_raiseFormulaError("Formula Error: Mismatched matrix braces '{'");
+ } else {
+ return $this->_raiseFormulaError("Formula Error: Unexpected '{' encountered");
+ }
+ }
+ }
+
+ return $formula;
+ } // function _convertMatrixReferences()
+
+
+ private static function _mkMatrix() {
+ return func_get_args();
+ } // function _mkMatrix()
+
+
+ // Convert infix to postfix notation
+ private function _parseFormula($formula) {
+ if (($formula = self::_convertMatrixReferences(trim($formula))) === false) {
+ return false;
+ }
+
+ // Binary Operators
+ // These operators always work on two values
+ // Array key is the operator, the value indicates whether this is a left or right associative operator
+ $operatorAssociativity = array('^' => 0, // Exponentiation
+ '*' => 0, '/' => 0, // Multiplication and Division
+ '+' => 0, '-' => 0, // Addition and Subtraction
+ '&' => 1, // Concatenation
+ '>' => 0, '<' => 0, '=' => 0, '>=' => 0, '<=' => 0, '<>' => 0 // Comparison
+ );
+ // Comparison (Boolean) Operators
+ // These operators work on two values, but always return a boolean result
+ $comparisonOperators = array('>', '<', '=', '>=', '<=', '<>');
+
+ // Operator Precedence
+ // This list includes all valid operators, whether binary (including boolean) or unary (such as %)
+ // Array key is the operator, the value is its precedence
+ $operatorPrecedence = array('_' => 6, // Negation
+ '%' => 5, // Percentage
+ '^' => 4, // Exponentiation
+ '*' => 3, '/' => 3, // Multiplication and Division
+ '+' => 2, '-' => 2, // Addition and Subtraction
+ '&' => 1, // Concatenation
+ '>' => 0, '<' => 0, '=' => 0, '>=' => 0, '<=' => 0, '<>' => 0 // Comparison
+ );
+
+ $regexpMatchString = '/^('.self::CALCULATION_REGEXP_FUNCTION.
+ '|'.self::CALCULATION_REGEXP_NUMBER.
+ '|'.self::CALCULATION_REGEXP_STRING.
+ '|'.self::CALCULATION_REGEXP_OPENBRACE.
+ '|'.self::CALCULATION_REGEXP_CELLREF.
+ '|'.self::CALCULATION_REGEXP_NAMEDRANGE.
+ ')/i';
+
+ // Start with initialisation
+ $index = 0;
+ $stack = new PHPExcel_Token_Stack;
+ $output = array();
+ $expectingOperator = false; // We use this test in syntax-checking the expression to determine when a
+ // - is a negation or + is a positive operator rather than an operation
+ $expectingOperand = false; // We use this test in syntax-checking the expression to determine whether an operand
+ // should be null in a function call
+ // The guts of the lexical parser
+ // Loop through the formula extracting each operator and operand in turn
+ while(True) {
+// echo 'Assessing Expression '.substr($formula, $index).' ';
+ $opCharacter = $formula{$index}; // Get the first character of the value at the current index position
+// echo 'Initial character of expression block is '.$opCharacter.' ';
+ if ((in_array($opCharacter, $comparisonOperators)) && (strlen($formula) > $index) && (in_array($formula{$index+1}, $comparisonOperators))) {
+ $opCharacter .= $formula{++$index};
+// echo 'Initial character of expression block is comparison operator '.$opCharacter.' ';
+ }
+
+ // Find out if we're currently at the beginning of a number, variable, cell reference, function, parenthesis or operand
+ $isOperandOrFunction = preg_match($regexpMatchString, substr($formula, $index), $match);
+// echo '$isOperandOrFunction is '.(($isOperandOrFunction)?'True':'False').' ';
+
+ if ($opCharacter == '-' && !$expectingOperator) { // Is it a negation instead of a minus?
+// echo 'Element is a Negation operator ';
+ $stack->push('_'); // Put a negation on the stack
+ ++$index; // and drop the negation symbol
+ } elseif ($opCharacter == '%' && $expectingOperator) {
+// echo 'Element is a Percentage operator ';
+ $stack->push('%'); // Put a percentage on the stack
+ ++$index;
+ } elseif ($opCharacter == '+' && !$expectingOperator) { // Positive (rather than plus) can be discarded?
+// echo 'Element is a Positive number, not Plus operator ';
+ ++$index; // Drop the redundant plus symbol
+ } elseif (($opCharacter == '_') && (!$isOperandOrFunction)) { // We have to explicitly deny an underscore, because it's legal on
+ return $this->_raiseFormulaError("Formula Error: Illegal character '_'"); // the stack but not in the input expression
+ // Note that _ is a valid first character in named ranges
+ // and this will need modifying soon when we start integrating
+ // with PHPExcel proper
+
+ } elseif ((in_array($opCharacter, $this->_operators) or $isOperandOrFunction) && $expectingOperator) { // Are we putting an operator on the stack?
+// echo 'Element with value '.$opCharacter.' is an Operator ';
+ while($stack->count() > 0 &&
+ ($o2 = $stack->last()) &&
+ in_array($o2, $this->_operators) &&
+ ($operatorAssociativity[$opCharacter] ? $operatorPrecedence[$opCharacter] < $operatorPrecedence[$o2] : $operatorPrecedence[$opCharacter] <= $operatorPrecedence[$o2])) {
+ $output[] = $stack->pop(); // Swap operands and higher precedence operators from the stack to the output
+ }
+ $stack->push($opCharacter); // Finally put our current operator onto the stack
+ ++$index;
+ $expectingOperator = false;
+
+ } elseif ($opCharacter == ')' && $expectingOperator) { // Are we expecting to close a parenthesis?
+// echo 'Element is a Closing bracket ';
+ $expectingOperand = false;
+ while (($o2 = $stack->pop()) != '(') { // Pop off the stack back to the last (
+ if (is_null($o2)) return $this->_raiseFormulaError('Formula Error: Unexpected closing brace ")"');
+ else $output[] = $o2;
+ }
+ if (preg_match('/^'.self::CALCULATION_REGEXP_FUNCTION.'$/i', $stack->last(2), $matches)) { // Did this parenthesis just close a function?
+ $functionName = $matches[1]; // Get the function name
+// echo 'Closed Function is '.$functionName.' ';
+ $argumentCount = $stack->pop(); // See how many arguments there were (argument count is the next value stored on the stack)
+// if ($argumentCount == 0) {
+// echo 'With no arguments ';
+// } elseif ($argumentCount == 1) {
+// echo 'With 1 argument ';
+// } else {
+// echo 'With '.$argumentCount.' arguments ';
+// }
+ $output[] = $argumentCount; // Dump the argument count on the output
+ $output[] = $stack->pop(); // Pop the function and push onto the output
+ if (array_key_exists($functionName, $this->_controlFunctions)) {
+// echo 'Built-in function '.$functionName.' ';
+ $expectedArgumentCount = $this->_controlFunctions[$functionName]['argumentCount'];
+ $functionCall = $this->_controlFunctions[$functionName]['functionCall'];
+ } elseif (array_key_exists($functionName, $this->_PHPExcelFunctions)) {
+// echo 'PHPExcel function '.$functionName.' ';
+ $expectedArgumentCount = $this->_PHPExcelFunctions[$functionName]['argumentCount'];
+ $functionCall = $this->_PHPExcelFunctions[$functionName]['functionCall'];
+ } else { // did we somehow push a non-function on the stack? this should never happen
+ return $this->_raiseFormulaError("Formula Error: Internal error, non-function on stack");
+ }
+ // Check the argument count
+ $argumentCountError = False;
+ if (is_numeric($expectedArgumentCount)) {
+ if ($expectedArgumentCount < 0) {
+// echo '$expectedArgumentCount is between 0 and '.abs($expectedArgumentCount).' ';
+ if ($argumentCount > abs($expectedArgumentCount)) {
+ $argumentCountError = True;
+ $expectedArgumentCountString = 'no more than '.abs($expectedArgumentCount);
+ }
+ } else {
+// echo '$expectedArgumentCount is numeric '.$expectedArgumentCount.' ';
+ if ($argumentCount != $expectedArgumentCount) {
+ $argumentCountError = True;
+ $expectedArgumentCountString = $expectedArgumentCount;
+ }
+ }
+ } elseif ($expectedArgumentCount != '*') {
+ $isOperandOrFunction = preg_match('/(\d*)([-+,])(\d*)/',$expectedArgumentCount,$argMatch);
+// print_r($argMatch);
+// echo ' ';
+ switch ($argMatch[2]) {
+ case '+' :
+ if ($argumentCount < $argMatch[1]) {
+ $argumentCountError = True;
+ $expectedArgumentCountString = $argMatch[1].' or more ';
+ }
+ break;
+ case '-' :
+ if (($argumentCount < $argMatch[1]) || ($argumentCount > $argMatch[3])) {
+ $argumentCountError = True;
+ $expectedArgumentCountString = 'between '.$argMatch[1].' and '.$argMatch[3];
+ }
+ break;
+ case ',' :
+ if (($argumentCount != $argMatch[1]) && ($argumentCount != $argMatch[3])) {
+ $argumentCountError = True;
+ $expectedArgumentCountString = 'either '.$argMatch[1].' or '.$argMatch[3];
+ }
+ break;
+ }
+ }
+ if ($argumentCountError) {
+ return $this->_raiseFormulaError("Formula Error: Wrong number of arguments for $functionName() function: $argumentCount given, ".$expectedArgumentCountString." expected");
+ }
+ }
+ ++$index;
+
+ } elseif ($opCharacter == ',') { // Is this the comma separator for function arguments?
+// echo 'Element is a Function argument separator ';
+ while (($o2 = $stack->pop()) != '(') {
+ if (is_null($o2)) return $this->_raiseFormulaError("Formula Error: Unexpected ','");
+ else $output[] = $o2; // pop the argument expression stuff and push onto the output
+ }
+ // If we've a comma when we're expecting an operand, then what we actually have is a null operand;
+ // so push a null onto the stack
+ if (($expectingOperand) || (!$expectingOperator)) {
+ $output[] = $this->_ExcelConstants['NULL'];
+ }
+ // make sure there was a function
+ if (!preg_match('/^'.self::CALCULATION_REGEXP_FUNCTION.'$/i', $stack->last(2), $matches))
+ return $this->_raiseFormulaError("Formula Error: Unexpected ','");
+ $stack->push($stack->pop()+1); // increment the argument count
+ $stack->push('('); // put the ( back on, we'll need to pop back to it again
+ $expectingOperator = false;
+ $expectingOperand = true;
+ ++$index;
+
+ } elseif ($opCharacter == '(' && !$expectingOperator) {
+// echo 'Element is an Opening Bracket ';
+ $stack->push('(');
+ ++$index;
+
+ } elseif ($isOperandOrFunction && !$expectingOperator) { // do we now have a function/variable/number?
+ $expectingOperator = true;
+ $expectingOperand = false;
+ $val = $match[1];
+ $length = strlen($val);
+// echo 'Element with value '.$val.' is an Operand, Variable, Constant, String, Number, Cell Reference or Function ';
+
+ if (preg_match('/^'.self::CALCULATION_REGEXP_FUNCTION.'$/i', $val, $matches)) {
+ $val = preg_replace('/\s/','',$val);
+// echo 'Element '.$val.' is a Function ';
+ if (array_key_exists(strtoupper($matches[1]), $this->_controlFunctions) || array_key_exists(strtoupper($matches[1]), $this->_PHPExcelFunctions)) { // it's a func
+ $stack->push(strtoupper($val));
+ $ax = preg_match('/^\s*(\s*\))/i', substr($formula, $index+$length), $amatch);
+ if ($ax) {
+ $stack->push(0);
+ $expectingOperator = true;
+ } else {
+ $stack->push(1);
+ $expectingOperator = false;
+ }
+ $stack->push('(');
+ } else { // it's a var w/ implicit multiplication
+ $val = $matches[1];
+ $output[] = $val;
+ }
+ } elseif (preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'$/i', $val, $matches)) {
+// echo 'Element '.$val.' is a Cell reference ';
+// Watch for this case-change when modifying to allow cell references in different worksheets...
+// Should only be applied to the actual cell column, not the worksheet name
+// $cellRef = strtoupper($val);
+// $output[] = $cellRef;
+ $output[] = $val;
+// $expectingOperator = false;
+ } else { // it's a variable, constant, string, number or boolean
+// echo 'Element is a Variable, Constant, String, Number or Boolean ';
+ if ($opCharacter == '"') {
+// echo 'Element is a String ';
+ $val = str_replace('""','"',$val);
+ } elseif (is_numeric($val)) {
+// echo 'Element is a Number ';
+ if ((strpos($val,'.') !== False) || (stripos($val,'e') !== False)) {
+// echo 'Casting '.$val.' to float ';
+ $val = (float) $val;
+ } else {
+// echo 'Casting '.$val.' to integer ';
+ $val = (integer) $val;
+ }
+// } elseif (array_key_exists(trim(strtoupper($val)), $this->_ExcelConstants)) {
+// $excelConstant = trim(strtoupper($val));
+// echo 'Element '.$val.' is an Excel Constant ';
+// $val = $this->_ExcelConstants[$excelConstant];
+ }
+ $output[] = $val;
+ }
+ $index += $length;
+
+ } elseif ($opCharacter == ')') { // miscellaneous error checking
+ if ($expectingOperand) {
+ $output[] = $this->_ExcelConstants['NULL'];
+ $expectingOperand = false;
+ $expectingOperator = True;
+ } else {
+ return $this->_raiseFormulaError("Formula Error: Unexpected ')'");
+ }
+ } elseif (in_array($opCharacter, $this->_operators) && !$expectingOperator) {
+ return $this->_raiseFormulaError("Formula Error: Unexpected operator '$opCharacter'");
+ } else { // I don't even want to know what you did to get here
+ return $this->_raiseFormulaError("Formula Error: An unexpected error occured");
+ }
+ // Test for end of formula string
+ if ($index == strlen($formula)) {
+ // Did we end with an operator?.
+ // Only valid for the % unary operator
+ if ((in_array($opCharacter, $this->_operators)) && ($opCharacter != '%')) {
+ return $this->_raiseFormulaError("Formula Error: Operator '$opCharacter' has no operands");
+ } else {
+ break;
+ }
+ }
+ // Ignore white space
+ while (substr($formula, $index, 1) == ' ') {
+ ++$index;
+ }
+ }
+
+ while (!is_null($opCharacter = $stack->pop())) { // pop everything off the stack and push onto output
+ if ($opCharacter == '(') return $this->_raiseFormulaError("Formula Error: Expecting ')'"); // if there are any opening braces on the stack, then braces were unbalanced
+ $output[] = $opCharacter;
+ }
+ return $output;
+ } // function _parseFormula()
+
+
+ // evaluate postfix notation
+ private function _processTokenStack($tokens, $cellID=null, PHPExcel_Cell $pCell = null) {
+ if ($tokens == false) return false;
+
+ $stack = new PHPExcel_Token_Stack;
+
+ // Loop through each token in turn
+ foreach ($tokens as $token) {
+// echo 'Token is '.$token.' ';
+ // if the token is a binary operator, pop the top two values off the stack, do the operation, and push the result back on the stack
+ if (in_array($token, $this->_binaryOperators, true)) {
+// echo 'Token is a binary operator ';
+ // We must have two operands, error if we don't
+ if (is_null($operand2 = $stack->pop())) return $this->_raiseFormulaError('Internal error - Operand value missing from stack');
+ if (is_null($operand1 = $stack->pop())) return $this->_raiseFormulaError('Internal error - Operand value missing from stack');
+ // Log what we're doing
+ $this->_writeDebug($cellID,'Evaluating '.self::_showValue($operand1).' '.$token.' '.self::_showValue($operand2));
+ // Process the operation in the appropriate manner
+ switch ($token) {
+ // Comparison (Boolean) Operators
+ case '>' : // Greater than
+ case '<' : // Less than
+ case '>=' : // Greater than or Equal to
+ case '<=' : // Less than or Equal to
+ case '=' : // Equality
+ case '<>' : // Inequality
+ $this->_executeBinaryComparisonOperation($cellID,$operand1,$operand2,$token,$stack);
+ break;
+ // Binary Operators
+ case '+' : // Addition
+ $this->_executeNumericBinaryOperation($cellID,$operand1,$operand2,$token,'plusEquals',$stack);
+ break;
+ case '-' : // Subtraction
+ $this->_executeNumericBinaryOperation($cellID,$operand1,$operand2,$token,'minusEquals',$stack);
+ break;
+ case '*' : // Multiplication
+ $this->_executeNumericBinaryOperation($cellID,$operand1,$operand2,$token,'arrayTimesEquals',$stack);
+ break;
+ case '/' : // Division
+ $this->_executeNumericBinaryOperation($cellID,$operand1,$operand2,$token,'arrayRightDivide',$stack);
+ break;
+ case '^' : // Exponential
+ $this->_executeNumericBinaryOperation($cellID,$operand1,$operand2,$token,'power',$stack);
+ break;
+ case '&' : // Concatenation
+ // If either of the operands is a matrix, we need to treat them both as matrices
+ // (converting the other operand to a matrix if need be); then perform the required
+ // matrix operation
+ if ((is_array($operand1)) || (is_array($operand2))) {
+ // Ensure that both operands are arrays/matrices
+ self::_checkMatrixOperands($operand1,$operand2);
+ try {
+ // Convert operand 1 from a PHP array to a matrix
+ $matrix = new Matrix($operand1);
+ // Perform the required operation against the operand 1 matrix, passing in operand 2
+ $matrixResult = $matrix->concat($operand2);
+ $result = $matrixResult->getArray();
+ } catch (Exception $ex) {
+ $this->_writeDebug($cellID,'JAMA Matrix Exception: '.$ex->getMessage());
+ $result = '#VALUE!';
+ }
+ } else {
+ $result = '"'.str_replace('""','"',self::_unwrapResult($operand1,'"').self::_unwrapResult($operand2,'"')).'"';
+ }
+ $this->_writeDebug($cellID,'Evaluation Result is '.self::_showTypeDetails($result));
+ $stack->push($result);
+ break;
+ }
+
+ // if the token is a unary operator, pop one value off the stack, do the operation, and push it back on
+ } elseif (($token === "_") || ($token === "%")) {
+// echo 'Token is a unary operator ';
+ if (is_null($arg = $stack->pop())) return $this->_raiseFormulaError('Internal error - Operand value missing from stack');
+ if ($token === "_") {
+// echo 'Token is a negation operator ';
+ $this->_writeDebug($cellID,'Evaluating Negation of '.self::_showValue($arg));
+ $multiplier = -1;
+ } else {
+// echo 'Token is a percentile operator ';
+ $this->_writeDebug($cellID,'Evaluating Percentile of '.self::_showValue($arg));
+ $multiplier = 0.01;
+ }
+ if (is_array($arg)) {
+ self::_checkMatrixOperands($arg,$multiplier);
+ try {
+ $matrix1 = new Matrix($arg);
+ $matrixResult = $matrix1->arrayTimesEquals($multiplier);
+ $result = $matrixResult->getArray();
+ } catch (Exception $ex) {
+ $this->_writeDebug($cellID,'JAMA Matrix Exception: '.$ex->getMessage());
+ $result = '#VALUE!';
+ }
+
+ } else {
+ $result = $multiplier * $arg;
+ }
+ $this->_writeDebug($cellID,'Evaluation Result is '.self::_showTypeDetails($result));
+ $stack->push($result);
+
+ } elseif (preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'$/i', $token, $matches)) {
+// echo 'Element '.$token.' is a Cell reference ';
+ if (isset($matches[8])) {
+// echo 'Reference is a Range of cells ';
+ if (is_null($pCell)) {
+// We can't access the range, so return a REF error
+ $cellValue = PHPExcel_Calculation_Functions::REF();
+ } else {
+ $cellRef = $matches[6].$matches[7].':'.$matches[9].$matches[10];
+ if ($matches[2] > '') {
+// echo '$cellRef='.$cellRef.' in worksheet '.$matches[2].' ';
+ $this->_writeDebug($cellID,'Evaluating Cell Range '.$cellRef.' in worksheet '.$matches[2]);
+ $cellValue = $this->extractCellRange($cellRef, $pCell->getParent()->getParent()->getSheetByName($matches[2]), false);
+ $this->_writeDebug($cellID,'Evaluation Result for cells '.$cellRef.' in worksheet '.$matches[2].' is '.self::_showTypeDetails($cellValue));
+ } else {
+// echo '$cellRef='.$cellRef.' in current worksheet ';
+ $this->_writeDebug($cellID,'Evaluating Cell Range '.$cellRef.' in current worksheet');
+ $cellValue = $this->extractCellRange($cellRef, $pCell->getParent(), false);
+ $this->_writeDebug($cellID,'Evaluation Result for cells '.$cellRef.' is '.self::_showTypeDetails($cellValue));
+ }
+ }
+ } else {
+// echo 'Reference is a single Cell ';
+ if (is_null($pCell)) {
+// We can't access the cell, so return a REF error
+ $cellValue = PHPExcel_Calculation_Functions::REF();
+ } else {
+ $cellRef = $matches[6].$matches[7];
+ if ($matches[2] > '') {
+// echo '$cellRef='.$cellRef.' in worksheet '.$matches[2].' ';
+ $this->_writeDebug($cellID,'Evaluating Cell '.$cellRef.' in worksheet '.$matches[2]);
+ if ($pCell->getParent()->cellExists($cellRef)) {
+ $cellValue = $this->extractCellRange($cellRef, $pCell->getParent()->getParent()->getSheetByName($matches[2]), false);
+ } else {
+ $cellValue = null;
+ }
+ $this->_writeDebug($cellID,'Evaluation Result for cell '.$cellRef.' in worksheet '.$matches[2].' is '.self::_showTypeDetails($cellValue));
+ } else {
+// echo '$cellRef='.$cellRef.' in current worksheet ';
+ $this->_writeDebug($cellID,'Evaluating Cell '.$cellRef.' in current worksheet');
+ if ($pCell->getParent()->cellExists($cellRef)) {
+ $cellValue = $pCell->getParent()->getCell($cellRef)->getCalculatedValue(false);
+ } else {
+ $cellValue = '';
+ }
+ $this->_writeDebug($cellID,'Evaluation Result for cell '.$cellRef.' is '.self::_showTypeDetails($cellValue));
+ }
+ }
+ }
+ $stack->push($cellValue);
+
+ // if the token is a function, pop arguments off the stack, hand them to the function, and push the result back on
+ } elseif (preg_match('/^'.self::CALCULATION_REGEXP_FUNCTION.'$/i', $token, $matches)) {
+// echo 'Token is a function ';
+ $functionName = $matches[1];
+ $argCount = $stack->pop();
+ if ($functionName != 'MKMATRIX') {
+ $this->_writeDebug($cellID,'Evaluating Function '.$functionName.'() with '.(($argCount == 0) ? 'no' : $argCount).' argument'.(($argCount == 1) ? '' : 's'));
+ }
+ if ((array_key_exists($functionName, $this->_controlFunctions)) || (array_key_exists($functionName, $this->_PHPExcelFunctions))) { // function
+ if (array_key_exists($functionName, $this->_controlFunctions)) {
+ $functionCall = $this->_controlFunctions[$functionName]['functionCall'];
+ } elseif (array_key_exists($functionName, $this->_PHPExcelFunctions)) {
+ $functionCall = $this->_PHPExcelFunctions[$functionName]['functionCall'];
+ }
+ // get the arguments for this function
+// echo 'Function '.$functionName.' expects '.$argCount.' arguments ';
+ $args = array();
+ for ($i = $argCount; $i > 0; --$i) {
+ $arg = $stack->pop();
+// if (is_null($arg)) return $this->_raiseFormulaError("internal error");
+ $args[$i] = $arg;
+ }
+ // Reverse the order of the arguments
+ ksort($args);
+// echo 'Arguments are: ';
+// print_r($args);
+// echo ' ';
+ if ($functionName != 'MKMATRIX') {
+ $argArrayVals = array();
+ foreach($args as &$arg) {
+ $argArrayVals[] = self::_showValue($arg);
+ $arg = self::_unwrapResult($arg);
+ }
+ unset($arg);
+ $this->_writeDebug($cellID,'Evaluating '. $functionName.'( '.implode(', ',$argArrayVals).' )');
+ }
+ // Process each argument in turn, building the return value as an array
+// if (($argCount == 1) && (is_array($args[1])) && ($functionName != 'MKMATRIX')) {
+// $operand1 = $args[1];
+// $this->_writeDebug($cellID,'Argument is a matrix: '.self::_showValue($operand1));
+// $result = array();
+// $row = 0;
+// foreach($operand1 as $args) {
+// if (is_array($args)) {
+// foreach($args as $arg) {
+// $this->_writeDebug($cellID,'Evaluating '. $functionName.'( '.self::_showValue($arg).' )');
+// $r = call_user_func_array($functionCall,$arg);
+// $this->_writeDebug($cellID,'Evaluation Result is '.self::_showTypeDetails($r));
+// $result[$row][] = $r;
+// }
+// ++$row;
+// } else {
+// $this->_writeDebug($cellID,'Evaluating '. $functionName.'( '.self::_showValue($args).' )');
+// $r = call_user_func_array($functionCall,$args);
+// $this->_writeDebug($cellID,'Evaluation Result is '.self::_showTypeDetails($r));
+// $result[] = $r;
+// }
+// }
+// } else {
+ // Process the argument with the appropriate function call
+ $result = call_user_func_array($functionCall,$args);
+// }
+ if ($functionName != 'MKMATRIX') {
+ $this->_writeDebug($cellID,'Evaluation Result is '.self::_showTypeDetails($result));
+ }
+ $stack->push(self::_wrapResult($result));
+ }
+
+ } else {
+ // if the token is a number, boolean, string or an Excel error, push it onto the stack
+ if (array_key_exists(strtoupper($token), $this->_ExcelConstants)) {
+ $excelConstant = strtoupper($token);
+// echo 'Token is a PHPExcel constant: '.$excelConstant.' ';
+ $stack->push($this->_ExcelConstants[$excelConstant]);
+ $this->_writeDebug($cellID,'Evaluating Constant '.$excelConstant.' as '.self::_showTypeDetails($this->_ExcelConstants[$excelConstant]));
+ } elseif ((is_null($token)) || ($token == '') || (is_bool($token)) || (is_numeric($token)) || ($token{0} == '"') || ($token{0} == '#')) {
+// echo 'Token is a number, boolean, string or an Excel error ';
+ $stack->push($token);
+ // if the token is a constant, push the constant value on the stack
+ } elseif (preg_match('/^'.self::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $token, $matches)) {
+// echo 'Token is a named range ';
+ $namedRange = $matches[6];
+// echo 'Named Range is '.$namedRange.' ';
+ $this->_writeDebug($cellID,'Evaluating Named Range '.$namedRange);
+ $cellValue = $this->extractNamedRange($namedRange, $pCell->getParent(), false);
+ $this->_writeDebug($cellID,'Evaluation Result for named range '.$namedRange.' is '.self::_showTypeDetails($cellValue));
+ $stack->push($cellValue);
+ } else {
+ return $this->_raiseFormulaError("undefined variable '$token'");
+ }
+ }
+ }
+ // when we're out of tokens, the stack should have a single element, the final result
+ if ($stack->count() != 1) return $this->_raiseFormulaError("internal error");
+ $output = $stack->pop();
+ if ((is_array($output)) && (self::$returnArrayAsType != self::RETURN_ARRAY_AS_ARRAY)) {
+ return array_unshift(array_unshift($output));
+ }
+ return $output;
+ } // function _processTokenStack()
+
+
+ private function _validateBinaryOperand($cellID,&$operand,&$stack) {
+ // Numbers, matrices and booleans can pass straight through, as they're already valid
+ if (is_string($operand)) {
+ // We only need special validations for the operand if it is a string
+ // Start by stripping off the quotation marks we use to identify true excel string values internally
+ if ($operand > '' && $operand{0} == '"') { $operand = self::_unwrapResult($operand,'"'); }
+ // If the string is a numeric value, we treat it as a numeric, so no further testing
+ if (!is_numeric($operand)) {
+ // If not a numeric, test to see if the value is an Excel error, and so can't be used in normal binary operations
+ if ($operand > '' && $operand{0} == '#') {
+ $stack->push($operand);
+ $this->_writeDebug($cellID,'Evaluation Result is '.self::_showTypeDetails($operand));
+ return false;
+ } else {
+ // If not a numeric, then it's a text string, and so can't be used in mathematical binary operations
+ $stack->push('#VALUE!');
+ $this->_writeDebug($cellID,'Evaluation Result is a '.self::_showTypeDetails('#VALUE!'));
+ return false;
+ }
+ }
+ }
+
+ // return a true if the value of the operand is one that we can use in normal binary operations
+ return true;
+ } // function _validateBinaryOperand()
+
+
+ private function _executeBinaryComparisonOperation($cellID,$operand1,$operand2,$operation,&$stack) {
+ // Validate the two operands
+
+ // If we're dealing with non-matrix operations, execute the necessary operation
+ switch ($operation) {
+ // Greater than
+ case '>':
+ $result = ($operand1 > $operand2);
+ break;
+ // Less than
+ case '<':
+ $result = ($operand1 < $operand2);
+ break;
+ // Equality
+ case '=':
+ $result = ($operand1 == $operand2);
+ break;
+ // Greater than or equal
+ case '>=':
+ $result = ($operand1 >= $operand2);
+ break;
+ // Less than or equal
+ case '<=':
+ $result = ($operand1 <= $operand2);
+ break;
+ // Inequality
+ case '<>':
+ $result = ($operand1 != $operand2);
+ break;
+ }
+
+ // Log the result details
+ $this->_writeDebug($cellID,'Evaluation Result is '.self::_showTypeDetails($result));
+ // And push the result onto the stack
+ $stack->push($result);
+ return true;
+ } // function _executeBinaryComparisonOperation()
+
+ private function _executeNumericBinaryOperation($cellID,$operand1,$operand2,$operation,$matrixFunction,&$stack) {
+ // Validate the two operands
+ if (!$this->_validateBinaryOperand($cellID,$operand1,$stack)) return false;
+ if (!$this->_validateBinaryOperand($cellID,$operand2,$stack)) return false;
+
+ // If either of the operands is a matrix, we need to treat them both as matrices
+ // (converting the other operand to a matrix if need be); then perform the required
+ // matrix operation
+ if ((is_array($operand1)) || (is_array($operand2))) {
+ // Ensure that both operands are arrays/matrices
+ self::_checkMatrixOperands($operand1,$operand2);
+ try {
+ // Convert operand 1 from a PHP array to a matrix
+ $matrix = new Matrix($operand1);
+ // Perform the required operation against the operand 1 matrix, passing in operand 2
+ $matrixResult = $matrix->$matrixFunction($operand2);
+ $result = $matrixResult->getArray();
+ } catch (Exception $ex) {
+ $this->_writeDebug($cellID,'JAMA Matrix Exception: '.$ex->getMessage());
+ $result = '#VALUE!';
+ }
+ } else {
+ // If we're dealing with non-matrix operations, execute the necessary operation
+ switch ($operation) {
+ // Addition
+ case '+':
+ $result = $operand1+$operand2;
+ break;
+ // Subtraction
+ case '-':
+ $result = $operand1-$operand2;
+ break;
+ // Multiplication
+ case '*':
+ $result = $operand1*$operand2;
+ break;
+ // Division
+ case '/':
+ if ($operand2 == 0) {
+ // Trap for Divide by Zero error
+ $stack->push('#DIV/0!');
+ $this->_writeDebug($cellID,'Evaluation Result is '.self::_showTypeDetails('#DIV/0!'));
+ return false;
+ } else {
+ $result = $operand1/$operand2;
+ }
+ break;
+ // Power
+ case '^':
+ $result = pow($operand1,$operand2);
+ break;
+ }
+ }
+
+ // Log the result details
+ $this->_writeDebug($cellID,'Evaluation Result is '.self::_showTypeDetails($result));
+ // And push the result onto the stack
+ $stack->push($result);
+ return true;
+ } // function _executeNumericBinaryOperation()
+
+
+ private function _writeDebug($cellID,$message) {
+ // Only write the debug log if logging is enabled
+ if ($this->writeDebugLog) {
+// $prefix = substr(implode(' -> ',$this->debugLogStack).' -> ',4+strlen($this->debugLogStack[0]));
+ $prefix = implode(' -> ',$this->debugLogStack).' -> ';
+ $this->debugLog[] = $prefix.$message;
+ }
+ } // function _writeDebug()
+
+
+ // trigger an error, but nicely, if need be
+ private function _raiseFormulaError($errorMessage) {
+ $this->formulaError = $errorMessage;
+ if (!$this->suppressFormulaErrors) throw new Exception($errorMessage);
+ trigger_error($errorMessage, E_USER_ERROR);
+ } // function _raiseFormulaError()
+
+
+ /**
+ * Extract range values
+ *
+ * @param string $pRange String based range representation
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @return mixed Array of values in range if range contains more than one element. Otherwise, a single value is returned.
+ * @throws Exception
+ */
+ public function extractCellRange($pRange = 'A1', PHPExcel_Worksheet $pSheet = null, $resetLog=true) {
+ // Return value
+ $returnValue = array ( );
+
+// echo 'extractCellRange('.$pRange.') ';
+ // Worksheet given?
+ if (!is_null($pSheet)) {
+ // Worksheet reference?
+// echo 'Current sheet name is '.$pSheet->getTitle().' ';
+// echo 'Range reference is '.$pRange.' ';
+ if (strpos ($pRange, '!') !== false) {
+// echo '$pRange reference includes sheet reference ';
+ $worksheetReference = PHPExcel_Worksheet::extractSheetTitle($pRange, true);
+ $pSheet = $pSheet->getParent()->getSheetByName($worksheetReference[0]);
+// echo 'New sheet name is '.$pSheet->getTitle().' ';
+ $pRange = $worksheetReference[1];
+// echo 'Adjusted Range reference is '.$pRange.' ';
+ }
+
+ // Extract range
+ $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($pRange);
+ if (count($aReferences) == 1) {
+ return $pSheet->getCell($aReferences[0])->getCalculatedValue($resetLog);
+ }
+
+ // Extract cell data
+ foreach ($aReferences as $reference) {
+ // Extract range
+ list($currentCol,$currentRow) = PHPExcel_Cell::coordinateFromString($reference);
+
+ $returnValue[$currentCol][$currentRow] = $pSheet->getCell($reference)->getCalculatedValue($resetLog);
+ }
+ }
+
+ // Return
+ return $returnValue;
+ } // function extractCellRange()
+
+
+ /**
+ * Extract range values
+ *
+ * @param string $pRange String based range representation
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @return mixed Array of values in range if range contains more than one element. Otherwise, a single value is returned.
+ * @throws Exception
+ */
+ public function extractNamedRange($pRange = 'A1', PHPExcel_Worksheet $pSheet = null, $resetLog=true) {
+ // Return value
+ $returnValue = array ( );
+
+// echo 'extractNamedRange('.$pRange.') ';
+ // Worksheet given?
+ if (!is_null($pSheet)) {
+ // Worksheet reference?
+// echo 'Current sheet name is '.$pSheet->getTitle().' ';
+// echo 'Range reference is '.$pRange.' ';
+ if (strpos ($pRange, '!') !== false) {
+// echo '$pRange reference includes sheet reference ';
+ $worksheetReference = PHPExcel_Worksheet::extractSheetTitle($pRange, true);
+ $pSheet = $pSheet->getParent()->getSheetByName($worksheetReference[0]);
+// echo 'New sheet name is '.$pSheet->getTitle().' ';
+ $pRange = $worksheetReference[1];
+// echo 'Adjusted Range reference is '.$pRange.' ';
+ }
+
+ // Named range?
+ $namedRange = PHPExcel_NamedRange::resolveRange($pRange, $pSheet);
+ if (!is_null($namedRange)) {
+// echo 'Named Range '.$pRange.' (';
+ $pRange = $namedRange->getRange();
+// echo $pRange.') is in sheet '.$namedRange->getWorksheet()->getTitle().' ';
+ if ($pSheet->getTitle() != $namedRange->getWorksheet()->getTitle()) {
+ if (!$namedRange->getLocalOnly()) {
+ $pSheet = $namedRange->getWorksheet();
+ } else {
+ return $returnValue;
+ }
+ }
+ }
+
+ // Extract range
+ $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($pRange);
+ if (count($aReferences) == 1) {
+ return $pSheet->getCell($aReferences[0])->getCalculatedValue($resetLog);
+ }
+
+ // Extract cell data
+ foreach ($aReferences as $reference) {
+ // Extract range
+ list($currentCol,$currentRow) = PHPExcel_Cell::coordinateFromString($reference);
+// echo 'NAMED RANGE: $currentCol='.$currentCol.' $currentRow='.$currentRow.' ';
+ $returnValue[$currentRow][$currentCol] = $pSheet->getCell($reference)->getCalculatedValue($resetLog);
+ }
+// print_r($returnValue);
+// echo ' ';
+ $returnValue = array_values($returnValue);
+ foreach($returnValue as &$rr) {
+ $rr = array_values($rr);
+ }
+ unset($rr);
+// print_r($returnValue);
+// echo ' ';
+ }
+
+ // Return
+ return $returnValue;
+ } // function extractNamedRange()
+
+
+ /**
+ * Is a specific function implemented?
+ *
+ * @param string $pFunction Function Name
+ * @return boolean
+ */
+ public function isImplemented($pFunction = '') {
+ $pFunction = strtoupper ($pFunction);
+ if (isset ($this->_PHPExcelFunctions[$pFunction])) {
+ return ($this->_PHPExcelFunctions[$pFunction]['functionCall'] != 'PHPExcel_Calculation_Functions::DUMMY');
+ } else {
+ return false;
+ }
+ } // function isImplemented()
+
+
+ /**
+ * Get a list of all implemented functions as an array of function objects
+ *
+ * @return array of PHPExcel_Calculation_Function
+ */
+ public function listFunctions() {
+ // Return value
+ $returnValue = array();
+ // Loop functions
+ foreach($this->_PHPExcelFunctions as $functionName => $function) {
+ if ($function['functionCall'] != 'PHPExcel_Calculation_Functions::DUMMY') {
+ $returnValue[$functionName] = new PHPExcel_Calculation_Function($function['category'],
+ $functionName,
+ $function['functionCall']
+ );
+ }
+ }
+
+ // Return
+ return $returnValue;
+ } // function listFunctions()
+
+
+ /**
+ * Get a list of implemented Excel function names
+ *
+ * @return array
+ */
+ public function listFunctionNames() {
+ // Return value
+ $returnValue = array();
+ // Loop functions
+ foreach ($this->_PHPExcelFunctions as $functionName => $function) {
+ $returnValue[] = $functionName;
+ }
+
+ // Return
+ return $returnValue;
+ } // function listFunctionNames()
+
+} // class PHPExcel_Calculation
+
+
+
+
+// for internal use
+class PHPExcel_Token_Stack {
+
+ private $_stack = array();
+ private $_count = 0;
+
+ public function count() {
+ return $this->_count;
+ }
+
+ public function push($value) {
+ $this->_stack[$this->_count++] = $value;
+ }
+
+ public function pop() {
+ if ($this->_count > 0) {
+ return $this->_stack[--$this->_count];
+ }
+ return null;
+ }
+
+ public function last($n=1) {
+ if ($this->_count-$n < 0) {
+ return null;
+ }
+ return $this->_stack[$this->_count-$n];
+ }
+
+ function __construct() {
+ }
+
+} // class PHPExcel_Token_Stack
diff --git a/libraries/PHPExcel/PHPExcel/Calculation/Exception.php b/libraries/PHPExcel/PHPExcel/Calculation/Exception.php
new file mode 100644
index 000000000..36ea5e08a
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Calculation/Exception.php
@@ -0,0 +1,52 @@
+line = $line;
+ $e->file = $file;
+ throw $e;
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Calculation/ExceptionHandler.php b/libraries/PHPExcel/PHPExcel/Calculation/ExceptionHandler.php
new file mode 100644
index 000000000..734c4a611
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Calculation/ExceptionHandler.php
@@ -0,0 +1,60 @@
+<";
+ const OPERATORS_POSTFIX = "%";
+
+ /**
+ * Formula
+ *
+ * @var string
+ */
+ private $_formula;
+
+ /**
+ * Tokens
+ *
+ * @var PHPExcel_Calculation_FormulaToken[]
+ */
+ private $_tokens = array();
+
+ /**
+ * Create a new PHPExcel_Calculation_FormulaParser
+ *
+ * @param string $pFormula Formula to parse
+ * @throws Exception
+ */
+ public function __construct($pFormula = '')
+ {
+ // Check parameters
+ if (is_null($pFormula)) {
+ throw new Exception("Invalid parameter passed: formula");
+ }
+
+ // Initialise values
+ $this->_formula = trim($pFormula);
+ // Parse!
+ $this->_parseToTokens();
+ }
+
+ /**
+ * Get Formula
+ *
+ * @return string
+ */
+ public function getFormula() {
+ return $this->_formula;
+ }
+
+ /**
+ * Get Token
+ *
+ * @param int $pId Token id
+ * @return string
+ * @throws Exception
+ */
+ public function getToken($pId = 0) {
+ if (isset($this->_tokens[$pId])) {
+ return $this->_tokens[$pId];
+ } else {
+ throw new Exception("Token with id $pId does not exist.");
+ }
+ }
+
+ /**
+ * Get Token count
+ *
+ * @return string
+ */
+ public function getTokenCount() {
+ return count($this->_tokens);
+ }
+
+ /**
+ * Get Tokens
+ *
+ * @return PHPExcel_Calculation_FormulaToken[]
+ */
+ public function getTokens() {
+ return $this->_tokens;
+ }
+
+ /**
+ * Parse to tokens
+ */
+ private function _parseToTokens() {
+ // No attempt is made to verify formulas; assumes formulas are derived from Excel, where
+ // they can only exist if valid; stack overflows/underflows sunk as nulls without exceptions.
+
+ // Check if the formula has a valid starting =
+ $formulaLength = strlen($this->_formula);
+ if ($formulaLength < 2 || $this->_formula{0} != '=') return;
+
+ // Helper variables
+ $tokens1 = $tokens2 = $stack = array();
+ $inString = $inPath = $inRange = $inError = false;
+ $token = $previousToken = $nextToken = null;
+
+ $index = 1;
+ $value = '';
+
+ $ERRORS = array("#NULL!", "#DIV/0!", "#VALUE!", "#REF!", "#NAME?", "#NUM!", "#N/A");
+ $COMPARATORS_MULTI = array(">=", "<=", "<>");
+
+ while ($index < $formulaLength) {
+ // state-dependent character evaluation (order is important)
+
+ // double-quoted strings
+ // embeds are doubled
+ // end marks token
+ if ($inString) {
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE) {
+ if ((($index + 2) <= $formulaLength) && ($this->_formula{$index + 1} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE)) {
+ $value .= PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE;
+ ++$index;
+ } else {
+ $inString = false;
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_TEXT);
+ $value = "";
+ }
+ } else {
+ $value .= $this->_formula{$index};
+ }
+ ++$index;
+ continue;
+ }
+
+ // single-quoted strings (links)
+ // embeds are double
+ // end does not mark a token
+ if ($inPath) {
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE) {
+ if ((($index + 2) <= $formulaLength) && ($this->_formula{$index + 1} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE)) {
+ $value .= PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE;
+ ++$index;
+ } else {
+ $inPath = false;
+ }
+ } else {
+ $value .= $this->_formula{$index};
+ }
+ ++$index;
+ continue;
+ }
+
+ // bracked strings (R1C1 range index or linked workbook name)
+ // no embeds (changed to "()" by Excel)
+ // end does not mark a token
+ if ($inRange) {
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACKET_CLOSE) {
+ $inRange = false;
+ }
+ $value .= $this->_formula{$index};
+ ++$index;
+ continue;
+ }
+
+ // error values
+ // end marks a token, determined from absolute list of values
+ if ($inError) {
+ $value .= $this->_formula{$index};
+ ++$index;
+ if (in_array($value, $ERRORS)) {
+ $inError = false;
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_ERROR);
+ $value = "";
+ }
+ continue;
+ }
+
+ // scientific notation check
+ if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_SN, $this->_formula{$index}) !== false) {
+ if (strlen($value) > 1) {
+ if (preg_match("/^[1-9]{1}(\.[0-9]+)?E{1}$/", $this->_formula{$index}) != 0) {
+ $value .= $this->_formula{$index};
+ ++$index;
+ continue;
+ }
+ }
+ }
+
+ // independent character evaluation (order not important)
+
+ // establish state-dependent character evaluations
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE) {
+ if (strlen($value > 0)) { // unexpected
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
+ $value = "";
+ }
+ $inString = true;
+ ++$index;
+ continue;
+ }
+
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE) {
+ if (strlen($value) > 0) { // unexpected
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
+ $value = "";
+ }
+ $inPath = true;
+ ++$index;
+ continue;
+ }
+
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACKET_OPEN) {
+ $inRange = true;
+ $value .= PHPExcel_Calculation_FormulaParser::BRACKET_OPEN;
+ ++$index;
+ continue;
+ }
+
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::ERROR_START) {
+ if (strlen($value) > 0) { // unexpected
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
+ $value = "";
+ }
+ $inError = true;
+ $value .= PHPExcel_Calculation_FormulaParser::ERROR_START;
+ ++$index;
+ continue;
+ }
+
+ // mark start and end of arrays and array rows
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACE_OPEN) {
+ if (strlen($value) > 0) { // unexpected
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
+ $value = "";
+ }
+
+ $tmp = new PHPExcel_Calculation_FormulaToken("ARRAY", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
+ $tokens1[] = $tmp;
+ $stack[] = clone $tmp;
+
+ $tmp = new PHPExcel_Calculation_FormulaToken("ARRAYROW", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
+ $tokens1[] = $tmp;
+ $stack[] = clone $tmp;
+
+ ++$index;
+ continue;
+ }
+
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::SEMICOLON) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+
+ $tmp = array_pop($stack);
+ $tmp->setValue("");
+ $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
+ $tokens1[] = $tmp;
+
+ $tmp = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_ARGUMENT);
+ $tokens1[] = $tmp;
+
+ $tmp = new PHPExcel_Calculation_FormulaToken("ARRAYROW", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
+ $tokens1[] = $tmp;
+ $stack[] = clone $tmp;
+
+ ++$index;
+ continue;
+ }
+
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACE_CLOSE) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+
+ $tmp = array_pop($stack);
+ $tmp->setValue("");
+ $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
+ $tokens1[] = $tmp;
+
+ $tmp = array_pop($stack);
+ $tmp->setValue("");
+ $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
+ $tokens1[] = $tmp;
+
+ ++$index;
+ continue;
+ }
+
+ // trim white-space
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::WHITESPACE) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken("", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_WHITESPACE);
+ ++$index;
+ while (($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::WHITESPACE) && ($index < $formulaLength)) {
+ ++$index;
+ }
+ continue;
+ }
+
+ // multi-character comparators
+ if (($index + 2) <= $formulaLength) {
+ if (in_array(substr($this->_formula, $index, 2), $COMPARATORS_MULTI)) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken(substr($this->_formula, $index, 2), PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL);
+ $index += 2;
+ continue;
+ }
+ }
+
+ // standard infix operators
+ if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_INFIX, $this->_formula{$index}) !== false) {
+ if (strlen($value) > 0) {
+ $tokens1[] =new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($this->_formula{$index}, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX);
+ ++$index;
+ continue;
+ }
+
+ // standard postfix operators (only one)
+ if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_POSTFIX, $this->_formula{$index}) !== false) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($this->_formula{$index}, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX);
+ ++$index;
+ continue;
+ }
+
+ // start subexpression or function
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::PAREN_OPEN) {
+ if (strlen($value) > 0) {
+ $tmp = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
+ $tokens1[] = $tmp;
+ $stack[] = clone $tmp;
+ $value = "";
+ } else {
+ $tmp = new PHPExcel_Calculation_FormulaToken("", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
+ $tokens1[] = $tmp;
+ $stack[] = clone $tmp;
+ }
+ ++$index;
+ continue;
+ }
+
+ // function, subexpression, or array parameters, or operand unions
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::COMMA) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+
+ $tmp = array_pop($stack);
+ $tmp->setValue("");
+ $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
+ $stack[] = $tmp;
+
+ if ($tmp->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_UNION);
+ } else {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_ARGUMENT);
+ }
+ ++$index;
+ continue;
+ }
+
+ // stop subexpression
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::PAREN_CLOSE) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+
+ $tmp = array_pop($stack);
+ $tmp->setValue("");
+ $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
+ $tokens1[] = $tmp;
+
+ ++$index;
+ continue;
+ }
+
+ // token accumulation
+ $value .= $this->_formula{$index};
+ ++$index;
+ }
+
+ // dump remaining accumulation
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ }
+
+ // move tokenList to new set, excluding unnecessary white-space tokens and converting necessary ones to intersections
+ $tokenCount = count($tokens1);
+ for ($i = 0; $i < $tokenCount; ++$i) {
+ $token = $tokens1[$i];
+ if (isset($tokens1[$i - 1])) {
+ $previousToken = $tokens1[$i - 1];
+ } else {
+ $previousToken = null;
+ }
+ if (isset($tokens1[$i + 1])) {
+ $nextToken = $tokens1[$i + 1];
+ } else {
+ $nextToken = null;
+ }
+
+ if (is_null($token)) {
+ continue;
+ }
+
+ if ($token->getTokenType() != PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_WHITESPACE) {
+ $tokens2[] = $token;
+ continue;
+ }
+
+ if (is_null($previousToken)) {
+ continue;
+ }
+
+ if (! (
+ (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)
+ ) ) {
+ continue;
+ }
+
+ if (is_null($nextToken)) {
+ continue;
+ }
+
+ if (! (
+ (($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($nextToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START)) ||
+ (($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($nextToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START)) ||
+ ($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)
+ ) ) {
+ continue;
+ }
+
+ $tokens2[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_INTERSECTION);
+ }
+
+ // move tokens to final list, switching infix "-" operators to prefix when appropriate, switching infix "+" operators
+ // to noop when appropriate, identifying operand and infix-operator subtypes, and pulling "@" from function names
+ $this->_tokens = array();
+
+ $tokenCount = count($tokens2);
+ for ($i = 0; $i < $tokenCount; ++$i) {
+ $token = $tokens2[$i];
+ if (isset($tokens2[$i - 1])) {
+ $previousToken = $tokens2[$i - 1];
+ } else {
+ $previousToken = null;
+ }
+ if (isset($tokens2[$i + 1])) {
+ $nextToken = $tokens2[$i + 1];
+ } else {
+ $nextToken = null;
+ }
+
+ if (is_null($token)) {
+ continue;
+ }
+
+ if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getValue() == "-") {
+ if ($i == 0) {
+ $token->setTokenType(PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPREFIX);
+ } else if (
+ (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX) ||
+ ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)
+ ) {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH);
+ } else {
+ $token->setTokenType(PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPREFIX);
+ }
+
+ $this->_tokens[] = $token;
+ continue;
+ }
+
+ if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getValue() == "+") {
+ if ($i == 0) {
+ continue;
+ } else if (
+ (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX) ||
+ ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)
+ ) {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH);
+ } else {
+ continue;
+ }
+
+ $this->_tokens[] = $token;
+ continue;
+ }
+
+ if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) {
+ if (strpos("<>=", substr($token->getValue(), 0, 1)) !== false) {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL);
+ } else if ($token->getValue() == "&") {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_CONCATENATION);
+ } else {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH);
+ }
+
+ $this->_tokens[] = $token;
+ continue;
+ }
+
+ if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND && $token->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) {
+ if (!is_numeric($token->getValue())) {
+ if (strtoupper($token->getValue()) == "TRUE" || strtoupper($token->getValue() == "FALSE")) {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL);
+ } else {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_RANGE);
+ }
+ } else {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NUMBER);
+ }
+
+ $this->_tokens[] = $token;
+ continue;
+ }
+
+ if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) {
+ if (strlen($token->getValue() > 0)) {
+ if (substr($token->getValue(), 0, 1) == "@") {
+ $token->setValue(substr($token->getValue(), 1));
+ }
+ }
+ }
+
+ $this->_tokens[] = $token;
+ }
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Calculation/FormulaToken.php b/libraries/PHPExcel/PHPExcel/Calculation/FormulaToken.php
new file mode 100644
index 000000000..dff57675c
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Calculation/FormulaToken.php
@@ -0,0 +1,176 @@
+_value = $pValue;
+ $this->_tokenType = $pTokenType;
+ $this->_tokenSubType = $pTokenSubType;
+ }
+
+ /**
+ * Get Value
+ *
+ * @return string
+ */
+ public function getValue() {
+ return $this->_value;
+ }
+
+ /**
+ * Set Value
+ *
+ * @param string $value
+ */
+ public function setValue($value) {
+ $this->_value = $value;
+ }
+
+ /**
+ * Get Token Type (represented by TOKEN_TYPE_*)
+ *
+ * @return string
+ */
+ public function getTokenType() {
+ return $this->_tokenType;
+ }
+
+ /**
+ * Set Token Type
+ *
+ * @param string $value
+ */
+ public function setTokenType($value = PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN) {
+ $this->_tokenType = $value;
+ }
+
+ /**
+ * Get Token SubType (represented by TOKEN_SUBTYPE_*)
+ *
+ * @return string
+ */
+ public function getTokenSubType() {
+ return $this->_tokenSubType;
+ }
+
+ /**
+ * Set Token SubType
+ *
+ * @param string $value
+ */
+ public function setTokenSubType($value = PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) {
+ $this->_tokenSubType = $value;
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Calculation/Function.php b/libraries/PHPExcel/PHPExcel/Calculation/Function.php
new file mode 100644
index 000000000..7b0c6c175
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Calculation/Function.php
@@ -0,0 +1,149 @@
+_category = $pCategory;
+ $this->_excelName = $pExcelName;
+ $this->_phpExcelName = $pPHPExcelName;
+ } else {
+ throw new Exception("Invalid parameters passed.");
+ }
+ }
+
+ /**
+ * Get Category (represented by CATEGORY_*)
+ *
+ * @return string
+ */
+ public function getCategory() {
+ return $this->_category;
+ }
+
+ /**
+ * Set Category (represented by CATEGORY_*)
+ *
+ * @param string $value
+ * @throws Exception
+ */
+ public function setCategory($value = null) {
+ if (!is_null($value)) {
+ $this->_category = $value;
+ } else {
+ throw new Exception("Invalid parameter passed.");
+ }
+ }
+
+ /**
+ * Get Excel name
+ *
+ * @return string
+ */
+ public function getExcelName() {
+ return $this->_excelName;
+ }
+
+ /**
+ * Set Excel name
+ *
+ * @param string $value
+ */
+ public function setExcelName($value) {
+ $this->_excelName = $value;
+ }
+
+ /**
+ * Get PHPExcel name
+ *
+ * @return string
+ */
+ public function getPHPExcelName() {
+ return $this->_phpExcelName;
+ }
+
+ /**
+ * Set PHPExcel name
+ *
+ * @param string $value
+ */
+ public function setPHPExcelName($value) {
+ $this->_phpExcelName = $value;
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Calculation/Functions.php b/libraries/PHPExcel/PHPExcel/Calculation/Functions.php
new file mode 100644
index 000000000..8d6ca3d05
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Calculation/Functions.php
@@ -0,0 +1,10505 @@
+ '#NULL!',
+ 'divisionbyzero' => '#DIV/0!',
+ 'value' => '#VALUE!',
+ 'reference' => '#REF!',
+ 'name' => '#NAME?',
+ 'num' => '#NUM!',
+ 'na' => '#N/A',
+ 'gettingdata' => '#GETTING_DATA'
+ );
+
+
+ /**
+ * Set the Compatibility Mode
+ *
+ * @access public
+ * @category Function Configuration
+ * @param string $compatibilityMode Compatibility Mode
+ * Permitted values are:
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL 'Excel'
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC 'Gnumeric'
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE 'OpenOfficeCalc'
+ * @return boolean (Success or Failure)
+ */
+ public static function setCompatibilityMode($compatibilityMode) {
+ if (($compatibilityMode == self::COMPATIBILITY_EXCEL) ||
+ ($compatibilityMode == self::COMPATIBILITY_GNUMERIC) ||
+ ($compatibilityMode == self::COMPATIBILITY_OPENOFFICE)) {
+ self::$compatibilityMode = $compatibilityMode;
+ return True;
+ }
+ return False;
+ } // function setCompatibilityMode()
+
+
+ /**
+ * Return the current Compatibility Mode
+ *
+ * @access public
+ * @category Function Configuration
+ * @return string Compatibility Mode
+ * Possible Return values are:
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL 'Excel'
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC 'Gnumeric'
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE 'OpenOfficeCalc'
+ */
+ public static function getCompatibilityMode() {
+ return self::$compatibilityMode;
+ } // function getCompatibilityMode()
+
+
+ /**
+ * Set the Return Date Format used by functions that return a date/time (Excel, PHP Serialized Numeric or PHP Object)
+ *
+ * @access public
+ * @category Function Configuration
+ * @param string $returnDateType Return Date Format
+ * Permitted values are:
+ * PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC 'P'
+ * PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT 'O'
+ * PHPExcel_Calculation_Functions::RETURNDATE_EXCEL 'E'
+ * @return boolean Success or failure
+ */
+ public static function setReturnDateType($returnDateType) {
+ if (($returnDateType == self::RETURNDATE_PHP_NUMERIC) ||
+ ($returnDateType == self::RETURNDATE_PHP_OBJECT) ||
+ ($returnDateType == self::RETURNDATE_EXCEL)) {
+ self::$ReturnDateType = $returnDateType;
+ return True;
+ }
+ return False;
+ } // function setReturnDateType()
+
+
+ /**
+ * Return the current Return Date Format for functions that return a date/time (Excel, PHP Serialized Numeric or PHP Object)
+ *
+ * @access public
+ * @category Function Configuration
+ * @return string Return Date Format
+ * Possible Return values are:
+ * PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC 'P'
+ * PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT 'O'
+ * PHPExcel_Calculation_Functions::RETURNDATE_EXCEL 'E'
+ */
+ public static function getReturnDateType() {
+ return self::$ReturnDateType;
+ } // function getReturnDateType()
+
+
+ /**
+ * DUMMY
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #Not Yet Implemented
+ */
+ public static function DUMMY() {
+ return '#Not Yet Implemented';
+ } // function DUMMY()
+
+
+ /**
+ * NA
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #N/A!
+ */
+ public static function NA() {
+ return self::$_errorCodes['na'];
+ } // function NA()
+
+
+ /**
+ * NAN
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #NUM!
+ */
+ public static function NaN() {
+ return self::$_errorCodes['num'];
+ } // function NAN()
+
+
+ /**
+ * NAME
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #NAME!
+ */
+ public static function NAME() {
+ return self::$_errorCodes['name'];
+ } // function NAME()
+
+
+ /**
+ * REF
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #REF!
+ */
+ public static function REF() {
+ return self::$_errorCodes['reference'];
+ } // function REF()
+
+
+ /**
+ * LOGICAL_AND
+ *
+ * Returns boolean TRUE if all its arguments are TRUE; returns FALSE if one or more argument is FALSE.
+ *
+ * Excel Function:
+ * AND(logical1[,logical2[, ...]])
+ *
+ * The arguments must evaluate to logical values such as TRUE or FALSE, or the arguments must be arrays
+ * or references that contain logical values.
+ *
+ * Booleans arguments are treated as True or False as appropriate
+ * Integer or floating point arguments are treated as True, except for 0 or 0.0 which are False
+ * If any argument value is a string, or a Null, the function returns a #VALUE! error, unless the string holds the value TRUE or FALSE,
+ * holds the value TRUE or FALSE, in which case it is evaluated as a boolean
+ *
+ * @access public
+ * @category Logical Functions
+ * @param mixed $arg,... Data values
+ * @return boolean The logical AND of the arguments.
+ */
+ public static function LOGICAL_AND() {
+ // Return value
+ $returnValue = True;
+
+ // Loop through the arguments
+ $aArgs = self::flattenArray(func_get_args());
+ $argCount = 0;
+ foreach ($aArgs as $arg) {
+ // Is it a boolean value?
+ if (is_bool($arg)) {
+ $returnValue = $returnValue && $arg;
+ ++$argCount;
+ } elseif ((is_numeric($arg)) && (!is_string($arg))) {
+ $returnValue = $returnValue && ($arg != 0);
+ ++$argCount;
+ } elseif (is_string($arg)) {
+ $arg = strtoupper($arg);
+ if ($arg == 'TRUE') {
+ $arg = 1;
+ } elseif ($arg == 'FALSE') {
+ $arg = 0;
+ } else {
+ return self::$_errorCodes['value'];
+ }
+ $returnValue = $returnValue && ($arg != 0);
+ ++$argCount;
+ }
+ }
+
+ // Return
+ if ($argCount == 0) {
+ return self::$_errorCodes['value'];
+ }
+ return $returnValue;
+ } // function LOGICAL_AND()
+
+
+ /**
+ * LOGICAL_OR
+ *
+ * Returns boolean TRUE if any argument is TRUE; returns FALSE if all arguments are FALSE.
+ *
+ * Excel Function:
+ * OR(logical1[,logical2[, ...]])
+ *
+ * The arguments must evaluate to logical values such as TRUE or FALSE, or the arguments must be arrays
+ * or references that contain logical values.
+ *
+ * Booleans arguments are treated as True or False as appropriate
+ * Integer or floating point arguments are treated as True, except for 0 or 0.0 which are False
+ * If any argument value is a string, or a Null, the function returns a #VALUE! error, unless the string
+ * holds the value TRUE or FALSE, in which case it is evaluated as a boolean
+ *
+ * @access public
+ * @category Logical Functions
+ * @param mixed $arg,... Data values
+ * @return boolean The logical OR of the arguments.
+ */
+ public static function LOGICAL_OR() {
+ // Return value
+ $returnValue = False;
+
+ // Loop through the arguments
+ $aArgs = self::flattenArray(func_get_args());
+ $argCount = 0;
+ foreach ($aArgs as $arg) {
+ // Is it a boolean value?
+ if (is_bool($arg)) {
+ $returnValue = $returnValue || $arg;
+ ++$argCount;
+ } elseif ((is_numeric($arg)) && (!is_string($arg))) {
+ $returnValue = $returnValue || ($arg != 0);
+ ++$argCount;
+ } elseif (is_string($arg)) {
+ $arg = strtoupper($arg);
+ if ($arg == 'TRUE') {
+ $arg = 1;
+ } elseif ($arg == 'FALSE') {
+ $arg = 0;
+ } else {
+ return self::$_errorCodes['value'];
+ }
+ $returnValue = $returnValue || ($arg != 0);
+ ++$argCount;
+ }
+ }
+
+ // Return
+ if ($argCount == 0) {
+ return self::$_errorCodes['value'];
+ }
+ return $returnValue;
+ } // function LOGICAL_OR()
+
+
+ /**
+ * LOGICAL_FALSE
+ *
+ * Returns the boolean FALSE.
+ *
+ * Excel Function:
+ * FALSE()
+ *
+ * @access public
+ * @category Logical Functions
+ * @return boolean False
+ */
+ public static function LOGICAL_FALSE() {
+ return False;
+ } // function LOGICAL_FALSE()
+
+
+ /**
+ * LOGICAL_TRUE
+ *
+ * Returns the boolean TRUE.
+ *
+ * Excel Function:
+ * TRUE()
+ *
+ * @access public
+ * @category Logical Functions
+ * @return boolean True
+ */
+ public static function LOGICAL_TRUE() {
+ return True;
+ } // function LOGICAL_TRUE()
+
+
+ /**
+ * LOGICAL_NOT
+ *
+ * Returns the boolean inverse of the argument.
+ *
+ * Excel Function:
+ * NOT(logical)
+ *
+ * @access public
+ * @category Logical Functions
+ * @param mixed $logical A value or expression that can be evaluated to TRUE or FALSE
+ * @return boolean The boolean inverse of the argument.
+ */
+ public static function LOGICAL_NOT($logical) {
+ return !$logical;
+ } // function LOGICAL_NOT()
+
+
+ /**
+ * STATEMENT_IF
+ *
+ * Returns one value if a condition you specify evaluates to TRUE and another value if it evaluates to FALSE.
+ *
+ * Excel Function:
+ * IF(condition[,returnIfTrue[,returnIfFalse]])
+ *
+ * Condition is any value or expression that can be evaluated to TRUE or FALSE.
+ * For example, A10=100 is a logical expression; if the value in cell A10 is equal to 100,
+ * the expression evaluates to TRUE. Otherwise, the expression evaluates to FALSE.
+ * This argument can use any comparison calculation operator.
+ * ReturnIfTrue is the value that is returned if condition evaluates to TRUE.
+ * For example, if this argument is the text string "Within budget" and the condition argument evaluates to TRUE,
+ * then the IF function returns the text "Within budget"
+ * If condition is TRUE and ReturnIfTrue is blank, this argument returns 0 (zero). To display the word TRUE, use
+ * the logical value TRUE for this argument.
+ * ReturnIfTrue can be another formula.
+ * ReturnIfFalse is the value that is returned if condition evaluates to FALSE.
+ * For example, if this argument is the text string "Over budget" and the condition argument evaluates to FALSE,
+ * then the IF function returns the text "Over budget".
+ * If condition is FALSE and ReturnIfFalse is omitted, then the logical value FALSE is returned.
+ * If condition is FALSE and ReturnIfFalse is blank, then the value 0 (zero) is returned.
+ * ReturnIfFalse can be another formula.
+ *
+ * @param mixed $condition Condition to evaluate
+ * @param mixed $returnIfTrue Value to return when condition is true
+ * @param mixed $returnIfFalse Value to return when condition is false
+ * @return mixed The value of returnIfTrue or returnIfFalse determined by condition
+ */
+ public static function STATEMENT_IF($condition = true, $returnIfTrue = 0, $returnIfFalse = False) {
+ $condition = self::flattenSingleValue($condition);
+ $returnIfTrue = self::flattenSingleValue($returnIfTrue);
+ $returnIfFalse = self::flattenSingleValue($returnIfFalse);
+ if (is_null($returnIfTrue)) { $returnIfTrue = 0; }
+ if (is_null($returnIfFalse)) { $returnIfFalse = 0; }
+
+ return ($condition ? $returnIfTrue : $returnIfFalse);
+ } // function STATEMENT_IF()
+
+
+ /**
+ * STATEMENT_IFERROR
+ *
+ * @param mixed $value Value to check , is also value when no error
+ * @param mixed $errorpart Value when error
+ * @return mixed
+ */
+ public static function STATEMENT_IFERROR($value = '', $errorpart = '') {
+ return self::STATEMENT_IF(self::IS_ERROR($value), $errorpart, $value);
+ } // function STATEMENT_IFERROR()
+
+
+ /**
+ * ATAN2
+ *
+ * This function calculates the arc tangent of the two variables x and y. It is similar to
+ * calculating the arc tangent of y x, except that the signs of both arguments are used
+ * to determine the quadrant of the result.
+ * The arctangent is the angle from the x-axis to a line containing the origin (0, 0) and a
+ * point with coordinates (xCoordinate, yCoordinate). The angle is given in radians between
+ * -pi and pi, excluding -pi.
+ *
+ * Note that the Excel ATAN2() function accepts its arguments in the reverse order to the standard
+ * PHP atan2() function, so we need to reverse them here before calling the PHP atan() function.
+ *
+ * Excel Function:
+ * ATAN2(xCoordinate,yCoordinate)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $xCoordinate The x-coordinate of the point.
+ * @param float $yCoordinate The y-coordinate of the point.
+ * @return float The inverse tangent of the specified x- and y-coordinates.
+ */
+ public static function REVERSE_ATAN2($xCoordinate, $yCoordinate) {
+ $xCoordinate = (float) self::flattenSingleValue($xCoordinate);
+ $yCoordinate = (float) self::flattenSingleValue($yCoordinate);
+
+ if (($xCoordinate == 0) && ($yCoordinate == 0)) {
+ return self::$_errorCodes['divisionbyzero'];
+ }
+
+ return atan2($yCoordinate, $xCoordinate);
+ } // function REVERSE_ATAN2()
+
+
+ /**
+ * LOG_BASE
+ *
+ * Returns the logarithm of a number to a specified base. The default base is 10.
+ *
+ * Excel Function:
+ * LOG(number[,base])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $value The positive real number for which you want the logarithm
+ * @param float $base The base of the logarithm. If base is omitted, it is assumed to be 10.
+ * @return float
+ */
+ public static function LOG_BASE($number, $base=10) {
+ $number = self::flattenSingleValue($number);
+ $base = self::flattenSingleValue($base);
+
+ return log($number, $base);
+ } // function LOG_BASE()
+
+
+ /**
+ * SUM
+ *
+ * SUM computes the sum of all the values and cells referenced in the argument list.
+ *
+ * Excel Function:
+ * SUM(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function SUM() {
+ // Return value
+ $returnValue = 0;
+
+ // Loop through the arguments
+ $aArgs = self::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $returnValue += $arg;
+ }
+ }
+
+ // Return
+ return $returnValue;
+ } // function SUM()
+
+
+ /**
+ * SUMSQ
+ *
+ * SUMSQ returns the sum of the squares of the arguments
+ *
+ * Excel Function:
+ * SUMSQ(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function SUMSQ() {
+ // Return value
+ $returnValue = 0;
+
+ // Loop trough arguments
+ $aArgs = self::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $returnValue += pow($arg,2);
+ }
+ }
+
+ // Return
+ return $returnValue;
+ } // function SUMSQ()
+
+
+ /**
+ * PRODUCT
+ *
+ * PRODUCT returns the product of all the values and cells referenced in the argument list.
+ *
+ * Excel Function:
+ * PRODUCT(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function PRODUCT() {
+ // Return value
+ $returnValue = null;
+
+ // Loop trough arguments
+ $aArgs = self::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ if (is_null($returnValue)) {
+ $returnValue = $arg;
+ } else {
+ $returnValue *= $arg;
+ }
+ }
+ }
+
+ // Return
+ if (is_null($returnValue)) {
+ return 0;
+ }
+ return $returnValue;
+ } // function PRODUCT()
+
+
+ /**
+ * QUOTIENT
+ *
+ * QUOTIENT function returns the integer portion of a division. Numerator is the divided number
+ * and denominator is the divisor.
+ *
+ * Excel Function:
+ * QUOTIENT(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function QUOTIENT() {
+ // Return value
+ $returnValue = null;
+
+ // Loop trough arguments
+ $aArgs = self::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ if (is_null($returnValue)) {
+ $returnValue = ($arg == 0) ? 0 : $arg;
+ } else {
+ if (($returnValue == 0) || ($arg == 0)) {
+ $returnValue = 0;
+ } else {
+ $returnValue /= $arg;
+ }
+ }
+ }
+ }
+
+ // Return
+ return intval($returnValue);
+ } // function QUOTIENT()
+
+
+ /**
+ * MIN
+ *
+ * MIN returns the value of the element of the values passed that has the smallest value,
+ * with negative numbers considered smaller than positive numbers.
+ *
+ * Excel Function:
+ * MIN(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function MIN() {
+ // Return value
+ $returnValue = null;
+
+ // Loop trough arguments
+ $aArgs = self::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ if ((is_null($returnValue)) || ($arg < $returnValue)) {
+ $returnValue = $arg;
+ }
+ }
+ }
+
+ // Return
+ if(is_null($returnValue)) {
+ return 0;
+ }
+ return $returnValue;
+ } // function MIN()
+
+
+ /**
+ * MINA
+ *
+ * Returns the smallest value in a list of arguments, including numbers, text, and logical values
+ *
+ * Excel Function:
+ * MINA(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function MINA() {
+ // Return value
+ $returnValue = null;
+
+ // Loop through arguments
+ $aArgs = self::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) && ($arg != '')))) {
+ if (is_bool($arg)) {
+ $arg = (integer) $arg;
+ } elseif (is_string($arg)) {
+ $arg = 0;
+ }
+ if ((is_null($returnValue)) || ($arg < $returnValue)) {
+ $returnValue = $arg;
+ }
+ }
+ }
+
+ // Return
+ if(is_null($returnValue)) {
+ return 0;
+ }
+ return $returnValue;
+ } // function MINA()
+
+
+ /**
+ * SMALL
+ *
+ * Returns the nth smallest value in a data set. You can use this function to
+ * select a value based on its relative standing.
+ *
+ * Excel Function:
+ * SMALL(value1[,value2[, ...]],entry)
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @param int $entry Position (ordered from the smallest) in the array or range of data to return
+ * @return float
+ */
+ public static function SMALL() {
+ $aArgs = self::flattenArray(func_get_args());
+
+ // Calculate
+ $n = array_pop($aArgs);
+
+ if ((is_numeric($n)) && (!is_string($n))) {
+ $mArgs = array();
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $mArgs[] = $arg;
+ }
+ }
+ $count = self::COUNT($mArgs);
+ $n = floor(--$n);
+ if (($n < 0) || ($n >= $count) || ($count == 0)) {
+ return self::$_errorCodes['num'];
+ }
+ sort($mArgs);
+ return $mArgs[$n];
+ }
+ return self::$_errorCodes['value'];
+ } // function SMALL()
+
+
+ /**
+ * MAX
+ *
+ * MAX returns the value of the element of the values passed that has the highest value,
+ * with negative numbers considered smaller than positive numbers.
+ *
+ * Excel Function:
+ * MAX(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function MAX() {
+ // Return value
+ $returnValue = null;
+
+ // Loop trough arguments
+ $aArgs = self::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ if ((is_null($returnValue)) || ($arg > $returnValue)) {
+ $returnValue = $arg;
+ }
+ }
+ }
+
+ // Return
+ if(is_null($returnValue)) {
+ return 0;
+ }
+ return $returnValue;
+ } // function MAX()
+
+
+ /**
+ * MAXA
+ *
+ * Returns the greatest value in a list of arguments, including numbers, text, and logical values
+ *
+ * Excel Function:
+ * MAXA(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function MAXA() {
+ // Return value
+ $returnValue = null;
+
+ // Loop through arguments
+ $aArgs = self::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) && ($arg != '')))) {
+ if (is_bool($arg)) {
+ $arg = (integer) $arg;
+ } elseif (is_string($arg)) {
+ $arg = 0;
+ }
+ if ((is_null($returnValue)) || ($arg > $returnValue)) {
+ $returnValue = $arg;
+ }
+ }
+ }
+
+ // Return
+ if(is_null($returnValue)) {
+ return 0;
+ }
+ return $returnValue;
+ } // function MAXA()
+
+
+ /**
+ * LARGE
+ *
+ * Returns the nth largest value in a data set. You can use this function to
+ * select a value based on its relative standing.
+ *
+ * Excel Function:
+ * LARGE(value1[,value2[, ...]],entry)
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @param int $entry Position (ordered from the largest) in the array or range of data to return
+ * @return float
+ *
+ */
+ public static function LARGE() {
+ $aArgs = self::flattenArray(func_get_args());
+
+ // Calculate
+ $n = floor(array_pop($aArgs));
+
+ if ((is_numeric($n)) && (!is_string($n))) {
+ $mArgs = array();
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $mArgs[] = $arg;
+ }
+ }
+ $count = self::COUNT($mArgs);
+ $n = floor(--$n);
+ if (($n < 0) || ($n >= $count) || ($count == 0)) {
+ return self::$_errorCodes['num'];
+ }
+ rsort($mArgs);
+ return $mArgs[$n];
+ }
+ return self::$_errorCodes['value'];
+ } // function LARGE()
+
+
+ /**
+ * PERCENTILE
+ *
+ * Returns the nth percentile of values in a range..
+ *
+ * Excel Function:
+ * PERCENTILE(value1[,value2[, ...]],entry)
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @param float $entry Percentile value in the range 0..1, inclusive.
+ * @return float
+ */
+ public static function PERCENTILE() {
+ $aArgs = self::flattenArray(func_get_args());
+
+ // Calculate
+ $entry = array_pop($aArgs);
+
+ if ((is_numeric($entry)) && (!is_string($entry))) {
+ if (($entry < 0) || ($entry > 1)) {
+ return self::$_errorCodes['num'];
+ }
+ $mArgs = array();
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $mArgs[] = $arg;
+ }
+ }
+ $mValueCount = count($mArgs);
+ if ($mValueCount > 0) {
+ sort($mArgs);
+ $count = self::COUNT($mArgs);
+ $index = $entry * ($count-1);
+ $iBase = floor($index);
+ if ($index == $iBase) {
+ return $mArgs[$index];
+ } else {
+ $iNext = $iBase + 1;
+ $iProportion = $index - $iBase;
+ return $mArgs[$iBase] + (($mArgs[$iNext] - $mArgs[$iBase]) * $iProportion) ;
+ }
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function PERCENTILE()
+
+
+ /**
+ * QUARTILE
+ *
+ * Returns the quartile of a data set.
+ *
+ * Excel Function:
+ * QUARTILE(value1[,value2[, ...]],entry)
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @param int $entry Quartile value in the range 1..3, inclusive.
+ * @return float
+ */
+ public static function QUARTILE() {
+ $aArgs = self::flattenArray(func_get_args());
+
+ // Calculate
+ $entry = floor(array_pop($aArgs));
+
+ if ((is_numeric($entry)) && (!is_string($entry))) {
+ $entry /= 4;
+ if (($entry < 0) || ($entry > 1)) {
+ return self::$_errorCodes['num'];
+ }
+ return self::PERCENTILE($aArgs,$entry);
+ }
+ return self::$_errorCodes['value'];
+ } // function QUARTILE()
+
+
+ /**
+ * COUNT
+ *
+ * Counts the number of cells that contain numbers within the list of arguments
+ *
+ * Excel Function:
+ * COUNT(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return int
+ */
+ public static function COUNT() {
+ // Return value
+ $returnValue = 0;
+
+ // Loop trough arguments
+ $aArgs = self::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ if ((is_bool($arg)) && (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE)) {
+ $arg = (int) $arg;
+ }
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ ++$returnValue;
+ }
+ }
+
+ // Return
+ return $returnValue;
+ } // function COUNT()
+
+
+ /**
+ * COUNTBLANK
+ *
+ * Counts the number of empty cells within the list of arguments
+ *
+ * Excel Function:
+ * COUNTBLANK(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return int
+ */
+ public static function COUNTBLANK() {
+ // Return value
+ $returnValue = 0;
+
+ // Loop trough arguments
+ $aArgs = self::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ // Is it a blank cell?
+ if ((is_null($arg)) || ((is_string($arg)) && ($arg == ''))) {
+ ++$returnValue;
+ }
+ }
+
+ // Return
+ return $returnValue;
+ } // function COUNTBLANK()
+
+
+ /**
+ * COUNTA
+ *
+ * Counts the number of cells that are not empty within the list of arguments
+ *
+ * Excel Function:
+ * COUNTA(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return int
+ */
+ public static function COUNTA() {
+ // Return value
+ $returnValue = 0;
+
+ // Loop through arguments
+ $aArgs = self::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ // Is it a numeric, boolean or string value?
+ if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) && ($arg != '')))) {
+ ++$returnValue;
+ }
+ }
+
+ // Return
+ return $returnValue;
+ } // function COUNTA()
+
+
+ /**
+ * COUNTIF
+ *
+ * Counts the number of cells that contain numbers within the list of arguments
+ *
+ * Excel Function:
+ * COUNTIF(value1[,value2[, ...]],condition)
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @param string $condition The criteria that defines which cells will be counted.
+ * @return int
+ */
+ public static function COUNTIF($aArgs,$condition) {
+ // Return value
+ $returnValue = 0;
+
+ $aArgs = self::flattenArray($aArgs);
+ if (!in_array($condition{0},array('>', '<', '='))) {
+ if (!is_numeric($condition)) { $condition = PHPExcel_Calculation::_wrapResult(strtoupper($condition)); }
+ $condition = '='.$condition;
+ }
+ // Loop through arguments
+ foreach ($aArgs as $arg) {
+ if (!is_numeric($arg)) { $arg = PHPExcel_Calculation::_wrapResult(strtoupper($arg)); }
+ $testCondition = '='.$arg.$condition;
+ if (PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) {
+ // Is it a value within our criteria
+ ++$returnValue;
+ }
+ }
+
+ // Return
+ return $returnValue;
+ } // function COUNTIF()
+
+
+ /**
+ * SUMIF
+ *
+ * Counts the number of cells that contain numbers within the list of arguments
+ *
+ * Excel Function:
+ * SUMIF(value1[,value2[, ...]],condition)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @param string $condition The criteria that defines which cells will be summed.
+ * @return float
+ */
+ public static function SUMIF($aArgs,$condition,$sumArgs = array()) {
+ // Return value
+ $returnValue = 0;
+
+ $aArgs = self::flattenArray($aArgs);
+ $sumArgs = self::flattenArray($sumArgs);
+ if (count($sumArgs) == 0) {
+ $sumArgs = $aArgs;
+ }
+ if (!in_array($condition{0},array('>', '<', '='))) {
+ if (!is_numeric($condition)) { $condition = PHPExcel_Calculation::_wrapResult(strtoupper($condition)); }
+ $condition = '='.$condition;
+ }
+ // Loop through arguments
+ foreach ($aArgs as $key => $arg) {
+ if (!is_numeric($arg)) { $arg = PHPExcel_Calculation::_wrapResult(strtoupper($arg)); }
+ $testCondition = '='.$arg.$condition;
+ if (PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) {
+ // Is it a value within our criteria
+ $returnValue += $sumArgs[$key];
+ }
+ }
+
+ // Return
+ return $returnValue;
+ } // function SUMIF()
+
+
+ /**
+ * AVERAGE
+ *
+ * Returns the average (arithmetic mean) of the arguments
+ *
+ * Excel Function:
+ * AVERAGE(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function AVERAGE() {
+ // Return value
+ $returnValue = 0;
+
+ // Loop through arguments
+ $aArgs = self::flattenArray(func_get_args());
+ $aCount = 0;
+ foreach ($aArgs as $arg) {
+ if ((is_bool($arg)) && (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE)) {
+ $arg = (integer) $arg;
+ }
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ if (is_null($returnValue)) {
+ $returnValue = $arg;
+ } else {
+ $returnValue += $arg;
+ }
+ ++$aCount;
+ }
+ }
+
+ // Return
+ if ($aCount > 0) {
+ return $returnValue / $aCount;
+ } else {
+ return self::$_errorCodes['divisionbyzero'];
+ }
+ } // function AVERAGE()
+
+
+ /**
+ * AVERAGEA
+ *
+ * Returns the average of its arguments, including numbers, text, and logical values
+ *
+ * Excel Function:
+ * AVERAGEA(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function AVERAGEA() {
+ // Return value
+ $returnValue = null;
+
+ // Loop through arguments
+ $aArgs = self::flattenArray(func_get_args());
+ $aCount = 0;
+ foreach ($aArgs as $arg) {
+ if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) && ($arg != '')))) {
+ if (is_bool($arg)) {
+ $arg = (integer) $arg;
+ } elseif (is_string($arg)) {
+ $arg = 0;
+ }
+ if (is_null($returnValue)) {
+ $returnValue = $arg;
+ } else {
+ $returnValue += $arg;
+ }
+ ++$aCount;
+ }
+ }
+
+ // Return
+ if ($aCount > 0) {
+ return $returnValue / $aCount;
+ } else {
+ return self::$_errorCodes['divisionbyzero'];
+ }
+ } // function AVERAGEA()
+
+
+ /**
+ * MEDIAN
+ *
+ * Returns the median of the given numbers. The median is the number in the middle of a set of numbers.
+ *
+ * Excel Function:
+ * MEDIAN(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function MEDIAN() {
+ // Return value
+ $returnValue = self::$_errorCodes['num'];
+
+ $mArgs = array();
+ // Loop through arguments
+ $aArgs = self::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $mArgs[] = $arg;
+ }
+ }
+
+ $mValueCount = count($mArgs);
+ if ($mValueCount > 0) {
+ sort($mArgs,SORT_NUMERIC);
+ $mValueCount = $mValueCount / 2;
+ if ($mValueCount == floor($mValueCount)) {
+ $returnValue = ($mArgs[$mValueCount--] + $mArgs[$mValueCount]) / 2;
+ } else {
+ $mValueCount == floor($mValueCount);
+ $returnValue = $mArgs[$mValueCount];
+ }
+ }
+
+ // Return
+ return $returnValue;
+ } // function MEDIAN()
+
+
+ //
+ // Special variant of array_count_values that isn't limited to strings and integers,
+ // but can work with floating point numbers as values
+ //
+ private static function _modeCalc($data) {
+ $frequencyArray = array();
+ foreach($data as $datum) {
+ $found = False;
+ foreach($frequencyArray as $key => $value) {
+ if ((string) $value['value'] == (string) $datum) {
+ ++$frequencyArray[$key]['frequency'];
+ $found = True;
+ break;
+ }
+ }
+ if (!$found) {
+ $frequencyArray[] = array('value' => $datum,
+ 'frequency' => 1 );
+ }
+ }
+
+ foreach($frequencyArray as $key => $value) {
+ $frequencyList[$key] = $value['frequency'];
+ $valueList[$key] = $value['value'];
+ }
+ array_multisort($frequencyList, SORT_DESC, $valueList, SORT_ASC, SORT_NUMERIC, $frequencyArray);
+
+ if ($frequencyArray[0]['frequency'] == 1) {
+ return self::NA();
+ }
+ return $frequencyArray[0]['value'];
+ } // function _modeCalc()
+
+
+ /**
+ * MODE
+ *
+ * Returns the most frequently occurring, or repetitive, value in an array or range of data
+ *
+ * Excel Function:
+ * MODE(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function MODE() {
+ // Return value
+ $returnValue = self::NA();
+
+ // Loop through arguments
+ $aArgs = self::flattenArray(func_get_args());
+
+ $mArgs = array();
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $mArgs[] = $arg;
+ }
+ }
+
+ if (count($mArgs) > 0) {
+ return self::_modeCalc($mArgs);
+ }
+
+ // Return
+ return $returnValue;
+ } // function MODE()
+
+
+ /**
+ * DEVSQ
+ *
+ * Returns the sum of squares of deviations of data points from their sample mean.
+ *
+ * Excel Function:
+ * DEVSQ(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function DEVSQ() {
+ // Return value
+ $returnValue = null;
+
+ $aMean = self::AVERAGE(func_get_args());
+ if (!is_null($aMean)) {
+ $aArgs = self::flattenArray(func_get_args());
+
+ $aCount = -1;
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_bool($arg)) && (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE)) {
+ $arg = (int) $arg;
+ }
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ if (is_null($returnValue)) {
+ $returnValue = pow(($arg - $aMean),2);
+ } else {
+ $returnValue += pow(($arg - $aMean),2);
+ }
+ ++$aCount;
+ }
+ }
+
+ // Return
+ if (is_null($returnValue)) {
+ return self::$_errorCodes['num'];
+ } else {
+ return $returnValue;
+ }
+ }
+ return self::NA();
+ } // function DEVSQ()
+
+
+ /**
+ * AVEDEV
+ *
+ * Returns the average of the absolute deviations of data points from their mean.
+ * AVEDEV is a measure of the variability in a data set.
+ *
+ * Excel Function:
+ * AVEDEV(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function AVEDEV() {
+ $aArgs = self::flattenArray(func_get_args());
+
+ // Return value
+ $returnValue = null;
+
+ $aMean = self::AVERAGE($aArgs);
+ if ($aMean != self::$_errorCodes['divisionbyzero']) {
+ $aCount = 0;
+ foreach ($aArgs as $arg) {
+ if ((is_bool($arg)) && (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE)) {
+ $arg = (integer) $arg;
+ }
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ if (is_null($returnValue)) {
+ $returnValue = abs($arg - $aMean);
+ } else {
+ $returnValue += abs($arg - $aMean);
+ }
+ ++$aCount;
+ }
+ }
+
+ // Return
+ return $returnValue / $aCount ;
+ }
+ return self::$_errorCodes['num'];
+ } // function AVEDEV()
+
+
+ /**
+ * GEOMEAN
+ *
+ * Returns the geometric mean of an array or range of positive data. For example, you
+ * can use GEOMEAN to calculate average growth rate given compound interest with
+ * variable rates.
+ *
+ * Excel Function:
+ * GEOMEAN(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function GEOMEAN() {
+ $aMean = self::PRODUCT(func_get_args());
+ if (is_numeric($aMean) && ($aMean > 0)) {
+ $aArgs = self::flattenArray(func_get_args());
+ $aCount = self::COUNT($aArgs) ;
+ if (self::MIN($aArgs) > 0) {
+ return pow($aMean, (1 / $aCount));
+ }
+ }
+ return self::$_errorCodes['num'];
+ } // GEOMEAN()
+
+
+ /**
+ * HARMEAN
+ *
+ * Returns the harmonic mean of a data set. The harmonic mean is the reciprocal of the
+ * arithmetic mean of reciprocals.
+ *
+ * Excel Function:
+ * HARMEAN(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function HARMEAN() {
+ // Return value
+ $returnValue = self::NA();
+
+ // Loop through arguments
+ $aArgs = self::flattenArray(func_get_args());
+ if (self::MIN($aArgs) < 0) {
+ return self::$_errorCodes['num'];
+ }
+ $aCount = 0;
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ if ($arg <= 0) {
+ return self::$_errorCodes['num'];
+ }
+ if (is_null($returnValue)) {
+ $returnValue = (1 / $arg);
+ } else {
+ $returnValue += (1 / $arg);
+ }
+ ++$aCount;
+ }
+ }
+
+ // Return
+ if ($aCount > 0) {
+ return 1 / ($returnValue / $aCount);
+ } else {
+ return $returnValue;
+ }
+ } // function HARMEAN()
+
+
+ /**
+ * TRIMMEAN
+ *
+ * Returns the mean of the interior of a data set. TRIMMEAN calculates the mean
+ * taken by excluding a percentage of data points from the top and bottom tails
+ * of a data set.
+ *
+ * Excel Function:
+ * TRIMEAN(value1[,value2[, ...]],$discard)
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @param float $discard Percentage to discard
+ * @return float
+ */
+ public static function TRIMMEAN() {
+ $aArgs = self::flattenArray(func_get_args());
+
+ // Calculate
+ $percent = array_pop($aArgs);
+
+ if ((is_numeric($percent)) && (!is_string($percent))) {
+ if (($percent < 0) || ($percent > 1)) {
+ return self::$_errorCodes['num'];
+ }
+ $mArgs = array();
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $mArgs[] = $arg;
+ }
+ }
+ $discard = floor(self::COUNT($mArgs) * $percent / 2);
+ sort($mArgs);
+ for ($i=0; $i < $discard; ++$i) {
+ array_pop($mArgs);
+ array_shift($mArgs);
+ }
+ return self::AVERAGE($mArgs);
+ }
+ return self::$_errorCodes['value'];
+ } // function TRIMMEAN()
+
+
+ /**
+ * STDEV
+ *
+ * Estimates standard deviation based on a sample. The standard deviation is a measure of how
+ * widely values are dispersed from the average value (the mean).
+ *
+ * Excel Function:
+ * STDEV(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function STDEV() {
+ // Return value
+ $returnValue = null;
+
+ $aMean = self::AVERAGE(func_get_args());
+ if (!is_null($aMean)) {
+ $aArgs = self::flattenArray(func_get_args());
+
+ $aCount = -1;
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ if (is_null($returnValue)) {
+ $returnValue = pow(($arg - $aMean),2);
+ } else {
+ $returnValue += pow(($arg - $aMean),2);
+ }
+ ++$aCount;
+ }
+ }
+
+ // Return
+ if (($aCount > 0) && ($returnValue > 0)) {
+ return sqrt($returnValue / $aCount);
+ }
+ }
+ return self::$_errorCodes['divisionbyzero'];
+ } // function STDEV()
+
+
+ /**
+ * STDEVA
+ *
+ * Estimates standard deviation based on a sample, including numbers, text, and logical values
+ *
+ * Excel Function:
+ * STDEVA(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function STDEVA() {
+ // Return value
+ $returnValue = null;
+
+ $aMean = self::AVERAGEA(func_get_args());
+ if (!is_null($aMean)) {
+ $aArgs = self::flattenArray(func_get_args());
+
+ $aCount = -1;
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) & ($arg != '')))) {
+ if (is_bool($arg)) {
+ $arg = (integer) $arg;
+ } elseif (is_string($arg)) {
+ $arg = 0;
+ }
+ if (is_null($returnValue)) {
+ $returnValue = pow(($arg - $aMean),2);
+ } else {
+ $returnValue += pow(($arg - $aMean),2);
+ }
+ ++$aCount;
+ }
+ }
+
+ // Return
+ if (($aCount > 0) && ($returnValue > 0)) {
+ return sqrt($returnValue / $aCount);
+ }
+ }
+ return self::$_errorCodes['divisionbyzero'];
+ } // function STDEVA()
+
+
+ /**
+ * STDEVP
+ *
+ * Calculates standard deviation based on the entire population
+ *
+ * Excel Function:
+ * STDEVP(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function STDEVP() {
+ // Return value
+ $returnValue = null;
+
+ $aMean = self::AVERAGE(func_get_args());
+ if (!is_null($aMean)) {
+ $aArgs = self::flattenArray(func_get_args());
+
+ $aCount = 0;
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ if (is_null($returnValue)) {
+ $returnValue = pow(($arg - $aMean),2);
+ } else {
+ $returnValue += pow(($arg - $aMean),2);
+ }
+ ++$aCount;
+ }
+ }
+
+ // Return
+ if (($aCount > 0) && ($returnValue > 0)) {
+ return sqrt($returnValue / $aCount);
+ }
+ }
+ return self::$_errorCodes['divisionbyzero'];
+ } // function STDEVP()
+
+
+ /**
+ * STDEVPA
+ *
+ * Calculates standard deviation based on the entire population, including numbers, text, and logical values
+ *
+ * Excel Function:
+ * STDEVPA(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function STDEVPA() {
+ // Return value
+ $returnValue = null;
+
+ $aMean = self::AVERAGEA(func_get_args());
+ if (!is_null($aMean)) {
+ $aArgs = self::flattenArray(func_get_args());
+
+ $aCount = 0;
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) & ($arg != '')))) {
+ if (is_bool($arg)) {
+ $arg = (integer) $arg;
+ } elseif (is_string($arg)) {
+ $arg = 0;
+ }
+ if (is_null($returnValue)) {
+ $returnValue = pow(($arg - $aMean),2);
+ } else {
+ $returnValue += pow(($arg - $aMean),2);
+ }
+ ++$aCount;
+ }
+ }
+
+ // Return
+ if (($aCount > 0) && ($returnValue > 0)) {
+ return sqrt($returnValue / $aCount);
+ }
+ }
+ return self::$_errorCodes['divisionbyzero'];
+ } // function STDEVPA()
+
+
+ /**
+ * VARFunc
+ *
+ * Estimates variance based on a sample.
+ *
+ * Excel Function:
+ * VAR(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function VARFunc() {
+ // Return value
+ $returnValue = self::$_errorCodes['divisionbyzero'];
+
+ $summerA = $summerB = 0;
+
+ // Loop through arguments
+ $aArgs = self::flattenArray(func_get_args());
+ $aCount = 0;
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $summerA += ($arg * $arg);
+ $summerB += $arg;
+ ++$aCount;
+ }
+ }
+
+ // Return
+ if ($aCount > 1) {
+ $summerA = $summerA * $aCount;
+ $summerB = ($summerB * $summerB);
+ $returnValue = ($summerA - $summerB) / ($aCount * ($aCount - 1));
+ }
+ return $returnValue;
+ } // function VARFunc()
+
+
+ /**
+ * VARA
+ *
+ * Estimates variance based on a sample, including numbers, text, and logical values
+ *
+ * Excel Function:
+ * VARA(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function VARA() {
+ // Return value
+ $returnValue = self::$_errorCodes['divisionbyzero'];
+
+ $summerA = $summerB = 0;
+
+ // Loop through arguments
+ $aArgs = self::flattenArray(func_get_args());
+ $aCount = 0;
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) & ($arg != '')))) {
+ if (is_bool($arg)) {
+ $arg = (integer) $arg;
+ } elseif (is_string($arg)) {
+ $arg = 0;
+ }
+ $summerA += ($arg * $arg);
+ $summerB += $arg;
+ ++$aCount;
+ }
+ }
+
+ // Return
+ if ($aCount > 1) {
+ $summerA = $summerA * $aCount;
+ $summerB = ($summerB * $summerB);
+ $returnValue = ($summerA - $summerB) / ($aCount * ($aCount - 1));
+ }
+ return $returnValue;
+ } // function VARA()
+
+
+ /**
+ * VARP
+ *
+ * Calculates variance based on the entire population
+ *
+ * Excel Function:
+ * VARP(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function VARP() {
+ // Return value
+ $returnValue = self::$_errorCodes['divisionbyzero'];
+
+ $summerA = $summerB = 0;
+
+ // Loop through arguments
+ $aArgs = self::flattenArray(func_get_args());
+ $aCount = 0;
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $summerA += ($arg * $arg);
+ $summerB += $arg;
+ ++$aCount;
+ }
+ }
+
+ // Return
+ if ($aCount > 0) {
+ $summerA = $summerA * $aCount;
+ $summerB = ($summerB * $summerB);
+ $returnValue = ($summerA - $summerB) / ($aCount * $aCount);
+ }
+ return $returnValue;
+ } // function VARP()
+
+
+ /**
+ * VARPA
+ *
+ * Calculates variance based on the entire population, including numbers, text, and logical values
+ *
+ * Excel Function:
+ * VARPA(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Statistical Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function VARPA() {
+ // Return value
+ $returnValue = self::$_errorCodes['divisionbyzero'];
+
+ $summerA = $summerB = 0;
+
+ // Loop through arguments
+ $aArgs = self::flattenArray(func_get_args());
+ $aCount = 0;
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) & ($arg != '')))) {
+ if (is_bool($arg)) {
+ $arg = (integer) $arg;
+ } elseif (is_string($arg)) {
+ $arg = 0;
+ }
+ $summerA += ($arg * $arg);
+ $summerB += $arg;
+ ++$aCount;
+ }
+ }
+
+ // Return
+ if ($aCount > 0) {
+ $summerA = $summerA * $aCount;
+ $summerB = ($summerB * $summerB);
+ $returnValue = ($summerA - $summerB) / ($aCount * $aCount);
+ }
+ return $returnValue;
+ } // function VARPA()
+
+
+ /**
+ * RANK
+ *
+ * Returns the rank of a number in a list of numbers.
+ *
+ * @param number The number whose rank you want to find.
+ * @param array of number An array of, or a reference to, a list of numbers.
+ * @param mixed Order to sort the values in the value set
+ * @return float
+ */
+ public static function RANK($value,$valueSet,$order=0) {
+ $value = self::flattenSingleValue($value);
+ $valueSet = self::flattenArray($valueSet);
+ $order = self::flattenSingleValue($order);
+
+ foreach($valueSet as $key => $valueEntry) {
+ if (!is_numeric($valueEntry)) {
+ unset($valueSet[$key]);
+ }
+ }
+
+ if ($order == 0) {
+ rsort($valueSet,SORT_NUMERIC);
+ } else {
+ sort($valueSet,SORT_NUMERIC);
+ }
+ $pos = array_search($value,$valueSet);
+ if ($pos === False) {
+ return self::$_errorCodes['na'];
+ }
+
+ return ++$pos;
+ } // function RANK()
+
+
+ /**
+ * PERCENTRANK
+ *
+ * Returns the rank of a value in a data set as a percentage of the data set.
+ *
+ * @param array of number An array of, or a reference to, a list of numbers.
+ * @param number The number whose rank you want to find.
+ * @param number The number of significant digits for the returned percentage value.
+ * @return float
+ */
+ public static function PERCENTRANK($valueSet,$value,$significance=3) {
+ $valueSet = self::flattenArray($valueSet);
+ $value = self::flattenSingleValue($value);
+ $significance = self::flattenSingleValue($significance);
+
+ foreach($valueSet as $key => $valueEntry) {
+ if (!is_numeric($valueEntry)) {
+ unset($valueSet[$key]);
+ }
+ }
+ sort($valueSet,SORT_NUMERIC);
+ $valueCount = count($valueSet);
+ if ($valueCount == 0) {
+ return self::$_errorCodes['num'];
+ }
+
+ $valueAdjustor = $valueCount - 1;
+ if (($value < $valueSet[0]) || ($value > $valueSet[$valueAdjustor])) {
+ return self::$_errorCodes['na'];
+ }
+
+ $pos = array_search($value,$valueSet);
+ if ($pos === False) {
+ $pos = 0;
+ $testValue = $valueSet[0];
+ while ($testValue < $value) {
+ $testValue = $valueSet[++$pos];
+ }
+ --$pos;
+ $pos += (($value - $valueSet[$pos]) / ($testValue - $valueSet[$pos]));
+ }
+
+ return round($pos / $valueAdjustor,$significance);
+ } // function PERCENTRANK()
+
+
+ private static function _checkTrendArray($values) {
+ foreach($values as $key => $value) {
+ if ((is_bool($value)) || ((is_string($value)) && (trim($value) == ''))) {
+ unset($values[$key]);
+ } elseif (is_string($value)) {
+ if (is_numeric($value)) {
+ $values[$key] = (float) $value;
+ } else {
+ unset($values[$key]);
+ }
+ }
+ }
+ return $values;
+ } // function _checkTrendArray()
+
+
+ /**
+ * INTERCEPT
+ *
+ * Calculates the point at which a line will intersect the y-axis by using existing x-values and y-values.
+ *
+ * @param array of mixed Data Series Y
+ * @param array of mixed Data Series X
+ * @return float
+ */
+ public static function INTERCEPT($yValues,$xValues) {
+ $yValues = self::flattenArray($yValues);
+ $xValues = self::flattenArray($xValues);
+
+ $yValues = self::_checkTrendArray($yValues);
+ $yValueCount = count($yValues);
+ $xValues = self::_checkTrendArray($xValues);
+ $xValueCount = count($xValues);
+
+ if (($yValueCount == 0) || ($yValueCount != $xValueCount)) {
+ return self::$_errorCodes['na'];
+ } elseif ($yValueCount == 1) {
+ return self::$_errorCodes['divisionbyzero'];
+ }
+
+ $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues);
+ return $bestFitLinear->getIntersect();
+ } // function INTERCEPT()
+
+
+ /**
+ * RSQ
+ *
+ * Returns the square of the Pearson product moment correlation coefficient through data points in known_y's and known_x's.
+ *
+ * @param array of mixed Data Series Y
+ * @param array of mixed Data Series X
+ * @return float
+ */
+ public static function RSQ($yValues,$xValues) {
+ $yValues = self::flattenArray($yValues);
+ $xValues = self::flattenArray($xValues);
+
+ $yValues = self::_checkTrendArray($yValues);
+ $yValueCount = count($yValues);
+ $xValues = self::_checkTrendArray($xValues);
+ $xValueCount = count($xValues);
+
+ if (($yValueCount == 0) || ($yValueCount != $xValueCount)) {
+ return self::$_errorCodes['na'];
+ } elseif ($yValueCount == 1) {
+ return self::$_errorCodes['divisionbyzero'];
+ }
+
+ $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues);
+ return $bestFitLinear->getGoodnessOfFit();
+ } // function RSQ()
+
+
+ /**
+ * SLOPE
+ *
+ * Returns the slope of the linear regression line through data points in known_y's and known_x's.
+ *
+ * @param array of mixed Data Series Y
+ * @param array of mixed Data Series X
+ * @return float
+ */
+ public static function SLOPE($yValues,$xValues) {
+ $yValues = self::flattenArray($yValues);
+ $xValues = self::flattenArray($xValues);
+
+ $yValues = self::_checkTrendArray($yValues);
+ $yValueCount = count($yValues);
+ $xValues = self::_checkTrendArray($xValues);
+ $xValueCount = count($xValues);
+
+ if (($yValueCount == 0) || ($yValueCount != $xValueCount)) {
+ return self::$_errorCodes['na'];
+ } elseif ($yValueCount == 1) {
+ return self::$_errorCodes['divisionbyzero'];
+ }
+
+ $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues);
+ return $bestFitLinear->getSlope();
+ } // function SLOPE()
+
+
+ /**
+ * STEYX
+ *
+ * Returns the standard error of the predicted y-value for each x in the regression.
+ *
+ * @param array of mixed Data Series Y
+ * @param array of mixed Data Series X
+ * @return float
+ */
+ public static function STEYX($yValues,$xValues) {
+ $yValues = self::flattenArray($yValues);
+ $xValues = self::flattenArray($xValues);
+
+ $yValues = self::_checkTrendArray($yValues);
+ $yValueCount = count($yValues);
+ $xValues = self::_checkTrendArray($xValues);
+ $xValueCount = count($xValues);
+
+ if (($yValueCount == 0) || ($yValueCount != $xValueCount)) {
+ return self::$_errorCodes['na'];
+ } elseif ($yValueCount == 1) {
+ return self::$_errorCodes['divisionbyzero'];
+ }
+
+ $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues);
+ return $bestFitLinear->getStdevOfResiduals();
+ } // function STEYX()
+
+
+ /**
+ * COVAR
+ *
+ * Returns covariance, the average of the products of deviations for each data point pair.
+ *
+ * @param array of mixed Data Series Y
+ * @param array of mixed Data Series X
+ * @return float
+ */
+ public static function COVAR($yValues,$xValues) {
+ $yValues = self::flattenArray($yValues);
+ $xValues = self::flattenArray($xValues);
+
+ $yValues = self::_checkTrendArray($yValues);
+ $yValueCount = count($yValues);
+ $xValues = self::_checkTrendArray($xValues);
+ $xValueCount = count($xValues);
+
+ if (($yValueCount == 0) || ($yValueCount != $xValueCount)) {
+ return self::$_errorCodes['na'];
+ } elseif ($yValueCount == 1) {
+ return self::$_errorCodes['divisionbyzero'];
+ }
+
+ $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues);
+ return $bestFitLinear->getCovariance();
+ } // function COVAR()
+
+
+ /**
+ * CORREL
+ *
+ * Returns covariance, the average of the products of deviations for each data point pair.
+ *
+ * @param array of mixed Data Series Y
+ * @param array of mixed Data Series X
+ * @return float
+ */
+ public static function CORREL($yValues,$xValues) {
+ $yValues = self::flattenArray($yValues);
+ $xValues = self::flattenArray($xValues);
+
+ $yValues = self::_checkTrendArray($yValues);
+ $yValueCount = count($yValues);
+ $xValues = self::_checkTrendArray($xValues);
+ $xValueCount = count($xValues);
+
+ if (($yValueCount == 0) || ($yValueCount != $xValueCount)) {
+ return self::$_errorCodes['na'];
+ } elseif ($yValueCount == 1) {
+ return self::$_errorCodes['divisionbyzero'];
+ }
+
+ $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues);
+ return $bestFitLinear->getCorrelation();
+ } // function CORREL()
+
+
+ /**
+ * LINEST
+ *
+ * Calculates the statistics for a line by using the "least squares" method to calculate a straight line that best fits your data,
+ * and then returns an array that describes the line.
+ *
+ * @param array of mixed Data Series Y
+ * @param array of mixed Data Series X
+ * @param boolean A logical value specifying whether to force the intersect to equal 0.
+ * @param boolean A logical value specifying whether to return additional regression statistics.
+ * @return array
+ */
+ public static function LINEST($yValues,$xValues,$const=True,$stats=False) {
+ $yValues = self::flattenArray($yValues);
+ $xValues = self::flattenArray($xValues);
+ $const = (boolean) self::flattenSingleValue($const);
+ $stats = (boolean) self::flattenSingleValue($stats);
+
+ $yValues = self::_checkTrendArray($yValues);
+ $yValueCount = count($yValues);
+ $xValues = self::_checkTrendArray($xValues);
+ $xValueCount = count($xValues);
+
+ if (($yValueCount == 0) || ($yValueCount != $xValueCount)) {
+ return self::$_errorCodes['na'];
+ } elseif ($yValueCount == 1) {
+ return self::$_errorCodes['divisionbyzero'];
+ }
+
+ $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues,$const);
+ if ($stats) {
+ return array( array( $bestFitLinear->getSlope(),
+ $bestFitLinear->getSlopeSE(),
+ $bestFitLinear->getGoodnessOfFit(),
+ $bestFitLinear->getF(),
+ $bestFitLinear->getSSRegression(),
+ ),
+ array( $bestFitLinear->getIntersect(),
+ $bestFitLinear->getIntersectSE(),
+ $bestFitLinear->getStdevOfResiduals(),
+ $bestFitLinear->getDFResiduals(),
+ $bestFitLinear->getSSResiduals()
+ )
+ );
+ } else {
+ return array( $bestFitLinear->getSlope(),
+ $bestFitLinear->getIntersect()
+ );
+ }
+ } // function LINEST()
+
+
+ /**
+ * LOGEST
+ *
+ * Calculates an exponential curve that best fits the X and Y data series,
+ * and then returns an array that describes the line.
+ *
+ * @param array of mixed Data Series Y
+ * @param array of mixed Data Series X
+ * @param boolean A logical value specifying whether to force the intersect to equal 0.
+ * @param boolean A logical value specifying whether to return additional regression statistics.
+ * @return array
+ */
+ public static function LOGEST($yValues,$xValues,$const=True,$stats=False) {
+ $yValues = self::flattenArray($yValues);
+ $xValues = self::flattenArray($xValues);
+ $const = (boolean) self::flattenSingleValue($const);
+ $stats = (boolean) self::flattenSingleValue($stats);
+
+ $yValues = self::_checkTrendArray($yValues);
+ $yValueCount = count($yValues);
+ $xValues = self::_checkTrendArray($xValues);
+ $xValueCount = count($xValues);
+
+ if (($yValueCount == 0) || ($yValueCount != $xValueCount)) {
+ return self::$_errorCodes['na'];
+ } elseif ($yValueCount == 1) {
+ return self::$_errorCodes['divisionbyzero'];
+ }
+
+ $bestFitExponential = trendClass::calculate(trendClass::TREND_EXPONENTIAL,$yValues,$xValues,$const);
+ if ($stats) {
+ return array( array( $bestFitExponential->getSlope(),
+ $bestFitExponential->getSlopeSE(),
+ $bestFitExponential->getGoodnessOfFit(),
+ $bestFitExponential->getF(),
+ $bestFitExponential->getSSRegression(),
+ ),
+ array( $bestFitExponential->getIntersect(),
+ $bestFitExponential->getIntersectSE(),
+ $bestFitExponential->getStdevOfResiduals(),
+ $bestFitExponential->getDFResiduals(),
+ $bestFitExponential->getSSResiduals()
+ )
+ );
+ } else {
+ return array( $bestFitExponential->getSlope(),
+ $bestFitExponential->getIntersect()
+ );
+ }
+ } // function LOGEST()
+
+
+ /**
+ * FORECAST
+ *
+ * Calculates, or predicts, a future value by using existing values. The predicted value is a y-value for a given x-value.
+ *
+ * @param float Value of X for which we want to find Y
+ * @param array of mixed Data Series Y
+ * @param array of mixed Data Series X
+ * @return float
+ */
+ public static function FORECAST($xValue,$yValues,$xValues) {
+ $xValue = self::flattenSingleValue($xValue);
+ $yValues = self::flattenArray($yValues);
+ $xValues = self::flattenArray($xValues);
+
+ if (!is_numeric($xValue)) {
+ return self::$_errorCodes['value'];
+ }
+
+ $yValues = self::_checkTrendArray($yValues);
+ $yValueCount = count($yValues);
+ $xValues = self::_checkTrendArray($xValues);
+ $xValueCount = count($xValues);
+
+ if (($yValueCount == 0) || ($yValueCount != $xValueCount)) {
+ return self::$_errorCodes['na'];
+ } elseif ($yValueCount == 1) {
+ return self::$_errorCodes['divisionbyzero'];
+ }
+
+ $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues);
+ return $bestFitLinear->getValueOfYForX($xValue);
+ } // function FORECAST()
+
+
+ /**
+ * TREND
+ *
+ * Returns values along a linear trend
+ *
+ * @param array of mixed Data Series Y
+ * @param array of mixed Data Series X
+ * @param array of mixed Values of X for which we want to find Y
+ * @param boolean A logical value specifying whether to force the intersect to equal 0.
+ * @return array of float
+ */
+ public static function TREND($yValues,$xValues=array(),$newValues=array(),$const=True) {
+ $yValues = self::flattenArray($yValues);
+ $xValues = self::flattenArray($xValues);
+ $newValues = self::flattenArray($newValues);
+ $const = (boolean) self::flattenSingleValue($const);
+
+ $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR,$yValues,$xValues,$const);
+ if (count($newValues) == 0) {
+ $newValues = $bestFitLinear->getXValues();
+ }
+
+ $returnArray = array();
+ foreach($newValues as $xValue) {
+ $returnArray[0][] = $bestFitLinear->getValueOfYForX($xValue);
+ }
+
+ return $returnArray;
+ } // function TREND()
+
+
+ /**
+ * GROWTH
+ *
+ * Returns values along a predicted emponential trend
+ *
+ * @param array of mixed Data Series Y
+ * @param array of mixed Data Series X
+ * @param array of mixed Values of X for which we want to find Y
+ * @param boolean A logical value specifying whether to force the intersect to equal 0.
+ * @return array of float
+ */
+ public static function GROWTH($yValues,$xValues=array(),$newValues=array(),$const=True) {
+ $yValues = self::flattenArray($yValues);
+ $xValues = self::flattenArray($xValues);
+ $newValues = self::flattenArray($newValues);
+ $const = (boolean) self::flattenSingleValue($const);
+
+ $bestFitExponential = trendClass::calculate(trendClass::TREND_EXPONENTIAL,$yValues,$xValues,$const);
+ if (count($newValues) == 0) {
+ $newValues = $bestFitExponential->getXValues();
+ }
+
+ $returnArray = array();
+ foreach($newValues as $xValue) {
+ $returnArray[0][] = $bestFitExponential->getValueOfYForX($xValue);
+ }
+
+ return $returnArray;
+ } // function GROWTH()
+
+
+ private static function _romanCut($num, $n) {
+ return ($num - ($num % $n ) ) / $n;
+ } // function _romanCut()
+
+
+ public static function ROMAN($aValue, $style=0) {
+ $aValue = (integer) self::flattenSingleValue($aValue);
+ if ((!is_numeric($aValue)) || ($aValue < 0) || ($aValue >= 4000)) {
+ return self::$_errorCodes['value'];
+ }
+ if ($aValue == 0) {
+ return '';
+ }
+
+ $mill = Array('', 'M', 'MM', 'MMM', 'MMMM', 'MMMMM');
+ $cent = Array('', 'C', 'CC', 'CCC', 'CD', 'D', 'DC', 'DCC', 'DCCC', 'CM');
+ $tens = Array('', 'X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC');
+ $ones = Array('', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX');
+
+ $roman = '';
+ while ($aValue > 5999) {
+ $roman .= 'M';
+ $aValue -= 1000;
+ }
+ $m = self::_romanCut($aValue, 1000); $aValue %= 1000;
+ $c = self::_romanCut($aValue, 100); $aValue %= 100;
+ $t = self::_romanCut($aValue, 10); $aValue %= 10;
+
+ return $roman.$mill[$m].$cent[$c].$tens[$t].$ones[$aValue];
+ } // function ROMAN()
+
+
+ /**
+ * SUBTOTAL
+ *
+ * Returns a subtotal in a list or database.
+ *
+ * @param int the number 1 to 11 that specifies which function to
+ * use in calculating subtotals within a list.
+ * @param array of mixed Data Series
+ * @return float
+ */
+ public static function SUBTOTAL() {
+ $aArgs = self::flattenArray(func_get_args());
+
+ // Calculate
+ $subtotal = array_shift($aArgs);
+
+ if ((is_numeric($subtotal)) && (!is_string($subtotal))) {
+ switch($subtotal) {
+ case 1 :
+ return self::AVERAGE($aArgs);
+ break;
+ case 2 :
+ return self::COUNT($aArgs);
+ break;
+ case 3 :
+ return self::COUNTA($aArgs);
+ break;
+ case 4 :
+ return self::MAX($aArgs);
+ break;
+ case 5 :
+ return self::MIN($aArgs);
+ break;
+ case 6 :
+ return self::PRODUCT($aArgs);
+ break;
+ case 7 :
+ return self::STDEV($aArgs);
+ break;
+ case 8 :
+ return self::STDEVP($aArgs);
+ break;
+ case 9 :
+ return self::SUM($aArgs);
+ break;
+ case 10 :
+ return self::VARFunc($aArgs);
+ break;
+ case 11 :
+ return self::VARP($aArgs);
+ break;
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function SUBTOTAL()
+
+
+ /**
+ * SQRTPI
+ *
+ * Returns the square root of (number * pi).
+ *
+ * @param float $number Number
+ * @return float Square Root of Number * Pi
+ */
+ public static function SQRTPI($number) {
+ $number = self::flattenSingleValue($number);
+
+ if (is_numeric($number)) {
+ if ($number < 0) {
+ return self::$_errorCodes['num'];
+ }
+ return sqrt($number * pi()) ;
+ }
+ return self::$_errorCodes['value'];
+ } // function SQRTPI()
+
+
+ /**
+ * FACT
+ *
+ * Returns the factorial of a number.
+ *
+ * @param float $factVal Factorial Value
+ * @return int Factorial
+ */
+ public static function FACT($factVal) {
+ $factVal = self::flattenSingleValue($factVal);
+
+ if (is_numeric($factVal)) {
+ if ($factVal < 0) {
+ return self::$_errorCodes['num'];
+ }
+ $factLoop = floor($factVal);
+ if (self::$compatibilityMode == self::COMPATIBILITY_GNUMERIC) {
+ if ($factVal > $factLoop) {
+ return self::$_errorCodes['num'];
+ }
+ }
+ $factorial = 1;
+ while ($factLoop > 1) {
+ $factorial *= $factLoop--;
+ }
+ return $factorial ;
+ }
+ return self::$_errorCodes['value'];
+ } // function FACT()
+
+
+ /**
+ * FACTDOUBLE
+ *
+ * Returns the double factorial of a number.
+ *
+ * @param float $factVal Factorial Value
+ * @return int Double Factorial
+ */
+ public static function FACTDOUBLE($factVal) {
+ $factLoop = floor(self::flattenSingleValue($factVal));
+
+ if (is_numeric($factLoop)) {
+ if ($factVal < 0) {
+ return self::$_errorCodes['num'];
+ }
+ $factorial = 1;
+ while ($factLoop > 1) {
+ $factorial *= $factLoop--;
+ --$factLoop;
+ }
+ return $factorial ;
+ }
+ return self::$_errorCodes['value'];
+ } // function FACTDOUBLE()
+
+
+ /**
+ * MULTINOMIAL
+ *
+ * Returns the ratio of the factorial of a sum of values to the product of factorials.
+ *
+ * @param array of mixed Data Series
+ * @return float
+ */
+ public static function MULTINOMIAL() {
+ // Loop through arguments
+ $aArgs = self::flattenArray(func_get_args());
+ $summer = 0;
+ $divisor = 1;
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if (is_numeric($arg)) {
+ if ($arg < 1) {
+ return self::$_errorCodes['num'];
+ }
+ $summer += floor($arg);
+ $divisor *= self::FACT($arg);
+ } else {
+ return self::$_errorCodes['value'];
+ }
+ }
+
+ // Return
+ if ($summer > 0) {
+ $summer = self::FACT($summer);
+ return $summer / $divisor;
+ }
+ return 0;
+ } // function MULTINOMIAL()
+
+
+ /**
+ * CEILING
+ *
+ * Returns number rounded up, away from zero, to the nearest multiple of significance.
+ *
+ * @param float $number Number to round
+ * @param float $significance Significance
+ * @return float Rounded Number
+ */
+ public static function CEILING($number,$significance=null) {
+ $number = self::flattenSingleValue($number);
+ $significance = self::flattenSingleValue($significance);
+
+ if ((is_null($significance)) && (self::$compatibilityMode == self::COMPATIBILITY_GNUMERIC)) {
+ $significance = $number/abs($number);
+ }
+
+ if ((is_numeric($number)) && (is_numeric($significance))) {
+ if (self::SIGN($number) == self::SIGN($significance)) {
+ if ($significance == 0.0) {
+ return 0;
+ }
+ return ceil($number / $significance) * $significance;
+ } else {
+ return self::$_errorCodes['num'];
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function CEILING()
+
+
+ /**
+ * EVEN
+ *
+ * Returns number rounded up to the nearest even integer.
+ *
+ * @param float $number Number to round
+ * @return int Rounded Number
+ */
+ public static function EVEN($number) {
+ $number = self::flattenSingleValue($number);
+
+ if (is_numeric($number)) {
+ $significance = 2 * self::SIGN($number);
+ return self::CEILING($number,$significance);
+ }
+ return self::$_errorCodes['value'];
+ } // function EVEN()
+
+
+ /**
+ * ODD
+ *
+ * Returns number rounded up to the nearest odd integer.
+ *
+ * @param float $number Number to round
+ * @return int Rounded Number
+ */
+ public static function ODD($number) {
+ $number = self::flattenSingleValue($number);
+
+ if (is_numeric($number)) {
+ $significance = self::SIGN($number);
+ if ($significance == 0) {
+ return 1;
+ }
+ $result = self::CEILING($number,$significance);
+ if (self::IS_EVEN($result)) {
+ $result += $significance;
+ }
+ return $result;
+ }
+ return self::$_errorCodes['value'];
+ } // function ODD()
+
+
+ /**
+ * INTVALUE
+ *
+ * Casts a floating point value to an integer
+ *
+ * @param float $number Number to cast to an integer
+ * @return integer Integer value
+ */
+ public static function INTVALUE($number) {
+ $number = self::flattenSingleValue($number);
+
+ if (is_numeric($number)) {
+ return (int) floor($number);
+ }
+ return self::$_errorCodes['value'];
+ } // function INTVALUE()
+
+
+ /**
+ * ROUNDUP
+ *
+ * Rounds a number up to a specified number of decimal places
+ *
+ * @param float $number Number to round
+ * @param int $digits Number of digits to which you want to round $number
+ * @return float Rounded Number
+ */
+ public static function ROUNDUP($number,$digits) {
+ $number = self::flattenSingleValue($number);
+ $digits = self::flattenSingleValue($digits);
+
+ if ((is_numeric($number)) && (is_numeric($digits))) {
+ $significance = pow(10,$digits);
+ if ($number < 0.0) {
+ return floor($number * $significance) / $significance;
+ } else {
+ return ceil($number * $significance) / $significance;
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function ROUNDUP()
+
+
+ /**
+ * ROUNDDOWN
+ *
+ * Rounds a number down to a specified number of decimal places
+ *
+ * @param float $number Number to round
+ * @param int $digits Number of digits to which you want to round $number
+ * @return float Rounded Number
+ */
+ public static function ROUNDDOWN($number,$digits) {
+ $number = self::flattenSingleValue($number);
+ $digits = self::flattenSingleValue($digits);
+
+ if ((is_numeric($number)) && (is_numeric($digits))) {
+ $significance = pow(10,$digits);
+ if ($number < 0.0) {
+ return ceil($number * $significance) / $significance;
+ } else {
+ return floor($number * $significance) / $significance;
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function ROUNDDOWN()
+
+
+ /**
+ * MROUND
+ *
+ * Rounds a number to the nearest multiple of a specified value
+ *
+ * @param float $number Number to round
+ * @param int $multiple Multiple to which you want to round $number
+ * @return float Rounded Number
+ */
+ public static function MROUND($number,$multiple) {
+ $number = self::flattenSingleValue($number);
+ $multiple = self::flattenSingleValue($multiple);
+
+ if ((is_numeric($number)) && (is_numeric($multiple))) {
+ if ($multiple == 0) {
+ return 0;
+ }
+ if ((self::SIGN($number)) == (self::SIGN($multiple))) {
+ $multiplier = 1 / $multiple;
+ return round($number * $multiplier) / $multiplier;
+ }
+ return self::$_errorCodes['num'];
+ }
+ return self::$_errorCodes['value'];
+ } // function MROUND()
+
+
+ /**
+ * SIGN
+ *
+ * Determines the sign of a number. Returns 1 if the number is positive, zero (0)
+ * if the number is 0, and -1 if the number is negative.
+ *
+ * @param float $number Number to round
+ * @return int sign value
+ */
+ public static function SIGN($number) {
+ $number = self::flattenSingleValue($number);
+
+ if (is_numeric($number)) {
+ if ($number == 0.0) {
+ return 0;
+ }
+ return $number / abs($number);
+ }
+ return self::$_errorCodes['value'];
+ } // function SIGN()
+
+
+ /**
+ * FLOOR
+ *
+ * Rounds number down, toward zero, to the nearest multiple of significance.
+ *
+ * @param float $number Number to round
+ * @param float $significance Significance
+ * @return float Rounded Number
+ */
+ public static function FLOOR($number,$significance=null) {
+ $number = self::flattenSingleValue($number);
+ $significance = self::flattenSingleValue($significance);
+
+ if ((is_null($significance)) && (self::$compatibilityMode == self::COMPATIBILITY_GNUMERIC)) {
+ $significance = $number/abs($number);
+ }
+
+ if ((is_numeric($number)) && (is_numeric($significance))) {
+ if ((float) $significance == 0.0) {
+ return self::$_errorCodes['divisionbyzero'];
+ }
+ if (self::SIGN($number) == self::SIGN($significance)) {
+ return floor($number / $significance) * $significance;
+ } else {
+ return self::$_errorCodes['num'];
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function FLOOR()
+
+
+ /**
+ * PERMUT
+ *
+ * Returns the number of permutations for a given number of objects that can be
+ * selected from number objects. A permutation is any set or subset of objects or
+ * events where internal order is significant. Permutations are different from
+ * combinations, for which the internal order is not significant. Use this function
+ * for lottery-style probability calculations.
+ *
+ * @param int $numObjs Number of different objects
+ * @param int $numInSet Number of objects in each permutation
+ * @return int Number of permutations
+ */
+ public static function PERMUT($numObjs,$numInSet) {
+ $numObjs = self::flattenSingleValue($numObjs);
+ $numInSet = self::flattenSingleValue($numInSet);
+
+ if ((is_numeric($numObjs)) && (is_numeric($numInSet))) {
+ if ($numObjs < $numInSet) {
+ return self::$_errorCodes['num'];
+ }
+ return round(self::FACT($numObjs) / self::FACT($numObjs - $numInSet));
+ }
+ return self::$_errorCodes['value'];
+ } // function PERMUT()
+
+
+ /**
+ * COMBIN
+ *
+ * Returns the number of combinations for a given number of items. Use COMBIN to
+ * determine the total possible number of groups for a given number of items.
+ *
+ * @param int $numObjs Number of different objects
+ * @param int $numInSet Number of objects in each combination
+ * @return int Number of combinations
+ */
+ public static function COMBIN($numObjs,$numInSet) {
+ $numObjs = self::flattenSingleValue($numObjs);
+ $numInSet = self::flattenSingleValue($numInSet);
+
+ if ((is_numeric($numObjs)) && (is_numeric($numInSet))) {
+ if ($numObjs < $numInSet) {
+ return self::$_errorCodes['num'];
+ } elseif ($numInSet < 0) {
+ return self::$_errorCodes['num'];
+ }
+ return round(self::FACT($numObjs) / self::FACT($numObjs - $numInSet)) / self::FACT($numInSet);
+ }
+ return self::$_errorCodes['value'];
+ } // function COMBIN()
+
+
+ /**
+ * SERIESSUM
+ *
+ * Returns the sum of a power series
+ *
+ * @param float $x Input value to the power series
+ * @param float $n Initial power to which you want to raise $x
+ * @param float $m Step by which to increase $n for each term in the series
+ * @param array of mixed Data Series
+ * @return float
+ */
+ public static function SERIESSUM() {
+ // Return value
+ $returnValue = 0;
+
+ // Loop trough arguments
+ $aArgs = self::flattenArray(func_get_args());
+
+ $x = array_shift($aArgs);
+ $n = array_shift($aArgs);
+ $m = array_shift($aArgs);
+
+ if ((is_numeric($x)) && (is_numeric($n)) && (is_numeric($m))) {
+ // Calculate
+ $i = 0;
+ foreach($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $returnValue += $arg * pow($x,$n + ($m * $i++));
+ } else {
+ return self::$_errorCodes['value'];
+ }
+ }
+ // Return
+ return $returnValue;
+ }
+ return self::$_errorCodes['value'];
+ } // function SERIESSUM()
+
+
+ /**
+ * STANDARDIZE
+ *
+ * Returns a normalized value from a distribution characterized by mean and standard_dev.
+ *
+ * @param float $value Value to normalize
+ * @param float $mean Mean Value
+ * @param float $stdDev Standard Deviation
+ * @return float Standardized value
+ */
+ public static function STANDARDIZE($value,$mean,$stdDev) {
+ $value = self::flattenSingleValue($value);
+ $mean = self::flattenSingleValue($mean);
+ $stdDev = self::flattenSingleValue($stdDev);
+
+ if ((is_numeric($value)) && (is_numeric($mean)) && (is_numeric($stdDev))) {
+ if ($stdDev <= 0) {
+ return self::$_errorCodes['num'];
+ }
+ return ($value - $mean) / $stdDev ;
+ }
+ return self::$_errorCodes['value'];
+ } // function STANDARDIZE()
+
+
+ //
+ // Private method to return an array of the factors of the input value
+ //
+ private static function _factors($value) {
+ $startVal = floor(sqrt($value));
+
+ $factorArray = array();
+ for ($i = $startVal; $i > 1; --$i) {
+ if (($value % $i) == 0) {
+ $factorArray = array_merge($factorArray,self::_factors($value / $i));
+ $factorArray = array_merge($factorArray,self::_factors($i));
+ if ($i <= sqrt($value)) {
+ break;
+ }
+ }
+ }
+ if (count($factorArray) > 0) {
+ rsort($factorArray);
+ return $factorArray;
+ } else {
+ return array((integer) $value);
+ }
+ } // function _factors()
+
+
+ /**
+ * LCM
+ *
+ * Returns the lowest common multiplier of a series of numbers
+ *
+ * @param $array Values to calculate the Lowest Common Multiplier
+ * @return int Lowest Common Multiplier
+ */
+ public static function LCM() {
+ $aArgs = self::flattenArray(func_get_args());
+
+ $returnValue = 1;
+ $allPoweredFactors = array();
+ foreach($aArgs as $value) {
+ if (!is_numeric($value)) {
+ return self::$_errorCodes['value'];
+ }
+ if ($value == 0) {
+ return 0;
+ } elseif ($value < 0) {
+ return self::$_errorCodes['num'];
+ }
+ $myFactors = self::_factors(floor($value));
+ $myCountedFactors = array_count_values($myFactors);
+ $myPoweredFactors = array();
+ foreach($myCountedFactors as $myCountedFactor => $myCountedPower) {
+ $myPoweredFactors[$myCountedFactor] = pow($myCountedFactor,$myCountedPower);
+ }
+ foreach($myPoweredFactors as $myPoweredValue => $myPoweredFactor) {
+ if (array_key_exists($myPoweredValue,$allPoweredFactors)) {
+ if ($allPoweredFactors[$myPoweredValue] < $myPoweredFactor) {
+ $allPoweredFactors[$myPoweredValue] = $myPoweredFactor;
+ }
+ } else {
+ $allPoweredFactors[$myPoweredValue] = $myPoweredFactor;
+ }
+ }
+ }
+ foreach($allPoweredFactors as $allPoweredFactor) {
+ $returnValue *= (integer) $allPoweredFactor;
+ }
+ return $returnValue;
+ } // function LCM()
+
+
+ /**
+ * GCD
+ *
+ * Returns the greatest common divisor of a series of numbers
+ *
+ * @param $array Values to calculate the Greatest Common Divisor
+ * @return int Greatest Common Divisor
+ */
+ public static function GCD() {
+ $aArgs = self::flattenArray(func_get_args());
+
+ $returnValue = 1;
+ $allPoweredFactors = array();
+ foreach($aArgs as $value) {
+ if ($value == 0) {
+ break;
+ }
+ $myFactors = self::_factors($value);
+ $myCountedFactors = array_count_values($myFactors);
+ $allValuesFactors[] = $myCountedFactors;
+ }
+ $allValuesCount = count($allValuesFactors);
+ $mergedArray = $allValuesFactors[0];
+ for ($i=1;$i < $allValuesCount; ++$i) {
+ $mergedArray = array_intersect_key($mergedArray,$allValuesFactors[$i]);
+ }
+ $mergedArrayValues = count($mergedArray);
+ if ($mergedArrayValues == 0) {
+ return $returnValue;
+ } elseif ($mergedArrayValues > 1) {
+ foreach($mergedArray as $mergedKey => $mergedValue) {
+ foreach($allValuesFactors as $highestPowerTest) {
+ foreach($highestPowerTest as $testKey => $testValue) {
+ if (($testKey == $mergedKey) && ($testValue < $mergedValue)) {
+ $mergedArray[$mergedKey] = $testValue;
+ $mergedValue = $testValue;
+ }
+ }
+ }
+ }
+
+ $returnValue = 1;
+ foreach($mergedArray as $key => $value) {
+ $returnValue *= pow($key,$value);
+ }
+ return $returnValue;
+ } else {
+ $keys = array_keys($mergedArray);
+ $key = $keys[0];
+ $value = $mergedArray[$key];
+ foreach($allValuesFactors as $testValue) {
+ foreach($testValue as $mergedKey => $mergedValue) {
+ if (($mergedKey == $key) && ($mergedValue < $value)) {
+ $value = $mergedValue;
+ }
+ }
+ }
+ return pow($key,$value);
+ }
+ } // function GCD()
+
+
+ /**
+ * BINOMDIST
+ *
+ * Returns the individual term binomial distribution probability. Use BINOMDIST in problems with
+ * a fixed number of tests or trials, when the outcomes of any trial are only success or failure,
+ * when trials are independent, and when the probability of success is constant throughout the
+ * experiment. For example, BINOMDIST can calculate the probability that two of the next three
+ * babies born are male.
+ *
+ * @param float $value Number of successes in trials
+ * @param float $trials Number of trials
+ * @param float $probability Probability of success on each trial
+ * @param boolean $cumulative
+ * @return float
+ *
+ * @todo Cumulative distribution function
+ *
+ */
+ public static function BINOMDIST($value, $trials, $probability, $cumulative) {
+ $value = floor(self::flattenSingleValue($value));
+ $trials = floor(self::flattenSingleValue($trials));
+ $probability = self::flattenSingleValue($probability);
+
+ if ((is_numeric($value)) && (is_numeric($trials)) && (is_numeric($probability))) {
+ if (($value < 0) || ($value > $trials)) {
+ return self::$_errorCodes['num'];
+ }
+ if (($probability < 0) || ($probability > 1)) {
+ return self::$_errorCodes['num'];
+ }
+ if ((is_numeric($cumulative)) || (is_bool($cumulative))) {
+ if ($cumulative) {
+ $summer = 0;
+ for ($i = 0; $i <= $value; ++$i) {
+ $summer += self::COMBIN($trials,$i) * pow($probability,$i) * pow(1 - $probability,$trials - $i);
+ }
+ return $summer;
+ } else {
+ return self::COMBIN($trials,$value) * pow($probability,$value) * pow(1 - $probability,$trials - $value) ;
+ }
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function BINOMDIST()
+
+
+ /**
+ * NEGBINOMDIST
+ *
+ * Returns the negative binomial distribution. NEGBINOMDIST returns the probability that
+ * there will be number_f failures before the number_s-th success, when the constant
+ * probability of a success is probability_s. This function is similar to the binomial
+ * distribution, except that the number of successes is fixed, and the number of trials is
+ * variable. Like the binomial, trials are assumed to be independent.
+ *
+ * @param float $failures Number of Failures
+ * @param float $successes Threshold number of Successes
+ * @param float $probability Probability of success on each trial
+ * @return float
+ *
+ */
+ public static function NEGBINOMDIST($failures, $successes, $probability) {
+ $failures = floor(self::flattenSingleValue($failures));
+ $successes = floor(self::flattenSingleValue($successes));
+ $probability = self::flattenSingleValue($probability);
+
+ if ((is_numeric($failures)) && (is_numeric($successes)) && (is_numeric($probability))) {
+ if (($failures < 0) || ($successes < 1)) {
+ return self::$_errorCodes['num'];
+ }
+ if (($probability < 0) || ($probability > 1)) {
+ return self::$_errorCodes['num'];
+ }
+ if (self::$compatibilityMode == self::COMPATIBILITY_GNUMERIC) {
+ if (($failures + $successes - 1) <= 0) {
+ return self::$_errorCodes['num'];
+ }
+ }
+ return (self::COMBIN($failures + $successes - 1,$successes - 1)) * (pow($probability,$successes)) * (pow(1 - $probability,$failures)) ;
+ }
+ return self::$_errorCodes['value'];
+ } // function NEGBINOMDIST()
+
+
+ /**
+ * CRITBINOM
+ *
+ * Returns the smallest value for which the cumulative binomial distribution is greater
+ * than or equal to a criterion value
+ *
+ * See http://support.microsoft.com/kb/828117/ for details of the algorithm used
+ *
+ * @param float $trials number of Bernoulli trials
+ * @param float $probability probability of a success on each trial
+ * @param float $alpha criterion value
+ * @return int
+ *
+ * @todo Warning. This implementation differs from the algorithm detailed on the MS
+ * web site in that $CumPGuessMinus1 = $CumPGuess - 1 rather than $CumPGuess - $PGuess
+ * This eliminates a potential endless loop error, but may have an adverse affect on the
+ * accuracy of the function (although all my tests have so far returned correct results).
+ *
+ */
+ public static function CRITBINOM($trials, $probability, $alpha) {
+ $trials = floor(self::flattenSingleValue($trials));
+ $probability = self::flattenSingleValue($probability);
+ $alpha = self::flattenSingleValue($alpha);
+
+ if ((is_numeric($trials)) && (is_numeric($probability)) && (is_numeric($alpha))) {
+ if ($trials < 0) {
+ return self::$_errorCodes['num'];
+ }
+ if (($probability < 0) || ($probability > 1)) {
+ return self::$_errorCodes['num'];
+ }
+ if (($alpha < 0) || ($alpha > 1)) {
+ return self::$_errorCodes['num'];
+ }
+ if ($alpha <= 0.5) {
+ $t = sqrt(log(1 / pow($alpha,2)));
+ $trialsApprox = 0 - ($t + (2.515517 + 0.802853 * $t + 0.010328 * $t * $t) / (1 + 1.432788 * $t + 0.189269 * $t * $t + 0.001308 * $t * $t * $t));
+ } else {
+ $t = sqrt(log(1 / pow(1 - $alpha,2)));
+ $trialsApprox = $t - (2.515517 + 0.802853 * $t + 0.010328 * $t * $t) / (1 + 1.432788 * $t + 0.189269 * $t * $t + 0.001308 * $t * $t * $t);
+ }
+ $Guess = floor($trials * $probability + $trialsApprox * sqrt($trials * $probability * (1 - $probability)));
+ if ($Guess < 0) {
+ $Guess = 0;
+ } elseif ($Guess > $trials) {
+ $Guess = $trials;
+ }
+
+ $TotalUnscaledProbability = $UnscaledPGuess = $UnscaledCumPGuess = 0.0;
+ $EssentiallyZero = 10e-12;
+
+ $m = floor($trials * $probability);
+ ++$TotalUnscaledProbability;
+ if ($m == $Guess) { ++$UnscaledPGuess; }
+ if ($m <= $Guess) { ++$UnscaledCumPGuess; }
+
+ $PreviousValue = 1;
+ $Done = False;
+ $k = $m + 1;
+ while ((!$Done) && ($k <= $trials)) {
+ $CurrentValue = $PreviousValue * ($trials - $k + 1) * $probability / ($k * (1 - $probability));
+ $TotalUnscaledProbability += $CurrentValue;
+ if ($k == $Guess) { $UnscaledPGuess += $CurrentValue; }
+ if ($k <= $Guess) { $UnscaledCumPGuess += $CurrentValue; }
+ if ($CurrentValue <= $EssentiallyZero) { $Done = True; }
+ $PreviousValue = $CurrentValue;
+ ++$k;
+ }
+
+ $PreviousValue = 1;
+ $Done = False;
+ $k = $m - 1;
+ while ((!$Done) && ($k >= 0)) {
+ $CurrentValue = $PreviousValue * $k + 1 * (1 - $probability) / (($trials - $k) * $probability);
+ $TotalUnscaledProbability += $CurrentValue;
+ if ($k == $Guess) { $UnscaledPGuess += $CurrentValue; }
+ if ($k <= $Guess) { $UnscaledCumPGuess += $CurrentValue; }
+ if ($CurrentValue <= $EssentiallyZero) { $Done = True; }
+ $PreviousValue = $CurrentValue;
+ --$k;
+ }
+
+ $PGuess = $UnscaledPGuess / $TotalUnscaledProbability;
+ $CumPGuess = $UnscaledCumPGuess / $TotalUnscaledProbability;
+
+// $CumPGuessMinus1 = $CumPGuess - $PGuess;
+ $CumPGuessMinus1 = $CumPGuess - 1;
+
+ while (True) {
+ if (($CumPGuessMinus1 < $alpha) && ($CumPGuess >= $alpha)) {
+ return $Guess;
+ } elseif (($CumPGuessMinus1 < $alpha) && ($CumPGuess < $alpha)) {
+ $PGuessPlus1 = $PGuess * ($trials - $Guess) * $probability / $Guess / (1 - $probability);
+ $CumPGuessMinus1 = $CumPGuess;
+ $CumPGuess = $CumPGuess + $PGuessPlus1;
+ $PGuess = $PGuessPlus1;
+ ++$Guess;
+ } elseif (($CumPGuessMinus1 >= $alpha) && ($CumPGuess >= $alpha)) {
+ $PGuessMinus1 = $PGuess * $Guess * (1 - $probability) / ($trials - $Guess + 1) / $probability;
+ $CumPGuess = $CumPGuessMinus1;
+ $CumPGuessMinus1 = $CumPGuessMinus1 - $PGuess;
+ $PGuess = $PGuessMinus1;
+ --$Guess;
+ }
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function CRITBINOM()
+
+
+ /**
+ * CHIDIST
+ *
+ * Returns the one-tailed probability of the chi-squared distribution.
+ *
+ * @param float $value Value for the function
+ * @param float $degrees degrees of freedom
+ * @return float
+ */
+ public static function CHIDIST($value, $degrees) {
+ $value = self::flattenSingleValue($value);
+ $degrees = floor(self::flattenSingleValue($degrees));
+
+ if ((is_numeric($value)) && (is_numeric($degrees))) {
+ if ($degrees < 1) {
+ return self::$_errorCodes['num'];
+ }
+ if ($value < 0) {
+ if (self::$compatibilityMode == self::COMPATIBILITY_GNUMERIC) {
+ return 1;
+ }
+ return self::$_errorCodes['num'];
+ }
+ return 1 - (self::_incompleteGamma($degrees/2,$value/2) / self::_gamma($degrees/2));
+ }
+ return self::$_errorCodes['value'];
+ } // function CHIDIST()
+
+
+ /**
+ * CHIINV
+ *
+ * Returns the one-tailed probability of the chi-squared distribution.
+ *
+ * @param float $probability Probability for the function
+ * @param float $degrees degrees of freedom
+ * @return float
+ */
+ public static function CHIINV($probability, $degrees) {
+ $probability = self::flattenSingleValue($probability);
+ $degrees = floor(self::flattenSingleValue($degrees));
+
+ if ((is_numeric($probability)) && (is_numeric($degrees))) {
+ $xLo = 100;
+ $xHi = 0;
+ $maxIteration = 100;
+
+ $x = $xNew = 1;
+ $dx = 1;
+ $i = 0;
+
+ while ((abs($dx) > PRECISION) && ($i++ < MAX_ITERATIONS)) {
+ // Apply Newton-Raphson step
+ $result = self::CHIDIST($x, $degrees);
+ $error = $result - $probability;
+ if ($error == 0.0) {
+ $dx = 0;
+ } elseif ($error < 0.0) {
+ $xLo = $x;
+ } else {
+ $xHi = $x;
+ }
+ // Avoid division by zero
+ if ($result != 0.0) {
+ $dx = $error / $result;
+ $xNew = $x - $dx;
+ }
+ // If the NR fails to converge (which for example may be the
+ // case if the initial guess is too rough) we apply a bisection
+ // step to determine a more narrow interval around the root.
+ if (($xNew < $xLo) || ($xNew > $xHi) || ($result == 0.0)) {
+ $xNew = ($xLo + $xHi) / 2;
+ $dx = $xNew - $x;
+ }
+ $x = $xNew;
+ }
+ if ($i == MAX_ITERATIONS) {
+ return self::$_errorCodes['na'];
+ }
+ return round($x,12);
+ }
+ return self::$_errorCodes['value'];
+ } // function CHIINV()
+
+
+ /**
+ * EXPONDIST
+ *
+ * Returns the exponential distribution. Use EXPONDIST to model the time between events,
+ * such as how long an automated bank teller takes to deliver cash. For example, you can
+ * use EXPONDIST to determine the probability that the process takes at most 1 minute.
+ *
+ * @param float $value Value of the function
+ * @param float $lambda The parameter value
+ * @param boolean $cumulative
+ * @return float
+ */
+ public static function EXPONDIST($value, $lambda, $cumulative) {
+ $value = self::flattenSingleValue($value);
+ $lambda = self::flattenSingleValue($lambda);
+ $cumulative = self::flattenSingleValue($cumulative);
+
+ if ((is_numeric($value)) && (is_numeric($lambda))) {
+ if (($value < 0) || ($lambda < 0)) {
+ return self::$_errorCodes['num'];
+ }
+ if ((is_numeric($cumulative)) || (is_bool($cumulative))) {
+ if ($cumulative) {
+ return 1 - exp(0-$value*$lambda);
+ } else {
+ return $lambda * exp(0-$value*$lambda);
+ }
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function EXPONDIST()
+
+
+ /**
+ * FISHER
+ *
+ * Returns the Fisher transformation at x. This transformation produces a function that
+ * is normally distributed rather than skewed. Use this function to perform hypothesis
+ * testing on the correlation coefficient.
+ *
+ * @param float $value
+ * @return float
+ */
+ public static function FISHER($value) {
+ $value = self::flattenSingleValue($value);
+
+ if (is_numeric($value)) {
+ if (($value <= -1) || ($value >= 1)) {
+ return self::$_errorCodes['num'];
+ }
+ return 0.5 * log((1+$value)/(1-$value));
+ }
+ return self::$_errorCodes['value'];
+ } // function FISHER()
+
+
+ /**
+ * FISHERINV
+ *
+ * Returns the inverse of the Fisher transformation. Use this transformation when
+ * analyzing correlations between ranges or arrays of data. If y = FISHER(x), then
+ * FISHERINV(y) = x.
+ *
+ * @param float $value
+ * @return float
+ */
+ public static function FISHERINV($value) {
+ $value = self::flattenSingleValue($value);
+
+ if (is_numeric($value)) {
+ return (exp(2 * $value) - 1) / (exp(2 * $value) + 1);
+ }
+ return self::$_errorCodes['value'];
+ } // function FISHERINV()
+
+
+ // Function cache for _logBeta function
+ private static $_logBetaCache_p = 0.0;
+ private static $_logBetaCache_q = 0.0;
+ private static $_logBetaCache_result = 0.0;
+
+ /**
+ * The natural logarithm of the beta function.
+ * @param p require p>0
+ * @param q require q>0
+ * @return 0 if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow
+ * @author Jaco van Kooten
+ */
+ private static function _logBeta($p, $q) {
+ if ($p != self::$_logBetaCache_p || $q != self::$_logBetaCache_q) {
+ self::$_logBetaCache_p = $p;
+ self::$_logBetaCache_q = $q;
+ if (($p <= 0.0) || ($q <= 0.0) || (($p + $q) > LOG_GAMMA_X_MAX_VALUE)) {
+ self::$_logBetaCache_result = 0.0;
+ } else {
+ self::$_logBetaCache_result = self::_logGamma($p) + self::_logGamma($q) - self::_logGamma($p + $q);
+ }
+ }
+ return self::$_logBetaCache_result;
+ } // function _logBeta()
+
+
+ /**
+ * Evaluates of continued fraction part of incomplete beta function.
+ * Based on an idea from Numerical Recipes (W.H. Press et al, 1992).
+ * @author Jaco van Kooten
+ */
+ private static function _betaFraction($x, $p, $q) {
+ $c = 1.0;
+ $sum_pq = $p + $q;
+ $p_plus = $p + 1.0;
+ $p_minus = $p - 1.0;
+ $h = 1.0 - $sum_pq * $x / $p_plus;
+ if (abs($h) < XMININ) {
+ $h = XMININ;
+ }
+ $h = 1.0 / $h;
+ $frac = $h;
+ $m = 1;
+ $delta = 0.0;
+ while ($m <= MAX_ITERATIONS && abs($delta-1.0) > PRECISION ) {
+ $m2 = 2 * $m;
+ // even index for d
+ $d = $m * ($q - $m) * $x / ( ($p_minus + $m2) * ($p + $m2));
+ $h = 1.0 + $d * $h;
+ if (abs($h) < XMININ) {
+ $h = XMININ;
+ }
+ $h = 1.0 / $h;
+ $c = 1.0 + $d / $c;
+ if (abs($c) < XMININ) {
+ $c = XMININ;
+ }
+ $frac *= $h * $c;
+ // odd index for d
+ $d = -($p + $m) * ($sum_pq + $m) * $x / (($p + $m2) * ($p_plus + $m2));
+ $h = 1.0 + $d * $h;
+ if (abs($h) < XMININ) {
+ $h = XMININ;
+ }
+ $h = 1.0 / $h;
+ $c = 1.0 + $d / $c;
+ if (abs($c) < XMININ) {
+ $c = XMININ;
+ }
+ $delta = $h * $c;
+ $frac *= $delta;
+ ++$m;
+ }
+ return $frac;
+ } // function _betaFraction()
+
+
+ /**
+ * logGamma function
+ *
+ * @version 1.1
+ * @author Jaco van Kooten
+ *
+ * Original author was Jaco van Kooten. Ported to PHP by Paul Meagher.
+ *
+ * The natural logarithm of the gamma function.
+ * Based on public domain NETLIB (Fortran) code by W. J. Cody and L. Stoltz
+ * Applied Mathematics Division
+ * Argonne National Laboratory
+ * Argonne, IL 60439
+ *
+ * References:
+ *
+ *
W. J. Cody and K. E. Hillstrom, 'Chebyshev Approximations for the Natural
+ * Logarithm of the Gamma Function,' Math. Comp. 21, 1967, pp. 198-203.
+ *
K. E. Hillstrom, ANL/AMD Program ANLC366S, DGAMMA/DLGAMA, May, 1969.
+ *
Hart, Et. Al., Computer Approximations, Wiley and sons, New York, 1968.
+ *
+ *
+ *
+ * From the original documentation:
+ *
+ *
+ * This routine calculates the LOG(GAMMA) function for a positive real argument X.
+ * Computation is based on an algorithm outlined in references 1 and 2.
+ * The program uses rational functions that theoretically approximate LOG(GAMMA)
+ * to at least 18 significant decimal digits. The approximation for X > 12 is from
+ * reference 3, while approximations for X < 12.0 are similar to those in reference
+ * 1, but are unpublished. The accuracy achieved depends on the arithmetic system,
+ * the compiler, the intrinsic functions, and proper selection of the
+ * machine-dependent constants.
+ *
+ *
+ * Error returns:
+ * The program returns the value XINF for X .LE. 0.0 or when overflow would occur.
+ * The computation is believed to be free of underflow and overflow.
+ *
+ * @return MAX_VALUE for x < 0.0 or when overflow would occur, i.e. x > 2.55E305
+ */
+
+ // Function cache for logGamma
+ private static $_logGammaCache_result = 0.0;
+ private static $_logGammaCache_x = 0.0;
+
+ private static function _logGamma($x) {
+ // Log Gamma related constants
+ static $lg_d1 = -0.5772156649015328605195174;
+ static $lg_d2 = 0.4227843350984671393993777;
+ static $lg_d4 = 1.791759469228055000094023;
+
+ static $lg_p1 = array( 4.945235359296727046734888,
+ 201.8112620856775083915565,
+ 2290.838373831346393026739,
+ 11319.67205903380828685045,
+ 28557.24635671635335736389,
+ 38484.96228443793359990269,
+ 26377.48787624195437963534,
+ 7225.813979700288197698961 );
+ static $lg_p2 = array( 4.974607845568932035012064,
+ 542.4138599891070494101986,
+ 15506.93864978364947665077,
+ 184793.2904445632425417223,
+ 1088204.76946882876749847,
+ 3338152.967987029735917223,
+ 5106661.678927352456275255,
+ 3074109.054850539556250927 );
+ static $lg_p4 = array( 14745.02166059939948905062,
+ 2426813.369486704502836312,
+ 121475557.4045093227939592,
+ 2663432449.630976949898078,
+ 29403789566.34553899906876,
+ 170266573776.5398868392998,
+ 492612579337.743088758812,
+ 560625185622.3951465078242 );
+
+ static $lg_q1 = array( 67.48212550303777196073036,
+ 1113.332393857199323513008,
+ 7738.757056935398733233834,
+ 27639.87074403340708898585,
+ 54993.10206226157329794414,
+ 61611.22180066002127833352,
+ 36351.27591501940507276287,
+ 8785.536302431013170870835 );
+ static $lg_q2 = array( 183.0328399370592604055942,
+ 7765.049321445005871323047,
+ 133190.3827966074194402448,
+ 1136705.821321969608938755,
+ 5267964.117437946917577538,
+ 13467014.54311101692290052,
+ 17827365.30353274213975932,
+ 9533095.591844353613395747 );
+ static $lg_q4 = array( 2690.530175870899333379843,
+ 639388.5654300092398984238,
+ 41355999.30241388052042842,
+ 1120872109.61614794137657,
+ 14886137286.78813811542398,
+ 101680358627.2438228077304,
+ 341747634550.7377132798597,
+ 446315818741.9713286462081 );
+
+ static $lg_c = array( -0.001910444077728,
+ 8.4171387781295e-4,
+ -5.952379913043012e-4,
+ 7.93650793500350248e-4,
+ -0.002777777777777681622553,
+ 0.08333333333333333331554247,
+ 0.0057083835261 );
+
+ // Rough estimate of the fourth root of logGamma_xBig
+ static $lg_frtbig = 2.25e76;
+ static $pnt68 = 0.6796875;
+
+
+ if ($x == self::$_logGammaCache_x) {
+ return self::$_logGammaCache_result;
+ }
+ $y = $x;
+ if ($y > 0.0 && $y <= LOG_GAMMA_X_MAX_VALUE) {
+ if ($y <= EPS) {
+ $res = -log(y);
+ } elseif ($y <= 1.5) {
+ // ---------------------
+ // EPS .LT. X .LE. 1.5
+ // ---------------------
+ if ($y < $pnt68) {
+ $corr = -log($y);
+ $xm1 = $y;
+ } else {
+ $corr = 0.0;
+ $xm1 = $y - 1.0;
+ }
+ if ($y <= 0.5 || $y >= $pnt68) {
+ $xden = 1.0;
+ $xnum = 0.0;
+ for ($i = 0; $i < 8; ++$i) {
+ $xnum = $xnum * $xm1 + $lg_p1[$i];
+ $xden = $xden * $xm1 + $lg_q1[$i];
+ }
+ $res = $corr + $xm1 * ($lg_d1 + $xm1 * ($xnum / $xden));
+ } else {
+ $xm2 = $y - 1.0;
+ $xden = 1.0;
+ $xnum = 0.0;
+ for ($i = 0; $i < 8; ++$i) {
+ $xnum = $xnum * $xm2 + $lg_p2[$i];
+ $xden = $xden * $xm2 + $lg_q2[$i];
+ }
+ $res = $corr + $xm2 * ($lg_d2 + $xm2 * ($xnum / $xden));
+ }
+ } elseif ($y <= 4.0) {
+ // ---------------------
+ // 1.5 .LT. X .LE. 4.0
+ // ---------------------
+ $xm2 = $y - 2.0;
+ $xden = 1.0;
+ $xnum = 0.0;
+ for ($i = 0; $i < 8; ++$i) {
+ $xnum = $xnum * $xm2 + $lg_p2[$i];
+ $xden = $xden * $xm2 + $lg_q2[$i];
+ }
+ $res = $xm2 * ($lg_d2 + $xm2 * ($xnum / $xden));
+ } elseif ($y <= 12.0) {
+ // ----------------------
+ // 4.0 .LT. X .LE. 12.0
+ // ----------------------
+ $xm4 = $y - 4.0;
+ $xden = -1.0;
+ $xnum = 0.0;
+ for ($i = 0; $i < 8; ++$i) {
+ $xnum = $xnum * $xm4 + $lg_p4[$i];
+ $xden = $xden * $xm4 + $lg_q4[$i];
+ }
+ $res = $lg_d4 + $xm4 * ($xnum / $xden);
+ } else {
+ // ---------------------------------
+ // Evaluate for argument .GE. 12.0
+ // ---------------------------------
+ $res = 0.0;
+ if ($y <= $lg_frtbig) {
+ $res = $lg_c[6];
+ $ysq = $y * $y;
+ for ($i = 0; $i < 6; ++$i)
+ $res = $res / $ysq + $lg_c[$i];
+ }
+ $res /= $y;
+ $corr = log($y);
+ $res = $res + log(SQRT2PI) - 0.5 * $corr;
+ $res += $y * ($corr - 1.0);
+ }
+ } else {
+ // --------------------------
+ // Return for bad arguments
+ // --------------------------
+ $res = MAX_VALUE;
+ }
+ // ------------------------------
+ // Final adjustments and return
+ // ------------------------------
+ self::$_logGammaCache_x = $x;
+ self::$_logGammaCache_result = $res;
+ return $res;
+ } // function _logGamma()
+
+
+ /**
+ * Beta function.
+ *
+ * @author Jaco van Kooten
+ *
+ * @param p require p>0
+ * @param q require q>0
+ * @return 0 if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow
+ */
+ private static function _beta($p, $q) {
+ if ($p <= 0.0 || $q <= 0.0 || ($p + $q) > LOG_GAMMA_X_MAX_VALUE) {
+ return 0.0;
+ } else {
+ return exp(self::_logBeta($p, $q));
+ }
+ } // function _beta()
+
+
+ /**
+ * Incomplete beta function
+ *
+ * @author Jaco van Kooten
+ * @author Paul Meagher
+ *
+ * The computation is based on formulas from Numerical Recipes, Chapter 6.4 (W.H. Press et al, 1992).
+ * @param x require 0<=x<=1
+ * @param p require p>0
+ * @param q require q>0
+ * @return 0 if x<0, p<=0, q<=0 or p+q>2.55E305 and 1 if x>1 to avoid errors and over/underflow
+ */
+ private static function _incompleteBeta($x, $p, $q) {
+ if ($x <= 0.0) {
+ return 0.0;
+ } elseif ($x >= 1.0) {
+ return 1.0;
+ } elseif (($p <= 0.0) || ($q <= 0.0) || (($p + $q) > LOG_GAMMA_X_MAX_VALUE)) {
+ return 0.0;
+ }
+ $beta_gam = exp((0 - self::_logBeta($p, $q)) + $p * log($x) + $q * log(1.0 - $x));
+ if ($x < ($p + 1.0) / ($p + $q + 2.0)) {
+ return $beta_gam * self::_betaFraction($x, $p, $q) / $p;
+ } else {
+ return 1.0 - ($beta_gam * self::_betaFraction(1 - $x, $q, $p) / $q);
+ }
+ } // function _incompleteBeta()
+
+
+ /**
+ * BETADIST
+ *
+ * Returns the beta distribution.
+ *
+ * @param float $value Value at which you want to evaluate the distribution
+ * @param float $alpha Parameter to the distribution
+ * @param float $beta Parameter to the distribution
+ * @param boolean $cumulative
+ * @return float
+ *
+ */
+ public static function BETADIST($value,$alpha,$beta,$rMin=0,$rMax=1) {
+ $value = self::flattenSingleValue($value);
+ $alpha = self::flattenSingleValue($alpha);
+ $beta = self::flattenSingleValue($beta);
+ $rMin = self::flattenSingleValue($rMin);
+ $rMax = self::flattenSingleValue($rMax);
+
+ if ((is_numeric($value)) && (is_numeric($alpha)) && (is_numeric($beta)) && (is_numeric($rMin)) && (is_numeric($rMax))) {
+ if (($value < $rMin) || ($value > $rMax) || ($alpha <= 0) || ($beta <= 0) || ($rMin == $rMax)) {
+ return self::$_errorCodes['num'];
+ }
+ if ($rMin > $rMax) {
+ $tmp = $rMin;
+ $rMin = $rMax;
+ $rMax = $tmp;
+ }
+ $value -= $rMin;
+ $value /= ($rMax - $rMin);
+ return self::_incompleteBeta($value,$alpha,$beta);
+ }
+ return self::$_errorCodes['value'];
+ } // function BETADIST()
+
+
+ /**
+ * BETAINV
+ *
+ * Returns the inverse of the beta distribution.
+ *
+ * @param float $probability Probability at which you want to evaluate the distribution
+ * @param float $alpha Parameter to the distribution
+ * @param float $beta Parameter to the distribution
+ * @param boolean $cumulative
+ * @return float
+ *
+ */
+ public static function BETAINV($probability,$alpha,$beta,$rMin=0,$rMax=1) {
+ $probability = self::flattenSingleValue($probability);
+ $alpha = self::flattenSingleValue($alpha);
+ $beta = self::flattenSingleValue($beta);
+ $rMin = self::flattenSingleValue($rMin);
+ $rMax = self::flattenSingleValue($rMax);
+
+ if ((is_numeric($probability)) && (is_numeric($alpha)) && (is_numeric($beta)) && (is_numeric($rMin)) && (is_numeric($rMax))) {
+ if (($alpha <= 0) || ($beta <= 0) || ($rMin == $rMax) || ($probability <= 0) || ($probability > 1)) {
+ return self::$_errorCodes['num'];
+ }
+ if ($rMin > $rMax) {
+ $tmp = $rMin;
+ $rMin = $rMax;
+ $rMax = $tmp;
+ }
+ $a = 0;
+ $b = 2;
+ $maxIteration = 100;
+
+ $i = 0;
+ while ((($b - $a) > PRECISION) && ($i++ < MAX_ITERATIONS)) {
+ $guess = ($a + $b) / 2;
+ $result = self::BETADIST($guess, $alpha, $beta);
+ if (($result == $probability) || ($result == 0)) {
+ $b = $a;
+ } elseif ($result > $probability) {
+ $b = $guess;
+ } else {
+ $a = $guess;
+ }
+ }
+ if ($i == MAX_ITERATIONS) {
+ return self::$_errorCodes['na'];
+ }
+ return round($rMin + $guess * ($rMax - $rMin),12);
+ }
+ return self::$_errorCodes['value'];
+ } // function BETAINV()
+
+
+ //
+ // Private implementation of the incomplete Gamma function
+ //
+ private static function _incompleteGamma($a,$x) {
+ static $max = 32;
+ $summer = 0;
+ for ($n=0; $n<=$max; ++$n) {
+ $divisor = $a;
+ for ($i=1; $i<=$n; ++$i) {
+ $divisor *= ($a + $i);
+ }
+ $summer += (pow($x,$n) / $divisor);
+ }
+ return pow($x,$a) * exp(0-$x) * $summer;
+ } // function _incompleteGamma()
+
+
+ //
+ // Private implementation of the Gamma function
+ //
+ private static function _gamma($data) {
+ if ($data == 0.0) return 0;
+
+ static $p0 = 1.000000000190015;
+ static $p = array ( 1 => 76.18009172947146,
+ 2 => -86.50532032941677,
+ 3 => 24.01409824083091,
+ 4 => -1.231739572450155,
+ 5 => 1.208650973866179e-3,
+ 6 => -5.395239384953e-6
+ );
+
+ $y = $x = $data;
+ $tmp = $x + 5.5;
+ $tmp -= ($x + 0.5) * log($tmp);
+
+ $summer = $p0;
+ for ($j=1;$j<=6;++$j) {
+ $summer += ($p[$j] / ++$y);
+ }
+ return exp(0 - $tmp + log(2.5066282746310005 * $summer / $x));
+ } // function _gamma()
+
+
+ /**
+ * GAMMADIST
+ *
+ * Returns the gamma distribution.
+ *
+ * @param float $value Value at which you want to evaluate the distribution
+ * @param float $a Parameter to the distribution
+ * @param float $b Parameter to the distribution
+ * @param boolean $cumulative
+ * @return float
+ *
+ */
+ public static function GAMMADIST($value,$a,$b,$cumulative) {
+ $value = self::flattenSingleValue($value);
+ $a = self::flattenSingleValue($a);
+ $b = self::flattenSingleValue($b);
+
+ if ((is_numeric($value)) && (is_numeric($a)) && (is_numeric($b))) {
+ if (($value < 0) || ($a <= 0) || ($b <= 0)) {
+ return self::$_errorCodes['num'];
+ }
+ if ((is_numeric($cumulative)) || (is_bool($cumulative))) {
+ if ($cumulative) {
+ return self::_incompleteGamma($a,$value / $b) / self::_gamma($a);
+ } else {
+ return (1 / (pow($b,$a) * self::_gamma($a))) * pow($value,$a-1) * exp(0-($value / $b));
+ }
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function GAMMADIST()
+
+
+ /**
+ * GAMMAINV
+ *
+ * Returns the inverse of the beta distribution.
+ *
+ * @param float $probability Probability at which you want to evaluate the distribution
+ * @param float $alpha Parameter to the distribution
+ * @param float $beta Parameter to the distribution
+ * @param boolean $cumulative
+ * @return float
+ *
+ */
+ public static function GAMMAINV($probability,$alpha,$beta) {
+ $probability = self::flattenSingleValue($probability);
+ $alpha = self::flattenSingleValue($alpha);
+ $beta = self::flattenSingleValue($beta);
+// $rMin = self::flattenSingleValue($rMin);
+// $rMax = self::flattenSingleValue($rMax);
+
+ if ((is_numeric($probability)) && (is_numeric($alpha)) && (is_numeric($beta))) {
+ if (($alpha <= 0) || ($beta <= 0) || ($probability <= 0) || ($probability > 1)) {
+ return self::$_errorCodes['num'];
+ }
+ $xLo = 0;
+ $xHi = 100;
+ $maxIteration = 100;
+
+ $x = $xNew = 1;
+ $dx = 1;
+ $i = 0;
+
+ while ((abs($dx) > PRECISION) && ($i++ < MAX_ITERATIONS)) {
+ // Apply Newton-Raphson step
+ $result = self::GAMMADIST($x, $alpha, $beta, True);
+ $error = $result - $probability;
+ if ($error == 0.0) {
+ $dx = 0;
+ } elseif ($error < 0.0) {
+ $xLo = $x;
+ } else {
+ $xHi = $x;
+ }
+ // Avoid division by zero
+ if ($result != 0.0) {
+ $dx = $error / $result;
+ $xNew = $x - $dx;
+ }
+ // If the NR fails to converge (which for example may be the
+ // case if the initial guess is too rough) we apply a bisection
+ // step to determine a more narrow interval around the root.
+ if (($xNew < $xLo) || ($xNew > $xHi) || ($result == 0.0)) {
+ $xNew = ($xLo + $xHi) / 2;
+ $dx = $xNew - $x;
+ }
+ $x = $xNew;
+ }
+ if ($i == MAX_ITERATIONS) {
+ return self::$_errorCodes['na'];
+ }
+ return round($x,12);
+ }
+ return self::$_errorCodes['value'];
+ } // function GAMMAINV()
+
+
+ /**
+ * GAMMALN
+ *
+ * Returns the natural logarithm of the gamma function.
+ *
+ * @param float $value
+ * @return float
+ */
+ public static function GAMMALN($value) {
+ $value = self::flattenSingleValue($value);
+
+ if (is_numeric($value)) {
+ if ($value <= 0) {
+ return self::$_errorCodes['num'];
+ }
+ return log(self::_gamma($value));
+ }
+ return self::$_errorCodes['value'];
+ } // function GAMMALN()
+
+
+ /**
+ * NORMDIST
+ *
+ * Returns the normal distribution for the specified mean and standard deviation. This
+ * function has a very wide range of applications in statistics, including hypothesis
+ * testing.
+ *
+ * @param float $value
+ * @param float $mean Mean Value
+ * @param float $stdDev Standard Deviation
+ * @param boolean $cumulative
+ * @return float
+ *
+ */
+ public static function NORMDIST($value, $mean, $stdDev, $cumulative) {
+ $value = self::flattenSingleValue($value);
+ $mean = self::flattenSingleValue($mean);
+ $stdDev = self::flattenSingleValue($stdDev);
+
+ if ((is_numeric($value)) && (is_numeric($mean)) && (is_numeric($stdDev))) {
+ if ($stdDev < 0) {
+ return self::$_errorCodes['num'];
+ }
+ if ((is_numeric($cumulative)) || (is_bool($cumulative))) {
+ if ($cumulative) {
+ return 0.5 * (1 + self::_erfVal(($value - $mean) / ($stdDev * sqrt(2))));
+ } else {
+ return (1 / (SQRT2PI * $stdDev)) * exp(0 - (pow($value - $mean,2) / (2 * pow($stdDev,2))));
+ }
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function NORMDIST()
+
+
+ /**
+ * NORMSDIST
+ *
+ * Returns the standard normal cumulative distribution function. The distribution has
+ * a mean of 0 (zero) and a standard deviation of one. Use this function in place of a
+ * table of standard normal curve areas.
+ *
+ * @param float $value
+ * @return float
+ */
+ public static function NORMSDIST($value) {
+ $value = self::flattenSingleValue($value);
+
+ return self::NORMDIST($value, 0, 1, True);
+ } // function NORMSDIST()
+
+
+ /**
+ * LOGNORMDIST
+ *
+ * Returns the cumulative lognormal distribution of x, where ln(x) is normally distributed
+ * with parameters mean and standard_dev.
+ *
+ * @param float $value
+ * @return float
+ */
+ public static function LOGNORMDIST($value, $mean, $stdDev) {
+ $value = self::flattenSingleValue($value);
+ $mean = self::flattenSingleValue($mean);
+ $stdDev = self::flattenSingleValue($stdDev);
+
+ if ((is_numeric($value)) && (is_numeric($mean)) && (is_numeric($stdDev))) {
+ if (($value <= 0) || ($stdDev <= 0)) {
+ return self::$_errorCodes['num'];
+ }
+ return self::NORMSDIST((log($value) - $mean) / $stdDev);
+ }
+ return self::$_errorCodes['value'];
+ } // function LOGNORMDIST()
+
+
+ /***************************************************************************
+ * inverse_ncdf.php
+ * -------------------
+ * begin : Friday, January 16, 2004
+ * copyright : (C) 2004 Michael Nickerson
+ * email : nickersonm@yahoo.com
+ *
+ ***************************************************************************/
+ private static function _inverse_ncdf($p) {
+ // Inverse ncdf approximation by Peter J. Acklam, implementation adapted to
+ // PHP by Michael Nickerson, using Dr. Thomas Ziegler's C implementation as
+ // a guide. http://home.online.no/~pjacklam/notes/invnorm/index.html
+ // I have not checked the accuracy of this implementation. Be aware that PHP
+ // will truncate the coeficcients to 14 digits.
+
+ // You have permission to use and distribute this function freely for
+ // whatever purpose you want, but please show common courtesy and give credit
+ // where credit is due.
+
+ // Input paramater is $p - probability - where 0 < p < 1.
+
+ // Coefficients in rational approximations
+ static $a = array( 1 => -3.969683028665376e+01,
+ 2 => 2.209460984245205e+02,
+ 3 => -2.759285104469687e+02,
+ 4 => 1.383577518672690e+02,
+ 5 => -3.066479806614716e+01,
+ 6 => 2.506628277459239e+00
+ );
+
+ static $b = array( 1 => -5.447609879822406e+01,
+ 2 => 1.615858368580409e+02,
+ 3 => -1.556989798598866e+02,
+ 4 => 6.680131188771972e+01,
+ 5 => -1.328068155288572e+01
+ );
+
+ static $c = array( 1 => -7.784894002430293e-03,
+ 2 => -3.223964580411365e-01,
+ 3 => -2.400758277161838e+00,
+ 4 => -2.549732539343734e+00,
+ 5 => 4.374664141464968e+00,
+ 6 => 2.938163982698783e+00
+ );
+
+ static $d = array( 1 => 7.784695709041462e-03,
+ 2 => 3.224671290700398e-01,
+ 3 => 2.445134137142996e+00,
+ 4 => 3.754408661907416e+00
+ );
+
+ // Define lower and upper region break-points.
+ $p_low = 0.02425; //Use lower region approx. below this
+ $p_high = 1 - $p_low; //Use upper region approx. above this
+
+ if (0 < $p && $p < $p_low) {
+ // Rational approximation for lower region.
+ $q = sqrt(-2 * log($p));
+ return ((((($c[1] * $q + $c[2]) * $q + $c[3]) * $q + $c[4]) * $q + $c[5]) * $q + $c[6]) /
+ (((($d[1] * $q + $d[2]) * $q + $d[3]) * $q + $d[4]) * $q + 1);
+ } elseif ($p_low <= $p && $p <= $p_high) {
+ // Rational approximation for central region.
+ $q = $p - 0.5;
+ $r = $q * $q;
+ return ((((($a[1] * $r + $a[2]) * $r + $a[3]) * $r + $a[4]) * $r + $a[5]) * $r + $a[6]) * $q /
+ ((((($b[1] * $r + $b[2]) * $r + $b[3]) * $r + $b[4]) * $r + $b[5]) * $r + 1);
+ } elseif ($p_high < $p && $p < 1) {
+ // Rational approximation for upper region.
+ $q = sqrt(-2 * log(1 - $p));
+ return -((((($c[1] * $q + $c[2]) * $q + $c[3]) * $q + $c[4]) * $q + $c[5]) * $q + $c[6]) /
+ (((($d[1] * $q + $d[2]) * $q + $d[3]) * $q + $d[4]) * $q + 1);
+ }
+ // If 0 < p < 1, return a null value
+ return self::$_errorCodes['null'];
+ } // function _inverse_ncdf()
+
+
+ private static function _inverse_ncdf2($prob) {
+ // Approximation of inverse standard normal CDF developed by
+ // B. Moro, "The Full Monte," Risk 8(2), Feb 1995, 57-58.
+
+ $a1 = 2.50662823884;
+ $a2 = -18.61500062529;
+ $a3 = 41.39119773534;
+ $a4 = -25.44106049637;
+
+ $b1 = -8.4735109309;
+ $b2 = 23.08336743743;
+ $b3 = -21.06224101826;
+ $b4 = 3.13082909833;
+
+ $c1 = 0.337475482272615;
+ $c2 = 0.976169019091719;
+ $c3 = 0.160797971491821;
+ $c4 = 2.76438810333863E-02;
+ $c5 = 3.8405729373609E-03;
+ $c6 = 3.951896511919E-04;
+ $c7 = 3.21767881768E-05;
+ $c8 = 2.888167364E-07;
+ $c9 = 3.960315187E-07;
+
+ $y = $prob - 0.5;
+ if (abs($y) < 0.42) {
+ $z = pow($y,2);
+ $z = $y * ((($a4 * $z + $a3) * $z + $a2) * $z + $a1) / (((($b4 * $z + $b3) * $z + $b2) * $z + $b1) * $z + 1);
+ } else {
+ if ($y > 0) {
+ $z = log(-log(1 - $prob));
+ } else {
+ $z = log(-log($prob));
+ }
+ $z = $c1 + $z * ($c2 + $z * ($c3 + $z * ($c4 + $z * ($c5 + $z * ($c6 + $z * ($c7 + $z * ($c8 + $z * $c9)))))));
+ if ($y < 0) {
+ $z = -$z;
+ }
+ }
+ return $z;
+ } // function _inverse_ncdf2()
+
+
+ private static function _inverse_ncdf3($p) {
+ // ALGORITHM AS241 APPL. STATIST. (1988) VOL. 37, NO. 3.
+ // Produces the normal deviate Z corresponding to a given lower
+ // tail area of P; Z is accurate to about 1 part in 10**16.
+ //
+ // This is a PHP version of the original FORTRAN code that can
+ // be found at http://lib.stat.cmu.edu/apstat/
+ $split1 = 0.425;
+ $split2 = 5;
+ $const1 = 0.180625;
+ $const2 = 1.6;
+
+ // coefficients for p close to 0.5
+ $a0 = 3.3871328727963666080;
+ $a1 = 1.3314166789178437745E+2;
+ $a2 = 1.9715909503065514427E+3;
+ $a3 = 1.3731693765509461125E+4;
+ $a4 = 4.5921953931549871457E+4;
+ $a5 = 6.7265770927008700853E+4;
+ $a6 = 3.3430575583588128105E+4;
+ $a7 = 2.5090809287301226727E+3;
+
+ $b1 = 4.2313330701600911252E+1;
+ $b2 = 6.8718700749205790830E+2;
+ $b3 = 5.3941960214247511077E+3;
+ $b4 = 2.1213794301586595867E+4;
+ $b5 = 3.9307895800092710610E+4;
+ $b6 = 2.8729085735721942674E+4;
+ $b7 = 5.2264952788528545610E+3;
+
+ // coefficients for p not close to 0, 0.5 or 1.
+ $c0 = 1.42343711074968357734;
+ $c1 = 4.63033784615654529590;
+ $c2 = 5.76949722146069140550;
+ $c3 = 3.64784832476320460504;
+ $c4 = 1.27045825245236838258;
+ $c5 = 2.41780725177450611770E-1;
+ $c6 = 2.27238449892691845833E-2;
+ $c7 = 7.74545014278341407640E-4;
+
+ $d1 = 2.05319162663775882187;
+ $d2 = 1.67638483018380384940;
+ $d3 = 6.89767334985100004550E-1;
+ $d4 = 1.48103976427480074590E-1;
+ $d5 = 1.51986665636164571966E-2;
+ $d6 = 5.47593808499534494600E-4;
+ $d7 = 1.05075007164441684324E-9;
+
+ // coefficients for p near 0 or 1.
+ $e0 = 6.65790464350110377720;
+ $e1 = 5.46378491116411436990;
+ $e2 = 1.78482653991729133580;
+ $e3 = 2.96560571828504891230E-1;
+ $e4 = 2.65321895265761230930E-2;
+ $e5 = 1.24266094738807843860E-3;
+ $e6 = 2.71155556874348757815E-5;
+ $e7 = 2.01033439929228813265E-7;
+
+ $f1 = 5.99832206555887937690E-1;
+ $f2 = 1.36929880922735805310E-1;
+ $f3 = 1.48753612908506148525E-2;
+ $f4 = 7.86869131145613259100E-4;
+ $f5 = 1.84631831751005468180E-5;
+ $f6 = 1.42151175831644588870E-7;
+ $f7 = 2.04426310338993978564E-15;
+
+ $q = $p - 0.5;
+
+ // computation for p close to 0.5
+ if (abs($q) <= split1) {
+ $R = $const1 - $q * $q;
+ $z = $q * ((((((($a7 * $R + $a6) * $R + $a5) * $R + $a4) * $R + $a3) * $R + $a2) * $R + $a1) * $R + $a0) /
+ ((((((($b7 * $R + $b6) * $R + $b5) * $R + $b4) * $R + $b3) * $R + $b2) * $R + $b1) * $R + 1);
+ } else {
+ if ($q < 0) {
+ $R = $p;
+ } else {
+ $R = 1 - $p;
+ }
+ $R = pow(-log($R),2);
+
+ // computation for p not close to 0, 0.5 or 1.
+ If ($R <= $split2) {
+ $R = $R - $const2;
+ $z = ((((((($c7 * $R + $c6) * $R + $c5) * $R + $c4) * $R + $c3) * $R + $c2) * $R + $c1) * $R + $c0) /
+ ((((((($d7 * $R + $d6) * $R + $d5) * $R + $d4) * $R + $d3) * $R + $d2) * $R + $d1) * $R + 1);
+ } else {
+ // computation for p near 0 or 1.
+ $R = $R - $split2;
+ $z = ((((((($e7 * $R + $e6) * $R + $e5) * $R + $e4) * $R + $e3) * $R + $e2) * $R + $e1) * $R + $e0) /
+ ((((((($f7 * $R + $f6) * $R + $f5) * $R + $f4) * $R + $f3) * $R + $f2) * $R + $f1) * $R + 1);
+ }
+ if ($q < 0) {
+ $z = -$z;
+ }
+ }
+ return $z;
+ } // function _inverse_ncdf3()
+
+
+ /**
+ * NORMINV
+ *
+ * Returns the inverse of the normal cumulative distribution for the specified mean and standard deviation.
+ *
+ * @param float $value
+ * @param float $mean Mean Value
+ * @param float $stdDev Standard Deviation
+ * @return float
+ *
+ */
+ public static function NORMINV($probability,$mean,$stdDev) {
+ $probability = self::flattenSingleValue($probability);
+ $mean = self::flattenSingleValue($mean);
+ $stdDev = self::flattenSingleValue($stdDev);
+
+ if ((is_numeric($probability)) && (is_numeric($mean)) && (is_numeric($stdDev))) {
+ if (($probability < 0) || ($probability > 1)) {
+ return self::$_errorCodes['num'];
+ }
+ if ($stdDev < 0) {
+ return self::$_errorCodes['num'];
+ }
+ return (self::_inverse_ncdf($probability) * $stdDev) + $mean;
+ }
+ return self::$_errorCodes['value'];
+ } // function NORMINV()
+
+
+ /**
+ * NORMSINV
+ *
+ * Returns the inverse of the standard normal cumulative distribution
+ *
+ * @param float $value
+ * @return float
+ */
+ public static function NORMSINV($value) {
+ return self::NORMINV($value, 0, 1);
+ } // function NORMSINV()
+
+
+ /**
+ * LOGINV
+ *
+ * Returns the inverse of the normal cumulative distribution
+ *
+ * @param float $value
+ * @return float
+ *
+ * @todo Try implementing P J Acklam's refinement algorithm for greater
+ * accuracy if I can get my head round the mathematics
+ * (as described at) http://home.online.no/~pjacklam/notes/invnorm/
+ */
+ public static function LOGINV($probability, $mean, $stdDev) {
+ $probability = self::flattenSingleValue($probability);
+ $mean = self::flattenSingleValue($mean);
+ $stdDev = self::flattenSingleValue($stdDev);
+
+ if ((is_numeric($probability)) && (is_numeric($mean)) && (is_numeric($stdDev))) {
+ if (($probability < 0) || ($probability > 1) || ($stdDev <= 0)) {
+ return self::$_errorCodes['num'];
+ }
+ return exp($mean + $stdDev * self::NORMSINV($probability));
+ }
+ return self::$_errorCodes['value'];
+ } // function LOGINV()
+
+
+ /**
+ * HYPGEOMDIST
+ *
+ * Returns the hypergeometric distribution. HYPGEOMDIST returns the probability of a given number of
+ * sample successes, given the sample size, population successes, and population size.
+ *
+ * @param float $sampleSuccesses Number of successes in the sample
+ * @param float $sampleNumber Size of the sample
+ * @param float $populationSuccesses Number of successes in the population
+ * @param float $populationNumber Population size
+ * @return float
+ *
+ */
+ public static function HYPGEOMDIST($sampleSuccesses, $sampleNumber, $populationSuccesses, $populationNumber) {
+ $sampleSuccesses = floor(self::flattenSingleValue($sampleSuccesses));
+ $sampleNumber = floor(self::flattenSingleValue($sampleNumber));
+ $populationSuccesses = floor(self::flattenSingleValue($populationSuccesses));
+ $populationNumber = floor(self::flattenSingleValue($populationNumber));
+
+ if ((is_numeric($sampleSuccesses)) && (is_numeric($sampleNumber)) && (is_numeric($populationSuccesses)) && (is_numeric($populationNumber))) {
+ if (($sampleSuccesses < 0) || ($sampleSuccesses > $sampleNumber) || ($sampleSuccesses > $populationSuccesses)) {
+ return self::$_errorCodes['num'];
+ }
+ if (($sampleNumber <= 0) || ($sampleNumber > $populationNumber)) {
+ return self::$_errorCodes['num'];
+ }
+ if (($populationSuccesses <= 0) || ($populationSuccesses > $populationNumber)) {
+ return self::$_errorCodes['num'];
+ }
+ return self::COMBIN($populationSuccesses,$sampleSuccesses) *
+ self::COMBIN($populationNumber - $populationSuccesses,$sampleNumber - $sampleSuccesses) /
+ self::COMBIN($populationNumber,$sampleNumber);
+ }
+ return self::$_errorCodes['value'];
+ } // function HYPGEOMDIST()
+
+
+ /**
+ * TDIST
+ *
+ * Returns the probability of Student's T distribution.
+ *
+ * @param float $value Value for the function
+ * @param float $degrees degrees of freedom
+ * @param float $tails number of tails (1 or 2)
+ * @return float
+ */
+ public static function TDIST($value, $degrees, $tails) {
+ $value = self::flattenSingleValue($value);
+ $degrees = floor(self::flattenSingleValue($degrees));
+ $tails = floor(self::flattenSingleValue($tails));
+
+ if ((is_numeric($value)) && (is_numeric($degrees)) && (is_numeric($tails))) {
+ if (($value < 0) || ($degrees < 1) || ($tails < 1) || ($tails > 2)) {
+ return self::$_errorCodes['num'];
+ }
+ // tdist, which finds the probability that corresponds to a given value
+ // of t with k degrees of freedom. This algorithm is translated from a
+ // pascal function on p81 of "Statistical Computing in Pascal" by D
+ // Cooke, A H Craven & G M Clark (1985: Edward Arnold (Pubs.) Ltd:
+ // London). The above Pascal algorithm is itself a translation of the
+ // fortran algoritm "AS 3" by B E Cooper of the Atlas Computer
+ // Laboratory as reported in (among other places) "Applied Statistics
+ // Algorithms", editied by P Griffiths and I D Hill (1985; Ellis
+ // Horwood Ltd.; W. Sussex, England).
+// $ta = 2 / pi();
+ $ta = 0.636619772367581;
+ $tterm = $degrees;
+ $ttheta = atan2($value,sqrt($tterm));
+ $tc = cos($ttheta);
+ $ts = sin($ttheta);
+ $tsum = 0;
+
+ if (($degrees % 2) == 1) {
+ $ti = 3;
+ $tterm = $tc;
+ } else {
+ $ti = 2;
+ $tterm = 1;
+ }
+
+ $tsum = $tterm;
+ while ($ti < $degrees) {
+ $tterm *= $tc * $tc * ($ti - 1) / $ti;
+ $tsum += $tterm;
+ $ti += 2;
+ }
+ $tsum *= $ts;
+ if (($degrees % 2) == 1) { $tsum = $ta * ($tsum + $ttheta); }
+ $tValue = 0.5 * (1 + $tsum);
+ if ($tails == 1) {
+ return 1 - abs($tValue);
+ } else {
+ return 1 - abs((1 - $tValue) - $tValue);
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function TDIST()
+
+
+ /**
+ * TINV
+ *
+ * Returns the one-tailed probability of the chi-squared distribution.
+ *
+ * @param float $probability Probability for the function
+ * @param float $degrees degrees of freedom
+ * @return float
+ */
+ public static function TINV($probability, $degrees) {
+ $probability = self::flattenSingleValue($probability);
+ $degrees = floor(self::flattenSingleValue($degrees));
+
+ if ((is_numeric($probability)) && (is_numeric($degrees))) {
+ $xLo = 100;
+ $xHi = 0;
+ $maxIteration = 100;
+
+ $x = $xNew = 1;
+ $dx = 1;
+ $i = 0;
+
+ while ((abs($dx) > PRECISION) && ($i++ < MAX_ITERATIONS)) {
+ // Apply Newton-Raphson step
+ $result = self::TDIST($x, $degrees, 2);
+ $error = $result - $probability;
+ if ($error == 0.0) {
+ $dx = 0;
+ } elseif ($error < 0.0) {
+ $xLo = $x;
+ } else {
+ $xHi = $x;
+ }
+ // Avoid division by zero
+ if ($result != 0.0) {
+ $dx = $error / $result;
+ $xNew = $x - $dx;
+ }
+ // If the NR fails to converge (which for example may be the
+ // case if the initial guess is too rough) we apply a bisection
+ // step to determine a more narrow interval around the root.
+ if (($xNew < $xLo) || ($xNew > $xHi) || ($result == 0.0)) {
+ $xNew = ($xLo + $xHi) / 2;
+ $dx = $xNew - $x;
+ }
+ $x = $xNew;
+ }
+ if ($i == MAX_ITERATIONS) {
+ return self::$_errorCodes['na'];
+ }
+ return round($x,12);
+ }
+ return self::$_errorCodes['value'];
+ } // function TINV()
+
+
+ /**
+ * CONFIDENCE
+ *
+ * Returns the confidence interval for a population mean
+ *
+ * @param float $alpha
+ * @param float $stdDev Standard Deviation
+ * @param float $size
+ * @return float
+ *
+ */
+ public static function CONFIDENCE($alpha,$stdDev,$size) {
+ $alpha = self::flattenSingleValue($alpha);
+ $stdDev = self::flattenSingleValue($stdDev);
+ $size = floor(self::flattenSingleValue($size));
+
+ if ((is_numeric($alpha)) && (is_numeric($stdDev)) && (is_numeric($size))) {
+ if (($alpha <= 0) || ($alpha >= 1)) {
+ return self::$_errorCodes['num'];
+ }
+ if (($stdDev <= 0) || ($size < 1)) {
+ return self::$_errorCodes['num'];
+ }
+ return self::NORMSINV(1 - $alpha / 2) * $stdDev / sqrt($size);
+ }
+ return self::$_errorCodes['value'];
+ } // function CONFIDENCE()
+
+
+ /**
+ * POISSON
+ *
+ * Returns the Poisson distribution. A common application of the Poisson distribution
+ * is predicting the number of events over a specific time, such as the number of
+ * cars arriving at a toll plaza in 1 minute.
+ *
+ * @param float $value
+ * @param float $mean Mean Value
+ * @param boolean $cumulative
+ * @return float
+ *
+ */
+ public static function POISSON($value, $mean, $cumulative) {
+ $value = self::flattenSingleValue($value);
+ $mean = self::flattenSingleValue($mean);
+
+ if ((is_numeric($value)) && (is_numeric($mean))) {
+ if (($value <= 0) || ($mean <= 0)) {
+ return self::$_errorCodes['num'];
+ }
+ if ((is_numeric($cumulative)) || (is_bool($cumulative))) {
+ if ($cumulative) {
+ $summer = 0;
+ for ($i = 0; $i <= floor($value); ++$i) {
+ $summer += pow($mean,$i) / self::FACT($i);
+ }
+ return exp(0-$mean) * $summer;
+ } else {
+ return (exp(0-$mean) * pow($mean,$value)) / self::FACT($value);
+ }
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function POISSON()
+
+
+ /**
+ * WEIBULL
+ *
+ * Returns the Weibull distribution. Use this distribution in reliability
+ * analysis, such as calculating a device's mean time to failure.
+ *
+ * @param float $value
+ * @param float $alpha Alpha Parameter
+ * @param float $beta Beta Parameter
+ * @param boolean $cumulative
+ * @return float
+ *
+ */
+ public static function WEIBULL($value, $alpha, $beta, $cumulative) {
+ $value = self::flattenSingleValue($value);
+ $alpha = self::flattenSingleValue($alpha);
+ $beta = self::flattenSingleValue($beta);
+
+ if ((is_numeric($value)) && (is_numeric($alpha)) && (is_numeric($beta))) {
+ if (($value < 0) || ($alpha <= 0) || ($beta <= 0)) {
+ return self::$_errorCodes['num'];
+ }
+ if ((is_numeric($cumulative)) || (is_bool($cumulative))) {
+ if ($cumulative) {
+ return 1 - exp(0 - pow($value / $beta,$alpha));
+ } else {
+ return ($alpha / pow($beta,$alpha)) * pow($value,$alpha - 1) * exp(0 - pow($value / $beta,$alpha));
+ }
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function WEIBULL()
+
+
+ /**
+ * SKEW
+ *
+ * Returns the skewness of a distribution. Skewness characterizes the degree of asymmetry
+ * of a distribution around its mean. Positive skewness indicates a distribution with an
+ * asymmetric tail extending toward more positive values. Negative skewness indicates a
+ * distribution with an asymmetric tail extending toward more negative values.
+ *
+ * @param array Data Series
+ * @return float
+ */
+ public static function SKEW() {
+ $aArgs = self::flattenArray(func_get_args());
+ $mean = self::AVERAGE($aArgs);
+ $stdDev = self::STDEV($aArgs);
+
+ $count = $summer = 0;
+ // Loop through arguments
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $summer += pow((($arg - $mean) / $stdDev),3) ;
+ ++$count;
+ }
+ }
+
+ // Return
+ if ($count > 2) {
+ return $summer * ($count / (($count-1) * ($count-2)));
+ }
+ return self::$_errorCodes['divisionbyzero'];
+ } // function SKEW()
+
+
+ /**
+ * KURT
+ *
+ * Returns the kurtosis of a data set. Kurtosis characterizes the relative peakedness
+ * or flatness of a distribution compared with the normal distribution. Positive
+ * kurtosis indicates a relatively peaked distribution. Negative kurtosis indicates a
+ * relatively flat distribution.
+ *
+ * @param array Data Series
+ * @return float
+ */
+ public static function KURT() {
+ $aArgs = self::flattenArray(func_get_args());
+ $mean = self::AVERAGE($aArgs);
+ $stdDev = self::STDEV($aArgs);
+
+ if ($stdDev > 0) {
+ $count = $summer = 0;
+ // Loop through arguments
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $summer += pow((($arg - $mean) / $stdDev),4) ;
+ ++$count;
+ }
+ }
+
+ // Return
+ if ($count > 3) {
+ return $summer * ($count * ($count+1) / (($count-1) * ($count-2) * ($count-3))) - (3 * pow($count-1,2) / (($count-2) * ($count-3)));
+ }
+ }
+ return self::$_errorCodes['divisionbyzero'];
+ } // function KURT()
+
+
+ /**
+ * RAND
+ *
+ * @param int $min Minimal value
+ * @param int $max Maximal value
+ * @return int Random number
+ */
+ public static function RAND($min = 0, $max = 0) {
+ $min = self::flattenSingleValue($min);
+ $max = self::flattenSingleValue($max);
+
+ if ($min == 0 && $max == 0) {
+ return (rand(0,10000000)) / 10000000;
+ } else {
+ return rand($min, $max);
+ }
+ } // function RAND()
+
+
+ /**
+ * MOD
+ *
+ * @param int $a Dividend
+ * @param int $b Divisor
+ * @return int Remainder
+ */
+ public static function MOD($a = 1, $b = 1) {
+ $a = self::flattenSingleValue($a);
+ $b = self::flattenSingleValue($b);
+
+ return fmod($a,$b);
+ } // function MOD()
+
+
+ /**
+ * CHARACTER
+ *
+ * @param string $character Value
+ * @return int
+ */
+ public static function CHARACTER($character) {
+ $character = self::flattenSingleValue($character);
+
+ if (function_exists('mb_convert_encoding')) {
+ return mb_convert_encoding(''.intval($character).';', 'UTF-8', 'HTML-ENTITIES');
+ } else {
+ return chr(intval($character));
+ }
+ }
+
+ /**
+ * ASCIICODE
+ *
+ * @param string $character Value
+ * @return int
+ */
+ public static function ASCIICODE($characters) {
+ $characters = self::flattenSingleValue($characters);
+ if (is_bool($characters)) {
+ if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
+ $characters = (int) $characters;
+ } else {
+ if ($characters) {
+ $characters = 'True';
+ } else {
+ $characters = 'False';
+ }
+ }
+ }
+
+ if ((function_exists('mb_strlen')) && (function_exists('mb_substr'))) {
+ if (mb_strlen($characters, 'UTF-8') > 0) {
+ $character = mb_substr($characters, 0, 1, 'UTF-8');
+ $byteLength = strlen($character);
+ $xValue = 0;
+ for ($i = 0; $i < $byteLength; ++$i) {
+ $xValue = ($xValue * 256) + ord($character{$i});
+ }
+ return $xValue;
+ }
+ } else {
+ if (strlen($characters) > 0) {
+ return ord(substr($characters, 0, 1));
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function ASCIICODE()
+
+
+ /**
+ * CONCATENATE
+ *
+ * @return string
+ */
+ public static function CONCATENATE() {
+ // Return value
+ $returnValue = '';
+
+ // Loop trough arguments
+ $aArgs = self::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ if (is_bool($arg)) {
+ if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
+ $arg = (int) $arg;
+ } else {
+ if ($arg) {
+ $arg = 'TRUE';
+ } else {
+ $arg = 'FALSE';
+ }
+ }
+ }
+ $returnValue .= $arg;
+ }
+
+ // Return
+ return $returnValue;
+ } // function CONCATENATE()
+
+
+ /**
+ * STRINGLENGTH
+ *
+ * @param string $value Value
+ * @param int $chars Number of characters
+ * @return string
+ */
+ public static function STRINGLENGTH($value = '') {
+ $value = self::flattenSingleValue($value);
+
+ if (function_exists('mb_strlen')) {
+ return mb_strlen($value, 'UTF-8');
+ } else {
+ return strlen($value);
+ }
+ } // function STRINGLENGTH()
+
+
+ /**
+ * SEARCHSENSITIVE
+ *
+ * @param string $needle The string to look for
+ * @param string $haystack The string in which to look
+ * @param int $offset Offset within $haystack
+ * @return string
+ */
+ public static function SEARCHSENSITIVE($needle,$haystack,$offset=1) {
+ $needle = (string) self::flattenSingleValue($needle);
+ $haystack = (string) self::flattenSingleValue($haystack);
+ $offset = self::flattenSingleValue($offset);
+
+ if (($offset > 0) && (strlen($haystack) > $offset)) {
+ if (function_exists('mb_strpos')) {
+ $pos = mb_strpos($haystack, $needle, --$offset,'UTF-8');
+ } else {
+ $pos = strpos($haystack, $needle, --$offset);
+ }
+ if ($pos !== false) {
+ return ++$pos;
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function SEARCHSENSITIVE()
+
+
+ /**
+ * SEARCHINSENSITIVE
+ *
+ * @param string $needle The string to look for
+ * @param string $haystack The string in which to look
+ * @param int $offset Offset within $haystack
+ * @return string
+ */
+ public static function SEARCHINSENSITIVE($needle,$haystack,$offset=1) {
+ $needle = (string) self::flattenSingleValue($needle);
+ $haystack = (string) self::flattenSingleValue($haystack);
+ $offset = self::flattenSingleValue($offset);
+
+ if (($offset > 0) && (strlen($haystack) > $offset)) {
+ if (function_exists('mb_stripos')) {
+ $pos = mb_stripos($haystack, $needle, --$offset,'UTF-8');
+ } else {
+ $pos = stripos($haystack, $needle, --$offset);
+ }
+ if ($pos !== false) {
+ return ++$pos;
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function SEARCHINSENSITIVE()
+
+
+ /**
+ * LEFT
+ *
+ * @param string $value Value
+ * @param int $chars Number of characters
+ * @return string
+ */
+ public static function LEFT($value = '', $chars = 1) {
+ $value = self::flattenSingleValue($value);
+ $chars = self::flattenSingleValue($chars);
+
+ if (function_exists('mb_substr')) {
+ return mb_substr($value, 0, $chars, 'UTF-8');
+ } else {
+ return substr($value, 0, $chars);
+ }
+ } // function LEFT()
+
+
+ /**
+ * RIGHT
+ *
+ * @param string $value Value
+ * @param int $chars Number of characters
+ * @return string
+ */
+ public static function RIGHT($value = '', $chars = 1) {
+ $value = self::flattenSingleValue($value);
+ $chars = self::flattenSingleValue($chars);
+
+ if ((function_exists('mb_substr')) && (function_exists('mb_strlen'))) {
+ return mb_substr($value, mb_strlen($value, 'UTF-8') - $chars, $chars, 'UTF-8');
+ } else {
+ return substr($value, strlen($value) - $chars);
+ }
+ } // function RIGHT()
+
+
+ /**
+ * MID
+ *
+ * @param string $value Value
+ * @param int $start Start character
+ * @param int $chars Number of characters
+ * @return string
+ */
+ public static function MID($value = '', $start = 1, $chars = null) {
+ $value = self::flattenSingleValue($value);
+ $start = self::flattenSingleValue($start);
+ $chars = self::flattenSingleValue($chars);
+
+ if (function_exists('mb_substr')) {
+ return mb_substr($value, --$start, $chars, 'UTF-8');
+ } else {
+ return substr($value, --$start, $chars);
+ }
+ } // function MID()
+
+
+ /**
+ * REPLACE
+ *
+ * @param string $value Value
+ * @param int $start Start character
+ * @param int $chars Number of characters
+ * @return string
+ */
+ public static function REPLACE($oldText = '', $start = 1, $chars = null, $newText) {
+ $oldText = self::flattenSingleValue($oldText);
+ $start = self::flattenSingleValue($start);
+ $chars = self::flattenSingleValue($chars);
+ $newText = self::flattenSingleValue($newText);
+
+ $left = self::LEFT($oldText,$start-1);
+ $right = self::RIGHT($oldText,self::STRINGLENGTH($oldText)-($start+$chars)+1);
+
+ return $left.$newText.$right;
+ } // function REPLACE()
+
+
+ /**
+ * RETURNSTRING
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function RETURNSTRING($testValue = '') {
+ $testValue = self::flattenSingleValue($testValue);
+
+ if (is_string($testValue)) {
+ return $testValue;
+ }
+ return Null;
+ } // function RETURNSTRING()
+
+
+ /**
+ * FIXEDFORMAT
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function FIXEDFORMAT($value,$decimals=2,$no_commas=false) {
+ $value = self::flattenSingleValue($value);
+ $decimals = self::flattenSingleValue($decimals);
+ $no_commas = self::flattenSingleValue($no_commas);
+
+ $valueResult = round($value,$decimals);
+ if ($decimals < 0) { $decimals = 0; }
+ if (!$no_commas) {
+ $valueResult = number_format($valueResult,$decimals);
+ }
+
+ return (string) $valueResult;
+ } // function FIXEDFORMAT()
+
+
+ /**
+ * TEXTFORMAT
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function TEXTFORMAT($value,$format) {
+ $value = self::flattenSingleValue($value);
+ $format = self::flattenSingleValue($format);
+
+ return (string) PHPExcel_Style_NumberFormat::toFormattedString($value,$format);
+ } // function TEXTFORMAT()
+
+
+ /**
+ * TRIMSPACES
+ *
+ * @param mixed $value Value to check
+ * @return string
+ */
+ public static function TRIMSPACES($stringValue = '') {
+ $stringValue = self::flattenSingleValue($stringValue);
+
+ if (is_string($stringValue) || is_numeric($stringValue)) {
+ return trim(preg_replace('/ +/',' ',$stringValue));
+ }
+ return Null;
+ } // function TRIMSPACES()
+
+
+ private static $_invalidChars = Null;
+
+ /**
+ * TRIMNONPRINTABLE
+ *
+ * @param mixed $value Value to check
+ * @return string
+ */
+ public static function TRIMNONPRINTABLE($stringValue = '') {
+ $stringValue = self::flattenSingleValue($stringValue);
+
+ if (self::$_invalidChars == Null) {
+ self::$_invalidChars = range(chr(0),chr(31));
+ }
+
+ if (is_string($stringValue) || is_numeric($stringValue)) {
+ return str_replace(self::$_invalidChars,'',trim($stringValue,"\x00..\x1F"));
+ }
+ return Null;
+ } // function TRIMNONPRINTABLE()
+
+
+ /**
+ * ERROR_TYPE
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function ERROR_TYPE($value = '') {
+ $value = self::flattenSingleValue($value);
+
+ $i = 1;
+ foreach(self::$_errorCodes as $errorCode) {
+ if ($value == $errorCode) {
+ return $i;
+ }
+ ++$i;
+ }
+ return self::$_errorCodes['na'];
+ } // function ERROR_TYPE()
+
+
+ /**
+ * IS_BLANK
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_BLANK($value = null) {
+ if (!is_null($value)) {
+ $value = self::flattenSingleValue($value);
+ }
+
+ return is_null($value);
+ } // function IS_BLANK()
+
+
+ /**
+ * IS_ERR
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_ERR($value = '') {
+ $value = self::flattenSingleValue($value);
+
+ return self::IS_ERROR($value) && (!self::IS_NA($value));
+ } // function IS_ERR()
+
+
+ /**
+ * IS_ERROR
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_ERROR($value = '') {
+ $value = self::flattenSingleValue($value);
+
+ return in_array($value, array_values(self::$_errorCodes));
+ } // function IS_ERROR()
+
+
+ /**
+ * IS_NA
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_NA($value = '') {
+ $value = self::flattenSingleValue($value);
+
+ return ($value === self::$_errorCodes['na']);
+ } // function IS_NA()
+
+
+ /**
+ * IS_EVEN
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_EVEN($value = 0) {
+ $value = self::flattenSingleValue($value);
+
+ if ((is_bool($value)) || ((is_string($value)) && (!is_numeric($value)))) {
+ return self::$_errorCodes['value'];
+ }
+ return ($value % 2 == 0);
+ } // function IS_EVEN()
+
+
+ /**
+ * IS_ODD
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_ODD($value = null) {
+ $value = self::flattenSingleValue($value);
+
+ if ((is_bool($value)) || ((is_string($value)) && (!is_numeric($value)))) {
+ return self::$_errorCodes['value'];
+ }
+ return (abs($value) % 2 == 1);
+ } // function IS_ODD()
+
+
+ /**
+ * IS_NUMBER
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_NUMBER($value = 0) {
+ $value = self::flattenSingleValue($value);
+
+ if (is_string($value)) {
+ return False;
+ }
+ return is_numeric($value);
+ } // function IS_NUMBER()
+
+
+ /**
+ * IS_LOGICAL
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_LOGICAL($value = true) {
+ $value = self::flattenSingleValue($value);
+
+ return is_bool($value);
+ } // function IS_LOGICAL()
+
+
+ /**
+ * IS_TEXT
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_TEXT($value = '') {
+ $value = self::flattenSingleValue($value);
+
+ return is_string($value);
+ } // function IS_TEXT()
+
+
+ /**
+ * IS_NONTEXT
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_NONTEXT($value = '') {
+ return !self::IS_TEXT($value);
+ } // function IS_NONTEXT()
+
+
+ /**
+ * VERSION
+ *
+ * @return string Version information
+ */
+ public static function VERSION() {
+ return 'PHPExcel 1.7.0, 2009-08-10';
+ } // function VERSION()
+
+
+ /**
+ * DATE
+ *
+ * @param long $year
+ * @param long $month
+ * @param long $day
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function DATE($year = 0, $month = 1, $day = 1) {
+ $year = (integer) self::flattenSingleValue($year);
+ $month = (integer) self::flattenSingleValue($month);
+ $day = (integer) self::flattenSingleValue($day);
+
+ $baseYear = PHPExcel_Shared_Date::getExcelCalendar();
+ // Validate parameters
+ if ($year < ($baseYear-1900)) {
+ return self::$_errorCodes['num'];
+ }
+ if ((($baseYear-1900) != 0) && ($year < $baseYear) && ($year >= 1900)) {
+ return self::$_errorCodes['num'];
+ }
+
+ if (($year < $baseYear) && ($year >= ($baseYear-1900))) {
+ $year += 1900;
+ }
+
+ if ($month < 1) {
+ // Handle year/month adjustment if month < 1
+ --$month;
+ $year += ceil($month / 12) - 1;
+ $month = 13 - abs($month % 12);
+ } elseif ($month > 12) {
+ // Handle year/month adjustment if month > 12
+ $year += floor($month / 12);
+ $month = ($month % 12);
+ }
+
+ // Re-validate the year parameter after adjustments
+ if (($year < $baseYear) || ($year >= 10000)) {
+ return self::$_errorCodes['num'];
+ }
+
+ // Execute function
+ $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($year, $month, $day);
+ switch (self::getReturnDateType()) {
+ case self::RETURNDATE_EXCEL : return (float) $excelDateValue;
+ break;
+ case self::RETURNDATE_PHP_NUMERIC : return (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateValue);
+ break;
+ case self::RETURNDATE_PHP_OBJECT : return PHPExcel_Shared_Date::ExcelToPHPObject($excelDateValue);
+ break;
+ }
+ } // function DATE()
+
+
+ /**
+ * TIME
+ *
+ * @param long $hour
+ * @param long $minute
+ * @param long $second
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function TIME($hour = 0, $minute = 0, $second = 0) {
+ $hour = self::flattenSingleValue($hour);
+ $minute = self::flattenSingleValue($minute);
+ $second = self::flattenSingleValue($second);
+
+ if ($hour == '') { $hour = 0; }
+ if ($minute == '') { $minute = 0; }
+ if ($second == '') { $second = 0; }
+
+ if ((!is_numeric($hour)) || (!is_numeric($minute)) || (!is_numeric($second))) {
+ return self::$_errorCodes['value'];
+ }
+ $hour = (integer) $hour;
+ $minute = (integer) $minute;
+ $second = (integer) $second;
+
+ if ($second < 0) {
+ $minute += floor($second / 60);
+ $second = 60 - abs($second % 60);
+ if ($second == 60) { $second = 0; }
+ } elseif ($second >= 60) {
+ $minute += floor($second / 60);
+ $second = $second % 60;
+ }
+ if ($minute < 0) {
+ $hour += floor($minute / 60);
+ $minute = 60 - abs($minute % 60);
+ if ($minute == 60) { $minute = 0; }
+ } elseif ($minute >= 60) {
+ $hour += floor($minute / 60);
+ $minute = $minute % 60;
+ }
+
+ if ($hour > 23) {
+ $hour = $hour % 24;
+ } elseif ($hour < 0) {
+ return self::$_errorCodes['num'];
+ }
+
+ // Execute function
+ switch (self::getReturnDateType()) {
+ case self::RETURNDATE_EXCEL : $date = 0;
+ $calendar = PHPExcel_Shared_Date::getExcelCalendar();
+ if ($calendar != PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900) {
+ $date = 1;
+ }
+ return (float) PHPExcel_Shared_Date::FormattedPHPToExcel($calendar, 1, $date, $hour, $minute, $second);
+ break;
+ case self::RETURNDATE_PHP_NUMERIC : return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::FormattedPHPToExcel(1970, 1, 1, $hour-1, $minute, $second)); // -2147468400; // -2147472000 + 3600
+ break;
+ case self::RETURNDATE_PHP_OBJECT : $dayAdjust = 0;
+ if ($hour < 0) {
+ $dayAdjust = floor($hour / 24);
+ $hour = 24 - abs($hour % 24);
+ if ($hour == 24) { $hour = 0; }
+ } elseif ($hour >= 24) {
+ $dayAdjust = floor($hour / 24);
+ $hour = $hour % 24;
+ }
+ $phpDateObject = new DateTime('1900-01-01 '.$hour.':'.$minute.':'.$second);
+ if ($dayAdjust != 0) {
+ $phpDateObject->modify($dayAdjust.' days');
+ }
+ return $phpDateObject;
+ break;
+ }
+ } // function TIME()
+
+
+ /**
+ * DATEVALUE
+ *
+ * @param string $dateValue
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function DATEVALUE($dateValue = 1) {
+ $dateValue = str_replace(array('/','.',' '),array('-','-','-'),self::flattenSingleValue(trim($dateValue,'"')));
+
+ $yearFound = false;
+ $t1 = explode('-',$dateValue);
+ foreach($t1 as &$t) {
+ if ((is_numeric($t)) && (($t > 31) && ($t < 100))) {
+ if ($yearFound) {
+ return self::$_errorCodes['value'];
+ } else {
+ $t += 1900;
+ $yearFound = true;
+ }
+ }
+ }
+ unset($t);
+ $dateValue = implode('-',$t1);
+
+ $PHPDateArray = date_parse($dateValue);
+ if (($PHPDateArray === False) || ($PHPDateArray['error_count'] > 0)) {
+ $testVal1 = strtok($dateValue,'- ');
+ if ($testVal1 !== False) {
+ $testVal2 = strtok('- ');
+ if ($testVal2 !== False) {
+ $testVal3 = strtok('- ');
+ if ($testVal3 === False) {
+ $testVal3 = strftime('%Y');
+ }
+ } else {
+ return self::$_errorCodes['value'];
+ }
+ } else {
+ return self::$_errorCodes['value'];
+ }
+ $PHPDateArray = date_parse($testVal1.'-'.$testVal2.'-'.$testVal3);
+ if (($PHPDateArray === False) || ($PHPDateArray['error_count'] > 0)) {
+ $PHPDateArray = date_parse($testVal2.'-'.$testVal1.'-'.$testVal3);
+ if (($PHPDateArray === False) || ($PHPDateArray['error_count'] > 0)) {
+ return self::$_errorCodes['value'];
+ }
+ }
+ }
+
+ if (($PHPDateArray !== False) && ($PHPDateArray['error_count'] == 0)) {
+ // Execute function
+ if ($PHPDateArray['year'] == '') { $PHPDateArray['year'] = strftime('%Y'); }
+ if ($PHPDateArray['month'] == '') { $PHPDateArray['month'] = strftime('%m'); }
+ if ($PHPDateArray['day'] == '') { $PHPDateArray['day'] = strftime('%d'); }
+ $excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
+
+ switch (self::getReturnDateType()) {
+ case self::RETURNDATE_EXCEL : return (float) $excelDateValue;
+ break;
+ case self::RETURNDATE_PHP_NUMERIC : return (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateValue);
+ break;
+ case self::RETURNDATE_PHP_OBJECT : return new DateTime($PHPDateArray['year'].'-'.$PHPDateArray['month'].'-'.$PHPDateArray['day'].' 00:00:00');
+ break;
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function DATEVALUE()
+
+
+ /**
+ * _getDateValue
+ *
+ * @param string $dateValue
+ * @return mixed Excel date/time serial value, or string if error
+ */
+ private static function _getDateValue($dateValue) {
+ if (!is_numeric($dateValue)) {
+ if ((is_string($dateValue)) && (self::$compatibilityMode == self::COMPATIBILITY_GNUMERIC)) {
+ return self::$_errorCodes['value'];
+ }
+ if ((is_object($dateValue)) && ($dateValue instanceof PHPExcel_Shared_Date::$dateTimeObjectType)) {
+ $dateValue = PHPExcel_Shared_Date::PHPToExcel($dateValue);
+ } else {
+ $saveReturnDateType = self::getReturnDateType();
+ self::setReturnDateType(self::RETURNDATE_EXCEL);
+ $dateValue = self::DATEVALUE($dateValue);
+ self::setReturnDateType($saveReturnDateType);
+ }
+ }
+ return $dateValue;
+ } // function _getDateValue()
+
+
+ /**
+ * TIMEVALUE
+ *
+ * @param string $timeValue
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function TIMEVALUE($timeValue) {
+ $timeValue = self::flattenSingleValue($timeValue);
+
+ if ((($PHPDateArray = date_parse($timeValue)) !== False) && ($PHPDateArray['error_count'] == 0)) {
+ if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
+ $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
+ } else {
+ $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900,1,1,$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']) - 1;
+ }
+
+ switch (self::getReturnDateType()) {
+ case self::RETURNDATE_EXCEL : return (float) $excelDateValue;
+ break;
+ case self::RETURNDATE_PHP_NUMERIC : return (integer) $phpDateValue = PHPExcel_Shared_Date::ExcelToPHP($excelDateValue+25569) - 3600;;
+ break;
+ case self::RETURNDATE_PHP_OBJECT : return new DateTime('1900-01-01 '.$PHPDateArray['hour'].':'.$PHPDateArray['minute'].':'.$PHPDateArray['second']);
+ break;
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function TIMEVALUE()
+
+
+ /**
+ * _getTimeValue
+ *
+ * @param string $timeValue
+ * @return mixed Excel date/time serial value, or string if error
+ */
+ private static function _getTimeValue($timeValue) {
+ $saveReturnDateType = self::getReturnDateType();
+ self::setReturnDateType(self::RETURNDATE_EXCEL);
+ $timeValue = self::TIMEVALUE($timeValue);
+ self::setReturnDateType($saveReturnDateType);
+ return $timeValue;
+ } // function _getTimeValue()
+
+
+ /**
+ * DATETIMENOW
+ *
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function DATETIMENOW() {
+ $saveTimeZone = date_default_timezone_get();
+ date_default_timezone_set('UTC');
+ $retValue = False;
+ switch (self::getReturnDateType()) {
+ case self::RETURNDATE_EXCEL : $retValue = (float) PHPExcel_Shared_Date::PHPToExcel(time());
+ break;
+ case self::RETURNDATE_PHP_NUMERIC : $retValue = (integer) time();
+ break;
+ case self::RETURNDATE_PHP_OBJECT : $retValue = new DateTime();
+ break;
+ }
+ date_default_timezone_set($saveTimeZone);
+
+ return $retValue;
+ } // function DATETIMENOW()
+
+
+ /**
+ * DATENOW
+ *
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function DATENOW() {
+ $saveTimeZone = date_default_timezone_get();
+ date_default_timezone_set('UTC');
+ $retValue = False;
+ $excelDateTime = floor(PHPExcel_Shared_Date::PHPToExcel(time()));
+ switch (self::getReturnDateType()) {
+ case self::RETURNDATE_EXCEL : $retValue = (float) $excelDateTime;
+ break;
+ case self::RETURNDATE_PHP_NUMERIC : $retValue = (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateTime) - 3600;
+ break;
+ case self::RETURNDATE_PHP_OBJECT : $retValue = PHPExcel_Shared_Date::ExcelToPHPObject($excelDateTime);
+ break;
+ }
+ date_default_timezone_set($saveTimeZone);
+
+ return $retValue;
+ } // function DATENOW()
+
+
+ private static function _isLeapYear($year) {
+ return ((($year % 4) == 0) && (($year % 100) != 0) || (($year % 400) == 0));
+ } // function _isLeapYear()
+
+
+ private static function _dateDiff360($startDay, $startMonth, $startYear, $endDay, $endMonth, $endYear, $methodUS) {
+ if ($startDay == 31) {
+ --$startDay;
+ } elseif ($methodUS && ($startMonth == 2 && ($startDay == 29 || ($startDay == 28 && !self::_isLeapYear($startYear))))) {
+ $startDay = 30;
+ }
+ if ($endDay == 31) {
+ if ($methodUS && $startDay != 30) {
+ $endDay = 1;
+ if ($endMonth == 12) {
+ ++$endYear;
+ $endMonth = 1;
+ } else {
+ ++$endMonth;
+ }
+ } else {
+ $endDay = 30;
+ }
+ }
+
+ return $endDay + $endMonth * 30 + $endYear * 360 - $startDay - $startMonth * 30 - $startYear * 360;
+ } // function _dateDiff360()
+
+
+ /**
+ * DAYS360
+ *
+ * @param long $startDate Excel date serial value or a standard date string
+ * @param long $endDate Excel date serial value or a standard date string
+ * @param boolean $method US or European Method
+ * @return long PHP date/time serial
+ */
+ public static function DAYS360($startDate = 0, $endDate = 0, $method = false) {
+ $startDate = self::flattenSingleValue($startDate);
+ $endDate = self::flattenSingleValue($endDate);
+
+ if (is_string($startDate = self::_getDateValue($startDate))) {
+ return self::$_errorCodes['value'];
+ }
+ if (is_string($endDate = self::_getDateValue($endDate))) {
+ return self::$_errorCodes['value'];
+ }
+
+ // Execute function
+ $PHPStartDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($startDate);
+ $startDay = $PHPStartDateObject->format('j');
+ $startMonth = $PHPStartDateObject->format('n');
+ $startYear = $PHPStartDateObject->format('Y');
+
+ $PHPEndDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($endDate);
+ $endDay = $PHPEndDateObject->format('j');
+ $endMonth = $PHPEndDateObject->format('n');
+ $endYear = $PHPEndDateObject->format('Y');
+
+ return self::_dateDiff360($startDay, $startMonth, $startYear, $endDay, $endMonth, $endYear, !$method);
+ } // function DAYS360()
+
+
+ /**
+ * DATEDIF
+ *
+ * @param long $startDate Excel date serial value or a standard date string
+ * @param long $endDate Excel date serial value or a standard date string
+ * @param string $unit
+ * @return long Interval between the dates
+ */
+ public static function DATEDIF($startDate = 0, $endDate = 0, $unit = 'D') {
+ $startDate = self::flattenSingleValue($startDate);
+ $endDate = self::flattenSingleValue($endDate);
+ $unit = strtoupper(self::flattenSingleValue($unit));
+
+ if (is_string($startDate = self::_getDateValue($startDate))) {
+ return self::$_errorCodes['value'];
+ }
+ if (is_string($endDate = self::_getDateValue($endDate))) {
+ return self::$_errorCodes['value'];
+ }
+
+ // Validate parameters
+ if ($startDate >= $endDate) {
+ return self::$_errorCodes['num'];
+ }
+
+ // Execute function
+ $difference = $endDate - $startDate;
+
+ $PHPStartDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($startDate);
+ $startDays = $PHPStartDateObject->format('j');
+ $startMonths = $PHPStartDateObject->format('n');
+ $startYears = $PHPStartDateObject->format('Y');
+
+ $PHPEndDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($endDate);
+ $endDays = $PHPEndDateObject->format('j');
+ $endMonths = $PHPEndDateObject->format('n');
+ $endYears = $PHPEndDateObject->format('Y');
+
+ $retVal = self::$_errorCodes['num'];
+ switch ($unit) {
+ case 'D':
+ $retVal = intval($difference);
+ break;
+ case 'M':
+ $retVal = intval($endMonths - $startMonths) + (intval($endYears - $startYears) * 12);
+ // We're only interested in full months
+ if ($endDays < $startDays) {
+ --$retVal;
+ }
+ break;
+ case 'Y':
+ $retVal = intval($endYears - $startYears);
+ // We're only interested in full months
+ if ($endMonths < $startMonths) {
+ --$retVal;
+ } elseif (($endMonths == $startMonths) && ($endDays < $startDays)) {
+ --$retVal;
+ }
+ break;
+ case 'MD':
+ if ($endDays < $startDays) {
+ $retVal = $endDays;
+ $PHPEndDateObject->modify('-'.$endDays.' days');
+ $adjustDays = $PHPEndDateObject->format('j');
+ if ($adjustDays > $startDays) {
+ $retVal += ($adjustDays - $startDays);
+ }
+ } else {
+ $retVal = $endDays - $startDays;
+ }
+ break;
+ case 'YM':
+ $retVal = abs(intval($endMonths - $startMonths));
+ // We're only interested in full months
+ if ($endDays < $startDays) {
+ --$retVal;
+ }
+ break;
+ case 'YD':
+ $retVal = intval($difference);
+ if ($endYears > $startYears) {
+ while ($endYears > $startYears) {
+ $PHPEndDateObject->modify('-1 year');
+ $endYears = $PHPEndDateObject->format('Y');
+ }
+ $retVal = abs($PHPEndDateObject->format('z') - $PHPStartDateObject->format('z'));
+ }
+ break;
+ }
+ return $retVal;
+ } // function DATEDIF()
+
+
+ /**
+ * YEARFRAC
+ *
+ * Calculates the fraction of the year represented by the number of whole days between two dates (the start_date and the
+ * end_date). Use the YEARFRAC worksheet function to identify the proportion of a whole year's benefits or obligations
+ * to assign to a specific term.
+ *
+ * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer) or date object, or a standard date string
+ * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer) or date object, or a standard date string
+ * @param integer $method Method used for the calculation
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float fraction of the year
+ */
+ public static function YEARFRAC($startDate = 0, $endDate = 0, $method = 0) {
+ $startDate = self::flattenSingleValue($startDate);
+ $endDate = self::flattenSingleValue($endDate);
+ $method = self::flattenSingleValue($method);
+
+ if (is_string($startDate = self::_getDateValue($startDate))) {
+ return self::$_errorCodes['value'];
+ }
+ if (is_string($endDate = self::_getDateValue($endDate))) {
+ return self::$_errorCodes['value'];
+ }
+
+ if ((is_numeric($method)) && (!is_string($method))) {
+ switch($method) {
+ case 0 :
+ return self::DAYS360($startDate,$endDate) / 360;
+ break;
+ case 1 :
+ $startYear = self::YEAR($startDate);
+ $endYear = self::YEAR($endDate);
+ $leapDay = 0;
+ if (self::_isLeapYear($startYear) || self::_isLeapYear($endYear)) {
+ $leapDay = 1;
+ }
+ return self::DATEDIF($startDate,$endDate) / (365 + $leapDay);
+ break;
+ case 2 :
+ return self::DATEDIF($startDate,$endDate) / 360;
+ break;
+ case 3 :
+ return self::DATEDIF($startDate,$endDate) / 365;
+ break;
+ case 4 :
+ return self::DAYS360($startDate,$endDate,True) / 360;
+ break;
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function YEARFRAC()
+
+
+ /**
+ * NETWORKDAYS
+ *
+ * @param mixed Start date
+ * @param mixed End date
+ * @param array of mixed Optional Date Series
+ * @return long Interval between the dates
+ */
+ public static function NETWORKDAYS($startDate,$endDate) {
+ // Flush the mandatory start and end date that are referenced in the function definition
+ $dateArgs = self::flattenArray(func_get_args());
+ array_shift($dateArgs);
+ array_shift($dateArgs);
+
+ // Validate the start and end dates
+ if (is_string($startDate = $sDate = self::_getDateValue($startDate))) {
+ return self::$_errorCodes['value'];
+ }
+ if (is_string($endDate = $eDate = self::_getDateValue($endDate))) {
+ return self::$_errorCodes['value'];
+ }
+
+ if ($sDate > $eDate) {
+ $startDate = $eDate;
+ $endDate = $sDate;
+ }
+
+ // Execute function
+ $startDoW = 6 - self::DAYOFWEEK($startDate,2);
+ if ($startDoW < 0) { $startDoW = 0; }
+ $endDoW = self::DAYOFWEEK($endDate,2);
+ if ($endDoW >= 6) { $endDoW = 0; }
+
+ $wholeWeekDays = floor(($endDate - $startDate) / 7) * 5;
+ $partWeekDays = $endDoW + $startDoW;
+ if ($partWeekDays > 5) {
+ $partWeekDays -= 5;
+ }
+
+ // Test any extra holiday parameters
+ $holidayCountedArray = array();
+ foreach ($dateArgs as $holidayDate) {
+ if (is_string($holidayDate = self::_getDateValue($holidayDate))) {
+ return self::$_errorCodes['value'];
+ }
+ if (($holidayDate >= $startDate) && ($holidayDate <= $endDate)) {
+ if ((self::DAYOFWEEK($holidayDate,2) < 6) && (!in_array($holidayDate,$holidayCountedArray))) {
+ --$partWeekDays;
+ $holidayCountedArray[] = $holidayDate;
+ }
+ }
+ }
+
+ if ($sDate > $eDate) {
+ return 0 - ($wholeWeekDays + $partWeekDays);
+ }
+ return $wholeWeekDays + $partWeekDays;
+ } // function NETWORKDAYS()
+
+
+ /**
+ * WORKDAY
+ *
+ * @param mixed Start date
+ * @param mixed number of days for adjustment
+ * @param array of mixed Optional Date Series
+ * @return long Interval between the dates
+ */
+ public static function WORKDAY($startDate,$endDays) {
+ $dateArgs = self::flattenArray(func_get_args());
+
+ array_shift($dateArgs);
+ array_shift($dateArgs);
+
+ if (is_string($startDate = self::_getDateValue($startDate))) {
+ return self::$_errorCodes['value'];
+ }
+ if (!is_numeric($endDays)) {
+ return self::$_errorCodes['value'];
+ }
+ $endDate = (float) $startDate + (floor($endDays / 5) * 7) + ($endDays % 5);
+ if ($endDays < 0) {
+ $endDate += 7;
+ }
+
+ $endDoW = self::DAYOFWEEK($endDate,3);
+ if ($endDoW >= 5) {
+ if ($endDays >= 0) {
+ $endDate += (7 - $endDoW);
+ } else {
+ $endDate -= ($endDoW - 5);
+ }
+ }
+
+ // Test any extra holiday parameters
+ if (count($dateArgs) > 0) {
+ $holidayCountedArray = $holidayDates = array();
+ foreach ($dateArgs as $holidayDate) {
+ if (is_string($holidayDate = self::_getDateValue($holidayDate))) {
+ return self::$_errorCodes['value'];
+ }
+ $holidayDates[] = $holidayDate;
+ }
+ if ($endDays >= 0) {
+ sort($holidayDates, SORT_NUMERIC);
+ } else {
+ rsort($holidayDates, SORT_NUMERIC);
+ }
+ foreach ($holidayDates as $holidayDate) {
+ if ($endDays >= 0) {
+ if (($holidayDate >= $startDate) && ($holidayDate <= $endDate)) {
+ if ((self::DAYOFWEEK($holidayDate,2) < 6) && (!in_array($holidayDate,$holidayCountedArray))) {
+ ++$endDate;
+ $holidayCountedArray[] = $holidayDate;
+ }
+ }
+ } else {
+ if (($holidayDate <= $startDate) && ($holidayDate >= $endDate)) {
+ if ((self::DAYOFWEEK($holidayDate,2) < 6) && (!in_array($holidayDate,$holidayCountedArray))) {
+ --$endDate;
+ $holidayCountedArray[] = $holidayDate;
+ }
+ }
+ }
+ $endDoW = self::DAYOFWEEK($endDate,3);
+ if ($endDoW >= 5) {
+ if ($endDays >= 0) {
+ $endDate += (7 - $endDoW);
+ } else {
+ $endDate -= ($endDoW - 5);
+ }
+ }
+ }
+ }
+
+ switch (self::getReturnDateType()) {
+ case self::RETURNDATE_EXCEL : return (float) $endDate;
+ break;
+ case self::RETURNDATE_PHP_NUMERIC : return (integer) PHPExcel_Shared_Date::ExcelToPHP($endDate);
+ break;
+ case self::RETURNDATE_PHP_OBJECT : return PHPExcel_Shared_Date::ExcelToPHPObject($endDate);
+ break;
+ }
+ } // function WORKDAY()
+
+
+ /**
+ * DAYOFMONTH
+ *
+ * @param long $dateValue Excel date serial value or a standard date string
+ * @return int Day
+ */
+ public static function DAYOFMONTH($dateValue = 1) {
+ $dateValue = self::flattenSingleValue($dateValue);
+
+ if (is_string($dateValue = self::_getDateValue($dateValue))) {
+ return self::$_errorCodes['value'];
+ }
+
+ // Execute function
+ $PHPDateObject = &PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
+
+ return (int) $PHPDateObject->format('j');
+ } // function DAYOFMONTH()
+
+
+ /**
+ * DAYOFWEEK
+ *
+ * @param long $dateValue Excel date serial value or a standard date string
+ * @return int Day
+ */
+ public static function DAYOFWEEK($dateValue = 1, $style = 1) {
+ $dateValue = self::flattenSingleValue($dateValue);
+ $style = floor(self::flattenSingleValue($style));
+
+ if (is_string($dateValue = self::_getDateValue($dateValue))) {
+ return self::$_errorCodes['value'];
+ }
+
+ // Execute function
+ $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
+ $DoW = $PHPDateObject->format('w');
+
+ $firstDay = 1;
+ switch ($style) {
+ case 1: ++$DoW;
+ break;
+ case 2: if ($DoW == 0) { $DoW = 7; }
+ break;
+ case 3: if ($DoW == 0) { $DoW = 7; }
+ $firstDay = 0;
+ --$DoW;
+ break;
+ default:
+ }
+ if (self::$compatibilityMode == self::COMPATIBILITY_EXCEL) {
+ // Test for Excel's 1900 leap year, and introduce the error as required
+ if (($PHPDateObject->format('Y') == 1900) && ($PHPDateObject->format('n') <= 2)) {
+ --$DoW;
+ if ($DoW < $firstDay) {
+ $DoW += 7;
+ }
+ }
+ }
+
+ return (int) $DoW;
+ } // function DAYOFWEEK()
+
+
+ /**
+ * WEEKOFYEAR
+ *
+ * @param long $dateValue Excel date serial value or a standard date string
+ * @param boolean $method Week begins on Sunday or Monday
+ * @return int Week Number
+ */
+ public static function WEEKOFYEAR($dateValue = 1, $method = 1) {
+ $dateValue = self::flattenSingleValue($dateValue);
+ $method = floor(self::flattenSingleValue($method));
+
+ if (!is_numeric($method)) {
+ return self::$_errorCodes['value'];
+ } elseif (($method < 1) || ($method > 2)) {
+ return self::$_errorCodes['num'];
+ }
+
+ if (is_string($dateValue = self::_getDateValue($dateValue))) {
+ return self::$_errorCodes['value'];
+ }
+
+ // Execute function
+ $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
+ $dayOfYear = $PHPDateObject->format('z');
+ $dow = $PHPDateObject->format('w');
+ $PHPDateObject->modify('-'.$dayOfYear.' days');
+ $dow = $PHPDateObject->format('w');
+ $daysInFirstWeek = 7 - (($dow + (2 - $method)) % 7);
+ $dayOfYear -= $daysInFirstWeek;
+ $weekOfYear = ceil($dayOfYear / 7) + 1;
+
+ return (int) $weekOfYear;
+ } // function WEEKOFYEAR()
+
+
+ /**
+ * MONTHOFYEAR
+ *
+ * @param long $dateValue Excel date serial value or a standard date string
+ * @return int Month
+ */
+ public static function MONTHOFYEAR($dateValue = 1) {
+ $dateValue = self::flattenSingleValue($dateValue);
+
+ if (is_string($dateValue = self::_getDateValue($dateValue))) {
+ return self::$_errorCodes['value'];
+ }
+
+ // Execute function
+ $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
+
+ return (int) $PHPDateObject->format('n');
+ } // function MONTHOFYEAR()
+
+
+ /**
+ * YEAR
+ *
+ * @param long $dateValue Excel date serial value or a standard date string
+ * @return int Year
+ */
+ public static function YEAR($dateValue = 1) {
+ $dateValue = self::flattenSingleValue($dateValue);
+
+ if (is_string($dateValue = self::_getDateValue($dateValue))) {
+ return self::$_errorCodes['value'];
+ }
+
+ // Execute function
+ $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
+
+ return (int) $PHPDateObject->format('Y');
+ } // function YEAR()
+
+
+ /**
+ * HOUROFDAY
+ *
+ * @param mixed $timeValue Excel time serial value or a standard time string
+ * @return int Hour
+ */
+ public static function HOUROFDAY($timeValue = 0) {
+ $timeValue = self::flattenSingleValue($timeValue);
+
+ if (!is_numeric($timeValue)) {
+ if (self::$compatibilityMode == self::COMPATIBILITY_GNUMERIC) {
+ $testVal = strtok($timeValue,'/-: ');
+ if (strlen($testVal) < strlen($timeValue)) {
+ return self::$_errorCodes['value'];
+ }
+ }
+ $timeValue = self::_getTimeValue($timeValue);
+ if (is_string($timeValue)) {
+ return self::$_errorCodes['value'];
+ }
+ }
+ // Execute function
+ if (is_real($timeValue)) {
+ if ($timeValue >= 1) {
+ $timeValue = fmod($timeValue,1);
+ } elseif ($timeValue < 0.0) {
+ return self::$_errorCodes['num'];
+ }
+ $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue);
+ }
+ return (int) date('G',$timeValue);
+ } // function HOUROFDAY()
+
+
+ /**
+ * MINUTEOFHOUR
+ *
+ * @param long $timeValue Excel time serial value or a standard time string
+ * @return int Minute
+ */
+ public static function MINUTEOFHOUR($timeValue = 0) {
+ $timeValue = $timeTester = self::flattenSingleValue($timeValue);
+
+ if (!is_numeric($timeValue)) {
+ if (self::$compatibilityMode == self::COMPATIBILITY_GNUMERIC) {
+ $testVal = strtok($timeValue,'/-: ');
+ if (strlen($testVal) < strlen($timeValue)) {
+ return self::$_errorCodes['value'];
+ }
+ }
+ $timeValue = self::_getTimeValue($timeValue);
+ if (is_string($timeValue)) {
+ return self::$_errorCodes['value'];
+ }
+ }
+ // Execute function
+ if (is_real($timeValue)) {
+ if ($timeValue >= 1) {
+ $timeValue = fmod($timeValue,1);
+ } elseif ($timeValue < 0.0) {
+ return self::$_errorCodes['num'];
+ }
+ $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue);
+ }
+ return (int) date('i',$timeValue);
+ } // function MINUTEOFHOUR()
+
+
+ /**
+ * SECONDOFMINUTE
+ *
+ * @param long $timeValue Excel time serial value or a standard time string
+ * @return int Second
+ */
+ public static function SECONDOFMINUTE($timeValue = 0) {
+ $timeValue = self::flattenSingleValue($timeValue);
+
+ if (!is_numeric($timeValue)) {
+ if (self::$compatibilityMode == self::COMPATIBILITY_GNUMERIC) {
+ $testVal = strtok($timeValue,'/-: ');
+ if (strlen($testVal) < strlen($timeValue)) {
+ return self::$_errorCodes['value'];
+ }
+ }
+ $timeValue = self::_getTimeValue($timeValue);
+ if (is_string($timeValue)) {
+ return self::$_errorCodes['value'];
+ }
+ }
+ // Execute function
+ if (is_real($timeValue)) {
+ if ($timeValue >= 1) {
+ $timeValue = fmod($timeValue,1);
+ } elseif ($timeValue < 0.0) {
+ return self::$_errorCodes['num'];
+ }
+ $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue);
+ }
+ return (int) date('s',$timeValue);
+ } // function SECONDOFMINUTE()
+
+
+ private static function _adjustDateByMonths($dateValue = 0, $adjustmentMonths = 0) {
+ // Execute function
+ $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
+ $oMonth = (int) $PHPDateObject->format('m');
+ $oYear = (int) $PHPDateObject->format('Y');
+
+ $adjustmentMonthsString = (string) $adjustmentMonths;
+ if ($adjustmentMonths > 0) {
+ $adjustmentMonthsString = '+'.$adjustmentMonths;
+ }
+ if ($adjustmentMonths != 0) {
+ $PHPDateObject->modify($adjustmentMonthsString.' months');
+ }
+ $nMonth = (int) $PHPDateObject->format('m');
+ $nYear = (int) $PHPDateObject->format('Y');
+
+ $monthDiff = ($nMonth - $oMonth) + (($nYear - $oYear) * 12);
+ if ($monthDiff != $adjustmentMonths) {
+ $adjustDays = (int) $PHPDateObject->format('d');
+ $adjustDaysString = '-'.$adjustDays.' days';
+ $PHPDateObject->modify($adjustDaysString);
+ }
+ return $PHPDateObject;
+ } // function _adjustDateByMonths()
+
+
+ /**
+ * EDATE
+ *
+ * Returns the serial number that represents the date that is the indicated number of months before or after a specified date
+ * (the start_date). Use EDATE to calculate maturity dates or due dates that fall on the same day of the month as the date of issue.
+ *
+ * @param long $dateValue Excel date serial value or a standard date string
+ * @param int $adjustmentMonths Number of months to adjust by
+ * @return long Excel date serial value
+ */
+ public static function EDATE($dateValue = 1, $adjustmentMonths = 0) {
+ $dateValue = self::flattenSingleValue($dateValue);
+ $adjustmentMonths = floor(self::flattenSingleValue($adjustmentMonths));
+
+ if (!is_numeric($adjustmentMonths)) {
+ return self::$_errorCodes['value'];
+ }
+
+ if (is_string($dateValue = self::_getDateValue($dateValue))) {
+ return self::$_errorCodes['value'];
+ }
+
+ // Execute function
+ $PHPDateObject = self::_adjustDateByMonths($dateValue,$adjustmentMonths);
+
+ switch (self::getReturnDateType()) {
+ case self::RETURNDATE_EXCEL : return (float) PHPExcel_Shared_Date::PHPToExcel($PHPDateObject);
+ break;
+ case self::RETURNDATE_PHP_NUMERIC : return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
+ break;
+ case self::RETURNDATE_PHP_OBJECT : return $PHPDateObject;
+ break;
+ }
+ } // function EDATE()
+
+
+ /**
+ * EOMONTH
+ *
+ * Returns the serial number for the last day of the month that is the indicated number of months before or after start_date.
+ * Use EOMONTH to calculate maturity dates or due dates that fall on the last day of the month.
+ *
+ * @param long $dateValue Excel date serial value or a standard date string
+ * @param int $adjustmentMonths Number of months to adjust by
+ * @return long Excel date serial value
+ */
+ public static function EOMONTH($dateValue = 1, $adjustmentMonths = 0) {
+ $dateValue = self::flattenSingleValue($dateValue);
+ $adjustmentMonths = floor(self::flattenSingleValue($adjustmentMonths));
+
+ if (!is_numeric($adjustmentMonths)) {
+ return self::$_errorCodes['value'];
+ }
+
+ if (is_string($dateValue = self::_getDateValue($dateValue))) {
+ return self::$_errorCodes['value'];
+ }
+
+ // Execute function
+ $PHPDateObject = self::_adjustDateByMonths($dateValue,$adjustmentMonths+1);
+ $adjustDays = (int) $PHPDateObject->format('d');
+ $adjustDaysString = '-'.$adjustDays.' days';
+ $PHPDateObject->modify($adjustDaysString);
+
+ switch (self::getReturnDateType()) {
+ case self::RETURNDATE_EXCEL : return (float) PHPExcel_Shared_Date::PHPToExcel($PHPDateObject);
+ break;
+ case self::RETURNDATE_PHP_NUMERIC : return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
+ break;
+ case self::RETURNDATE_PHP_OBJECT : return $PHPDateObject;
+ break;
+ }
+ } // function EOMONTH()
+
+
+ /**
+ * TRUNC
+ *
+ * Truncates value to the number of fractional digits by number_digits.
+ *
+ * @param float $value
+ * @param int $number_digits
+ * @return float Truncated value
+ */
+ public static function TRUNC($value = 0, $number_digits = 0) {
+ $value = self::flattenSingleValue($value);
+ $number_digits = self::flattenSingleValue($number_digits);
+
+ // Validate parameters
+ if ($number_digits < 0) {
+ return self::$_errorCodes['value'];
+ }
+
+ // Truncate
+ if ($number_digits > 0) {
+ $value = $value * pow(10, $number_digits);
+ }
+ $value = intval($value);
+ if ($number_digits > 0) {
+ $value = $value / pow(10, $number_digits);
+ }
+
+ // Return
+ return $value;
+ } // function TRUNC()
+
+ /**
+ * POWER
+ *
+ * Computes x raised to the power y.
+ *
+ * @param float $x
+ * @param float $y
+ * @return float
+ */
+ public static function POWER($x = 0, $y = 2) {
+ $x = self::flattenSingleValue($x);
+ $y = self::flattenSingleValue($y);
+
+ // Validate parameters
+ if ($x == 0 && $y <= 0) {
+ return self::$_errorCodes['divisionbyzero'];
+ }
+
+ // Return
+ return pow($x, $y);
+ } // function POWER()
+
+
+ private static function _nbrConversionFormat($xVal,$places) {
+ if (!is_null($places)) {
+ if (strlen($xVal) <= $places) {
+ return substr(str_pad($xVal,$places,'0',STR_PAD_LEFT),-10);
+ } else {
+ return self::$_errorCodes['num'];
+ }
+ }
+
+ return substr($xVal,-10);
+ } // function _nbrConversionFormat()
+
+
+ /**
+ * BINTODEC
+ *
+ * Return a binary value as Decimal.
+ *
+ * @param string $x
+ * @return string
+ */
+ public static function BINTODEC($x) {
+ $x = self::flattenSingleValue($x);
+
+ if (is_bool($x)) {
+ if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return self::$_errorCodes['value'];
+ }
+ }
+ if (self::$compatibilityMode == self::COMPATIBILITY_GNUMERIC) {
+ $x = floor($x);
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[01]/',$x,$out)) {
+ return self::$_errorCodes['num'];
+ }
+ if (strlen($x) > 10) {
+ return self::$_errorCodes['num'];
+ } elseif (strlen($x) == 10) {
+ // Two's Complement
+ $x = substr($x,-9);
+ return '-'.(512-bindec($x));
+ }
+ return bindec($x);
+ } // function BINTODEC()
+
+
+ /**
+ * BINTOHEX
+ *
+ * Return a binary value as Hex.
+ *
+ * @param string $x
+ * @return string
+ */
+ public static function BINTOHEX($x, $places=null) {
+ $x = floor(self::flattenSingleValue($x));
+ $places = self::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return self::$_errorCodes['value'];
+ }
+ }
+ if (self::$compatibilityMode == self::COMPATIBILITY_GNUMERIC) {
+ $x = floor($x);
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[01]/',$x,$out)) {
+ return self::$_errorCodes['num'];
+ }
+ if (strlen($x) > 10) {
+ return self::$_errorCodes['num'];
+ } elseif (strlen($x) == 10) {
+ // Two's Complement
+ return str_repeat('F',8).substr(strtoupper(dechex(bindec(substr($x,-9)))),-2);
+ }
+ $hexVal = (string) strtoupper(dechex(bindec($x)));
+
+ return self::_nbrConversionFormat($hexVal,$places);
+ } // function BINTOHEX()
+
+
+ /**
+ * BINTOOCT
+ *
+ * Return a binary value as Octal.
+ *
+ * @param string $x
+ * @return string
+ */
+ public static function BINTOOCT($x, $places=null) {
+ $x = floor(self::flattenSingleValue($x));
+ $places = self::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return self::$_errorCodes['value'];
+ }
+ }
+ if (self::$compatibilityMode == self::COMPATIBILITY_GNUMERIC) {
+ $x = floor($x);
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[01]/',$x,$out)) {
+ return self::$_errorCodes['num'];
+ }
+ if (strlen($x) > 10) {
+ return self::$_errorCodes['num'];
+ } elseif (strlen($x) == 10) {
+ // Two's Complement
+ return str_repeat('7',7).substr(strtoupper(decoct(bindec(substr($x,-9)))),-3);
+ }
+ $octVal = (string) decoct(bindec($x));
+
+ return self::_nbrConversionFormat($octVal,$places);
+ } // function BINTOOCT()
+
+
+ /**
+ * DECTOBIN
+ *
+ * Return an octal value as binary.
+ *
+ * @param string $x
+ * @return string
+ */
+ public static function DECTOBIN($x, $places=null) {
+ $x = self::flattenSingleValue($x);
+ $places = self::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return self::$_errorCodes['value'];
+ }
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[-0123456789.]/',$x,$out)) {
+ return self::$_errorCodes['value'];
+ }
+ $x = (string) floor($x);
+ $r = decbin($x);
+ if (strlen($r) == 32) {
+ // Two's Complement
+ $r = substr($r,-10);
+ } elseif (strlen($r) > 11) {
+ return self::$_errorCodes['num'];
+ }
+
+ return self::_nbrConversionFormat($r,$places);
+ } // function DECTOBIN()
+
+
+ /**
+ * DECTOOCT
+ *
+ * Return an octal value as binary.
+ *
+ * @param string $x
+ * @return string
+ */
+ public static function DECTOOCT($x, $places=null) {
+ $x = self::flattenSingleValue($x);
+ $places = self::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return self::$_errorCodes['value'];
+ }
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[-0123456789.]/',$x,$out)) {
+ return self::$_errorCodes['value'];
+ }
+ $x = (string) floor($x);
+ $r = decoct($x);
+ if (strlen($r) == 11) {
+ // Two's Complement
+ $r = substr($r,-10);
+ }
+
+ return self::_nbrConversionFormat($r,$places);
+ } // function DECTOOCT()
+
+
+ /**
+ * DECTOHEX
+ *
+ * Return an octal value as binary.
+ *
+ * @param string $x
+ * @return string
+ */
+ public static function DECTOHEX($x, $places=null) {
+ $x = self::flattenSingleValue($x);
+ $places = self::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return self::$_errorCodes['value'];
+ }
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[-0123456789.]/',$x,$out)) {
+ return self::$_errorCodes['value'];
+ }
+ $x = (string) floor($x);
+ $r = strtoupper(dechex($x));
+ if (strlen($r) == 8) {
+ // Two's Complement
+ $r = 'FF'.$r;
+ }
+
+ return self::_nbrConversionFormat($r,$places);
+ } // function DECTOHEX()
+
+
+ /**
+ * HEXTOBIN
+ *
+ * Return a hex value as binary.
+ *
+ * @param string $x
+ * @return string
+ */
+ public static function HEXTOBIN($x, $places=null) {
+ $x = self::flattenSingleValue($x);
+ $places = self::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ return self::$_errorCodes['value'];
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/',strtoupper($x),$out)) {
+ return self::$_errorCodes['num'];
+ }
+ $binVal = decbin(hexdec($x));
+
+ return substr(self::_nbrConversionFormat($binVal,$places),-10);
+ } // function HEXTOBIN()
+
+
+ /**
+ * HEXTOOCT
+ *
+ * Return a hex value as octal.
+ *
+ * @param string $x
+ * @return string
+ */
+ public static function HEXTOOCT($x, $places=null) {
+ $x = self::flattenSingleValue($x);
+ $places = self::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ return self::$_errorCodes['value'];
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/',strtoupper($x),$out)) {
+ return self::$_errorCodes['num'];
+ }
+ $octVal = decoct(hexdec($x));
+
+ return self::_nbrConversionFormat($octVal,$places);
+ } // function HEXTOOCT()
+
+
+ /**
+ * HEXTODEC
+ *
+ * Return a hex value as octal.
+ *
+ * @param string $x
+ * @return string
+ */
+ public static function HEXTODEC($x) {
+ $x = self::flattenSingleValue($x);
+
+ if (is_bool($x)) {
+ return self::$_errorCodes['value'];
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/',strtoupper($x),$out)) {
+ return self::$_errorCodes['num'];
+ }
+ return hexdec($x);
+ } // function HEXTODEC()
+
+
+ /**
+ * OCTTOBIN
+ *
+ * Return an octal value as binary.
+ *
+ * @param string $x
+ * @return string
+ */
+ public static function OCTTOBIN($x, $places=null) {
+ $x = self::flattenSingleValue($x);
+ $places = self::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ return self::$_errorCodes['value'];
+ }
+ $x = (string) $x;
+ if (preg_match_all('/[01234567]/',$x,$out) != strlen($x)) {
+ return self::$_errorCodes['num'];
+ }
+ $binVal = decbin(octdec($x));
+
+ return self::_nbrConversionFormat($binVal,$places);
+ } // function OCTTOBIN()
+
+
+ /**
+ * OCTTODEC
+ *
+ * Return an octal value as binary.
+ *
+ * @param string $x
+ * @return string
+ */
+ public static function OCTTODEC($x) {
+ $x = self::flattenSingleValue($x);
+
+ if (is_bool($x)) {
+ return self::$_errorCodes['value'];
+ }
+ $x = (string) $x;
+ if (preg_match_all('/[01234567]/',$x,$out) != strlen($x)) {
+ return self::$_errorCodes['num'];
+ }
+ return octdec($x);
+ } // function OCTTODEC()
+
+
+ /**
+ * OCTTOHEX
+ *
+ * Return an octal value as hex.
+ *
+ * @param string $x
+ * @return string
+ */
+ public static function OCTTOHEX($x, $places=null) {
+ $x = self::flattenSingleValue($x);
+ $places = self::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ return self::$_errorCodes['value'];
+ }
+ $x = (string) $x;
+ if (preg_match_all('/[01234567]/',$x,$out) != strlen($x)) {
+ return self::$_errorCodes['num'];
+ }
+ $hexVal = strtoupper(dechex(octdec($x)));
+
+ return self::_nbrConversionFormat($hexVal,$places);
+ } // function OCTTOHEX()
+
+
+ public static function _parseComplex($complexNumber) {
+ $workString = (string) $complexNumber;
+
+ $realNumber = $imaginary = 0;
+ // Extract the suffix, if there is one
+ $suffix = substr($workString,-1);
+ if (!is_numeric($suffix)) {
+ $workString = substr($workString,0,-1);
+ } else {
+ $suffix = '';
+ }
+
+ // Split the input into its Real and Imaginary components
+ $leadingSign = 0;
+ if (strlen($workString) > 0) {
+ $leadingSign = (($workString{0} == '+') || ($workString{0} == '-')) ? 1 : 0;
+ }
+ $power = '';
+ $realNumber = strtok($workString, '+-');
+ if (strtoupper(substr($realNumber,-1)) == 'E') {
+ $power = strtok('+-');
+ ++$leadingSign;
+ }
+
+ $realNumber = substr($workString,0,strlen($realNumber)+strlen($power)+$leadingSign);
+
+ if ($suffix != '') {
+ $imaginary = substr($workString,strlen($realNumber));
+
+ if (($imaginary == '') && (($realNumber == '') || ($realNumber == '+') || ($realNumber == '-'))) {
+ $imaginary = $realNumber.'1';
+ $realNumber = '0';
+ } else if ($imaginary == '') {
+ $imaginary = $realNumber;
+ $realNumber = '0';
+ } elseif (($imaginary == '+') || ($imaginary == '-')) {
+ $imaginary .= '1';
+ }
+ }
+
+ $complexArray = array( 'real' => $realNumber,
+ 'imaginary' => $imaginary,
+ 'suffix' => $suffix
+ );
+
+ return $complexArray;
+ } // function _parseComplex()
+
+
+ private static function _cleanComplex($complexNumber) {
+ if ($complexNumber{0} == '+') $complexNumber = substr($complexNumber,1);
+ if ($complexNumber{0} == '0') $complexNumber = substr($complexNumber,1);
+ if ($complexNumber{0} == '.') $complexNumber = '0'.$complexNumber;
+ if ($complexNumber{0} == '+') $complexNumber = substr($complexNumber,1);
+ return $complexNumber;
+ }
+
+
+ /**
+ * COMPLEX
+ *
+ * returns a complex number of the form x + yi or x + yj.
+ *
+ * @param float $realNumber
+ * @param float $imaginary
+ * @param string $suffix
+ * @return string
+ */
+ public static function COMPLEX($realNumber=0.0, $imaginary=0.0, $suffix='i') {
+ $realNumber = self::flattenSingleValue($realNumber);
+ $imaginary = self::flattenSingleValue($imaginary);
+ $suffix = self::flattenSingleValue($suffix);
+
+ if (((is_numeric($realNumber)) && (is_numeric($imaginary))) &&
+ (($suffix == 'i') || ($suffix == 'j') || ($suffix == ''))) {
+ if ($realNumber == 0.0) {
+ if ($imaginary == 0.0) {
+ return (string) '0';
+ } elseif ($imaginary == 1.0) {
+ return (string) $suffix;
+ } elseif ($imaginary == -1.0) {
+ return (string) '-'.$suffix;
+ }
+ return (string) $imaginary.$suffix;
+ } elseif ($imaginary == 0.0) {
+ return (string) $realNumber;
+ } elseif ($imaginary == 1.0) {
+ return (string) $realNumber.'+'.$suffix;
+ } elseif ($imaginary == -1.0) {
+ return (string) $realNumber.'-'.$suffix;
+ }
+ if ($imaginary > 0) { $imaginary = (string) '+'.$imaginary; }
+ return (string) $realNumber.$imaginary.$suffix;
+ }
+ return self::$_errorCodes['value'];
+ } // function COMPLEX()
+
+
+ /**
+ * IMAGINARY
+ *
+ * Returns the imaginary coefficient of a complex number in x + yi or x + yj text format.
+ *
+ * @param string $complexNumber
+ * @return real
+ */
+ public static function IMAGINARY($complexNumber) {
+ $complexNumber = self::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+ if (!is_array($parsedComplex)) {
+ return $parsedComplex;
+ }
+ return $parsedComplex['imaginary'];
+ } // function IMAGINARY()
+
+
+ /**
+ * IMREAL
+ *
+ * Returns the real coefficient of a complex number in x + yi or x + yj text format.
+ *
+ * @param string $complexNumber
+ * @return real
+ */
+ public static function IMREAL($complexNumber) {
+ $complexNumber = self::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+ if (!is_array($parsedComplex)) {
+ return $parsedComplex;
+ }
+ return $parsedComplex['real'];
+ } // function IMREAL()
+
+
+ /**
+ * IMABS
+ *
+ * Returns the absolute value (modulus) of a complex number in x + yi or x + yj text format.
+ *
+ * @param string $complexNumber
+ * @return real
+ */
+ public static function IMABS($complexNumber) {
+ $complexNumber = self::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+ if (!is_array($parsedComplex)) {
+ return $parsedComplex;
+ }
+ return sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary']));
+ } // function IMABS()
+
+
+ /**
+ * IMARGUMENT
+ *
+ * Returns the argument theta of a complex number, i.e. the angle in radians from the real axis to the representation of the number in polar coordinates.
+ *
+ * @param string $complexNumber
+ * @return string
+ */
+ public static function IMARGUMENT($complexNumber) {
+ $complexNumber = self::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+ if (!is_array($parsedComplex)) {
+ return $parsedComplex;
+ }
+
+ if ($parsedComplex['real'] == 0.0) {
+ if ($parsedComplex['imaginary'] == 0.0) {
+ return 0.0;
+ } elseif($parsedComplex['imaginary'] < 0.0) {
+ return pi() / -2;
+ } else {
+ return pi() / 2;
+ }
+ } elseif ($parsedComplex['real'] > 0.0) {
+ return atan($parsedComplex['imaginary'] / $parsedComplex['real']);
+ } elseif ($parsedComplex['imaginary'] < 0.0) {
+ return 0 - (pi() - atan(abs($parsedComplex['imaginary']) / abs($parsedComplex['real'])));
+ } else {
+ return pi() - atan($parsedComplex['imaginary'] / abs($parsedComplex['real']));
+ }
+ } // function IMARGUMENT()
+
+
+ /**
+ * IMCONJUGATE
+ *
+ * Returns the complex conjugate of a complex number in x + yi or x + yj text format.
+ *
+ * @param string $complexNumber
+ * @return string
+ */
+ public static function IMCONJUGATE($complexNumber) {
+ $complexNumber = self::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+
+ if (!is_array($parsedComplex)) {
+ return $parsedComplex;
+ }
+
+ if ($parsedComplex['imaginary'] == 0.0) {
+ return $parsedComplex['real'];
+ } else {
+ return self::_cleanComplex(self::COMPLEX($parsedComplex['real'], 0 - $parsedComplex['imaginary'], $parsedComplex['suffix']));
+ }
+ } // function IMCONJUGATE()
+
+
+ /**
+ * IMCOS
+ *
+ * Returns the cosine of a complex number in x + yi or x + yj text format.
+ *
+ * @param string $complexNumber
+ * @return string
+ */
+ public static function IMCOS($complexNumber) {
+ $complexNumber = self::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+ if (!is_array($parsedComplex)) {
+ return $parsedComplex;
+ }
+
+ if ($parsedComplex['imaginary'] == 0.0) {
+ return cos($parsedComplex['real']);
+ } else {
+ return self::IMCONJUGATE(self::COMPLEX(cos($parsedComplex['real']) * cosh($parsedComplex['imaginary']),sin($parsedComplex['real']) * sinh($parsedComplex['imaginary']),$parsedComplex['suffix']));
+ }
+ } // function IMCOS()
+
+
+ /**
+ * IMSIN
+ *
+ * Returns the sine of a complex number in x + yi or x + yj text format.
+ *
+ * @param string $complexNumber
+ * @return string
+ */
+ public static function IMSIN($complexNumber) {
+ $complexNumber = self::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+ if (!is_array($parsedComplex)) {
+ return $parsedComplex;
+ }
+
+ if ($parsedComplex['imaginary'] == 0.0) {
+ return sin($parsedComplex['real']);
+ } else {
+ return self::COMPLEX(sin($parsedComplex['real']) * cosh($parsedComplex['imaginary']),cos($parsedComplex['real']) * sinh($parsedComplex['imaginary']),$parsedComplex['suffix']);
+ }
+ } // function IMSIN()
+
+
+ /**
+ * IMSQRT
+ *
+ * Returns the square root of a complex number in x + yi or x + yj text format.
+ *
+ * @param string $complexNumber
+ * @return string
+ */
+ public static function IMSQRT($complexNumber) {
+ $complexNumber = self::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+ if (!is_array($parsedComplex)) {
+ return $parsedComplex;
+ }
+
+ $theta = self::IMARGUMENT($complexNumber);
+ $d1 = cos($theta / 2);
+ $d2 = sin($theta / 2);
+ $r = sqrt(sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary'])));
+
+ if ($parsedComplex['suffix'] == '') {
+ return self::COMPLEX($d1 * $r,$d2 * $r);
+ } else {
+ return self::COMPLEX($d1 * $r,$d2 * $r,$parsedComplex['suffix']);
+ }
+ } // function IMSQRT()
+
+
+ /**
+ * IMLN
+ *
+ * Returns the natural logarithm of a complex number in x + yi or x + yj text format.
+ *
+ * @param string $complexNumber
+ * @return string
+ */
+ public static function IMLN($complexNumber) {
+ $complexNumber = self::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+ if (!is_array($parsedComplex)) {
+ return $parsedComplex;
+ }
+
+ if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return self::$_errorCodes['num'];
+ }
+
+ $logR = log(sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary'])));
+ $t = self::IMARGUMENT($complexNumber);
+
+ if ($parsedComplex['suffix'] == '') {
+ return self::COMPLEX($logR,$t);
+ } else {
+ return self::COMPLEX($logR,$t,$parsedComplex['suffix']);
+ }
+ } // function IMLN()
+
+
+ /**
+ * IMLOG10
+ *
+ * Returns the common logarithm (base 10) of a complex number in x + yi or x + yj text format.
+ *
+ * @param string $complexNumber
+ * @return string
+ */
+ public static function IMLOG10($complexNumber) {
+ $complexNumber = self::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+ if (!is_array($parsedComplex)) {
+ return $parsedComplex;
+ }
+
+ if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return self::$_errorCodes['num'];
+ } elseif (($parsedComplex['real'] > 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return log10($parsedComplex['real']);
+ }
+
+ return self::IMPRODUCT(log10(EULER),self::IMLN($complexNumber));
+ } // function IMLOG10()
+
+
+ /**
+ * IMLOG2
+ *
+ * Returns the common logarithm (base 10) of a complex number in x + yi or x + yj text format.
+ *
+ * @param string $complexNumber
+ * @return string
+ */
+ public static function IMLOG2($complexNumber) {
+ $complexNumber = self::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+ if (!is_array($parsedComplex)) {
+ return $parsedComplex;
+ }
+
+ if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return self::$_errorCodes['num'];
+ } elseif (($parsedComplex['real'] > 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return log($parsedComplex['real'],2);
+ }
+
+ return self::IMPRODUCT(log(EULER,2),self::IMLN($complexNumber));
+ } // function IMLOG2()
+
+
+ /**
+ * IMEXP
+ *
+ * Returns the exponential of a complex number in x + yi or x + yj text format.
+ *
+ * @param string $complexNumber
+ * @return string
+ */
+ public static function IMEXP($complexNumber) {
+ $complexNumber = self::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+ if (!is_array($parsedComplex)) {
+ return $parsedComplex;
+ }
+
+ if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return '1';
+ }
+
+ $e = exp($parsedComplex['real']);
+ $eX = $e * cos($parsedComplex['imaginary']);
+ $eY = $e * sin($parsedComplex['imaginary']);
+
+ if ($parsedComplex['suffix'] == '') {
+ return self::COMPLEX($eX,$eY);
+ } else {
+ return self::COMPLEX($eX,$eY,$parsedComplex['suffix']);
+ }
+ } // function IMEXP()
+
+
+ /**
+ * IMPOWER
+ *
+ * Returns a complex number in x + yi or x + yj text format raised to a power.
+ *
+ * @param string $complexNumber
+ * @return string
+ */
+ public static function IMPOWER($complexNumber,$realNumber) {
+ $complexNumber = self::flattenSingleValue($complexNumber);
+ $realNumber = self::flattenSingleValue($realNumber);
+
+ if (!is_numeric($realNumber)) {
+ return self::$_errorCodes['value'];
+ }
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+ if (!is_array($parsedComplex)) {
+ return $parsedComplex;
+ }
+
+ $r = sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary']));
+ $rPower = pow($r,$realNumber);
+ $theta = self::IMARGUMENT($complexNumber) * $realNumber;
+ if ($theta == 0) {
+ return 1;
+ } elseif ($parsedComplex['imaginary'] == 0.0) {
+ return self::COMPLEX($rPower * cos($theta),$rPower * sin($theta),$parsedComplex['suffix']);
+ } else {
+ return self::COMPLEX($rPower * cos($theta),$rPower * sin($theta),$parsedComplex['suffix']);
+ }
+ } // function IMPOWER()
+
+
+ /**
+ * IMDIV
+ *
+ * Returns the quotient of two complex numbers in x + yi or x + yj text format.
+ *
+ * @param string $complexDividend
+ * @param string $complexDivisor
+ * @return real
+ */
+ public static function IMDIV($complexDividend,$complexDivisor) {
+ $complexDividend = self::flattenSingleValue($complexDividend);
+ $complexDivisor = self::flattenSingleValue($complexDivisor);
+
+ $parsedComplexDividend = self::_parseComplex($complexDividend);
+ if (!is_array($parsedComplexDividend)) {
+ return $parsedComplexDividend;
+ }
+
+ $parsedComplexDivisor = self::_parseComplex($complexDivisor);
+ if (!is_array($parsedComplexDivisor)) {
+ return $parsedComplexDividend;
+ }
+
+ if (($parsedComplexDividend['suffix'] != '') && ($parsedComplexDivisor['suffix'] != '') &&
+ ($parsedComplexDividend['suffix'] != $parsedComplexDivisor['suffix'])) {
+ return self::$_errorCodes['num'];
+ }
+ if (($parsedComplexDividend['suffix'] != '') && ($parsedComplexDivisor['suffix'] == '')) {
+ $parsedComplexDivisor['suffix'] = $parsedComplexDividend['suffix'];
+ }
+
+ $d1 = ($parsedComplexDividend['real'] * $parsedComplexDivisor['real']) + ($parsedComplexDividend['imaginary'] * $parsedComplexDivisor['imaginary']);
+ $d2 = ($parsedComplexDividend['imaginary'] * $parsedComplexDivisor['real']) - ($parsedComplexDividend['real'] * $parsedComplexDivisor['imaginary']);
+ $d3 = ($parsedComplexDivisor['real'] * $parsedComplexDivisor['real']) + ($parsedComplexDivisor['imaginary'] * $parsedComplexDivisor['imaginary']);
+
+ $r = $d1/$d3;
+ $i = $d2/$d3;
+
+ if ($i > 0.0) {
+ return self::_cleanComplex($r.'+'.$i.$parsedComplexDivisor['suffix']);
+ } elseif ($i < 0.0) {
+ return self::_cleanComplex($r.$i.$parsedComplexDivisor['suffix']);
+ } else {
+ return $r;
+ }
+ } // function IMDIV()
+
+
+ /**
+ * IMSUB
+ *
+ * Returns the difference of two complex numbers in x + yi or x + yj text format.
+ *
+ * @param string $complexNumber1
+ * @param string $complexNumber2
+ * @return real
+ */
+ public static function IMSUB($complexNumber1,$complexNumber2) {
+ $complexNumber1 = self::flattenSingleValue($complexNumber1);
+ $complexNumber2 = self::flattenSingleValue($complexNumber2);
+
+ $parsedComplex1 = self::_parseComplex($complexNumber1);
+ if (!is_array($parsedComplex1)) {
+ return $parsedComplex1;
+ }
+
+ $parsedComplex2 = self::_parseComplex($complexNumber2);
+ if (!is_array($parsedComplex2)) {
+ return $parsedComplex2;
+ }
+
+ if ((($parsedComplex1['suffix'] != '') && ($parsedComplex2['suffix'] != '')) &&
+ ($parsedComplex1['suffix'] != $parsedComplex2['suffix'])) {
+ return self::$_errorCodes['num'];
+ } elseif (($parsedComplex1['suffix'] == '') && ($parsedComplex2['suffix'] != '')) {
+ $parsedComplex1['suffix'] = $parsedComplex2['suffix'];
+ }
+
+ $d1 = $parsedComplex1['real'] - $parsedComplex2['real'];
+ $d2 = $parsedComplex1['imaginary'] - $parsedComplex2['imaginary'];
+
+ return self::COMPLEX($d1,$d2,$parsedComplex1['suffix']);
+ } // function IMSUB()
+
+
+ /**
+ * IMSUM
+ *
+ * Returns the sum of two or more complex numbers in x + yi or x + yj text format.
+ *
+ * @param array of mixed Data Series
+ * @return real
+ */
+ public static function IMSUM() {
+ // Return value
+ $returnValue = self::_parseComplex('0');
+ $activeSuffix = '';
+
+ // Loop through the arguments
+ $aArgs = self::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ $parsedComplex = self::_parseComplex($arg);
+ if (!is_array($parsedComplex)) {
+ return $parsedComplex;
+ }
+
+ if ($activeSuffix == '') {
+ $activeSuffix = $parsedComplex['suffix'];
+ } elseif (($parsedComplex['suffix'] != '') && ($activeSuffix != $parsedComplex['suffix'])) {
+ return self::$_errorCodes['value'];
+ }
+
+ $returnValue['real'] += $parsedComplex['real'];
+ $returnValue['imaginary'] += $parsedComplex['imaginary'];
+ }
+
+ if ($returnValue['imaginary'] == 0.0) { $activeSuffix = ''; }
+ return self::COMPLEX($returnValue['real'],$returnValue['imaginary'],$activeSuffix);
+ } // function IMSUM()
+
+
+ /**
+ * IMPRODUCT
+ *
+ * Returns the product of two or more complex numbers in x + yi or x + yj text format.
+ *
+ * @param array of mixed Data Series
+ * @return real
+ */
+ public static function IMPRODUCT() {
+ // Return value
+ $returnValue = self::_parseComplex('1');
+ $activeSuffix = '';
+
+ // Loop through the arguments
+ $aArgs = self::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ $parsedComplex = self::_parseComplex($arg);
+ if (!is_array($parsedComplex)) {
+ return $parsedComplex;
+ }
+ $workValue = $returnValue;
+ if (($parsedComplex['suffix'] != '') && ($activeSuffix == '')) {
+ $activeSuffix = $parsedComplex['suffix'];
+ } elseif (($parsedComplex['suffix'] != '') && ($activeSuffix != $parsedComplex['suffix'])) {
+ return self::$_errorCodes['num'];
+ }
+ $returnValue['real'] = ($workValue['real'] * $parsedComplex['real']) - ($workValue['imaginary'] * $parsedComplex['imaginary']);
+ $returnValue['imaginary'] = ($workValue['real'] * $parsedComplex['imaginary']) + ($workValue['imaginary'] * $parsedComplex['real']);
+ }
+
+ if ($returnValue['imaginary'] == 0.0) { $activeSuffix = ''; }
+ return self::COMPLEX($returnValue['real'],$returnValue['imaginary'],$activeSuffix);
+ } // function IMPRODUCT()
+
+
+ private static $_conversionUnits = array( 'g' => array( 'Group' => 'Mass', 'Unit Name' => 'Gram', 'AllowPrefix' => True ),
+ 'sg' => array( 'Group' => 'Mass', 'Unit Name' => 'Slug', 'AllowPrefix' => False ),
+ 'lbm' => array( 'Group' => 'Mass', 'Unit Name' => 'Pound mass (avoirdupois)', 'AllowPrefix' => False ),
+ 'u' => array( 'Group' => 'Mass', 'Unit Name' => 'U (atomic mass unit)', 'AllowPrefix' => True ),
+ 'ozm' => array( 'Group' => 'Mass', 'Unit Name' => 'Ounce mass (avoirdupois)', 'AllowPrefix' => False ),
+ 'm' => array( 'Group' => 'Distance', 'Unit Name' => 'Meter', 'AllowPrefix' => True ),
+ 'mi' => array( 'Group' => 'Distance', 'Unit Name' => 'Statute mile', 'AllowPrefix' => False ),
+ 'Nmi' => array( 'Group' => 'Distance', 'Unit Name' => 'Nautical mile', 'AllowPrefix' => False ),
+ 'in' => array( 'Group' => 'Distance', 'Unit Name' => 'Inch', 'AllowPrefix' => False ),
+ 'ft' => array( 'Group' => 'Distance', 'Unit Name' => 'Foot', 'AllowPrefix' => False ),
+ 'yd' => array( 'Group' => 'Distance', 'Unit Name' => 'Yard', 'AllowPrefix' => False ),
+ 'ang' => array( 'Group' => 'Distance', 'Unit Name' => 'Angstrom', 'AllowPrefix' => True ),
+ 'Pica' => array( 'Group' => 'Distance', 'Unit Name' => 'Pica (1/72 in)', 'AllowPrefix' => False ),
+ 'yr' => array( 'Group' => 'Time', 'Unit Name' => 'Year', 'AllowPrefix' => False ),
+ 'day' => array( 'Group' => 'Time', 'Unit Name' => 'Day', 'AllowPrefix' => False ),
+ 'hr' => array( 'Group' => 'Time', 'Unit Name' => 'Hour', 'AllowPrefix' => False ),
+ 'mn' => array( 'Group' => 'Time', 'Unit Name' => 'Minute', 'AllowPrefix' => False ),
+ 'sec' => array( 'Group' => 'Time', 'Unit Name' => 'Second', 'AllowPrefix' => True ),
+ 'Pa' => array( 'Group' => 'Pressure', 'Unit Name' => 'Pascal', 'AllowPrefix' => True ),
+ 'p' => array( 'Group' => 'Pressure', 'Unit Name' => 'Pascal', 'AllowPrefix' => True ),
+ 'atm' => array( 'Group' => 'Pressure', 'Unit Name' => 'Atmosphere', 'AllowPrefix' => True ),
+ 'at' => array( 'Group' => 'Pressure', 'Unit Name' => 'Atmosphere', 'AllowPrefix' => True ),
+ 'mmHg' => array( 'Group' => 'Pressure', 'Unit Name' => 'mm of Mercury', 'AllowPrefix' => True ),
+ 'N' => array( 'Group' => 'Force', 'Unit Name' => 'Newton', 'AllowPrefix' => True ),
+ 'dyn' => array( 'Group' => 'Force', 'Unit Name' => 'Dyne', 'AllowPrefix' => True ),
+ 'dy' => array( 'Group' => 'Force', 'Unit Name' => 'Dyne', 'AllowPrefix' => True ),
+ 'lbf' => array( 'Group' => 'Force', 'Unit Name' => 'Pound force', 'AllowPrefix' => False ),
+ 'J' => array( 'Group' => 'Energy', 'Unit Name' => 'Joule', 'AllowPrefix' => True ),
+ 'e' => array( 'Group' => 'Energy', 'Unit Name' => 'Erg', 'AllowPrefix' => True ),
+ 'c' => array( 'Group' => 'Energy', 'Unit Name' => 'Thermodynamic calorie', 'AllowPrefix' => True ),
+ 'cal' => array( 'Group' => 'Energy', 'Unit Name' => 'IT calorie', 'AllowPrefix' => True ),
+ 'eV' => array( 'Group' => 'Energy', 'Unit Name' => 'Electron volt', 'AllowPrefix' => True ),
+ 'ev' => array( 'Group' => 'Energy', 'Unit Name' => 'Electron volt', 'AllowPrefix' => True ),
+ 'HPh' => array( 'Group' => 'Energy', 'Unit Name' => 'Horsepower-hour', 'AllowPrefix' => False ),
+ 'hh' => array( 'Group' => 'Energy', 'Unit Name' => 'Horsepower-hour', 'AllowPrefix' => False ),
+ 'Wh' => array( 'Group' => 'Energy', 'Unit Name' => 'Watt-hour', 'AllowPrefix' => True ),
+ 'wh' => array( 'Group' => 'Energy', 'Unit Name' => 'Watt-hour', 'AllowPrefix' => True ),
+ 'flb' => array( 'Group' => 'Energy', 'Unit Name' => 'Foot-pound', 'AllowPrefix' => False ),
+ 'BTU' => array( 'Group' => 'Energy', 'Unit Name' => 'BTU', 'AllowPrefix' => False ),
+ 'btu' => array( 'Group' => 'Energy', 'Unit Name' => 'BTU', 'AllowPrefix' => False ),
+ 'HP' => array( 'Group' => 'Power', 'Unit Name' => 'Horsepower', 'AllowPrefix' => False ),
+ 'h' => array( 'Group' => 'Power', 'Unit Name' => 'Horsepower', 'AllowPrefix' => False ),
+ 'W' => array( 'Group' => 'Power', 'Unit Name' => 'Watt', 'AllowPrefix' => True ),
+ 'w' => array( 'Group' => 'Power', 'Unit Name' => 'Watt', 'AllowPrefix' => True ),
+ 'T' => array( 'Group' => 'Magnetism', 'Unit Name' => 'Tesla', 'AllowPrefix' => True ),
+ 'ga' => array( 'Group' => 'Magnetism', 'Unit Name' => 'Gauss', 'AllowPrefix' => True ),
+ 'C' => array( 'Group' => 'Temperature', 'Unit Name' => 'Celsius', 'AllowPrefix' => False ),
+ 'cel' => array( 'Group' => 'Temperature', 'Unit Name' => 'Celsius', 'AllowPrefix' => False ),
+ 'F' => array( 'Group' => 'Temperature', 'Unit Name' => 'Fahrenheit', 'AllowPrefix' => False ),
+ 'fah' => array( 'Group' => 'Temperature', 'Unit Name' => 'Fahrenheit', 'AllowPrefix' => False ),
+ 'K' => array( 'Group' => 'Temperature', 'Unit Name' => 'Kelvin', 'AllowPrefix' => False ),
+ 'kel' => array( 'Group' => 'Temperature', 'Unit Name' => 'Kelvin', 'AllowPrefix' => False ),
+ 'tsp' => array( 'Group' => 'Liquid', 'Unit Name' => 'Teaspoon', 'AllowPrefix' => False ),
+ 'tbs' => array( 'Group' => 'Liquid', 'Unit Name' => 'Tablespoon', 'AllowPrefix' => False ),
+ 'oz' => array( 'Group' => 'Liquid', 'Unit Name' => 'Fluid Ounce', 'AllowPrefix' => False ),
+ 'cup' => array( 'Group' => 'Liquid', 'Unit Name' => 'Cup', 'AllowPrefix' => False ),
+ 'pt' => array( 'Group' => 'Liquid', 'Unit Name' => 'U.S. Pint', 'AllowPrefix' => False ),
+ 'us_pt' => array( 'Group' => 'Liquid', 'Unit Name' => 'U.S. Pint', 'AllowPrefix' => False ),
+ 'uk_pt' => array( 'Group' => 'Liquid', 'Unit Name' => 'U.K. Pint', 'AllowPrefix' => False ),
+ 'qt' => array( 'Group' => 'Liquid', 'Unit Name' => 'Quart', 'AllowPrefix' => False ),
+ 'gal' => array( 'Group' => 'Liquid', 'Unit Name' => 'Gallon', 'AllowPrefix' => False ),
+ 'l' => array( 'Group' => 'Liquid', 'Unit Name' => 'Litre', 'AllowPrefix' => True ),
+ 'lt' => array( 'Group' => 'Liquid', 'Unit Name' => 'Litre', 'AllowPrefix' => True )
+ );
+
+ private static $_conversionMultipliers = array( 'Y' => array( 'multiplier' => 1E24, 'name' => 'yotta' ),
+ 'Z' => array( 'multiplier' => 1E21, 'name' => 'zetta' ),
+ 'E' => array( 'multiplier' => 1E18, 'name' => 'exa' ),
+ 'P' => array( 'multiplier' => 1E15, 'name' => 'peta' ),
+ 'T' => array( 'multiplier' => 1E12, 'name' => 'tera' ),
+ 'G' => array( 'multiplier' => 1E9, 'name' => 'giga' ),
+ 'M' => array( 'multiplier' => 1E6, 'name' => 'mega' ),
+ 'k' => array( 'multiplier' => 1E3, 'name' => 'kilo' ),
+ 'h' => array( 'multiplier' => 1E2, 'name' => 'hecto' ),
+ 'e' => array( 'multiplier' => 1E1, 'name' => 'deka' ),
+ 'd' => array( 'multiplier' => 1E-1, 'name' => 'deci' ),
+ 'c' => array( 'multiplier' => 1E-2, 'name' => 'centi' ),
+ 'm' => array( 'multiplier' => 1E-3, 'name' => 'milli' ),
+ 'u' => array( 'multiplier' => 1E-6, 'name' => 'micro' ),
+ 'n' => array( 'multiplier' => 1E-9, 'name' => 'nano' ),
+ 'p' => array( 'multiplier' => 1E-12, 'name' => 'pico' ),
+ 'f' => array( 'multiplier' => 1E-15, 'name' => 'femto' ),
+ 'a' => array( 'multiplier' => 1E-18, 'name' => 'atto' ),
+ 'z' => array( 'multiplier' => 1E-21, 'name' => 'zepto' ),
+ 'y' => array( 'multiplier' => 1E-24, 'name' => 'yocto' )
+ );
+
+ private static $_unitConversions = array( 'Mass' => array( 'g' => array( 'g' => 1.0,
+ 'sg' => 6.85220500053478E-05,
+ 'lbm' => 2.20462291469134E-03,
+ 'u' => 6.02217000000000E+23,
+ 'ozm' => 3.52739718003627E-02
+ ),
+ 'sg' => array( 'g' => 1.45938424189287E+04,
+ 'sg' => 1.0,
+ 'lbm' => 3.21739194101647E+01,
+ 'u' => 8.78866000000000E+27,
+ 'ozm' => 5.14782785944229E+02
+ ),
+ 'lbm' => array( 'g' => 4.5359230974881148E+02,
+ 'sg' => 3.10810749306493E-02,
+ 'lbm' => 1.0,
+ 'u' => 2.73161000000000E+26,
+ 'ozm' => 1.60000023429410E+01
+ ),
+ 'u' => array( 'g' => 1.66053100460465E-24,
+ 'sg' => 1.13782988532950E-28,
+ 'lbm' => 3.66084470330684E-27,
+ 'u' => 1.0,
+ 'ozm' => 5.85735238300524E-26
+ ),
+ 'ozm' => array( 'g' => 2.83495152079732E+01,
+ 'sg' => 1.94256689870811E-03,
+ 'lbm' => 6.24999908478882E-02,
+ 'u' => 1.70725600000000E+25,
+ 'ozm' => 1.0
+ )
+ ),
+ 'Distance' => array( 'm' => array( 'm' => 1.0,
+ 'mi' => 6.21371192237334E-04,
+ 'Nmi' => 5.39956803455724E-04,
+ 'in' => 3.93700787401575E+01,
+ 'ft' => 3.28083989501312E+00,
+ 'yd' => 1.09361329797891E+00,
+ 'ang' => 1.00000000000000E+10,
+ 'Pica' => 2.83464566929116E+03
+ ),
+ 'mi' => array( 'm' => 1.60934400000000E+03,
+ 'mi' => 1.0,
+ 'Nmi' => 8.68976241900648E-01,
+ 'in' => 6.33600000000000E+04,
+ 'ft' => 5.28000000000000E+03,
+ 'yd' => 1.76000000000000E+03,
+ 'ang' => 1.60934400000000E+13,
+ 'Pica' => 4.56191999999971E+06
+ ),
+ 'Nmi' => array( 'm' => 1.85200000000000E+03,
+ 'mi' => 1.15077944802354E+00,
+ 'Nmi' => 1.0,
+ 'in' => 7.29133858267717E+04,
+ 'ft' => 6.07611548556430E+03,
+ 'yd' => 2.02537182785694E+03,
+ 'ang' => 1.85200000000000E+13,
+ 'Pica' => 5.24976377952723E+06
+ ),
+ 'in' => array( 'm' => 2.54000000000000E-02,
+ 'mi' => 1.57828282828283E-05,
+ 'Nmi' => 1.37149028077754E-05,
+ 'in' => 1.0,
+ 'ft' => 8.33333333333333E-02,
+ 'yd' => 2.77777777686643E-02,
+ 'ang' => 2.54000000000000E+08,
+ 'Pica' => 7.19999999999955E+01
+ ),
+ 'ft' => array( 'm' => 3.04800000000000E-01,
+ 'mi' => 1.89393939393939E-04,
+ 'Nmi' => 1.64578833693305E-04,
+ 'in' => 1.20000000000000E+01,
+ 'ft' => 1.0,
+ 'yd' => 3.33333333223972E-01,
+ 'ang' => 3.04800000000000E+09,
+ 'Pica' => 8.63999999999946E+02
+ ),
+ 'yd' => array( 'm' => 9.14400000300000E-01,
+ 'mi' => 5.68181818368230E-04,
+ 'Nmi' => 4.93736501241901E-04,
+ 'in' => 3.60000000118110E+01,
+ 'ft' => 3.00000000000000E+00,
+ 'yd' => 1.0,
+ 'ang' => 9.14400000300000E+09,
+ 'Pica' => 2.59200000085023E+03
+ ),
+ 'ang' => array( 'm' => 1.00000000000000E-10,
+ 'mi' => 6.21371192237334E-14,
+ 'Nmi' => 5.39956803455724E-14,
+ 'in' => 3.93700787401575E-09,
+ 'ft' => 3.28083989501312E-10,
+ 'yd' => 1.09361329797891E-10,
+ 'ang' => 1.0,
+ 'Pica' => 2.83464566929116E-07
+ ),
+ 'Pica' => array( 'm' => 3.52777777777800E-04,
+ 'mi' => 2.19205948372629E-07,
+ 'Nmi' => 1.90484761219114E-07,
+ 'in' => 1.38888888888898E-02,
+ 'ft' => 1.15740740740748E-03,
+ 'yd' => 3.85802469009251E-04,
+ 'ang' => 3.52777777777800E+06,
+ 'Pica' => 1.0
+ )
+ ),
+ 'Time' => array( 'yr' => array( 'yr' => 1.0,
+ 'day' => 365.25,
+ 'hr' => 8766.0,
+ 'mn' => 525960.0,
+ 'sec' => 31557600.0
+ ),
+ 'day' => array( 'yr' => 2.73785078713210E-03,
+ 'day' => 1.0,
+ 'hr' => 24.0,
+ 'mn' => 1440.0,
+ 'sec' => 86400.0
+ ),
+ 'hr' => array( 'yr' => 1.14077116130504E-04,
+ 'day' => 4.16666666666667E-02,
+ 'hr' => 1.0,
+ 'mn' => 60.0,
+ 'sec' => 3600.0
+ ),
+ 'mn' => array( 'yr' => 1.90128526884174E-06,
+ 'day' => 6.94444444444444E-04,
+ 'hr' => 1.66666666666667E-02,
+ 'mn' => 1.0,
+ 'sec' => 60.0
+ ),
+ 'sec' => array( 'yr' => 3.16880878140289E-08,
+ 'day' => 1.15740740740741E-05,
+ 'hr' => 2.77777777777778E-04,
+ 'mn' => 1.66666666666667E-02,
+ 'sec' => 1.0
+ )
+ ),
+ 'Pressure' => array( 'Pa' => array( 'Pa' => 1.0,
+ 'p' => 1.0,
+ 'atm' => 9.86923299998193E-06,
+ 'at' => 9.86923299998193E-06,
+ 'mmHg' => 7.50061707998627E-03
+ ),
+ 'p' => array( 'Pa' => 1.0,
+ 'p' => 1.0,
+ 'atm' => 9.86923299998193E-06,
+ 'at' => 9.86923299998193E-06,
+ 'mmHg' => 7.50061707998627E-03
+ ),
+ 'atm' => array( 'Pa' => 1.01324996583000E+05,
+ 'p' => 1.01324996583000E+05,
+ 'atm' => 1.0,
+ 'at' => 1.0,
+ 'mmHg' => 760.0
+ ),
+ 'at' => array( 'Pa' => 1.01324996583000E+05,
+ 'p' => 1.01324996583000E+05,
+ 'atm' => 1.0,
+ 'at' => 1.0,
+ 'mmHg' => 760.0
+ ),
+ 'mmHg' => array( 'Pa' => 1.33322363925000E+02,
+ 'p' => 1.33322363925000E+02,
+ 'atm' => 1.31578947368421E-03,
+ 'at' => 1.31578947368421E-03,
+ 'mmHg' => 1.0
+ )
+ ),
+ 'Force' => array( 'N' => array( 'N' => 1.0,
+ 'dyn' => 1.0E+5,
+ 'dy' => 1.0E+5,
+ 'lbf' => 2.24808923655339E-01
+ ),
+ 'dyn' => array( 'N' => 1.0E-5,
+ 'dyn' => 1.0,
+ 'dy' => 1.0,
+ 'lbf' => 2.24808923655339E-06
+ ),
+ 'dy' => array( 'N' => 1.0E-5,
+ 'dyn' => 1.0,
+ 'dy' => 1.0,
+ 'lbf' => 2.24808923655339E-06
+ ),
+ 'lbf' => array( 'N' => 4.448222,
+ 'dyn' => 4.448222E+5,
+ 'dy' => 4.448222E+5,
+ 'lbf' => 1.0
+ )
+ ),
+ 'Energy' => array( 'J' => array( 'J' => 1.0,
+ 'e' => 9.99999519343231E+06,
+ 'c' => 2.39006249473467E-01,
+ 'cal' => 2.38846190642017E-01,
+ 'eV' => 6.24145700000000E+18,
+ 'ev' => 6.24145700000000E+18,
+ 'HPh' => 3.72506430801000E-07,
+ 'hh' => 3.72506430801000E-07,
+ 'Wh' => 2.77777916238711E-04,
+ 'wh' => 2.77777916238711E-04,
+ 'flb' => 2.37304222192651E+01,
+ 'BTU' => 9.47815067349015E-04,
+ 'btu' => 9.47815067349015E-04
+ ),
+ 'e' => array( 'J' => 1.00000048065700E-07,
+ 'e' => 1.0,
+ 'c' => 2.39006364353494E-08,
+ 'cal' => 2.38846305445111E-08,
+ 'eV' => 6.24146000000000E+11,
+ 'ev' => 6.24146000000000E+11,
+ 'HPh' => 3.72506609848824E-14,
+ 'hh' => 3.72506609848824E-14,
+ 'Wh' => 2.77778049754611E-11,
+ 'wh' => 2.77778049754611E-11,
+ 'flb' => 2.37304336254586E-06,
+ 'BTU' => 9.47815522922962E-11,
+ 'btu' => 9.47815522922962E-11
+ ),
+ 'c' => array( 'J' => 4.18399101363672E+00,
+ 'e' => 4.18398900257312E+07,
+ 'c' => 1.0,
+ 'cal' => 9.99330315287563E-01,
+ 'eV' => 2.61142000000000E+19,
+ 'ev' => 2.61142000000000E+19,
+ 'HPh' => 1.55856355899327E-06,
+ 'hh' => 1.55856355899327E-06,
+ 'Wh' => 1.16222030532950E-03,
+ 'wh' => 1.16222030532950E-03,
+ 'flb' => 9.92878733152102E+01,
+ 'BTU' => 3.96564972437776E-03,
+ 'btu' => 3.96564972437776E-03
+ ),
+ 'cal' => array( 'J' => 4.18679484613929E+00,
+ 'e' => 4.18679283372801E+07,
+ 'c' => 1.00067013349059E+00,
+ 'cal' => 1.0,
+ 'eV' => 2.61317000000000E+19,
+ 'ev' => 2.61317000000000E+19,
+ 'HPh' => 1.55960800463137E-06,
+ 'hh' => 1.55960800463137E-06,
+ 'Wh' => 1.16299914807955E-03,
+ 'wh' => 1.16299914807955E-03,
+ 'flb' => 9.93544094443283E+01,
+ 'BTU' => 3.96830723907002E-03,
+ 'btu' => 3.96830723907002E-03
+ ),
+ 'eV' => array( 'J' => 1.60219000146921E-19,
+ 'e' => 1.60218923136574E-12,
+ 'c' => 3.82933423195043E-20,
+ 'cal' => 3.82676978535648E-20,
+ 'eV' => 1.0,
+ 'ev' => 1.0,
+ 'HPh' => 5.96826078912344E-26,
+ 'hh' => 5.96826078912344E-26,
+ 'Wh' => 4.45053000026614E-23,
+ 'wh' => 4.45053000026614E-23,
+ 'flb' => 3.80206452103492E-18,
+ 'BTU' => 1.51857982414846E-22,
+ 'btu' => 1.51857982414846E-22
+ ),
+ 'ev' => array( 'J' => 1.60219000146921E-19,
+ 'e' => 1.60218923136574E-12,
+ 'c' => 3.82933423195043E-20,
+ 'cal' => 3.82676978535648E-20,
+ 'eV' => 1.0,
+ 'ev' => 1.0,
+ 'HPh' => 5.96826078912344E-26,
+ 'hh' => 5.96826078912344E-26,
+ 'Wh' => 4.45053000026614E-23,
+ 'wh' => 4.45053000026614E-23,
+ 'flb' => 3.80206452103492E-18,
+ 'BTU' => 1.51857982414846E-22,
+ 'btu' => 1.51857982414846E-22
+ ),
+ 'HPh' => array( 'J' => 2.68451741316170E+06,
+ 'e' => 2.68451612283024E+13,
+ 'c' => 6.41616438565991E+05,
+ 'cal' => 6.41186757845835E+05,
+ 'eV' => 1.67553000000000E+25,
+ 'ev' => 1.67553000000000E+25,
+ 'HPh' => 1.0,
+ 'hh' => 1.0,
+ 'Wh' => 7.45699653134593E+02,
+ 'wh' => 7.45699653134593E+02,
+ 'flb' => 6.37047316692964E+07,
+ 'BTU' => 2.54442605275546E+03,
+ 'btu' => 2.54442605275546E+03
+ ),
+ 'hh' => array( 'J' => 2.68451741316170E+06,
+ 'e' => 2.68451612283024E+13,
+ 'c' => 6.41616438565991E+05,
+ 'cal' => 6.41186757845835E+05,
+ 'eV' => 1.67553000000000E+25,
+ 'ev' => 1.67553000000000E+25,
+ 'HPh' => 1.0,
+ 'hh' => 1.0,
+ 'Wh' => 7.45699653134593E+02,
+ 'wh' => 7.45699653134593E+02,
+ 'flb' => 6.37047316692964E+07,
+ 'BTU' => 2.54442605275546E+03,
+ 'btu' => 2.54442605275546E+03
+ ),
+ 'Wh' => array( 'J' => 3.59999820554720E+03,
+ 'e' => 3.59999647518369E+10,
+ 'c' => 8.60422069219046E+02,
+ 'cal' => 8.59845857713046E+02,
+ 'eV' => 2.24692340000000E+22,
+ 'ev' => 2.24692340000000E+22,
+ 'HPh' => 1.34102248243839E-03,
+ 'hh' => 1.34102248243839E-03,
+ 'Wh' => 1.0,
+ 'wh' => 1.0,
+ 'flb' => 8.54294774062316E+04,
+ 'BTU' => 3.41213254164705E+00,
+ 'btu' => 3.41213254164705E+00
+ ),
+ 'wh' => array( 'J' => 3.59999820554720E+03,
+ 'e' => 3.59999647518369E+10,
+ 'c' => 8.60422069219046E+02,
+ 'cal' => 8.59845857713046E+02,
+ 'eV' => 2.24692340000000E+22,
+ 'ev' => 2.24692340000000E+22,
+ 'HPh' => 1.34102248243839E-03,
+ 'hh' => 1.34102248243839E-03,
+ 'Wh' => 1.0,
+ 'wh' => 1.0,
+ 'flb' => 8.54294774062316E+04,
+ 'BTU' => 3.41213254164705E+00,
+ 'btu' => 3.41213254164705E+00
+ ),
+ 'flb' => array( 'J' => 4.21400003236424E-02,
+ 'e' => 4.21399800687660E+05,
+ 'c' => 1.00717234301644E-02,
+ 'cal' => 1.00649785509554E-02,
+ 'eV' => 2.63015000000000E+17,
+ 'ev' => 2.63015000000000E+17,
+ 'HPh' => 1.56974211145130E-08,
+ 'hh' => 1.56974211145130E-08,
+ 'Wh' => 1.17055614802000E-05,
+ 'wh' => 1.17055614802000E-05,
+ 'flb' => 1.0,
+ 'BTU' => 3.99409272448406E-05,
+ 'btu' => 3.99409272448406E-05
+ ),
+ 'BTU' => array( 'J' => 1.05505813786749E+03,
+ 'e' => 1.05505763074665E+10,
+ 'c' => 2.52165488508168E+02,
+ 'cal' => 2.51996617135510E+02,
+ 'eV' => 6.58510000000000E+21,
+ 'ev' => 6.58510000000000E+21,
+ 'HPh' => 3.93015941224568E-04,
+ 'hh' => 3.93015941224568E-04,
+ 'Wh' => 2.93071851047526E-01,
+ 'wh' => 2.93071851047526E-01,
+ 'flb' => 2.50369750774671E+04,
+ 'BTU' => 1.0,
+ 'btu' => 1.0,
+ ),
+ 'btu' => array( 'J' => 1.05505813786749E+03,
+ 'e' => 1.05505763074665E+10,
+ 'c' => 2.52165488508168E+02,
+ 'cal' => 2.51996617135510E+02,
+ 'eV' => 6.58510000000000E+21,
+ 'ev' => 6.58510000000000E+21,
+ 'HPh' => 3.93015941224568E-04,
+ 'hh' => 3.93015941224568E-04,
+ 'Wh' => 2.93071851047526E-01,
+ 'wh' => 2.93071851047526E-01,
+ 'flb' => 2.50369750774671E+04,
+ 'BTU' => 1.0,
+ 'btu' => 1.0,
+ )
+ ),
+ 'Power' => array( 'HP' => array( 'HP' => 1.0,
+ 'h' => 1.0,
+ 'W' => 7.45701000000000E+02,
+ 'w' => 7.45701000000000E+02
+ ),
+ 'h' => array( 'HP' => 1.0,
+ 'h' => 1.0,
+ 'W' => 7.45701000000000E+02,
+ 'w' => 7.45701000000000E+02
+ ),
+ 'W' => array( 'HP' => 1.34102006031908E-03,
+ 'h' => 1.34102006031908E-03,
+ 'W' => 1.0,
+ 'w' => 1.0
+ ),
+ 'w' => array( 'HP' => 1.34102006031908E-03,
+ 'h' => 1.34102006031908E-03,
+ 'W' => 1.0,
+ 'w' => 1.0
+ )
+ ),
+ 'Magnetism' => array( 'T' => array( 'T' => 1.0,
+ 'ga' => 10000.0
+ ),
+ 'ga' => array( 'T' => 0.0001,
+ 'ga' => 1.0
+ )
+ ),
+ 'Liquid' => array( 'tsp' => array( 'tsp' => 1.0,
+ 'tbs' => 3.33333333333333E-01,
+ 'oz' => 1.66666666666667E-01,
+ 'cup' => 2.08333333333333E-02,
+ 'pt' => 1.04166666666667E-02,
+ 'us_pt' => 1.04166666666667E-02,
+ 'uk_pt' => 8.67558516821960E-03,
+ 'qt' => 5.20833333333333E-03,
+ 'gal' => 1.30208333333333E-03,
+ 'l' => 4.92999408400710E-03,
+ 'lt' => 4.92999408400710E-03
+ ),
+ 'tbs' => array( 'tsp' => 3.00000000000000E+00,
+ 'tbs' => 1.0,
+ 'oz' => 5.00000000000000E-01,
+ 'cup' => 6.25000000000000E-02,
+ 'pt' => 3.12500000000000E-02,
+ 'us_pt' => 3.12500000000000E-02,
+ 'uk_pt' => 2.60267555046588E-02,
+ 'qt' => 1.56250000000000E-02,
+ 'gal' => 3.90625000000000E-03,
+ 'l' => 1.47899822520213E-02,
+ 'lt' => 1.47899822520213E-02
+ ),
+ 'oz' => array( 'tsp' => 6.00000000000000E+00,
+ 'tbs' => 2.00000000000000E+00,
+ 'oz' => 1.0,
+ 'cup' => 1.25000000000000E-01,
+ 'pt' => 6.25000000000000E-02,
+ 'us_pt' => 6.25000000000000E-02,
+ 'uk_pt' => 5.20535110093176E-02,
+ 'qt' => 3.12500000000000E-02,
+ 'gal' => 7.81250000000000E-03,
+ 'l' => 2.95799645040426E-02,
+ 'lt' => 2.95799645040426E-02
+ ),
+ 'cup' => array( 'tsp' => 4.80000000000000E+01,
+ 'tbs' => 1.60000000000000E+01,
+ 'oz' => 8.00000000000000E+00,
+ 'cup' => 1.0,
+ 'pt' => 5.00000000000000E-01,
+ 'us_pt' => 5.00000000000000E-01,
+ 'uk_pt' => 4.16428088074541E-01,
+ 'qt' => 2.50000000000000E-01,
+ 'gal' => 6.25000000000000E-02,
+ 'l' => 2.36639716032341E-01,
+ 'lt' => 2.36639716032341E-01
+ ),
+ 'pt' => array( 'tsp' => 9.60000000000000E+01,
+ 'tbs' => 3.20000000000000E+01,
+ 'oz' => 1.60000000000000E+01,
+ 'cup' => 2.00000000000000E+00,
+ 'pt' => 1.0,
+ 'us_pt' => 1.0,
+ 'uk_pt' => 8.32856176149081E-01,
+ 'qt' => 5.00000000000000E-01,
+ 'gal' => 1.25000000000000E-01,
+ 'l' => 4.73279432064682E-01,
+ 'lt' => 4.73279432064682E-01
+ ),
+ 'us_pt' => array( 'tsp' => 9.60000000000000E+01,
+ 'tbs' => 3.20000000000000E+01,
+ 'oz' => 1.60000000000000E+01,
+ 'cup' => 2.00000000000000E+00,
+ 'pt' => 1.0,
+ 'us_pt' => 1.0,
+ 'uk_pt' => 8.32856176149081E-01,
+ 'qt' => 5.00000000000000E-01,
+ 'gal' => 1.25000000000000E-01,
+ 'l' => 4.73279432064682E-01,
+ 'lt' => 4.73279432064682E-01
+ ),
+ 'uk_pt' => array( 'tsp' => 1.15266000000000E+02,
+ 'tbs' => 3.84220000000000E+01,
+ 'oz' => 1.92110000000000E+01,
+ 'cup' => 2.40137500000000E+00,
+ 'pt' => 1.20068750000000E+00,
+ 'us_pt' => 1.20068750000000E+00,
+ 'uk_pt' => 1.0,
+ 'qt' => 6.00343750000000E-01,
+ 'gal' => 1.50085937500000E-01,
+ 'l' => 5.68260698087162E-01,
+ 'lt' => 5.68260698087162E-01
+ ),
+ 'qt' => array( 'tsp' => 1.92000000000000E+02,
+ 'tbs' => 6.40000000000000E+01,
+ 'oz' => 3.20000000000000E+01,
+ 'cup' => 4.00000000000000E+00,
+ 'pt' => 2.00000000000000E+00,
+ 'us_pt' => 2.00000000000000E+00,
+ 'uk_pt' => 1.66571235229816E+00,
+ 'qt' => 1.0,
+ 'gal' => 2.50000000000000E-01,
+ 'l' => 9.46558864129363E-01,
+ 'lt' => 9.46558864129363E-01
+ ),
+ 'gal' => array( 'tsp' => 7.68000000000000E+02,
+ 'tbs' => 2.56000000000000E+02,
+ 'oz' => 1.28000000000000E+02,
+ 'cup' => 1.60000000000000E+01,
+ 'pt' => 8.00000000000000E+00,
+ 'us_pt' => 8.00000000000000E+00,
+ 'uk_pt' => 6.66284940919265E+00,
+ 'qt' => 4.00000000000000E+00,
+ 'gal' => 1.0,
+ 'l' => 3.78623545651745E+00,
+ 'lt' => 3.78623545651745E+00
+ ),
+ 'l' => array( 'tsp' => 2.02840000000000E+02,
+ 'tbs' => 6.76133333333333E+01,
+ 'oz' => 3.38066666666667E+01,
+ 'cup' => 4.22583333333333E+00,
+ 'pt' => 2.11291666666667E+00,
+ 'us_pt' => 2.11291666666667E+00,
+ 'uk_pt' => 1.75975569552166E+00,
+ 'qt' => 1.05645833333333E+00,
+ 'gal' => 2.64114583333333E-01,
+ 'l' => 1.0,
+ 'lt' => 1.0
+ ),
+ 'lt' => array( 'tsp' => 2.02840000000000E+02,
+ 'tbs' => 6.76133333333333E+01,
+ 'oz' => 3.38066666666667E+01,
+ 'cup' => 4.22583333333333E+00,
+ 'pt' => 2.11291666666667E+00,
+ 'us_pt' => 2.11291666666667E+00,
+ 'uk_pt' => 1.75975569552166E+00,
+ 'qt' => 1.05645833333333E+00,
+ 'gal' => 2.64114583333333E-01,
+ 'l' => 1.0,
+ 'lt' => 1.0
+ )
+ )
+ );
+
+
+ /**
+ * getConversionGroups
+ *
+ * @return array
+ */
+ public static function getConversionGroups() {
+ $conversionGroups = array();
+ foreach(self::$_conversionUnits as $conversionUnit) {
+ $conversionGroups[] = $conversionUnit['Group'];
+ }
+ return array_merge(array_unique($conversionGroups));
+ } // function getConversionGroups()
+
+
+ /**
+ * getConversionGroupUnits
+ *
+ * @return array
+ */
+ public static function getConversionGroupUnits($group = NULL) {
+ $conversionGroups = array();
+ foreach(self::$_conversionUnits as $conversionUnit => $conversionGroup) {
+ if ((is_null($group)) || ($conversionGroup['Group'] == $group)) {
+ $conversionGroups[$conversionGroup['Group']][] = $conversionUnit;
+ }
+ }
+ return $conversionGroups;
+ } // function getConversionGroupUnits()
+
+
+ /**
+ * getConversionGroupUnitDetails
+ *
+ * @return array
+ */
+ public static function getConversionGroupUnitDetails($group = NULL) {
+ $conversionGroups = array();
+ foreach(self::$_conversionUnits as $conversionUnit => $conversionGroup) {
+ if ((is_null($group)) || ($conversionGroup['Group'] == $group)) {
+ $conversionGroups[$conversionGroup['Group']][] = array( 'unit' => $conversionUnit,
+ 'description' => $conversionGroup['Unit Name']
+ );
+ }
+ }
+ return $conversionGroups;
+ } // function getConversionGroupUnitDetails()
+
+
+ /**
+ * getConversionGroups
+ *
+ * @return array
+ */
+ public static function getConversionMultipliers() {
+ return self::$_conversionMultipliers;
+ } // function getConversionGroups()
+
+
+ /**
+ * CONVERTUOM
+ *
+ * @param float $value
+ * @param string $fromUOM
+ * @param string $toUOM
+ * @return float
+ */
+ public static function CONVERTUOM($value, $fromUOM, $toUOM) {
+ $value = self::flattenSingleValue($value);
+ $fromUOM = self::flattenSingleValue($fromUOM);
+ $toUOM = self::flattenSingleValue($toUOM);
+
+ if (!is_numeric($value)) {
+ return self::$_errorCodes['value'];
+ }
+ $fromMultiplier = 1;
+ if (isset(self::$_conversionUnits[$fromUOM])) {
+ $unitGroup1 = self::$_conversionUnits[$fromUOM]['Group'];
+ } else {
+ $fromMultiplier = substr($fromUOM,0,1);
+ $fromUOM = substr($fromUOM,1);
+ if (isset(self::$_conversionMultipliers[$fromMultiplier])) {
+ $fromMultiplier = self::$_conversionMultipliers[$fromMultiplier]['multiplier'];
+ } else {
+ return self::$_errorCodes['na'];
+ }
+ if ((isset(self::$_conversionUnits[$fromUOM])) && (self::$_conversionUnits[$fromUOM]['AllowPrefix'])) {
+ $unitGroup1 = self::$_conversionUnits[$fromUOM]['Group'];
+ } else {
+ return self::$_errorCodes['na'];
+ }
+ }
+ $value *= $fromMultiplier;
+
+ $toMultiplier = 1;
+ if (isset(self::$_conversionUnits[$toUOM])) {
+ $unitGroup2 = self::$_conversionUnits[$toUOM]['Group'];
+ } else {
+ $toMultiplier = substr($toUOM,0,1);
+ $toUOM = substr($toUOM,1);
+ if (isset(self::$_conversionMultipliers[$toMultiplier])) {
+ $toMultiplier = self::$_conversionMultipliers[$toMultiplier]['multiplier'];
+ } else {
+ return self::$_errorCodes['na'];
+ }
+ if ((isset(self::$_conversionUnits[$toUOM])) && (self::$_conversionUnits[$toUOM]['AllowPrefix'])) {
+ $unitGroup2 = self::$_conversionUnits[$toUOM]['Group'];
+ } else {
+ return self::$_errorCodes['na'];
+ }
+ }
+ if ($unitGroup1 != $unitGroup2) {
+ return self::$_errorCodes['na'];
+ }
+
+ if ($fromUOM == $toUOM) {
+ return 1.0;
+ } elseif ($unitGroup1 == 'Temperature') {
+ if (($fromUOM == 'F') || ($fromUOM == 'fah')) {
+ if (($toUOM == 'F') || ($toUOM == 'fah')) {
+ return 1.0;
+ } else {
+ $value = (($value - 32) / 1.8);
+ if (($toUOM == 'K') || ($toUOM == 'kel')) {
+ $value += 273.15;
+ }
+ return $value;
+ }
+ } elseif ((($fromUOM == 'K') || ($fromUOM == 'kel')) &&
+ (($toUOM == 'K') || ($toUOM == 'kel'))) {
+ return 1.0;
+ } elseif ((($fromUOM == 'C') || ($fromUOM == 'cel')) &&
+ (($toUOM == 'C') || ($toUOM == 'cel'))) {
+ return 1.0;
+ }
+ if (($toUOM == 'F') || ($toUOM == 'fah')) {
+ if (($fromUOM == 'K') || ($fromUOM == 'kel')) {
+ $value -= 273.15;
+ }
+ return ($value * 1.8) + 32;
+ }
+ if (($toUOM == 'C') || ($toUOM == 'cel')) {
+ return $value - 273.15;
+ }
+ return $value + 273.15;
+ }
+ return ($value * self::$_unitConversions[$unitGroup1][$fromUOM][$toUOM]) / $toMultiplier;
+ } // function CONVERTUOM()
+
+
+ /**
+ * BESSELI
+ *
+ * Returns the modified Bessel function, which is equivalent to the Bessel function evaluated for purely imaginary arguments
+ *
+ * @param float $x
+ * @param float $n
+ * @return int
+ */
+ public static function BESSELI($x, $n) {
+ $x = self::flattenSingleValue($x);
+ $n = floor(self::flattenSingleValue($n));
+
+ if ((is_numeric($x)) && (is_numeric($n))) {
+ if ($n < 0) {
+ return self::$_errorCodes['num'];
+ }
+ $f_2_PI = 2 * pi();
+
+ if (abs($x) <= 30) {
+ $fTerm = pow($x / 2, $n) / self::FACT($n);
+ $nK = 1;
+ $fResult = $fTerm;
+ $fSqrX = pow($x,2) / 4;
+ do {
+ $fTerm *= $fSqrX;
+ $fTerm /= ($nK * ($nK + $n));
+ $fResult += $fTerm;
+ } while ((abs($fTerm) > 1e-10) && (++$nK < 100));
+ } else {
+ $fXAbs = abs($x);
+ $fResult = exp($fXAbs) / sqrt($f_2_PI * $fXAbs);
+ if (($n && 1) && ($x < 0)) {
+ $fResult = -$fResult;
+ }
+ }
+ return $fResult;
+ }
+ return self::$_errorCodes['value'];
+ } // function BESSELI()
+
+
+ /**
+ * BESSELJ
+ *
+ * Returns the Bessel function
+ *
+ * @param float $x
+ * @param float $n
+ * @return int
+ */
+ public static function BESSELJ($x, $n) {
+ $x = self::flattenSingleValue($x);
+ $n = floor(self::flattenSingleValue($n));
+
+ if ((is_numeric($x)) && (is_numeric($n))) {
+ if ($n < 0) {
+ return self::$_errorCodes['num'];
+ }
+ $f_2_DIV_PI = 2 / pi();
+ $f_PI_DIV_2 = pi() / 2;
+ $f_PI_DIV_4 = pi() / 4;
+
+ $fResult = 0;
+ if (abs($x) <= 30) {
+ $fTerm = pow($x / 2, $n) / self::FACT($n);
+ $nK = 1;
+ $fResult = $fTerm;
+ $fSqrX = pow($x,2) / -4;
+ do {
+ $fTerm *= $fSqrX;
+ $fTerm /= ($nK * ($nK + $n));
+ $fResult += $fTerm;
+ } while ((abs($fTerm) > 1e-10) && (++$nK < 100));
+ } else {
+ $fXAbs = abs($x);
+ $fResult = sqrt($f_2_DIV_PI / $fXAbs) * cos($fXAbs - $n * $f_PI_DIV_2 - $f_PI_DIV_4);
+ if (($n && 1) && ($x < 0)) {
+ $fResult = -$fResult;
+ }
+ }
+ return $fResult;
+ }
+ return self::$_errorCodes['value'];
+ } // function BESSELJ()
+
+
+ private static function _Besselk0($fNum) {
+ if ($fNum <= 2) {
+ $fNum2 = $fNum * 0.5;
+ $y = pow($fNum2,2);
+ $fRet = -log($fNum2) * self::BESSELI($fNum, 0) +
+ (-0.57721566 + $y * (0.42278420 + $y * (0.23069756 + $y * (0.3488590e-1 + $y * (0.262698e-2 + $y *
+ (0.10750e-3 + $y * 0.74e-5))))));
+ } else {
+ $y = 2 / $fNum;
+ $fRet = exp(-$fNum) / sqrt($fNum) *
+ (1.25331414 + $y * (-0.7832358e-1 + $y * (0.2189568e-1 + $y * (-0.1062446e-1 + $y *
+ (0.587872e-2 + $y * (-0.251540e-2 + $y * 0.53208e-3))))));
+ }
+ return $fRet;
+ } // function _Besselk0()
+
+
+ private static function _Besselk1($fNum) {
+ if ($fNum <= 2) {
+ $fNum2 = $fNum * 0.5;
+ $y = pow($fNum2,2);
+ $fRet = log($fNum2) * self::BESSELI($fNum, 1) +
+ (1 + $y * (0.15443144 + $y * (-0.67278579 + $y * (-0.18156897 + $y * (-0.1919402e-1 + $y *
+ (-0.110404e-2 + $y * (-0.4686e-4))))))) / $fNum;
+ } else {
+ $y = 2 / $fNum;
+ $fRet = exp(-$fNum) / sqrt($fNum) *
+ (1.25331414 + $y * (0.23498619 + $y * (-0.3655620e-1 + $y * (0.1504268e-1 + $y * (-0.780353e-2 + $y *
+ (0.325614e-2 + $y * (-0.68245e-3)))))));
+ }
+ return $fRet;
+ } // function _Besselk1()
+
+
+ /**
+ * BESSELK
+ *
+ * Returns the modified Bessel function, which is equivalent to the Bessel functions evaluated for purely imaginary arguments.
+ *
+ * @param float $x
+ * @param float $ord
+ * @return float
+ */
+ public static function BESSELK($x, $ord) {
+ $x = self::flattenSingleValue($x);
+ $ord = floor(self::flattenSingleValue($ord));
+
+ if ((is_numeric($x)) && (is_numeric($ord))) {
+ if ($ord < 0) {
+ return self::$_errorCodes['num'];
+ }
+
+ switch($ord) {
+ case 0 : return self::_Besselk0($x);
+ break;
+ case 1 : return self::_Besselk1($x);
+ break;
+ default : $fTox = 2 / $x;
+ $fBkm = self::_Besselk0($x);
+ $fBk = self::_Besselk1($x);
+ for ($n = 1; $n < $ord; ++$n) {
+ $fBkp = $fBkm + $n * $fTox * $fBk;
+ $fBkm = $fBk;
+ $fBk = $fBkp;
+ }
+ }
+ return $fBk;
+ }
+ return self::$_errorCodes['value'];
+ } // function BESSELK()
+
+
+ private static function _Bessely0($fNum) {
+ if ($fNum < 8.0) {
+ $y = pow($fNum,2);
+ $f1 = -2957821389.0 + $y * (7062834065.0 + $y * (-512359803.6 + $y * (10879881.29 + $y * (-86327.92757 + $y * 228.4622733))));
+ $f2 = 40076544269.0 + $y * (745249964.8 + $y * (7189466.438 + $y * (47447.26470 + $y * (226.1030244 + $y))));
+ $fRet = $f1 / $f2 + 0.636619772 * self::BESSELJ($fNum, 0) * log($fNum);
+ } else {
+ $z = 8.0 / $fNum;
+ $y = pow($z,2);
+ $xx = $fNum - 0.785398164;
+ $f1 = 1 + $y * (-0.1098628627e-2 + $y * (0.2734510407e-4 + $y * (-0.2073370639e-5 + $y * 0.2093887211e-6)));
+ $f2 = -0.1562499995e-1 + $y * (0.1430488765e-3 + $y * (-0.6911147651e-5 + $y * (0.7621095161e-6 + $y * (-0.934945152e-7))));
+ $fRet = sqrt(0.636619772 / $fNum) * (sin($xx) * $f1 + $z * cos($xx) * $f2);
+ }
+ return $fRet;
+ } // function _Bessely0()
+
+
+ private static function _Bessely1($fNum) {
+ if ($fNum < 8.0) {
+ $y = pow($fNum,2);
+ $f1 = $fNum * (-0.4900604943e13 + $y * (0.1275274390e13 + $y * (-0.5153438139e11 + $y * (0.7349264551e9 + $y *
+ (-0.4237922726e7 + $y * 0.8511937935e4)))));
+ $f2 = 0.2499580570e14 + $y * (0.4244419664e12 + $y * (0.3733650367e10 + $y * (0.2245904002e8 + $y *
+ (0.1020426050e6 + $y * (0.3549632885e3 + $y)))));
+ $fRet = $f1 / $f2 + 0.636619772 * ( self::BESSELJ($fNum, 1) * log($fNum) - 1 / $fNum);
+ } else {
+ $z = 8.0 / $fNum;
+ $y = pow($z,2);
+ $xx = $fNum - 2.356194491;
+ $f1 = 1 + $y * (0.183105e-2 + $y * (-0.3516396496e-4 + $y * (0.2457520174e-5 + $y * (-0.240337019e6))));
+ $f2 = 0.04687499995 + $y * (-0.2002690873e-3 + $y * (0.8449199096e-5 + $y * (-0.88228987e-6 + $y * 0.105787412e-6)));
+ $fRet = sqrt(0.636619772 / $fNum) * (sin($xx) * $f1 + $z * cos($xx) * $f2);
+ #i12430# ...but this seems to work much better.
+// $fRet = sqrt(0.636619772 / $fNum) * sin($fNum - 2.356194491);
+ }
+ return $fRet;
+ } // function _Bessely1()
+
+
+ /**
+ * BESSELY
+ *
+ * Returns the Bessel function, which is also called the Weber function or the Neumann function.
+ *
+ * @param float $x
+ * @param float $n
+ * @return int
+ */
+ public static function BESSELY($x, $ord) {
+ $x = self::flattenSingleValue($x);
+ $ord = floor(self::flattenSingleValue($ord));
+
+ if ((is_numeric($x)) && (is_numeric($ord))) {
+ if ($ord < 0) {
+ return self::$_errorCodes['num'];
+ }
+
+ switch($ord) {
+ case 0 : return self::_Bessely0($x);
+ break;
+ case 1 : return self::_Bessely1($x);
+ break;
+ default: $fTox = 2 / $x;
+ $fBym = self::_Bessely0($x);
+ $fBy = self::_Bessely1($x);
+ for ($n = 1; $n < $ord; ++$n) {
+ $fByp = $n * $fTox * $fBy - $fBym;
+ $fBym = $fBy;
+ $fBy = $fByp;
+ }
+ }
+ return $fBy;
+ }
+ return self::$_errorCodes['value'];
+ } // function BESSELY()
+
+
+ /**
+ * DELTA
+ *
+ * Tests whether two values are equal. Returns 1 if number1 = number2; returns 0 otherwise.
+ *
+ * @param float $a
+ * @param float $b
+ * @return int
+ */
+ public static function DELTA($a, $b=0) {
+ $a = self::flattenSingleValue($a);
+ $b = self::flattenSingleValue($b);
+
+ return (int) ($a == $b);
+ } // function DELTA()
+
+
+ /**
+ * GESTEP
+ *
+ * Returns 1 if number = step; returns 0 (zero) otherwise
+ *
+ * @param float $number
+ * @param float $step
+ * @return int
+ */
+ public static function GESTEP($number, $step=0) {
+ $number = self::flattenSingleValue($number);
+ $step = self::flattenSingleValue($step);
+
+ return (int) ($number >= $step);
+ } // function GESTEP()
+
+
+ //
+ // Private method to calculate the erf value
+ //
+ private static $_two_sqrtpi = 1.128379167095512574;
+ private static $_rel_error = 1E-15;
+
+ private static function _erfVal($x) {
+ if (abs($x) > 2.2) {
+ return 1 - self::_erfcVal($x);
+ }
+ $sum = $term = $x;
+ $xsqr = pow($x,2);
+ $j = 1;
+ do {
+ $term *= $xsqr / $j;
+ $sum -= $term / (2 * $j + 1);
+ ++$j;
+ $term *= $xsqr / $j;
+ $sum += $term / (2 * $j + 1);
+ ++$j;
+ if ($sum == 0) {
+ break;
+ }
+ } while (abs($term / $sum) > self::$_rel_error);
+ return self::$_two_sqrtpi * $sum;
+ } // function _erfVal()
+
+
+ /**
+ * ERF
+ *
+ * Returns the error function integrated between lower_limit and upper_limit
+ *
+ * @param float $lower lower bound for integrating ERF
+ * @param float $upper upper bound for integrating ERF.
+ * If omitted, ERF integrates between zero and lower_limit
+ * @return int
+ */
+ public static function ERF($lower, $upper = null) {
+ $lower = self::flattenSingleValue($lower);
+ $upper = self::flattenSingleValue($upper);
+
+ if (is_numeric($lower)) {
+ if ($lower < 0) {
+ return self::$_errorCodes['num'];
+ }
+ if (is_null($upper)) {
+ return self::_erfVal($lower);
+ }
+ if (is_numeric($upper)) {
+ if ($upper < 0) {
+ return self::$_errorCodes['num'];
+ }
+ return self::_erfVal($upper) - self::_erfVal($lower);
+ }
+ }
+ return self::$_errorCodes['value'];
+ } // function ERF()
+
+
+ //
+ // Private method to calculate the erfc value
+ //
+ private static $_one_sqrtpi = 0.564189583547756287;
+
+ private static function _erfcVal($x) {
+ if (abs($x) < 2.2) {
+ return 1 - self::_erfVal($x);
+ }
+ if ($x < 0) {
+ return 2 - self::erfc(-$x);
+ }
+ $a = $n = 1;
+ $b = $c = $x;
+ $d = pow($x,2) + 0.5;
+ $q1 = $q2 = $b / $d;
+ $t = 0;
+ do {
+ $t = $a * $n + $b * $x;
+ $a = $b;
+ $b = $t;
+ $t = $c * $n + $d * $x;
+ $c = $d;
+ $d = $t;
+ $n += 0.5;
+ $q1 = $q2;
+ $q2 = $b / $d;
+ } while ((abs($q1 - $q2) / $q2) > self::$_rel_error);
+ return self::$_one_sqrtpi * exp(-$x * $x) * $q2;
+ } // function _erfcVal()
+
+
+ /**
+ * ERFC
+ *
+ * Returns the complementary ERF function integrated between x and infinity
+ *
+ * @param float $x The lower bound for integrating ERF
+ * @return int
+ */
+ public static function ERFC($x) {
+ $x = self::flattenSingleValue($x);
+
+ if (is_numeric($x)) {
+ if ($x < 0) {
+ return self::$_errorCodes['num'];
+ }
+ return self::_erfcVal($x);
+ }
+ return self::$_errorCodes['value'];
+ } // function ERFC()
+
+
+ /**
+ * LOWERCASE
+ *
+ * Converts a string value to upper case.
+ *
+ * @param string $mixedCaseString
+ * @return string
+ */
+ public static function LOWERCASE($mixedCaseString) {
+ $mixedCaseString = self::flattenSingleValue($mixedCaseString);
+
+ if (function_exists('mb_convert_case')) {
+ return mb_convert_case($mixedCaseString, MB_CASE_LOWER, 'UTF-8');
+ } else {
+ return strtoupper($mixedCaseString);
+ }
+ } // function LOWERCASE()
+
+
+ /**
+ * UPPERCASE
+ *
+ * Converts a string value to upper case.
+ *
+ * @param string $mixedCaseString
+ * @return string
+ */
+ public static function UPPERCASE($mixedCaseString) {
+ $mixedCaseString = self::flattenSingleValue($mixedCaseString);
+
+ if (function_exists('mb_convert_case')) {
+ return mb_convert_case($mixedCaseString, MB_CASE_UPPER, 'UTF-8');
+ } else {
+ return strtoupper($mixedCaseString);
+ }
+ } // function UPPERCASE()
+
+
+ /**
+ * PROPERCASE
+ *
+ * Converts a string value to upper case.
+ *
+ * @param string $mixedCaseString
+ * @return string
+ */
+ public static function PROPERCASE($mixedCaseString) {
+ $mixedCaseString = self::flattenSingleValue($mixedCaseString);
+
+ if (function_exists('mb_convert_case')) {
+ return mb_convert_case($mixedCaseString, MB_CASE_TITLE, 'UTF-8');
+ } else {
+ return ucwords($mixedCaseString);
+ }
+ } // function PROPERCASE()
+
+
+ /**
+ * DOLLAR
+ *
+ * This function converts a number to text using currency format, with the decimals rounded to the specified place.
+ * The format used is $#,##0.00_);($#,##0.00)..
+ *
+ * @param float $value The value to format
+ * @param int $decimals The number of digits to display to the right of the decimal point.
+ * If decimals is negative, number is rounded to the left of the decimal point.
+ * If you omit decimals, it is assumed to be 2
+ * @return string
+ */
+ public static function DOLLAR($value = 0, $decimals = 2) {
+ $value = self::flattenSingleValue($value);
+ $decimals = self::flattenSingleValue($decimals);
+
+ // Validate parameters
+ if (!is_numeric($value) || !is_numeric($decimals)) {
+ return self::$_errorCodes['num'];
+ }
+ $decimals = floor($decimals);
+
+ if ($decimals > 0) {
+ return money_format('%.'.$decimals.'n',$value);
+ } else {
+ $round = pow(10,abs($decimals));
+ if ($value < 0) { $round = 0-$round; }
+ $value = self::MROUND($value,$round);
+ // The implementation of money_format used if the standard PHP function is not available can't handle decimal places of 0,
+ // so we display to 1 dp and chop off that character and the decimal separator using substr
+ return substr(money_format('%.1n',$value),0,-2);
+ }
+ } // function DOLLAR()
+
+
+ /**
+ * DOLLARDE
+ *
+ * Converts a dollar price expressed as an integer part and a fraction part into a dollar price expressed as a decimal number.
+ * Fractional dollar numbers are sometimes used for security prices.
+ *
+ * @param float $fractional_dollar Fractional Dollar
+ * @param int $fraction Fraction
+ * @return float
+ */
+ public static function DOLLARDE($fractional_dollar = Null, $fraction = 0) {
+ $fractional_dollar = self::flattenSingleValue($fractional_dollar);
+ $fraction = (int)self::flattenSingleValue($fraction);
+
+ // Validate parameters
+ if (is_null($fractional_dollar) || $fraction < 0) {
+ return self::$_errorCodes['num'];
+ }
+ if ($fraction == 0) {
+ return self::$_errorCodes['divisionbyzero'];
+ }
+
+ $dollars = floor($fractional_dollar);
+ $cents = fmod($fractional_dollar,1);
+ $cents /= $fraction;
+ $cents *= pow(10,ceil(log10($fraction)));
+ return $dollars + $cents;
+ } // function DOLLARDE()
+
+
+ /**
+ * DOLLARFR
+ *
+ * Converts a dollar price expressed as a decimal number into a dollar price expressed as a fraction.
+ * Fractional dollar numbers are sometimes used for security prices.
+ *
+ * @param float $decimal_dollar Decimal Dollar
+ * @param int $fraction Fraction
+ * @return float
+ */
+ public static function DOLLARFR($decimal_dollar = Null, $fraction = 0) {
+ $decimal_dollar = self::flattenSingleValue($decimal_dollar);
+ $fraction = (int)self::flattenSingleValue($fraction);
+
+ // Validate parameters
+ if (is_null($decimal_dollar) || $fraction < 0) {
+ return self::$_errorCodes['num'];
+ }
+ if ($fraction == 0) {
+ return self::$_errorCodes['divisionbyzero'];
+ }
+
+ $dollars = floor($decimal_dollar);
+ $cents = fmod($decimal_dollar,1);
+ $cents *= $fraction;
+ $cents *= pow(10,-ceil(log10($fraction)));
+ return $dollars + $cents;
+ } // function DOLLARFR()
+
+
+ /**
+ * EFFECT
+ *
+ * Returns the effective interest rate given the nominal rate and the number of compounding payments per year.
+ *
+ * @param float $nominal_rate Nominal interest rate
+ * @param int $npery Number of compounding payments per year
+ * @return float
+ */
+ public static function EFFECT($nominal_rate = 0, $npery = 0) {
+ $nominal_rate = self::flattenSingleValue($nominal_rate);
+ $npery = (int)self::flattenSingleValue($npery);
+
+ // Validate parameters
+ if ($nominal_rate <= 0 || $npery < 1) {
+ return self::$_errorCodes['num'];
+ }
+
+ return pow((1 + $nominal_rate / $npery), $npery) - 1;
+ } // function EFFECT()
+
+
+ /**
+ * NOMINAL
+ *
+ * Returns the nominal interest rate given the effective rate and the number of compounding payments per year.
+ *
+ * @param float $effect_rate Effective interest rate
+ * @param int $npery Number of compounding payments per year
+ * @return float
+ */
+ public static function NOMINAL($effect_rate = 0, $npery = 0) {
+ $effect_rate = self::flattenSingleValue($effect_rate);
+ $npery = (int)self::flattenSingleValue($npery);
+
+ // Validate parameters
+ if ($effect_rate <= 0 || $npery < 1) {
+ return self::$_errorCodes['num'];
+ }
+
+ // Calculate
+ return $npery * (pow($effect_rate + 1, 1 / $npery) - 1);
+ } // function NOMINAL()
+
+
+ /**
+ * PV
+ *
+ * Returns the Present Value of a cash flow with constant payments and interest rate (annuities).
+ *
+ * @param float $rate Interest rate per period
+ * @param int $nper Number of periods
+ * @param float $pmt Periodic payment (annuity)
+ * @param float $fv Future Value
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function PV($rate = 0, $nper = 0, $pmt = 0, $fv = 0, $type = 0) {
+ $rate = self::flattenSingleValue($rate);
+ $nper = self::flattenSingleValue($nper);
+ $pmt = self::flattenSingleValue($pmt);
+ $fv = self::flattenSingleValue($fv);
+ $type = self::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return self::$_errorCodes['num'];
+ }
+
+ // Calculate
+ if (!is_null($rate) && $rate != 0) {
+ return (-$pmt * (1 + $rate * $type) * ((pow(1 + $rate, $nper) - 1) / $rate) - $fv) / pow(1 + $rate, $nper);
+ } else {
+ return -$fv - $pmt * $nper;
+ }
+ } // function PV()
+
+
+ /**
+ * FV
+ *
+ * Returns the Future Value of a cash flow with constant payments and interest rate (annuities).
+ *
+ * @param float $rate Interest rate per period
+ * @param int $nper Number of periods
+ * @param float $pmt Periodic payment (annuity)
+ * @param float $pv Present Value
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function FV($rate = 0, $nper = 0, $pmt = 0, $pv = 0, $type = 0) {
+ $rate = self::flattenSingleValue($rate);
+ $nper = self::flattenSingleValue($nper);
+ $pmt = self::flattenSingleValue($pmt);
+ $pv = self::flattenSingleValue($pv);
+ $type = self::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return self::$_errorCodes['num'];
+ }
+
+ // Calculate
+ if (!is_null($rate) && $rate != 0) {
+ return -$pv * pow(1 + $rate, $nper) - $pmt * (1 + $rate * $type) * (pow(1 + $rate, $nper) - 1) / $rate;
+ } else {
+ return -$pv - $pmt * $nper;
+ }
+ } // function FV()
+
+
+ /**
+ * PMT
+ *
+ * Returns the constant payment (annuity) for a cash flow with a constant interest rate.
+ *
+ * @param float $rate Interest rate per period
+ * @param int $nper Number of periods
+ * @param float $pv Present Value
+ * @param float $fv Future Value
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function PMT($rate = 0, $nper = 0, $pv = 0, $fv = 0, $type = 0) {
+ $rate = self::flattenSingleValue($rate);
+ $nper = self::flattenSingleValue($nper);
+ $pv = self::flattenSingleValue($pv);
+ $fv = self::flattenSingleValue($fv);
+ $type = self::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return self::$_errorCodes['num'];
+ }
+
+ // Calculate
+ if (!is_null($rate) && $rate != 0) {
+ return (-$fv - $pv * pow(1 + $rate, $nper)) / (1 + $rate * $type) / ((pow(1 + $rate, $nper) - 1) / $rate);
+ } else {
+ return (-$pv - $fv) / $nper;
+ }
+ } // function PMT()
+
+
+ /**
+ * NPER
+ *
+ * Returns the number of periods for a cash flow with constant periodic payments (annuities), and interest rate.
+ *
+ * @param float $rate Interest rate per period
+ * @param int $pmt Periodic payment (annuity)
+ * @param float $pv Present Value
+ * @param float $fv Future Value
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function NPER($rate = 0, $pmt = 0, $pv = 0, $fv = 0, $type = 0) {
+ $rate = self::flattenSingleValue($rate);
+ $pmt = self::flattenSingleValue($pmt);
+ $pv = self::flattenSingleValue($pv);
+ $fv = self::flattenSingleValue($fv);
+ $type = self::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return self::$_errorCodes['num'];
+ }
+
+ // Calculate
+ if (!is_null($rate) && $rate != 0) {
+ if ($pmt == 0 && $pv == 0) {
+ return self::$_errorCodes['num'];
+ }
+ return log(($pmt * (1 + $rate * $type) / $rate - $fv) / ($pv + $pmt * (1 + $rate * $type) / $rate)) / log(1 + $rate);
+ } else {
+ if ($pmt == 0) {
+ return self::$_errorCodes['num'];
+ }
+ return (-$pv -$fv) / $pmt;
+ }
+ } // function NPER()
+
+
+ private static function _interestAndPrincipal($rate=0, $per=0, $nper=0, $pv=0, $fv=0, $type=0) {
+ $pmt = self::PMT($rate, $nper, $pv, $fv, $type);
+ $capital = $pv;
+ for ($i = 1; $i<= $per; ++$i) {
+ $interest = ($type && $i == 1)? 0 : -$capital * $rate;
+ $principal = $pmt - $interest;
+ $capital += $principal;
+ }
+ return array($interest, $principal);
+ } // function _interestAndPrincipal()
+
+
+ /**
+ * IPMT
+ *
+ * Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate.
+ *
+ * @param float $rate Interest rate per period
+ * @param int $per Period for which we want to find the interest
+ * @param int $nper Number of periods
+ * @param float $pv Present Value
+ * @param float $fv Future Value
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function IPMT($rate, $per, $nper, $pv, $fv = 0, $type = 0) {
+ $rate = self::flattenSingleValue($rate);
+ $per = (int) self::flattenSingleValue($per);
+ $nper = (int) self::flattenSingleValue($nper);
+ $pv = self::flattenSingleValue($pv);
+ $fv = self::flattenSingleValue($fv);
+ $type = (int) self::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return self::$_errorCodes['num'];
+ }
+ if ($per <= 0 || $per > $nper) {
+ return self::$_errorCodes['value'];
+ }
+
+ // Calculate
+ $interestAndPrincipal = self::_interestAndPrincipal($rate, $per, $nper, $pv, $fv, $type);
+ return $interestAndPrincipal[0];
+ } // function IPMT()
+
+
+ /**
+ * CUMIPMT
+ *
+ * Returns the cumulative interest paid on a loan between start_period and end_period.
+ *
+ * @param float $rate Interest rate per period
+ * @param int $nper Number of periods
+ * @param float $pv Present Value
+ * @param int start The first period in the calculation.
+ * Payment periods are numbered beginning with 1.
+ * @param int end The last period in the calculation.
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function CUMIPMT($rate, $nper, $pv, $start, $end, $type = 0) {
+ $rate = self::flattenSingleValue($rate);
+ $nper = (int) self::flattenSingleValue($nper);
+ $pv = self::flattenSingleValue($pv);
+ $start = (int) self::flattenSingleValue($start);
+ $end = (int) self::flattenSingleValue($end);
+ $type = (int) self::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return self::$_errorCodes['num'];
+ }
+ if ($start < 1 || $start > $end) {
+ return self::$_errorCodes['value'];
+ }
+
+ // Calculate
+ $interest = 0;
+ for ($per = $start; $per <= $end; ++$per) {
+ $interest += self::IPMT($rate, $per, $nper, $pv, 0, $type);
+ }
+
+ return $interest;
+ } // function CUMIPMT()
+
+
+ /**
+ * PPMT
+ *
+ * Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate.
+ *
+ * @param float $rate Interest rate per period
+ * @param int $per Period for which we want to find the interest
+ * @param int $nper Number of periods
+ * @param float $pv Present Value
+ * @param float $fv Future Value
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function PPMT($rate, $per, $nper, $pv, $fv = 0, $type = 0) {
+ $rate = self::flattenSingleValue($rate);
+ $per = (int) self::flattenSingleValue($per);
+ $nper = (int) self::flattenSingleValue($nper);
+ $pv = self::flattenSingleValue($pv);
+ $fv = self::flattenSingleValue($fv);
+ $type = (int) self::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return self::$_errorCodes['num'];
+ }
+ if ($per <= 0 || $per > $nper) {
+ return self::$_errorCodes['value'];
+ }
+
+ // Calculate
+ $interestAndPrincipal = self::_interestAndPrincipal($rate, $per, $nper, $pv, $fv, $type);
+ return $interestAndPrincipal[1];
+ } // function PPMT()
+
+
+ /**
+ * CUMPRINC
+ *
+ * Returns the cumulative principal paid on a loan between start_period and end_period.
+ *
+ * @param float $rate Interest rate per period
+ * @param int $nper Number of periods
+ * @param float $pv Present Value
+ * @param int start The first period in the calculation.
+ * Payment periods are numbered beginning with 1.
+ * @param int end The last period in the calculation.
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function CUMPRINC($rate, $nper, $pv, $start, $end, $type = 0) {
+ $rate = self::flattenSingleValue($rate);
+ $nper = (int) self::flattenSingleValue($nper);
+ $pv = self::flattenSingleValue($pv);
+ $start = (int) self::flattenSingleValue($start);
+ $end = (int) self::flattenSingleValue($end);
+ $type = (int) self::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return self::$_errorCodes['num'];
+ }
+ if ($start < 1 || $start > $end) {
+ return self::$_errorCodes['value'];
+ }
+
+ // Calculate
+ $principal = 0;
+ for ($per = $start; $per <= $end; ++$per) {
+ $principal += self::PPMT($rate, $per, $nper, $pv, 0, $type);
+ }
+
+ return $principal;
+ } // function CUMPRINC()
+
+
+ /**
+ * NPV
+ *
+ * Returns the Net Present Value of a cash flow series given a discount rate.
+ *
+ * @param float Discount interest rate
+ * @param array Cash flow series
+ * @return float
+ */
+ public static function NPV() {
+ // Return value
+ $returnValue = 0;
+
+ // Loop trough arguments
+ $aArgs = self::flattenArray(func_get_args());
+
+ // Calculate
+ $rate = array_shift($aArgs);
+ for ($i = 1; $i <= count($aArgs); ++$i) {
+ // Is it a numeric value?
+ if (is_numeric($aArgs[$i - 1])) {
+ $returnValue += $aArgs[$i - 1] / pow(1 + $rate, $i);
+ }
+ }
+
+ // Return
+ return $returnValue;
+ } // function NPV()
+
+
+ /**
+ * DB
+ *
+ * Returns the depreciation of an asset for a specified period using the fixed-declining balance method.
+ * This form of depreciation is used if you want to get a higher depreciation value at the beginning of the depreciation
+ * (as opposed to linear depreciation). The depreciation value is reduced with every depreciation period by the
+ * depreciation already deducted from the initial cost.
+ *
+ * @param float cost Initial cost of the asset.
+ * @param float salvage Value at the end of the depreciation. (Sometimes called the salvage value of the asset)
+ * @param int life Number of periods over which the asset is depreciated. (Sometimes called the useful life of the asset)
+ * @param int period The period for which you want to calculate the depreciation. Period must use the same units as life.
+ * @param float month Number of months in the first year. If month is omitted, it defaults to 12.
+ * @return float
+ */
+ public static function DB($cost, $salvage, $life, $period, $month=12) {
+ $cost = (float) self::flattenSingleValue($cost);
+ $salvage = (float) self::flattenSingleValue($salvage);
+ $life = (int) self::flattenSingleValue($life);
+ $period = (int) self::flattenSingleValue($period);
+ $month = (int) self::flattenSingleValue($month);
+
+ // Validate
+ if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period)) && (is_numeric($month))) {
+ if ($cost == 0) {
+ return 0.0;
+ } elseif (($cost < 0) || (($salvage / $cost) < 0) || ($life <= 0) || ($period < 1) || ($month < 1)) {
+ return self::$_errorCodes['num'];
+ }
+ // Set Fixed Depreciation Rate
+ $fixedDepreciationRate = 1 - pow(($salvage / $cost), (1 / $life));
+ $fixedDepreciationRate = round($fixedDepreciationRate, 3);
+
+ // Loop through each period calculating the depreciation
+ $previousDepreciation = 0;
+ for ($per = 1; $per <= $period; ++$per) {
+ if ($per == 1) {
+ $depreciation = $cost * $fixedDepreciationRate * $month / 12;
+ } elseif ($per == ($life + 1)) {
+ $depreciation = ($cost - $previousDepreciation) * $fixedDepreciationRate * (12 - $month) / 12;
+ } else {
+ $depreciation = ($cost - $previousDepreciation) * $fixedDepreciationRate;
+ }
+ $previousDepreciation += $depreciation;
+ }
+ return $depreciation;
+ }
+ return self::$_errorCodes['value'];
+ } // function DB()
+
+
+ /**
+ * DDB
+ *
+ * Returns the depreciation of an asset for a specified period using the double-declining balance method or some other method you specify.
+ *
+ * @param float cost Initial cost of the asset.
+ * @param float salvage Value at the end of the depreciation. (Sometimes called the salvage value of the asset)
+ * @param int life Number of periods over which the asset is depreciated. (Sometimes called the useful life of the asset)
+ * @param int period The period for which you want to calculate the depreciation. Period must use the same units as life.
+ * @param float factor The rate at which the balance declines.
+ * If factor is omitted, it is assumed to be 2 (the double-declining balance method).
+ * @return float
+ */
+ public static function DDB($cost, $salvage, $life, $period, $factor=2.0) {
+ $cost = (float) self::flattenSingleValue($cost);
+ $salvage = (float) self::flattenSingleValue($salvage);
+ $life = (int) self::flattenSingleValue($life);
+ $period = (int) self::flattenSingleValue($period);
+ $factor = (float) self::flattenSingleValue($factor);
+
+ // Validate
+ if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period)) && (is_numeric($factor))) {
+ if (($cost <= 0) || (($salvage / $cost) < 0) || ($life <= 0) || ($period < 1) || ($factor <= 0.0) || ($period > $life)) {
+ return self::$_errorCodes['num'];
+ }
+ // Set Fixed Depreciation Rate
+ $fixedDepreciationRate = 1 - pow(($salvage / $cost), (1 / $life));
+ $fixedDepreciationRate = round($fixedDepreciationRate, 3);
+
+ // Loop through each period calculating the depreciation
+ $previousDepreciation = 0;
+ for ($per = 1; $per <= $period; ++$per) {
+ $depreciation = min( ($cost - $previousDepreciation) * ($factor / $life), ($cost - $salvage - $previousDepreciation) );
+ $previousDepreciation += $depreciation;
+ }
+ return $depreciation;
+ }
+ return self::$_errorCodes['value'];
+ } // function DDB()
+
+
+ private static function _daysPerYear($year,$basis) {
+ switch ($basis) {
+ case 0 :
+ case 2 :
+ case 4 :
+ $daysPerYear = 360;
+ break;
+ case 3 :
+ $daysPerYear = 365;
+ break;
+ case 1 :
+ if (self::_isLeapYear(self::YEAR($year))) {
+ $daysPerYear = 366;
+ } else {
+ $daysPerYear = 365;
+ }
+ break;
+ default :
+ return self::$_errorCodes['num'];
+ }
+ return $daysPerYear;
+ } // function _daysPerYear()
+
+
+ /**
+ * ACCRINT
+ *
+ * Returns the discount rate for a security.
+ *
+ * @param mixed issue The security's issue date.
+ * @param mixed firstinter The security's first interest date.
+ * @param mixed settlement The security's settlement date.
+ * @param float rate The security's annual coupon rate.
+ * @param float par The security's par value.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function ACCRINT($issue, $firstinter, $settlement, $rate, $par=1000, $frequency=1, $basis=0) {
+ $issue = self::flattenSingleValue($issue);
+ $firstinter = self::flattenSingleValue($firstinter);
+ $settlement = self::flattenSingleValue($settlement);
+ $rate = (float) self::flattenSingleValue($rate);
+ $par = (is_null($par)) ? 1000 : (float) self::flattenSingleValue($par);
+ $frequency = (is_null($frequency)) ? 1 : (int) self::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : (int) self::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($rate)) && (is_numeric($par))) {
+ if (($rate <= 0) || ($par <= 0)) {
+ return self::$_errorCodes['num'];
+ }
+ $daysBetweenIssueAndSettlement = self::YEARFRAC($issue, $settlement, $basis);
+ if (!is_numeric($daysBetweenIssueAndSettlement)) {
+ return $daysBetweenIssueAndSettlement;
+ }
+ $daysPerYear = self::_daysPerYear(self::YEAR($issue),$basis);
+ if (!is_numeric($daysPerYear)) {
+ return $daysPerYear;
+ }
+ $daysBetweenIssueAndSettlement *= $daysPerYear;
+
+ return $par * $rate * ($daysBetweenIssueAndSettlement / $daysPerYear);
+ }
+ return self::$_errorCodes['value'];
+ } // function ACCRINT()
+
+
+ /**
+ * ACCRINTM
+ *
+ * Returns the discount rate for a security.
+ *
+ * @param mixed issue The security's issue date.
+ * @param mixed settlement The security's settlement date.
+ * @param float rate The security's annual coupon rate.
+ * @param float par The security's par value.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function ACCRINTM($issue, $settlement, $rate, $par=1000, $basis=0) {
+ $issue = self::flattenSingleValue($issue);
+ $settlement = self::flattenSingleValue($settlement);
+ $rate = (float) self::flattenSingleValue($rate);
+ $par = (is_null($par)) ? 1000 : (float) self::flattenSingleValue($par);
+ $basis = (is_null($basis)) ? 0 : (int) self::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($rate)) && (is_numeric($par))) {
+ if (($rate <= 0) || ($par <= 0)) {
+ return self::$_errorCodes['num'];
+ }
+ $daysBetweenIssueAndSettlement = self::YEARFRAC($issue, $settlement, $basis);
+ if (!is_numeric($daysBetweenIssueAndSettlement)) {
+ return $daysBetweenIssueAndSettlement;
+ }
+ $daysPerYear = self::_daysPerYear(self::YEAR($issue),$basis);
+ if (!is_numeric($daysPerYear)) {
+ return $daysPerYear;
+ }
+ $daysBetweenIssueAndSettlement *= $daysPerYear;
+
+ return $par * $rate * ($daysBetweenIssueAndSettlement / $daysPerYear);
+ }
+ return self::$_errorCodes['value'];
+ } // function ACCRINTM()
+
+
+ public static function AMORDEGRC($cost, $purchased, $firstPeriod, $salvage, $period, $rate, $basis=0) {
+ } // function AMORDEGRC()
+
+
+ public static function AMORLINC($cost, $purchased, $firstPeriod, $salvage, $period, $rate, $basis=0) {
+ } // function AMORLINC()
+
+
+ /**
+ * DISC
+ *
+ * Returns the discount rate for a security.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param int price The security's price per $100 face value.
+ * @param int redemption the security's redemption value per $100 face value.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function DISC($settlement, $maturity, $price, $redemption, $basis=0) {
+ $settlement = self::flattenSingleValue($settlement);
+ $maturity = self::flattenSingleValue($maturity);
+ $price = (float) self::flattenSingleValue($price);
+ $redemption = (float) self::flattenSingleValue($redemption);
+ $basis = (int) self::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($price)) && (is_numeric($redemption)) && (is_numeric($basis))) {
+ if (($price <= 0) || ($redemption <= 0)) {
+ return self::$_errorCodes['num'];
+ }
+ $daysBetweenSettlementAndMaturity = self::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ return $daysBetweenSettlementAndMaturity;
+ }
+
+ return ((1 - $price / $redemption) / $daysBetweenSettlementAndMaturity);
+ }
+ return self::$_errorCodes['value'];
+ } // function DISC()
+
+
+ /**
+ * PRICEDISC
+ *
+ * Returns the price per $100 face value of a discounted security.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param int discount The security's discount rate.
+ * @param int redemption The security's redemption value per $100 face value.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function PRICEDISC($settlement, $maturity, $discount, $redemption, $basis=0) {
+ $settlement = self::flattenSingleValue($settlement);
+ $maturity = self::flattenSingleValue($maturity);
+ $discount = (float) self::flattenSingleValue($discount);
+ $redemption = (float) self::flattenSingleValue($redemption);
+ $basis = (int) self::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($discount)) && (is_numeric($redemption)) && (is_numeric($basis))) {
+ if (($discount <= 0) || ($redemption <= 0)) {
+ return self::$_errorCodes['num'];
+ }
+ $daysBetweenSettlementAndMaturity = self::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ return $daysBetweenSettlementAndMaturity;
+ }
+
+ return $redemption * (1 - $discount * $daysBetweenSettlementAndMaturity);
+ }
+ return self::$_errorCodes['value'];
+ } // function PRICEDISC()
+
+
+ /**
+ * PRICEMAT
+ *
+ * Returns the price per $100 face value of a security that pays interest at maturity.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security's settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed issue The security's issue date.
+ * @param int rate The security's interest rate at date of issue.
+ * @param int yield The security's annual yield.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function PRICEMAT($settlement, $maturity, $issue, $rate, $yield, $basis=0) {
+ $settlement = self::flattenSingleValue($settlement);
+ $maturity = self::flattenSingleValue($maturity);
+ $issue = self::flattenSingleValue($issue);
+ $rate = self::flattenSingleValue($rate);
+ $yield = self::flattenSingleValue($yield);
+ $basis = (int) self::flattenSingleValue($basis);
+
+ // Validate
+ if (is_numeric($rate) && is_numeric($yield)) {
+ if (($rate <= 0) || ($yield <= 0)) {
+ return self::$_errorCodes['num'];
+ }
+ $daysPerYear = self::_daysPerYear(self::YEAR($settlement),$basis);
+ if (!is_numeric($daysPerYear)) {
+ return $daysPerYear;
+ }
+ $daysBetweenIssueAndSettlement = self::YEARFRAC($issue, $settlement, $basis);
+ if (!is_numeric($daysBetweenIssueAndSettlement)) {
+ return $daysBetweenIssueAndSettlement;
+ }
+ $daysBetweenIssueAndSettlement *= $daysPerYear;
+ $daysBetweenIssueAndMaturity = self::YEARFRAC($issue, $maturity, $basis);
+ if (!is_numeric($daysBetweenIssueAndMaturity)) {
+ return $daysBetweenIssueAndMaturity;
+ }
+ $daysBetweenIssueAndMaturity *= $daysPerYear;
+ $daysBetweenSettlementAndMaturity = self::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ return $daysBetweenSettlementAndMaturity;
+ }
+ $daysBetweenSettlementAndMaturity *= $daysPerYear;
+
+ return ((100 + (($daysBetweenIssueAndMaturity / $daysPerYear) * $rate * 100)) /
+ (1 + (($daysBetweenSettlementAndMaturity / $daysPerYear) * $yield)) -
+ (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate * 100));
+ }
+ return self::$_errorCodes['value'];
+ } // function PRICEMAT()
+
+
+ /**
+ * RECEIVED
+ *
+ * Returns the price per $100 face value of a discounted security.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param int investment The amount invested in the security.
+ * @param int discount The security's discount rate.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function RECEIVED($settlement, $maturity, $investment, $discount, $basis=0) {
+ $settlement = self::flattenSingleValue($settlement);
+ $maturity = self::flattenSingleValue($maturity);
+ $investment = (float) self::flattenSingleValue($investment);
+ $discount = (float) self::flattenSingleValue($discount);
+ $basis = (int) self::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($investment)) && (is_numeric($discount)) && (is_numeric($basis))) {
+ if (($investment <= 0) || ($discount <= 0)) {
+ return self::$_errorCodes['num'];
+ }
+ $daysBetweenSettlementAndMaturity = self::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ return $daysBetweenSettlementAndMaturity;
+ }
+
+ return $investment / ( 1 - ($discount * $daysBetweenSettlementAndMaturity));
+ }
+ return self::$_errorCodes['value'];
+ } // function RECEIVED()
+
+
+ /**
+ * INTRATE
+ *
+ * Returns the interest rate for a fully invested security.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param int investment The amount invested in the security.
+ * @param int redemption The amount to be received at maturity.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function INTRATE($settlement, $maturity, $investment, $redemption, $basis=0) {
+ $settlement = self::flattenSingleValue($settlement);
+ $maturity = self::flattenSingleValue($maturity);
+ $investment = (float) self::flattenSingleValue($investment);
+ $redemption = (float) self::flattenSingleValue($redemption);
+ $basis = (int) self::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($investment)) && (is_numeric($redemption)) && (is_numeric($basis))) {
+ if (($investment <= 0) || ($redemption <= 0)) {
+ return self::$_errorCodes['num'];
+ }
+ $daysBetweenSettlementAndMaturity = self::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ return $daysBetweenSettlementAndMaturity;
+ }
+
+ return (($redemption / $investment) - 1) / ($daysBetweenSettlementAndMaturity);
+ }
+ return self::$_errorCodes['value'];
+ } // function INTRATE()
+
+
+ /**
+ * TBILLEQ
+ *
+ * Returns the bond-equivalent yield for a Treasury bill.
+ *
+ * @param mixed settlement The Treasury bill's settlement date.
+ * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
+ * @param mixed maturity The Treasury bill's maturity date.
+ * The maturity date is the date when the Treasury bill expires.
+ * @param int discount The Treasury bill's discount rate.
+ * @return float
+ */
+ public static function TBILLEQ($settlement, $maturity, $discount) {
+ $settlement = self::flattenSingleValue($settlement);
+ $maturity = self::flattenSingleValue($maturity);
+ $discount = self::flattenSingleValue($discount);
+
+ // Use TBILLPRICE for validation
+ $testValue = self::TBILLPRICE($settlement, $maturity, $discount);
+ if (is_string($testValue)) {
+ return $testValue;
+ }
+
+ if (is_string($maturity = self::_getDateValue($maturity))) {
+ return self::$_errorCodes['value'];
+ }
+ ++$maturity;
+
+ $daysBetweenSettlementAndMaturity = self::YEARFRAC($settlement, $maturity);
+ $daysBetweenSettlementAndMaturity *= 360;
+
+ return (365 * $discount) / (360 - ($discount * ($daysBetweenSettlementAndMaturity)));
+ } // function TBILLEQ()
+
+
+ /**
+ * TBILLPRICE
+ *
+ * Returns the yield for a Treasury bill.
+ *
+ * @param mixed settlement The Treasury bill's settlement date.
+ * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
+ * @param mixed maturity The Treasury bill's maturity date.
+ * The maturity date is the date when the Treasury bill expires.
+ * @param int discount The Treasury bill's discount rate.
+ * @return float
+ */
+ public static function TBILLPRICE($settlement, $maturity, $discount) {
+ $settlement = self::flattenSingleValue($settlement);
+ $maturity = self::flattenSingleValue($maturity);
+ $discount = self::flattenSingleValue($discount);
+
+ if (is_string($maturity = self::_getDateValue($maturity))) {
+ return self::$_errorCodes['value'];
+ }
+ ++$maturity;
+
+ // Validate
+ if (is_numeric($discount)) {
+ if ($discount <= 0) {
+ return self::$_errorCodes['num'];
+ }
+
+ $daysBetweenSettlementAndMaturity = self::YEARFRAC($settlement, $maturity);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ return $daysBetweenSettlementAndMaturity;
+ }
+ $daysBetweenSettlementAndMaturity *= 360;
+ if ($daysBetweenSettlementAndMaturity > 360) {
+ return self::$_errorCodes['num'];
+ }
+
+ $price = 100 * (1 - (($discount * $daysBetweenSettlementAndMaturity) / 360));
+ if ($price <= 0) {
+ return self::$_errorCodes['num'];
+ }
+ return $price;
+ }
+ return self::$_errorCodes['value'];
+ } // function TBILLPRICE()
+
+
+ /**
+ * TBILLYIELD
+ *
+ * Returns the yield for a Treasury bill.
+ *
+ * @param mixed settlement The Treasury bill's settlement date.
+ * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
+ * @param mixed maturity The Treasury bill's maturity date.
+ * The maturity date is the date when the Treasury bill expires.
+ * @param int price The Treasury bill's price per $100 face value.
+ * @return float
+ */
+ public static function TBILLYIELD($settlement, $maturity, $price) {
+ $settlement = self::flattenSingleValue($settlement);
+ $maturity = self::flattenSingleValue($maturity);
+ $price = self::flattenSingleValue($price);
+
+ // Validate
+ if (is_numeric($price)) {
+ if ($price <= 0) {
+ return self::$_errorCodes['num'];
+ }
+
+ $daysBetweenSettlementAndMaturity = self::YEARFRAC($settlement, $maturity);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ return $daysBetweenSettlementAndMaturity;
+ }
+
+ $daysBetweenSettlementAndMaturity *= 360;
+// Sometimes we need to add 1, sometimes not. I haven't yet worked out the rule which determines this.
+ ++$daysBetweenSettlementAndMaturity;
+ if ($daysBetweenSettlementAndMaturity > 360) {
+ return self::$_errorCodes['num'];
+ }
+
+ return ((100 - $price) / $price) * (360 / $daysBetweenSettlementAndMaturity);
+ }
+ return self::$_errorCodes['value'];
+ } // function TBILLYIELD()
+
+
+ /**
+ * SLN
+ *
+ * Returns the straight-line depreciation of an asset for one period
+ *
+ * @param cost Initial cost of the asset
+ * @param salvage Value at the end of the depreciation
+ * @param life Number of periods over which the asset is depreciated
+ * @return float
+ */
+ public static function SLN($cost, $salvage, $life) {
+ $cost = self::flattenSingleValue($cost);
+ $salvage = self::flattenSingleValue($salvage);
+ $life = self::flattenSingleValue($life);
+
+ // Calculate
+ if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life))) {
+ if ($life < 0) {
+ return self::$_errorCodes['num'];
+ }
+ return ($cost - $salvage) / $life;
+ }
+ return self::$_errorCodes['value'];
+ } // function SLN()
+
+
+ /**
+ * YIELDMAT
+ *
+ * Returns the annual yield of a security that pays interest at maturity.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security's settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed issue The security's issue date.
+ * @param int rate The security's interest rate at date of issue.
+ * @param int price The security's price per $100 face value.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function YIELDMAT($settlement, $maturity, $issue, $rate, $price, $basis=0) {
+ $settlement = self::flattenSingleValue($settlement);
+ $maturity = self::flattenSingleValue($maturity);
+ $issue = self::flattenSingleValue($issue);
+ $rate = self::flattenSingleValue($rate);
+ $price = self::flattenSingleValue($price);
+ $basis = (int) self::flattenSingleValue($basis);
+
+ // Validate
+ if (is_numeric($rate) && is_numeric($price)) {
+ if (($rate <= 0) || ($price <= 0)) {
+ return self::$_errorCodes['num'];
+ }
+ $daysPerYear = self::_daysPerYear(self::YEAR($settlement),$basis);
+ if (!is_numeric($daysPerYear)) {
+ return $daysPerYear;
+ }
+ $daysBetweenIssueAndSettlement = self::YEARFRAC($issue, $settlement, $basis);
+ if (!is_numeric($daysBetweenIssueAndSettlement)) {
+ return $daysBetweenIssueAndSettlement;
+ }
+ $daysBetweenIssueAndSettlement *= $daysPerYear;
+ $daysBetweenIssueAndMaturity = self::YEARFRAC($issue, $maturity, $basis);
+ if (!is_numeric($daysBetweenIssueAndMaturity)) {
+ return $daysBetweenIssueAndMaturity;
+ }
+ $daysBetweenIssueAndMaturity *= $daysPerYear;
+ $daysBetweenSettlementAndMaturity = self::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ return $daysBetweenSettlementAndMaturity;
+ }
+ $daysBetweenSettlementAndMaturity *= $daysPerYear;
+
+ return ((1 + (($daysBetweenIssueAndMaturity / $daysPerYear) * $rate) - (($price / 100) + (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate))) /
+ (($price / 100) + (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate))) *
+ ($daysPerYear / $daysBetweenSettlementAndMaturity);
+ }
+ return self::$_errorCodes['value'];
+ } // function YIELDMAT()
+
+
+ /**
+ * YIELDDISC
+ *
+ * Returns the annual yield of a security that pays interest at maturity.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security's settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param int price The security's price per $100 face value.
+ * @param int redemption The security's redemption value per $100 face value.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function YIELDDISC($settlement, $maturity, $price, $redemption, $basis=0) {
+ $settlement = self::flattenSingleValue($settlement);
+ $maturity = self::flattenSingleValue($maturity);
+ $price = self::flattenSingleValue($price);
+ $redemption = self::flattenSingleValue($redemption);
+ $basis = (int) self::flattenSingleValue($basis);
+
+ // Validate
+ if (is_numeric($price) && is_numeric($redemption)) {
+ if (($price <= 0) || ($redemption <= 0)) {
+ return self::$_errorCodes['num'];
+ }
+ $daysPerYear = self::_daysPerYear(self::YEAR($settlement),$basis);
+ if (!is_numeric($daysPerYear)) {
+ return $daysPerYear;
+ }
+ $daysBetweenSettlementAndMaturity = self::YEARFRAC($settlement, $maturity,$basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ return $daysBetweenSettlementAndMaturity;
+ }
+ $daysBetweenSettlementAndMaturity *= $daysPerYear;
+
+ return (($redemption - $price) / $price) * ($daysPerYear / $daysBetweenSettlementAndMaturity);
+ }
+ return self::$_errorCodes['value'];
+ } // function YIELDDISC()
+
+
+ /**
+ * CELL_ADDRESS
+ *
+ * Returns the straight-line depreciation of an asset for one period
+ *
+ * @param row Row number to use in the cell reference
+ * @param column Column number to use in the cell reference
+ * @param relativity Flag indicating the type of reference to return
+ * @param sheetText Name of worksheet to use
+ * @return string
+ */
+ public static function CELL_ADDRESS($row, $column, $relativity=1, $referenceStyle=True, $sheetText='') {
+ $row = self::flattenSingleValue($row);
+ $column = self::flattenSingleValue($column);
+ $relativity = self::flattenSingleValue($relativity);
+ $sheetText = self::flattenSingleValue($sheetText);
+
+ if ($sheetText > '') {
+ if (strpos($sheetText,' ') !== False) { $sheetText = "'".$sheetText."'"; }
+ $sheetText .='!';
+ }
+ if ((!is_bool($referenceStyle)) || $referenceStyle) {
+ $rowRelative = $columnRelative = '$';
+ $column = PHPExcel_Cell::stringFromColumnIndex($column-1);
+ if (($relativity == 2) || ($relativity == 4)) { $columnRelative = ''; }
+ if (($relativity == 3) || ($relativity == 4)) { $rowRelative = ''; }
+ return $sheetText.$columnRelative.$column.$rowRelative.$row;
+ } else {
+ if (($relativity == 2) || ($relativity == 4)) { $column = '['.$column.']'; }
+ if (($relativity == 3) || ($relativity == 4)) { $row = '['.$row.']'; }
+ return $sheetText.'R'.$row.'C'.$column;
+ }
+ } // function CELL_ADDRESS()
+
+
+ public static function COLUMN($cellAddress=Null) {
+ if (is_null($cellAddress) || $cellAddress === '') {
+ return 0;
+ }
+
+ foreach($cellAddress as $columnKey => $value) {
+ return PHPExcel_Cell::columnIndexFromString($columnKey);
+ }
+ } // function COLUMN()
+
+
+ public static function ROW($cellAddress=Null) {
+ if ($cellAddress === Null) {
+ return 0;
+ }
+
+ foreach($cellAddress as $columnKey => $rowValue) {
+ foreach($rowValue as $rowKey => $cellValue) {
+ return $rowKey;
+ }
+ }
+ } // function ROW()
+
+
+ public static function OFFSET($cellAddress=Null,$rows=0,$columns=0,$height=null,$width=null) {
+ if ($cellAddress == Null) {
+ return 0;
+ }
+
+ foreach($cellAddress as $startColumnKey => $rowValue) {
+ $startColumnIndex = PHPExcel_Cell::columnIndexFromString($startColumnKey);
+ foreach($rowValue as $startRowKey => $cellValue) {
+ break 2;
+ }
+ }
+
+ foreach($cellAddress as $endColumnKey => $rowValue) {
+ foreach($rowValue as $endRowKey => $cellValue) {
+ }
+ }
+ $endColumnIndex = PHPExcel_Cell::columnIndexFromString($endColumnKey);
+
+ $startColumnIndex += --$columns;
+ $startRowKey += $rows;
+
+ if ($width == null) {
+ $endColumnIndex += $columns -1;
+ } else {
+ $endColumnIndex = $startColumnIndex + $width;
+ }
+ if ($height == null) {
+ $endRowKey += $rows;
+ } else {
+ $endRowKey = $startRowKey + $height -1;
+ }
+
+ if (($startColumnIndex < 0) || ($startRowKey <= 0)) {
+ return self::$_errorCodes['reference'];
+ }
+
+ $startColumnKey = PHPExcel_Cell::stringFromColumnIndex($startColumnIndex);
+ $endColumnKey = PHPExcel_Cell::stringFromColumnIndex($endColumnIndex);
+
+ $startCell = $startColumnKey.$startRowKey;
+ $endCell = $endColumnKey.$endRowKey;
+
+ if ($startCell == $endCell) {
+ return $startColumnKey.$startRowKey;
+ } else {
+ return $startColumnKey.$startRowKey.':'.$endColumnKey.$endRowKey;
+ }
+ } // function OFFSET()
+
+
+ public static function CHOOSE() {
+ $chooseArgs = func_get_args();
+ $chosenEntry = self::flattenSingleValue(array_shift($chooseArgs));
+ $entryCount = count($chooseArgs) - 1;
+
+ if ((is_numeric($chosenEntry)) && (!is_bool($chosenEntry))) {
+ --$chosenEntry;
+ } else {
+ return self::$_errorCodes['value'];
+ }
+ $chosenEntry = floor($chosenEntry);
+ if (($chosenEntry <= 0) || ($chosenEntry > $entryCount)) {
+ return self::$_errorCodes['value'];
+ }
+
+ if (is_array($chooseArgs[$chosenEntry])) {
+ return self::flattenArray($chooseArgs[$chosenEntry]);
+ } else {
+ return $chooseArgs[$chosenEntry];
+ }
+ } // function CHOOSE()
+
+
+ /**
+ * MATCH
+ * The MATCH function searches for a specified item in a range of cells
+ * @param lookup_value The value that you want to match in lookup_array
+ * @param lookup_array The range of cells being searched
+ * @param match_type The number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered.
+ * @return integer the relative position of the found item
+ */
+ public static function MATCH($lookup_value, $lookup_array, $match_type=1) {
+
+ // flatten the lookup_array
+ $lookup_array = self::flattenArray($lookup_array);
+
+ // flatten lookup_value since it may be a cell reference to a value or the value itself
+ $lookup_value = self::flattenSingleValue($lookup_value);
+
+ // MATCH is not case sensitive
+ $lookup_value = strtolower($lookup_value);
+
+ /*
+ echo "-------------------- looking for $lookup_value in ";
+ print_r($lookup_array);
+ echo " ";
+ //return 1;
+ /**/
+
+ // **
+ // check inputs
+ // **
+ // lookup_value type has to be number, text, or logical values
+ if (!is_numeric($lookup_value) && !is_string($lookup_value) && !is_bool($lookup_value)){
+ // error: lookup_array should contain only number, text, or logical values
+ //echo "error: lookup_array should contain only number, text, or logical values ";
+ return self::$_errorCodes['na'];
+ }
+
+ // match_type is 0, 1 or -1
+ if ($match_type!==0 && $match_type!==-1 && $match_type!==1){
+ // error: wrong value for match_type
+ //echo "error: wrong value for match_type ";
+ return self::$_errorCodes['na'];
+ }
+
+ // lookup_array should not be empty
+ if (sizeof($lookup_array)<=0){
+ // error: empty range
+ //echo "error: empty range ".sizeof($lookup_array)." ";
+ return self::$_errorCodes['na'];
+ }
+
+ // lookup_array should contain only number, text, or logical values
+ for ($i=0;$i";
+ return self::$_errorCodes['na'];
+ }
+ // convert tpo lowercase
+ if (is_string($lookup_array[$i]))
+ $lookup_array[$i] = strtolower($lookup_array[$i]);
+ }
+
+ // if match_type is 1 or -1, the list has to be ordered
+ if($match_type==1 || $match_type==-1){
+ // **
+ // iniitialization
+ // store the last value
+ $iLastValue=$lookup_array[0];
+ // **
+ // loop on the cells
+ for ($i=0;$i$iLastValue)){
+ // error: list is not ordered correctly
+ //echo "error: list is not ordered correctly ";
+ return self::$_errorCodes['na'];
+ }
+ }
+ }
+ // **
+ // find the match
+ // **
+ // loop on the cells
+ for ($i=0; $i < sizeof($lookup_array); ++$i){
+ // if match_type is 0 <=> find the first value that is exactly equal to lookup_value
+ if ($match_type==0 && $lookup_array[$i]==$lookup_value){
+ // this is the exact match
+ return $i+1;
+ }
+ // if match_type is -1 <=> find the smallest value that is greater than or equal to lookup_value
+ if ($match_type==-1 && $lookup_array[$i] < $lookup_value){
+ if ($i<1){
+ // 1st cell was allready smaller than the lookup_value
+ break;
+ }
+ else
+ // the previous cell was the match
+ return $i;
+ }
+ // if match_type is 1 <=> find the largest value that is less than or equal to lookup_value
+ if ($match_type==1 && $lookup_array[$i] > $lookup_value){
+ if ($i<1){
+ // 1st cell was allready bigger than the lookup_value
+ break;
+ }
+ else
+ // the previous cell was the match
+ return $i;
+ }
+ }
+ // unsuccessful in finding a match, return #N/A error value
+ //echo "unsuccessful in finding a match ";
+ return self::$_errorCodes['na'];
+ } // function MATCH()
+
+
+ /**
+ * Uses an index to choose a value from a reference or array
+ * implemented: Return the value of a specified cell or array of cells Array form
+ * not implemented: Return a reference to specified cells Reference form
+ *
+ * @param range_array a range of cells or an array constant
+ * @param row_num selects the row in array from which to return a value. If row_num is omitted, column_num is required.
+ * @param column_num selects the column in array from which to return a value. If column_num is omitted, row_num is required.
+ */
+ public static function INDEX($arrayValues,$rowNum = 0,$columnNum = 0) {
+
+ if (($rowNum < 0) || ($columnNum < 0)) {
+ return self::$_errorCodes['value'];
+ }
+
+ $rowKeys = array_keys($arrayValues);
+ $columnKeys = array_keys($arrayValues[$rowKeys[0]]);
+ if ($columnNum > count($columnKeys)) {
+ return self::$_errorCodes['value'];
+ } elseif ($columnNum == 0) {
+ if ($rowNum == 0) {
+ return $arrayValues;
+ }
+ $rowNum = $rowKeys[--$rowNum];
+ $returnArray = array();
+ foreach($arrayValues as $arrayColumn) {
+ $returnArray[] = $arrayColumn[$rowNum];
+ }
+ return $returnArray;
+ }
+ $columnNum = $columnKeys[--$columnNum];
+ if ($rowNum > count($rowKeys)) {
+ return self::$_errorCodes['value'];
+ } elseif ($rowNum == 0) {
+ return $arrayValues[$columnNum];
+ }
+ $rowNum = $rowKeys[--$rowNum];
+
+ return $arrayValues[$rowNum][$columnNum];
+ } // function INDEX()
+
+
+ /**
+ * SYD
+ *
+ * Returns the sum-of-years' digits depreciation of an asset for a specified period.
+ *
+ * @param cost Initial cost of the asset
+ * @param salvage Value at the end of the depreciation
+ * @param life Number of periods over which the asset is depreciated
+ * @param period Period
+ * @return float
+ */
+ public static function SYD($cost, $salvage, $life, $period) {
+ $cost = self::flattenSingleValue($cost);
+ $salvage = self::flattenSingleValue($salvage);
+ $life = self::flattenSingleValue($life);
+ $period = self::flattenSingleValue($period);
+
+ // Calculate
+ if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period))) {
+ if (($life < 1) || ($salvage < $life) || ($period > $life)) {
+ return self::$_errorCodes['num'];
+ }
+ return (($cost - $salvage) * ($life - $period + 1) * 2) / ($life * ($life + 1));
+ }
+ return self::$_errorCodes['value'];
+ } // function SYD()
+
+
+ /**
+ * TRANSPOSE
+ *
+ * @param array $matrixData A matrix of values
+ * @return array
+ *
+ * Unlike the Excel TRANSPOSE function, which will only work on a single row or column, this function will transpose a full matrix.
+ */
+ public static function TRANSPOSE($matrixData) {
+ $returnMatrix = array();
+ if (!is_array($matrixData)) { $matrixData = array(array($matrixData)); }
+
+ $column = 0;
+ foreach($matrixData as $matrixRow) {
+ $row = 0;
+ foreach($matrixRow as $matrixCell) {
+ $returnMatrix[$column][$row] = $matrixCell;
+ ++$row;
+ }
+ ++$column;
+ }
+ return $returnMatrix;
+ } // function TRANSPOSE()
+
+
+ /**
+ * MMULT
+ *
+ * @param array $matrixData1 A matrix of values
+ * @param array $matrixData2 A matrix of values
+ * @return array
+ */
+ public static function MMULT($matrixData1,$matrixData2) {
+ $matrixAData = $matrixBData = array();
+ if (!is_array($matrixData1)) { $matrixData1 = array(array($matrixData1)); }
+ if (!is_array($matrixData2)) { $matrixData2 = array(array($matrixData2)); }
+
+ $rowA = 0;
+ foreach($matrixData1 as $matrixRow) {
+ $columnA = 0;
+ foreach($matrixRow as $matrixCell) {
+ if ((is_string($matrixCell)) || ($matrixCell === null)) {
+ return self::$_errorCodes['value'];
+ }
+ $matrixAData[$rowA][$columnA] = $matrixCell;
+ ++$columnA;
+ }
+ ++$rowA;
+ }
+ try {
+ $matrixA = new Matrix($matrixAData);
+ $rowB = 0;
+ foreach($matrixData2 as $matrixRow) {
+ $columnB = 0;
+ foreach($matrixRow as $matrixCell) {
+ if ((is_string($matrixCell)) || ($matrixCell === null)) {
+ return self::$_errorCodes['value'];
+ }
+ $matrixBData[$rowB][$columnB] = $matrixCell;
+ ++$columnB;
+ }
+ ++$rowB;
+ }
+ $matrixB = new Matrix($matrixBData);
+
+ if (($rowA != $columnB) || ($rowB != $columnA)) {
+ return self::$_errorCodes['value'];
+ }
+
+ return $matrixA->times($matrixB)->getArray();
+ } catch (Exception $ex) {
+ return self::$_errorCodes['value'];
+ }
+ } // function MMULT()
+
+
+ /**
+ * MINVERSE
+ *
+ * @param array $matrixValues A matrix of values
+ * @return array
+ */
+ public static function MINVERSE($matrixValues) {
+ $matrixData = array();
+ if (!is_array($matrixValues)) { $matrixValues = array(array($matrixValues)); }
+
+ $row = $maxColumn = 0;
+ foreach($matrixValues as $matrixRow) {
+ $column = 0;
+ foreach($matrixRow as $matrixCell) {
+ if ((is_string($matrixCell)) || ($matrixCell === null)) {
+ return self::$_errorCodes['value'];
+ }
+ $matrixData[$column][$row] = $matrixCell;
+ ++$column;
+ }
+ if ($column > $maxColumn) { $maxColumn = $column; }
+ ++$row;
+ }
+ if ($row != $maxColumn) { return self::$_errorCodes['value']; }
+
+ try {
+ $matrix = new Matrix($matrixData);
+ return $matrix->inverse()->getArray();
+ } catch (Exception $ex) {
+ return self::$_errorCodes['value'];
+ }
+ } // function MINVERSE()
+
+
+ /**
+ * MDETERM
+ *
+ * @param array $matrixValues A matrix of values
+ * @return float
+ */
+ public static function MDETERM($matrixValues) {
+ $matrixData = array();
+ if (!is_array($matrixValues)) { $matrixValues = array(array($matrixValues)); }
+
+ $row = $maxColumn = 0;
+ foreach($matrixValues as $matrixRow) {
+ $column = 0;
+ foreach($matrixRow as $matrixCell) {
+ if ((is_string($matrixCell)) || ($matrixCell === null)) {
+ return self::$_errorCodes['value'];
+ }
+ $matrixData[$column][$row] = $matrixCell;
+ ++$column;
+ }
+ if ($column > $maxColumn) { $maxColumn = $column; }
+ ++$row;
+ }
+ if ($row != $maxColumn) { return self::$_errorCodes['value']; }
+
+ try {
+ $matrix = new Matrix($matrixData);
+ return $matrix->det();
+ } catch (Exception $ex) {
+ return self::$_errorCodes['value'];
+ }
+ } // function MDETERM()
+
+
+ /**
+ * SUMX2MY2
+ *
+ * @param mixed $value Value to check
+ * @return float
+ */
+ public static function SUMX2MY2($matrixData1,$matrixData2) {
+ $array1 = self::flattenArray($matrixData1);
+ $array2 = self::flattenArray($matrixData2);
+ $count1 = count($array1);
+ $count2 = count($array2);
+ if ($count1 < $count2) {
+ $count = $count1;
+ } else {
+ $count = $count2;
+ }
+
+ $result = 0;
+ for ($i = 0; $i < $count; ++$i) {
+ if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) &&
+ ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) {
+ $result += ($array1[$i] * $array1[$i]) - ($array2[$i] * $array2[$i]);
+ }
+ }
+
+ return $result;
+ } // function SUMX2MY2()
+
+
+ /**
+ * SUMX2PY2
+ *
+ * @param mixed $value Value to check
+ * @return float
+ */
+ public static function SUMX2PY2($matrixData1,$matrixData2) {
+ $array1 = self::flattenArray($matrixData1);
+ $array2 = self::flattenArray($matrixData2);
+ $count1 = count($array1);
+ $count2 = count($array2);
+ if ($count1 < $count2) {
+ $count = $count1;
+ } else {
+ $count = $count2;
+ }
+
+ $result = 0;
+ for ($i = 0; $i < $count; ++$i) {
+ if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) &&
+ ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) {
+ $result += ($array1[$i] * $array1[$i]) + ($array2[$i] * $array2[$i]);
+ }
+ }
+
+ return $result;
+ } // function SUMX2PY2()
+
+
+ /**
+ * SUMXMY2
+ *
+ * @param mixed $value Value to check
+ * @return float
+ */
+ public static function SUMXMY2($matrixData1,$matrixData2) {
+ $array1 = self::flattenArray($matrixData1);
+ $array2 = self::flattenArray($matrixData2);
+ $count1 = count($array1);
+ $count2 = count($array2);
+ if ($count1 < $count2) {
+ $count = $count1;
+ } else {
+ $count = $count2;
+ }
+
+ $result = 0;
+ for ($i = 0; $i < $count; ++$i) {
+ if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) &&
+ ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) {
+ $result += ($array1[$i] - $array2[$i]) * ($array1[$i] - $array2[$i]);
+ }
+ }
+
+ return $result;
+ } // function SUMXMY2()
+
+
+ /**
+ * VLOOKUP
+ * The VLOOKUP function searches for value in the left-most column of lookup_array and returns the value in the same row based on the index_number.
+ * @param lookup_value The value that you want to match in lookup_array
+ * @param lookup_array The range of cells being searched
+ * @param index_number The column number in table_array from which the matching value must be returned. The first column is 1.
+ * @param not_exact_match Determines if you are looking for an exact match based on lookup_value.
+ * @return mixed The value of the found cell
+ */
+ public static function VLOOKUP($lookup_value, $lookup_array, $index_number, $not_exact_match=true) {
+ // index_number must be greater than or equal to 1
+ if ($index_number < 1) {
+ return self::$_errorCodes['value'];
+ }
+
+ // index_number must be less than or equal to the number of columns in lookup_array
+ if ($index_number > count($lookup_array)) {
+ return self::$_errorCodes['reference'];
+ }
+
+ // re-index lookup_array with numeric keys starting at 1
+ array_unshift($lookup_array, array());
+ $lookup_array = array_slice(array_values($lookup_array), 1, count($lookup_array), true);
+
+ // look for an exact match
+ $row_number = array_search($lookup_value, $lookup_array[1]);
+
+ // if an exact match is required, we have what we need to return an appropriate response
+ if ($not_exact_match == false) {
+ if ($row_number === false) {
+ return self::$_errorCodes['na'];
+ } else {
+ return $lookup_array[$index_number][$row_number];
+ }
+ }
+
+ // TODO: The VLOOKUP spec in Excel states that, at this point, we should search for
+ // the highest value that is less than lookup_value. However, documentation on how string
+ // values should be treated here is sparse.
+ return self::$_errorCodes['na'];
+ } // function VLOOKUP()
+
+ /**
+ * LOOKUP
+ * The LOOKUP function searches for value either from a one-row or one-column range or from an array.
+ * @param lookup_value The value that you want to match in lookup_array
+ * @param lookup_vector The range of cells being searched
+ * @param result_vector The column from which the matching value must be returned
+ * @return mixed The value of the found cell
+ */
+ public static function LOOKUP($lookup_value, $lookup_vector, $result_vector=null) {
+
+ // check for LOOKUP Syntax (view Excel documentation)
+ if( is_null($result_vector) )
+ {
+ // TODO: Syntax 2 (array)
+ } else {
+ // Syntax 1 (vector)
+ // get key (column or row) of lookup_vector
+ $kl = key($lookup_vector);
+ // check if lookup_value exists in lookup_vector
+ if( in_array($lookup_value, $lookup_vector[$kl]) )
+ {
+ // FOUND IT! Get key of lookup_vector
+ $k_res = array_search($lookup_value, $lookup_vector[$kl]);
+ } else {
+ // value NOT FOUND
+ // Get the smallest value in lookup_vector
+ // The LOOKUP spec in Excel states --> IMPORTANT - The values in lookup_vector must be placed in ascending order!
+ $ksv = key($lookup_vector[$kl]);
+ $smallest_value = $lookup_vector[$kl][$ksv];
+ // If lookup_value is smaller than the smallest value in lookup_vector, LOOKUP gives the #N/A error value.
+ if( $lookup_value < $smallest_value )
+ {
+ return self::$_errorCodes['na'];
+ } else {
+ // If LOOKUP can't find the lookup_value, it matches the largest value in lookup_vector that is less than or equal to lookup_value.
+ // IMPORTANT : In Excel Documentation is not clear what happen if lookup_value is text!
+ foreach( $lookup_vector[$kl] AS $kk => $value )
+ {
+ if( $lookup_value >= $value )
+ {
+ $k_res = $kk;
+ }
+ }
+ }
+ }
+
+ // Returns a value from the same position in result_vector
+ // get key (column or row) of result_vector
+ $kr = key($result_vector);
+ if( isset($result_vector[$kr][$k_res]) )
+ {
+ return $result_vector[$kr][$k_res];
+ } else {
+ // TODO: In Excel Documentation is not clear what happen here...
+ }
+ }
+ } // function LOOKUP()
+
+
+ /**
+ * Flatten multidemensional array
+ *
+ * @param array $array Array to be flattened
+ * @return array Flattened array
+ */
+ public static function flattenArray($array) {
+ if(!is_array ( $array ) ){
+ $array = array ( $array );
+ }
+
+ $arrayValues = array();
+
+ foreach ($array as $value) {
+ if (is_scalar($value)) {
+ $arrayValues[] = self::flattenSingleValue($value);
+ } elseif (is_array($value)) {
+ $arrayValues = array_merge($arrayValues, self::flattenArray($value));
+ } else {
+ $arrayValues[] = $value;
+ }
+ }
+
+ return $arrayValues;
+ } // function flattenArray()
+
+
+ /**
+ * Convert an array with one element to a flat value
+ *
+ * @param mixed $value Array or flat value
+ * @return mixed
+ */
+ public static function flattenSingleValue($value = '') {
+ if (is_array($value)) {
+ $value = self::flattenSingleValue(array_pop($value));
+ }
+ return $value;
+ } // function flattenSingleValue()
+
+} // class PHPExcel_Calculation_Functions
+
+
+//
+// There are a few mathematical functions that aren't available on all versions of PHP for all platforms
+// These functions aren't available in Windows implementations of PHP prior to version 5.3.0
+// So we test if they do exist for this version of PHP/operating platform; and if not we create them
+//
+if (!function_exists('acosh')) {
+ function acosh($x) {
+ return 2 * log(sqrt(($x + 1) / 2) + sqrt(($x - 1) / 2));
+ } // function acosh()
+}
+
+if (!function_exists('asinh')) {
+ function asinh($x) {
+ return log($x + sqrt(1 + $x * $x));
+ } // function asinh()
+}
+
+if (!function_exists('atanh')) {
+ function atanh($x) {
+ return (log(1 + $x) - log(1 - $x)) / 2;
+ } // function atanh()
+}
+
+if (!function_exists('money_format')) {
+ function money_format($format, $number) {
+ $regex = array( '/%((?:[\^!\-]|\+|\(|\=.)*)([0-9]+)?(?:#([0-9]+))?',
+ '(?:\.([0-9]+))?([in%])/'
+ );
+ $regex = implode('', $regex);
+ if (setlocale(LC_MONETARY, null) == '') {
+ setlocale(LC_MONETARY, '');
+ }
+ $locale = localeconv();
+ $number = floatval($number);
+ if (!preg_match($regex, $format, $fmatch)) {
+ trigger_error("No format specified or invalid format", E_USER_WARNING);
+ return $number;
+ }
+ $flags = array( 'fillchar' => preg_match('/\=(.)/', $fmatch[1], $match) ? $match[1] : ' ',
+ 'nogroup' => preg_match('/\^/', $fmatch[1]) > 0,
+ 'usesignal' => preg_match('/\+|\(/', $fmatch[1], $match) ? $match[0] : '+',
+ 'nosimbol' => preg_match('/\!/', $fmatch[1]) > 0,
+ 'isleft' => preg_match('/\-/', $fmatch[1]) > 0
+ );
+ $width = trim($fmatch[2]) ? (int)$fmatch[2] : 0;
+ $left = trim($fmatch[3]) ? (int)$fmatch[3] : 0;
+ $right = trim($fmatch[4]) ? (int)$fmatch[4] : $locale['int_frac_digits'];
+ $conversion = $fmatch[5];
+ $positive = true;
+ if ($number < 0) {
+ $positive = false;
+ $number *= -1;
+ }
+ $letter = $positive ? 'p' : 'n';
+ $prefix = $suffix = $cprefix = $csuffix = $signal = '';
+ if (!$positive) {
+ $signal = $locale['negative_sign'];
+ switch (true) {
+ case $locale['n_sign_posn'] == 0 || $flags['usesignal'] == '(':
+ $prefix = '(';
+ $suffix = ')';
+ break;
+ case $locale['n_sign_posn'] == 1:
+ $prefix = $signal;
+ break;
+ case $locale['n_sign_posn'] == 2:
+ $suffix = $signal;
+ break;
+ case $locale['n_sign_posn'] == 3:
+ $cprefix = $signal;
+ break;
+ case $locale['n_sign_posn'] == 4:
+ $csuffix = $signal;
+ break;
+ }
+ }
+ if (!$flags['nosimbol']) {
+ $currency = $cprefix;
+ $currency .= ($conversion == 'i' ? $locale['int_curr_symbol'] : $locale['currency_symbol']);
+ $currency .= $csuffix;
+ $currency = iconv('ISO-8859-1','UTF-8',$currency);
+ } else {
+ $currency = '';
+ }
+ $space = $locale["{$letter}_sep_by_space"] ? ' ' : '';
+
+ $number = number_format($number, $right, $locale['mon_decimal_point'], $flags['nogroup'] ? '' : $locale['mon_thousands_sep'] );
+ $number = explode($locale['mon_decimal_point'], $number);
+
+ $n = strlen($prefix) + strlen($currency);
+ if ($left > 0 && $left > $n) {
+ if ($flags['isleft']) {
+ $number[0] .= str_repeat($flags['fillchar'], $left - $n);
+ } else {
+ $number[0] = str_repeat($flags['fillchar'], $left - $n) . $number[0];
+ }
+ }
+ $number = implode($locale['mon_decimal_point'], $number);
+ if ($locale["{$letter}_cs_precedes"]) {
+ $number = $prefix . $currency . $space . $number . $suffix;
+ } else {
+ $number = $prefix . $number . $space . $currency . $suffix;
+ }
+ if ($width > 0) {
+ $number = str_pad($number, $width, $flags['fillchar'], $flags['isleft'] ? STR_PAD_RIGHT : STR_PAD_LEFT);
+ }
+ $format = str_replace($fmatch[0], $number, $format);
+ return $format;
+ } // function money_format()
+}
diff --git a/libraries/PHPExcel/PHPExcel/Calculation/functionlist.txt b/libraries/PHPExcel/PHPExcel/Calculation/functionlist.txt
new file mode 100644
index 000000000..67dbd49cf
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Calculation/functionlist.txt
@@ -0,0 +1,351 @@
+ABS
+ACCRINT
+ACCRINTM
+ACOS
+ACOSH
+ADDRESS
+AMORDEGRC
+AMORLINC
+AND
+AREAS
+ASC
+ASIN
+ASINH
+ATAN
+ATAN2
+ATANH
+AVEDEV
+AVERAGE
+AVERAGEA
+AVERAGEIF
+AVERAGEIFS
+BAHTTEXT
+BESSELI
+BESSELJ
+BESSELK
+BESSELY
+BETADIST
+BETAINV
+BIN2DEC
+BIN2HEX
+BIN2OCT
+BINOMDIST
+CEILING
+CELL
+CHAR
+CHIDIST
+CHIINV
+CHITEST
+CHOOSE
+CLEAN
+CODE
+COLUMN
+COLUMNS
+COMBIN
+COMPLEX
+CONCATENATE
+CONFIDENCE
+CONVERT
+CORREL
+COS
+COSH
+COUNT
+COUNTA
+COUNTBLANK
+COUNTIF
+COUNTIFS
+COUPDAYBS
+COUPDAYBS
+COUPDAYSNC
+COUPNCD
+COUPNUM
+COUPPCD
+COVAR
+CRITBINOM
+CUBEKPIMEMBER
+CUBEMEMBER
+CUBEMEMBERPROPERTY
+CUBERANKEDMEMBER
+CUBESET
+CUBESETCOUNT
+CUBEVALUE
+CUMIPMT
+CUMPRINC
+DATE
+DATEDIF
+DATEVALUE
+DAVERAGE
+DAY
+DAYS360
+DB
+DCOUNT
+DCOUNTA
+DDB
+DEC2BIN
+DEC2HEX
+DEC2OCT
+DEGREES
+DELTA
+DEVSQ
+DGET
+DISC
+DMAX
+DMIN
+DOLLAR
+DOLLARDE
+DOLLARFR
+DPRODUCT
+DSTDEV
+DSTDEVP
+DSUM
+DURATION
+DVAR
+DVARP
+EDATE
+EFFECT
+EOMONTH
+ERF
+ERFC
+ERROR.TYPE
+EVEN
+EXACT
+EXP
+EXPONDIST
+FACT
+FACTDOUBLE
+FALSE
+FDIST
+FIND
+FINDB
+FINV
+FISHER
+FISHERINV
+FIXED
+FLOOR
+FORECAST
+FREQUENCY
+FTEST
+FV
+FVSCHEDULE
+GAMAMDIST
+GAMMAINV
+GAMMALN
+GCD
+GEOMEAN
+GESTEP
+GETPIVOTDATA
+GROWTH
+HARMEAN
+HEX2BIN
+HEX2OCT
+HLOOKUP
+HOUR
+HYPERLINK
+HYPGEOMDIST
+IF
+IFERROR
+IMABS
+IMAGINARY
+IMARGUMENT
+IMCONJUGATE
+IMCOS
+IMEXP
+IMLN
+IMLOG10
+IMLOG2
+IMPOWER
+IMPRODUCT
+IMREAL
+IMSIN
+IMSQRT
+IMSUB
+IMSUM
+INDEX
+INDIRECT
+INFO
+INT
+INTERCEPT
+INTRATE
+IPMT
+IRR
+ISBLANK
+ISERR
+ISERROR
+ISEVEN
+ISLOGICAL
+ISNA
+ISNONTEXT
+ISNUMBER
+ISODD
+ISPMT
+ISREF
+ISTEXT
+JIS
+KURT
+LARGE
+LCM
+LEFT
+LEFTB
+LEN
+LENB
+LINEST
+LN
+LOG
+LOG10
+LOGEST
+LOGINV
+LOGNORMDIST
+LOOKUP
+LOWER
+MATCH
+MAX
+MAXA
+MDETERM
+MDURATION
+MEDIAN
+MID
+MIDB
+MIN
+MINA
+MINUTE
+MINVERSE
+MIRR
+MMULT
+MOD
+MODE
+MONTH
+MROUND
+MULTINOMIAL
+N
+NA
+NEGBINOMDIST
+NETWORKDAYS
+NOMINAL
+NORMDIST
+NORMINV
+NORMSDIST
+NORMSINV
+NOT
+NOW
+NPER
+NPV
+OCT2BIN
+OCT2DEC
+OCT2HEX
+ODD
+ODDFPRICE
+ODDFYIELD
+ODDLPRICE
+ODDLYIELD
+OFFSET
+OR
+PEARSON
+PERCENTILE
+PERCENTRANK
+PERMUT
+PHONETIC
+PI
+PMT
+POISSON
+POWER
+PPMT
+PRICE
+PRICEDISC
+PRICEMAT
+PROB
+PRODUCT
+PROPER
+PV
+QUARTILE
+QUOTIENT
+RADIANS
+RAND
+RANDBETWEEN
+RANK
+RATE
+RECEIVED
+REPLACE
+REPLACEB
+REPT
+RIGHT
+RIGHTB
+ROMAN
+ROUND
+ROUNDDOWN
+ROUNDUP
+ROW
+ROWS
+RSQ
+RTD
+SEARCH
+SEARCHB
+SECOND
+SERIESSUM
+SIGN
+SIN
+SINH
+SKEW
+SLN
+SLOPE
+SMALL
+SQRT
+SQRTPI
+STANDARDIZE
+STDEV
+STDEVA
+STDEVP
+STDEVPA
+STEYX
+SUBSTITUTE
+SUBTOTAL
+SUM
+SUMIF
+SUMIFS
+SUMPRODUCT
+SUMSQ
+SUMX2MY2
+SUMX2PY2
+SUMXMY2
+SYD
+T
+TAN
+TANH
+TBILLEQ
+TBILLPRICE
+TBILLYIELD
+TDIST
+TEXT
+TIME
+TIMEVALUE
+TINV
+TODAY
+TRANSPOSE
+TREND
+TRIM
+TRIMMEAN
+TRUE
+TRUNC
+TTEST
+TYPE
+UPPER
+USDOLLAR
+VALUE
+VAR
+VARA
+VARP
+VARPA
+VDB
+VERSION
+VLOOKUP
+WEEKDAY
+WEEKNUM
+WEIBULL
+WORKDAY
+XIRR
+XNPV
+YEAR
+YEARFRAC
+YIELD
+YIELDDISC
+YIELDMAT
+ZTEST
diff --git a/libraries/PHPExcel/PHPExcel/Cell.php b/libraries/PHPExcel/PHPExcel/Cell.php
new file mode 100644
index 000000000..9b321822a
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Cell.php
@@ -0,0 +1,801 @@
+_column = strtoupper($pColumn);
+ $this->_row = $pRow;
+
+ // Initialise cell value
+ $this->_value = $pValue;
+
+ // Set worksheet
+ $this->_parent = $pSheet;
+
+ // Set datatype?
+ if (!is_null($pDataType)) {
+ $this->_dataType = $pDataType;
+ } else {
+ if (!self::getValueBinder()->bindValue($this, $pValue)) {
+ throw new Exception("Value could not be bound to cell.");
+ }
+ }
+
+ // set default index to cellXf
+ $this->_xfIndex = 0;
+ }
+
+ /**
+ * Get cell coordinate column
+ *
+ * @return string
+ */
+ public function getColumn()
+ {
+ return strtoupper($this->_column);
+ }
+
+ /**
+ * Get cell coordinate row
+ *
+ * @return int
+ */
+ public function getRow()
+ {
+ return $this->_row;
+ }
+
+ /**
+ * Get cell coordinate
+ *
+ * @return string
+ */
+ public function getCoordinate()
+ {
+ return $this->_column . $this->_row;
+ }
+
+ /**
+ * Get cell value
+ *
+ * @return mixed
+ */
+ public function getValue()
+ {
+ return $this->_value;
+ }
+
+ /**
+ * Set cell value
+ *
+ * This clears the cell formula.
+ *
+ * @param mixed $pValue Value
+ * @return PHPExcel_Cell
+ */
+ public function setValue($pValue = null)
+ {
+ if (!self::getValueBinder()->bindValue($this, $pValue)) {
+ throw new Exception("Value could not be bound to cell.");
+ }
+ return $this;
+ }
+
+ /**
+ * Set cell value (with explicit data type given)
+ *
+ * @param mixed $pValue Value
+ * @param string $pDataType Explicit data type
+ * @return PHPExcel_Cell
+ */
+ public function setValueExplicit($pValue = null, $pDataType = PHPExcel_Cell_DataType::TYPE_STRING)
+ {
+ // check strings that they are ok
+ // TODO: fix also for RichText
+ if ($pDataType == PHPExcel_Cell_DataType::TYPE_STRING && !($pValue instanceof PHPExcel_RichText)) {
+ // string must never be longer than 32,767 characters, truncate if necessary
+ $pValue = PHPExcel_Shared_String::Substring($pValue, 0, 32767);
+
+ // we require that newline is represented as "\n" in core, not as "\r\n" or "\r"
+ $pValue = str_replace(array("\r\n", "\r"), "\n", $pValue);
+ }
+
+ $this->_value = $pValue;
+ $this->_dataType = $pDataType;
+ return $this;
+ }
+
+ /**
+ * Get caluclated cell value
+ *
+ * @return mixed
+ */
+ public function getCalculatedValue($resetLog=true)
+ {
+// echo 'Cell '.$this->getCoordinate().' value is a '.$this->_dataType.' with a value of '.$this->getValue().' ';
+ if (!is_null($this->_calculatedValue) && $this->_dataType == PHPExcel_Cell_DataType::TYPE_FORMULA) {
+ try {
+// echo 'Cell value for '.$this->getCoordinate().' is a formula: Calculating value ';
+ $result = PHPExcel_Calculation::getInstance()->calculateCellValue($this,$resetLog);
+ } catch ( Exception $ex ) {
+// echo 'Calculation Exception: '.$ex->getMessage().' ';
+ $result = '#N/A';
+ }
+
+ if ((is_string($result)) && ($result == '#Not Yet Implemented')) {
+// echo 'Returning fallback value of '.$this->_calculatedValue.' for cell '.$this->getCoordinate().' ';
+ return $this->_calculatedValue; // Fallback if calculation engine does not support the formula.
+ } else {
+// echo 'Returning calculated value of '.$result.' for cell '.$this->getCoordinate().' ';
+ return $result;
+ }
+ }
+
+ if (is_null($this->_value)) {
+// echo 'Cell '.$this->getCoordinate().' has no value, formula or otherwise ';
+ return null;
+ } else if ($this->_dataType != PHPExcel_Cell_DataType::TYPE_FORMULA) {
+// echo 'Cell value for '.$this->getCoordinate().' is not a formula: Returning data value of '.$this->_value.' ';
+ return $this->_value;
+ } else {
+// echo 'Cell value is a formula: Calculating value ';
+ return PHPExcel_Calculation::getInstance()->calculateCellValue($this,$resetLog);
+ }
+ }
+
+ /**
+ * Set calculated value (used for caching)
+ *
+ * @param mixed $pValue Value
+ * @return PHPExcel_Cell
+ */
+ public function setCalculatedValue($pValue = null)
+ {
+ if (!is_null($pValue)) {
+ $this->_calculatedValue = $pValue;
+ }
+ return $this;
+ }
+
+ /**
+ * Get old calculated value (cached)
+ *
+ * @return mixed
+ */
+ public function getOldCalculatedValue()
+ {
+ return $this->_calculatedValue;
+ }
+
+ /**
+ * Get cell data type
+ *
+ * @return string
+ */
+ public function getDataType()
+ {
+ return $this->_dataType;
+ }
+
+ /**
+ * Set cell data type
+ *
+ * @param string $pDataType
+ * @return PHPExcel_Cell
+ */
+ public function setDataType($pDataType = PHPExcel_Cell_DataType::TYPE_STRING)
+ {
+ $this->_dataType = $pDataType;
+ return $this;
+ }
+
+ /**
+ * Has Data validation?
+ *
+ * @return boolean
+ */
+ public function hasDataValidation()
+ {
+ if (!isset($this->_parent)) {
+ throw new Exception('Cannot check for data validation when cell is not bound to a worksheet');
+ }
+
+ return $this->_parent->dataValidationExists($this->getCoordinate());
+ }
+
+ /**
+ * Get Data validation
+ *
+ * @return PHPExcel_Cell_DataValidation
+ */
+ public function getDataValidation()
+ {
+ if (!isset($this->_parent)) {
+ throw new Exception('Cannot get data validation for cell that is not bound to a worksheet');
+ }
+
+ $dataValidation = $this->_parent->getDataValidation($this->getCoordinate());
+ return $dataValidation;
+ }
+
+ /**
+ * Set Data validation
+ *
+ * @param PHPExcel_Cell_DataValidation $pDataValidation
+ * @throws Exception
+ * @return PHPExcel_Cell
+ */
+ public function setDataValidation(PHPExcel_Cell_DataValidation $pDataValidation = null)
+ {
+ if (!isset($this->_parent)) {
+ throw new Exception('Cannot set data validation for cell that is not bound to a worksheet');
+ }
+
+ $this->_parent->setDataValidation($this->getCoordinate(), $pDataValidation);
+ return $this;
+ }
+
+ /**
+ * Has Hyperlink
+ *
+ * @return boolean
+ */
+ public function hasHyperlink()
+ {
+ if (!isset($this->_parent)) {
+ throw new Exception('Cannot check for hyperlink when cell is not bound to a worksheet');
+ }
+
+ return $this->_parent->hyperlinkExists($this->getCoordinate());
+ }
+
+ /**
+ * Get Hyperlink
+ *
+ * @throws Exception
+ * @return PHPExcel_Cell_Hyperlink
+ */
+ public function getHyperlink()
+ {
+ if (!isset($this->_parent)) {
+ throw new Exception('Cannot get hyperlink for cell that is not bound to a worksheet');
+ }
+
+ $hyperlink = $this->_parent->getHyperlink($this->getCoordinate());
+ return $hyperlink;
+ }
+
+ /**
+ * Set Hyperlink
+ *
+ * @param PHPExcel_Cell_Hyperlink $pHyperlink
+ * @throws Exception
+ * @return PHPExcel_Cell
+ */
+ public function setHyperlink(PHPExcel_Cell_Hyperlink $pHyperlink = null)
+ {
+ if (!isset($this->_parent)) {
+ throw new Exception('Cannot set hyperlink for cell that is not bound to a worksheet');
+ }
+
+ $this->_parent->setHyperlink($this->getCoordinate(), $pHyperlink);
+ return $this;
+ }
+
+ /**
+ * Get parent
+ *
+ * @return PHPExcel_Worksheet
+ */
+ public function getParent() {
+ return $this->_parent;
+ }
+
+ /**
+ * Re-bind parent
+ *
+ * @param PHPExcel_Worksheet $parent
+ * @return PHPExcel_Cell
+ */
+ public function rebindParent(PHPExcel_Worksheet $parent) {
+ $this->_parent = $parent;
+ return $this;
+ }
+
+ /**
+ * Is cell in a specific range?
+ *
+ * @param string $pRange Cell range (e.g. A1:A1)
+ * @return boolean
+ */
+ public function isInRange($pRange = 'A1:A1')
+ {
+ // Uppercase coordinate
+ $pRange = strtoupper($pRange);
+
+ // Extract range
+ $rangeA = '';
+ $rangeB = '';
+ if (strpos($pRange, ':') === false) {
+ $rangeA = $pRange;
+ $rangeB = $pRange;
+ } else {
+ list($rangeA, $rangeB) = explode(':', $pRange);
+ }
+
+ // Calculate range outer borders
+ $rangeStart = PHPExcel_Cell::coordinateFromString($rangeA);
+ $rangeEnd = PHPExcel_Cell::coordinateFromString($rangeB);
+
+ // Translate column into index
+ $rangeStart[0] = PHPExcel_Cell::columnIndexFromString($rangeStart[0]) - 1;
+ $rangeEnd[0] = PHPExcel_Cell::columnIndexFromString($rangeEnd[0]) - 1;
+
+ // Translate properties
+ $myColumn = PHPExcel_Cell::columnIndexFromString($this->getColumn()) - 1;
+ $myRow = $this->getRow();
+
+ // Verify if cell is in range
+ return (
+ ($rangeStart[0] <= $myColumn && $rangeEnd[0] >= $myColumn) &&
+ ($rangeStart[1] <= $myRow && $rangeEnd[1] >= $myRow)
+ );
+ }
+
+ /**
+ * Coordinate from string
+ *
+ * @param string $pCoordinateString
+ * @return array Array containing column and row (indexes 0 and 1)
+ * @throws Exception
+ */
+ public static function coordinateFromString($pCoordinateString = 'A1')
+ {
+ if (strpos($pCoordinateString,':') !== false) {
+ throw new Exception('Cell coordinate string can not be a range of cells.');
+ } else if ($pCoordinateString == '') {
+ throw new Exception('Cell coordinate can not be zero-length string.');
+ } else {
+ // Column
+ $column = '';
+
+ // Row
+ $row = '';
+
+ // Convert a cell reference
+ if (preg_match("/([$]?[A-Z]+)([$]?\d+)/", $pCoordinateString, $matches)) {
+ list(, $column, $row) = $matches;
+ }
+
+ // Return array
+ return array($column, $row);
+ }
+ }
+
+ /**
+ * Make string coordinate absolute
+ *
+ * @param string $pCoordinateString
+ * @return string Absolute coordinate
+ * @throws Exception
+ */
+ public static function absoluteCoordinate($pCoordinateString = 'A1')
+ {
+ if (strpos($pCoordinateString,':') === false && strpos($pCoordinateString,',') === false) {
+ // Return value
+ $returnValue = '';
+
+ // Create absolute coordinate
+ list($column, $row) = PHPExcel_Cell::coordinateFromString($pCoordinateString);
+ $returnValue = '$' . $column . '$' . $row;
+
+ // Return
+ return $returnValue;
+ } else {
+ throw new Exception("Coordinate string should not be a cell range.");
+ }
+ }
+
+ /**
+ * Split range into coordinate strings
+ *
+ * @param string $pRange
+ * @return array Array containg one or more arrays containing one or two coordinate strings
+ */
+ public static function splitRange($pRange = 'A1:A1')
+ {
+ $exploded = explode(',', $pRange);
+ for ($i = 0; $i < count($exploded); ++$i) {
+ $exploded[$i] = explode(':', $exploded[$i]);
+ }
+ return $exploded;
+ }
+
+ /**
+ * Build range from coordinate strings
+ *
+ * @param array $pRange Array containg one or more arrays containing one or two coordinate strings
+ * @return string String representation of $pRange
+ * @throws Exception
+ */
+ public static function buildRange($pRange)
+ {
+ // Verify range
+ if (!is_array($pRange) || count($pRange) == 0 || !is_array($pRange[0])) {
+ throw new Exception('Range does not contain any information.');
+ }
+
+ // Build range
+ $imploded = array();
+ for ($i = 0; $i < count($pRange); ++$i) {
+ $pRange[$i] = implode(':', $pRange[$i]);
+ }
+ $imploded = implode(',', $pRange);
+
+ return $imploded;
+ }
+
+ /**
+ * Calculate range dimension
+ *
+ * @param string $pRange Cell range (e.g. A1:A1)
+ * @return array Range dimension (width, height)
+ */
+ public static function rangeDimension($pRange = 'A1:A1')
+ {
+ // Uppercase coordinate
+ $pRange = strtoupper($pRange);
+
+ // Extract range
+ $rangeA = '';
+ $rangeB = '';
+ if (strpos($pRange, ':') === false) {
+ $rangeA = $pRange;
+ $rangeB = $pRange;
+ } else {
+ list($rangeA, $rangeB) = explode(':', $pRange);
+ }
+
+ // Calculate range outer borders
+ $rangeStart = PHPExcel_Cell::coordinateFromString($rangeA);
+ $rangeEnd = PHPExcel_Cell::coordinateFromString($rangeB);
+
+ // Translate column into index
+ $rangeStart[0] = PHPExcel_Cell::columnIndexFromString($rangeStart[0]);
+ $rangeEnd[0] = PHPExcel_Cell::columnIndexFromString($rangeEnd[0]);
+
+ return array( ($rangeEnd[0] - $rangeStart[0] + 1), ($rangeEnd[1] - $rangeStart[1] + 1) );
+ }
+
+ /**
+ * Column index from string
+ *
+ * @param string $pString
+ * @return int Column index (base 1 !!!)
+ * @throws Exception
+ */
+ public static function columnIndexFromString($pString = 'A')
+ {
+ // Convert to uppercase
+ $pString = strtoupper($pString);
+
+ $strLen = strlen($pString);
+ // Convert column to integer
+ if ($strLen == 1) {
+ return (ord($pString{0}) - 64);
+ } elseif ($strLen == 2) {
+ return $result = ((1 + (ord($pString{0}) - 65)) * 26) + (ord($pString{1}) - 64);
+ } elseif ($strLen == 3) {
+ return ((1 + (ord($pString{0}) - 65)) * 676) + ((1 + (ord($pString{1}) - 65)) * 26) + (ord($pString{2}) - 64);
+ } else {
+ throw new Exception("Column string index can not be " . ($strLen != 0 ? "longer than 3 characters" : "empty") . ".");
+ }
+ }
+
+ /**
+ * String from columnindex
+ *
+ * @param int $pColumnIndex Column index (base 0 !!!)
+ * @return string
+ */
+ public static function stringFromColumnIndex($pColumnIndex = 0)
+ {
+ // Determine column string
+ if ($pColumnIndex < 26) {
+ return chr(65 + $pColumnIndex);
+ }
+ return PHPExcel_Cell::stringFromColumnIndex((int)($pColumnIndex / 26) -1).chr(65 + $pColumnIndex%26) ;
+ }
+
+ /**
+ * Extract all cell references in range
+ *
+ * @param string $pRange Range (e.g. A1 or A1:A10 or A1:A10 A100:A1000)
+ * @return array Array containing single cell references
+ */
+ public static function extractAllCellReferencesInRange($pRange = 'A1') {
+ // Returnvalue
+ $returnValue = array();
+
+ // Explode spaces
+ $aExplodeSpaces = explode(' ', str_replace('$', '', strtoupper($pRange)));
+ foreach ($aExplodeSpaces as $explodedSpaces) {
+ // Single cell?
+ if (strpos($explodedSpaces,':') === false && strpos($explodedSpaces,',') === false) {
+ $col = 'A';
+ $row = 1;
+ list($col, $row) = PHPExcel_Cell::coordinateFromString($explodedSpaces);
+
+ if (strlen($col) <= 2) {
+ $returnValue[] = $explodedSpaces;
+ }
+
+ continue;
+ }
+
+ // Range...
+ $range = PHPExcel_Cell::splitRange($explodedSpaces);
+ for ($i = 0; $i < count($range); ++$i) {
+ // Single cell?
+ if (count($range[$i]) == 1) {
+ $col = 'A';
+ $row = 1;
+ list($col, $row) = PHPExcel_Cell::coordinateFromString($range[$i]);
+
+ if (strlen($col) <= 2) {
+ $returnValue[] = $explodedSpaces;
+ }
+ }
+
+ // Range...
+ $rangeStart = $rangeEnd = '';
+ $startingCol = $startingRow = $endingCol = $endingRow = 0;
+
+ list($rangeStart, $rangeEnd) = $range[$i];
+ list($startingCol, $startingRow) = PHPExcel_Cell::coordinateFromString($rangeStart);
+ list($endingCol, $endingRow) = PHPExcel_Cell::coordinateFromString($rangeEnd);
+
+ // Conversions...
+ $startingCol = PHPExcel_Cell::columnIndexFromString($startingCol);
+ $endingCol = PHPExcel_Cell::columnIndexFromString($endingCol);
+
+ // Current data
+ $currentCol = --$startingCol;
+ $currentRow = $startingRow;
+
+ // Loop cells
+ while ($currentCol < $endingCol) {
+ $loopColumn = PHPExcel_Cell::stringFromColumnIndex($currentCol);
+ while ($currentRow <= $endingRow) {
+ $returnValue[] = $loopColumn.$currentRow;
+ ++$currentRow;
+ }
+ ++$currentCol;
+ $currentRow = $startingRow;
+ }
+ }
+ }
+
+ // Return value
+ return $returnValue;
+ }
+
+ /**
+ * Compare 2 cells
+ *
+ * @param PHPExcel_Cell $a Cell a
+ * @param PHPExcel_Cell $a Cell b
+ * @return int Result of comparison (always -1 or 1, never zero!)
+ */
+ public static function compareCells(PHPExcel_Cell $a, PHPExcel_Cell $b)
+ {
+ if ($a->_row < $b->_row) {
+ return -1;
+ } elseif ($a->_row > $b->_row) {
+ return 1;
+ } elseif (PHPExcel_Cell::columnIndexFromString($a->_column) < PHPExcel_Cell::columnIndexFromString($b->_column)) {
+ return -1;
+ } else {
+ return 1;
+ }
+ }
+
+ /**
+ * Get value binder to use
+ *
+ * @return PHPExcel_Cell_IValueBinder
+ */
+ public static function getValueBinder() {
+ return self::$_valueBinder;
+ }
+
+ /**
+ * Set value binder to use
+ *
+ * @param PHPExcel_Cell_IValueBinder $binder
+ * @throws Exception
+ */
+ public static function setValueBinder(PHPExcel_Cell_IValueBinder $binder = null) {
+ if (is_null($binder)) {
+ throw new Exception("A PHPExcel_Cell_IValueBinder is required for PHPExcel to function correctly.");
+ }
+
+ self::$_valueBinder = $binder;
+ }
+
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone() {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
+
+ /**
+ * Get index to cellXf
+ *
+ * @return int
+ */
+ public function getXfIndex()
+ {
+ return $this->_xfIndex;
+ }
+
+ /**
+ * Set index to cellXf
+ *
+ * @param int $pValue
+ * @return PHPExcel_Cell
+ */
+ public function setXfIndex($pValue = 0)
+ {
+ $this->_xfIndex = $pValue;
+ return $this;
+ }
+
+}
diff --git a/libraries/PHPExcel/PHPExcel/Cell/AdvancedValueBinder.php b/libraries/PHPExcel/PHPExcel/Cell/AdvancedValueBinder.php
new file mode 100644
index 000000000..f2c4019d3
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Cell/AdvancedValueBinder.php
@@ -0,0 +1,145 @@
+setValueExplicit( (float)str_replace('%', '', $value) / 100, PHPExcel_Cell_DataType::TYPE_NUMERIC);
+
+ // Set style
+ $cell->getParent()->getStyle( $cell->getCoordinate() )->getNumberFormat()->setFormatCode( PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE );
+
+ return true;
+ }
+
+ // Check for time e.g. '9:45', '09:45'
+ if (preg_match('/^(\d|[0-1]\d|2[0-3]):[0-5]\d$/', $value)) {
+ list($h, $m) = explode(':', $value);
+ $days = $h / 24 + $m / 1440;
+
+ // Convert value to number
+ $cell->setValueExplicit($days, PHPExcel_Cell_DataType::TYPE_NUMERIC);
+
+ // Set style
+ $cell->getParent()->getStyle( $cell->getCoordinate() )->getNumberFormat()->setFormatCode( PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME3 );
+
+ return true;
+ }
+
+ // Check for date
+ if (strtotime($value) !== false) {
+ // make sure we have UTC for the sake of strtotime
+ $saveTimeZone = date_default_timezone_get();
+ date_default_timezone_set('UTC');
+
+ // Convert value to Excel date
+ $cell->setValueExplicit( PHPExcel_Shared_Date::PHPToExcel(strtotime($value)), PHPExcel_Cell_DataType::TYPE_NUMERIC);
+
+ // Set style
+ $cell->getParent()->getStyle( $cell->getCoordinate() )->getNumberFormat()->setFormatCode( PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDD2 );
+
+ // restore original value for timezone
+ date_default_timezone_set($saveTimeZone);
+
+ return true;
+ }
+ }
+
+ // Style logic - Numbers
+ if ($dataType === PHPExcel_Cell_DataType::TYPE_NUMERIC) {
+ // Leading zeroes?
+ if (preg_match('/^\-?[0]+[0-9]*\.?[0-9]*$/', $value)) {
+ // Convert value to string
+ $cell->setValueExplicit( $value, PHPExcel_Cell_DataType::TYPE_STRING);
+
+ // Set style
+ $cell->getParent()->getStyle( $cell->getCoordinate() )->getNumberFormat()->setFormatCode( PHPExcel_Style_NumberFormat::FORMAT_TEXT );
+
+ return true;
+ }
+ }
+
+ // Not bound yet? Use parent...
+ return parent::bindValue($cell, $value);
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Cell/DataType.php b/libraries/PHPExcel/PHPExcel/Cell/DataType.php
new file mode 100644
index 000000000..cfe35765f
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Cell/DataType.php
@@ -0,0 +1,85 @@
+ 0, '#DIV/0!' => 1, '#VALUE!' => 2, '#REF!' => 3, '#NAME?' => 4, '#NUM!' => 5, '#N/A' => 6);
+
+ /**
+ * Get list of error codes
+ *
+ * @return array
+ */
+ public static function getErrorCodes() {
+ return self::$_errorCodes;
+ }
+
+ /**
+ * DataType for value
+ *
+ * @deprecated Replaced by PHPExcel_Cell_IValueBinder infrastructure
+ * @param mixed $pValue
+ * @return int
+ */
+ public static function dataTypeForValue($pValue = null) {
+ return PHPExcel_Cell_DefaultValueBinder::dataTypeForValue($pValue);
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Cell/DataValidation.php b/libraries/PHPExcel/PHPExcel/Cell/DataValidation.php
new file mode 100644
index 000000000..234a93d6c
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Cell/DataValidation.php
@@ -0,0 +1,509 @@
+_formula1 = '';
+ $this->_formula2 = '';
+ $this->_type = PHPExcel_Cell_DataValidation::TYPE_NONE;
+ $this->_errorStyle = PHPExcel_Cell_DataValidation::STYLE_STOP;
+ $this->_operator = '';
+ $this->_allowBlank = false;
+ $this->_showDropDown = false;
+ $this->_showInputMessage = false;
+ $this->_showErrorMessage = false;
+ $this->_errorTitle = '';
+ $this->_error = '';
+ $this->_promptTitle = '';
+ $this->_prompt = '';
+
+ // Set cell
+ $this->_parent = $pCell;
+ }
+
+ /**
+ * Get Formula 1
+ *
+ * @return string
+ */
+ public function getFormula1() {
+ return $this->_formula1;
+ }
+
+ /**
+ * Set Formula 1
+ *
+ * @param string $value
+ * @return PHPExcel_Cell_DataValidation
+ */
+ public function setFormula1($value = '') {
+ $this->_formula1 = $value;
+ return $this;
+ }
+
+ /**
+ * Get Formula 2
+ *
+ * @return string
+ */
+ public function getFormula2() {
+ return $this->_formula2;
+ }
+
+ /**
+ * Set Formula 2
+ *
+ * @param string $value
+ * @return PHPExcel_Cell_DataValidation
+ */
+ public function setFormula2($value = '') {
+ $this->_formula2 = $value;
+ return $this;
+ }
+
+ /**
+ * Get Type
+ *
+ * @return string
+ */
+ public function getType() {
+ return $this->_type;
+ }
+
+ /**
+ * Set Type
+ *
+ * @param string $value
+ * @return PHPExcel_Cell_DataValidation
+ */
+ public function setType($value = PHPExcel_Cell_DataValidation::TYPE_NONE) {
+ $this->_type = $value;
+ return $this;
+ }
+
+ /**
+ * Get Error style
+ *
+ * @return string
+ */
+ public function getErrorStyle() {
+ return $this->_errorStyle;
+ }
+
+ /**
+ * Set Error style
+ *
+ * @param string $value
+ * @return PHPExcel_Cell_DataValidation
+ */
+ public function setErrorStyle($value = PHPExcel_Cell_DataValidation::STYLE_STOP) {
+ $this->_errorStyle = $value;
+ return $this;
+ }
+
+ /**
+ * Get Operator
+ *
+ * @return string
+ */
+ public function getOperator() {
+ return $this->_operator;
+ }
+
+ /**
+ * Set Operator
+ *
+ * @param string $value
+ * @return PHPExcel_Cell_DataValidation
+ */
+ public function setOperator($value = '') {
+ $this->_operator = $value;
+ return $this;
+ }
+
+ /**
+ * Get Allow Blank
+ *
+ * @return boolean
+ */
+ public function getAllowBlank() {
+ return $this->_allowBlank;
+ }
+
+ /**
+ * Set Allow Blank
+ *
+ * @param boolean $value
+ * @return PHPExcel_Cell_DataValidation
+ */
+ public function setAllowBlank($value = false) {
+ $this->_allowBlank = $value;
+ return $this;
+ }
+
+ /**
+ * Get Show DropDown
+ *
+ * @return boolean
+ */
+ public function getShowDropDown() {
+ return $this->_showDropDown;
+ }
+
+ /**
+ * Set Show DropDown
+ *
+ * @param boolean $value
+ * @return PHPExcel_Cell_DataValidation
+ */
+ public function setShowDropDown($value = false) {
+ $this->_showDropDown = $value;
+ return $this;
+ }
+
+ /**
+ * Get Show InputMessage
+ *
+ * @return boolean
+ */
+ public function getShowInputMessage() {
+ return $this->_showInputMessage;
+ }
+
+ /**
+ * Set Show InputMessage
+ *
+ * @param boolean $value
+ * @return PHPExcel_Cell_DataValidation
+ */
+ public function setShowInputMessage($value = false) {
+ $this->_showInputMessage = $value;
+ return $this;
+ }
+
+ /**
+ * Get Show ErrorMessage
+ *
+ * @return boolean
+ */
+ public function getShowErrorMessage() {
+ return $this->_showErrorMessage;
+ }
+
+ /**
+ * Set Show ErrorMessage
+ *
+ * @param boolean $value
+ * @return PHPExcel_Cell_DataValidation
+ */
+ public function setShowErrorMessage($value = false) {
+ $this->_showErrorMessage = $value;
+ return $this;
+ }
+
+ /**
+ * Get Error title
+ *
+ * @return string
+ */
+ public function getErrorTitle() {
+ return $this->_errorTitle;
+ }
+
+ /**
+ * Set Error title
+ *
+ * @param string $value
+ * @return PHPExcel_Cell_DataValidation
+ */
+ public function setErrorTitle($value = '') {
+ $this->_errorTitle = $value;
+ return $this;
+ }
+
+ /**
+ * Get Error
+ *
+ * @return string
+ */
+ public function getError() {
+ return $this->_error;
+ }
+
+ /**
+ * Set Error
+ *
+ * @param string $value
+ * @return PHPExcel_Cell_DataValidation
+ */
+ public function setError($value = '') {
+ $this->_error = $value;
+ return $this;
+ }
+
+ /**
+ * Get Prompt title
+ *
+ * @return string
+ */
+ public function getPromptTitle() {
+ return $this->_promptTitle;
+ }
+
+ /**
+ * Set Prompt title
+ *
+ * @param string $value
+ * @return PHPExcel_Cell_DataValidation
+ */
+ public function setPromptTitle($value = '') {
+ $this->_promptTitle = $value;
+ return $this;
+ }
+
+ /**
+ * Get Prompt
+ *
+ * @return string
+ */
+ public function getPrompt() {
+ return $this->_prompt;
+ }
+
+ /**
+ * Set Prompt
+ *
+ * @param string $value
+ * @return PHPExcel_Cell_DataValidation
+ */
+ public function setPrompt($value = '') {
+ $this->_prompt = $value;
+ return $this;
+ }
+
+ /**
+ * Get parent
+ *
+ * @return PHPExcel_Cell
+ */
+ public function getParent() {
+ return $this->_parent;
+ }
+
+ /**
+ * Set Parent
+ *
+ * @param PHPExcel_Cell $value
+ * @return PHPExcel_Cell_DataValidation
+ */
+ public function setParent($value = null) {
+ $this->_parent = $value;
+ return $this;
+ }
+
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode() {
+ return md5(
+ $this->_formula1
+ . $this->_formula2
+ . $this->_type = PHPExcel_Cell_DataValidation::TYPE_NONE
+ . $this->_errorStyle = PHPExcel_Cell_DataValidation::STYLE_STOP
+ . $this->_operator
+ . ($this->_allowBlank ? 't' : 'f')
+ . ($this->_showDropDown ? 't' : 'f')
+ . ($this->_showInputMessage ? 't' : 'f')
+ . ($this->_showErrorMessage ? 't' : 'f')
+ . $this->_errorTitle
+ . $this->_error
+ . $this->_promptTitle
+ . $this->_prompt
+ . $this->_parent->getCoordinate()
+ . __CLASS__
+ );
+ }
+
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone() {
+ // unbind parent
+ $this->setParent(null);
+
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value) && $key != '_parent') {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Cell/DefaultValueBinder.php b/libraries/PHPExcel/PHPExcel/Cell/DefaultValueBinder.php
new file mode 100644
index 000000000..29b0f6631
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Cell/DefaultValueBinder.php
@@ -0,0 +1,108 @@
+setValueExplicit( $value, PHPExcel_Cell_DataType::dataTypeForValue($value) );
+
+ // Done!
+ return true;
+ }
+
+ /**
+ * DataType for value
+ *
+ * @param mixed $pValue
+ * @return int
+ */
+ public static function dataTypeForValue($pValue = null) {
+ // Match the value against a few data types
+ if (is_null($pValue)) {
+ return PHPExcel_Cell_DataType::TYPE_NULL;
+ } elseif ($pValue === '') {
+ return PHPExcel_Cell_DataType::TYPE_STRING;
+ } elseif ($pValue instanceof PHPExcel_RichText) {
+ return PHPExcel_Cell_DataType::TYPE_STRING;
+ } elseif ($pValue{0} === '=') {
+ return PHPExcel_Cell_DataType::TYPE_FORMULA;
+ } elseif (is_bool($pValue)) {
+ return PHPExcel_Cell_DataType::TYPE_BOOL;
+ } elseif (is_float($pValue) || is_int($pValue)) {
+ return PHPExcel_Cell_DataType::TYPE_NUMERIC;
+ } elseif (preg_match('/^\-?[0-9]*\\.?[0-9]*$/', $pValue)) {
+ return PHPExcel_Cell_DataType::TYPE_NUMERIC;
+ } elseif (is_string($pValue) && array_key_exists($pValue, PHPExcel_Cell_DataType::getErrorCodes())) {
+ return PHPExcel_Cell_DataType::TYPE_ERROR;
+ } else {
+ return PHPExcel_Cell_DataType::TYPE_STRING;
+ }
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Cell/Hyperlink.php b/libraries/PHPExcel/PHPExcel/Cell/Hyperlink.php
new file mode 100644
index 000000000..122424490
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Cell/Hyperlink.php
@@ -0,0 +1,159 @@
+_url = $pUrl;
+ $this->_tooltip = $pTooltip;
+
+ // Set cell
+ $this->_parent = $pCell;
+ }
+
+ /**
+ * Get URL
+ *
+ * @return string
+ */
+ public function getUrl() {
+ return $this->_url;
+ }
+
+ /**
+ * Set URL
+ *
+ * @param string $value
+ * @return PHPExcel_Cell_Hyperlink
+ */
+ public function setUrl($value = '') {
+ $this->_url = $value;
+ return $this;
+ }
+
+ /**
+ * Get tooltip
+ *
+ * @return string
+ */
+ public function getTooltip() {
+ return $this->_tooltip;
+ }
+
+ /**
+ * Set tooltip
+ *
+ * @param string $value
+ * @return PHPExcel_Cell_Hyperlink
+ */
+ public function setTooltip($value = '') {
+ $this->_tooltip = $value;
+ return $this;
+ }
+
+ /**
+ * Is this hyperlink internal? (to another sheet)
+ *
+ * @return boolean
+ */
+ public function isInternal() {
+ return strpos($this->_url, 'sheet://') !== false;
+ }
+
+ /**
+ * Get parent
+ *
+ * @return PHPExcel_Cell
+ */
+ public function getParent() {
+ return $this->_parent;
+ }
+
+ /**
+ * Set Parent
+ *
+ * @param PHPExcel_Cell $value
+ * @return PHPExcel_Cell_Hyperlink
+ */
+ public function setParent($value = null) {
+ $this->_parent = $value;
+ return $this;
+ }
+
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode() {
+ return md5(
+ $this->_url
+ . $this->_tooltip
+ . $this->_parent->getCoordinate()
+ . __CLASS__
+ );
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Cell/IValueBinder.php b/libraries/PHPExcel/PHPExcel/Cell/IValueBinder.php
new file mode 100644
index 000000000..479ed6920
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Cell/IValueBinder.php
@@ -0,0 +1,58 @@
+_author = 'Author';
+ $this->_text = new PHPExcel_RichText();
+ $this->_fillColor = new PHPExcel_Style_Color('FFFFFFE1');
+ }
+
+ /**
+ * Get Author
+ *
+ * @return string
+ */
+ public function getAuthor() {
+ return $this->_author;
+ }
+
+ /**
+ * Set Author
+ *
+ * @param string $pValue
+ * @return PHPExcel_Comment
+ */
+ public function setAuthor($pValue = '') {
+ $this->_author = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get Rich text comment
+ *
+ * @return PHPExcel_RichText
+ */
+ public function getText() {
+ return $this->_text;
+ }
+
+ /**
+ * Set Rich text comment
+ *
+ * @param PHPExcel_RichText $pValue
+ * @return PHPExcel_Comment
+ */
+ public function setText(PHPExcel_RichText $pValue) {
+ $this->_text = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get comment width (CSS style, i.e. XXpx or YYpt)
+ *
+ * @return string
+ */
+ public function getWidth() {
+ return $this->_width;
+ }
+
+ /**
+ * Set comment width (CSS style, i.e. XXpx or YYpt)
+ *
+ * @param string $value
+ * @return PHPExcel_Comment
+ */
+ public function setWidth($value = '96pt') {
+ $this->_width = $value;
+ return $this;
+ }
+
+ /**
+ * Get comment height (CSS style, i.e. XXpx or YYpt)
+ *
+ * @return string
+ */
+ public function getHeight() {
+ return $this->_height;
+ }
+
+ /**
+ * Set comment height (CSS style, i.e. XXpx or YYpt)
+ *
+ * @param string $value
+ * @return PHPExcel_Comment
+ */
+ public function setHeight($value = '55.5pt') {
+ $this->_height = $value;
+ return $this;
+ }
+
+ /**
+ * Get left margin (CSS style, i.e. XXpx or YYpt)
+ *
+ * @return string
+ */
+ public function getMarginLeft() {
+ return $this->_marginLeft;
+ }
+
+ /**
+ * Set left margin (CSS style, i.e. XXpx or YYpt)
+ *
+ * @param string $value
+ * @return PHPExcel_Comment
+ */
+ public function setMarginLeft($value = '59.25pt') {
+ $this->_marginLeft = $value;
+ return $this;
+ }
+
+ /**
+ * Get top margin (CSS style, i.e. XXpx or YYpt)
+ *
+ * @return string
+ */
+ public function getMarginTop() {
+ return $this->_marginTop;
+ }
+
+ /**
+ * Set top margin (CSS style, i.e. XXpx or YYpt)
+ *
+ * @param string $value
+ * @return PHPExcel_Comment
+ */
+ public function setMarginTop($value = '1.5pt') {
+ $this->_marginTop = $value;
+ return $this;
+ }
+
+ /**
+ * Is the comment visible by default?
+ *
+ * @return boolean
+ */
+ public function getVisible() {
+ return $this->_visible;
+ }
+
+ /**
+ * Set comment default visibility
+ *
+ * @param boolean $value
+ * @return PHPExcel_Comment
+ */
+ public function setVisible($value = false) {
+ $this->_visible = $value;
+ return $this;
+ }
+
+ /**
+ * Get fill color
+ *
+ * @return PHPExcel_Style_Color
+ */
+ public function getFillColor() {
+ return $this->_fillColor;
+ }
+
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode() {
+ return md5(
+ $this->_author
+ . $this->_text->getHashCode()
+ . $this->_width
+ . $this->_height
+ . $this->_marginLeft
+ . $this->_marginTop
+ . ($this->_visible ? 1 : 0)
+ . $this->_fillColor->getHashCode()
+ . __CLASS__
+ );
+ }
+
+ /**
+ * Hash index
+ *
+ * @var string
+ */
+ private $_hashIndex;
+
+ /**
+ * Get hash index
+ *
+ * Note that this index may vary during script execution! Only reliable moment is
+ * while doing a write of a workbook and when changes are not allowed.
+ *
+ * @return string Hash index
+ */
+ public function getHashIndex() {
+ return $this->_hashIndex;
+ }
+
+ /**
+ * Set hash index
+ *
+ * Note that this index may vary during script execution! Only reliable moment is
+ * while doing a write of a workbook and when changes are not allowed.
+ *
+ * @param string $value Hash index
+ */
+ public function setHashIndex($value) {
+ $this->_hashIndex = $value;
+ }
+
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone() {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/DocumentProperties.php b/libraries/PHPExcel/PHPExcel/DocumentProperties.php
new file mode 100644
index 000000000..609108dd1
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/DocumentProperties.php
@@ -0,0 +1,345 @@
+_creator = 'Unknown Creator';
+ $this->_lastModifiedBy = $this->_creator;
+ $this->_created = time();
+ $this->_modified = time();
+ $this->_title = "Untitled Spreadsheet";
+ $this->_subject = '';
+ $this->_description = '';
+ $this->_keywords = '';
+ $this->_category = '';
+ $this->_company = 'Microsoft Corporation';
+ }
+
+ /**
+ * Get Creator
+ *
+ * @return string
+ */
+ public function getCreator() {
+ return $this->_creator;
+ }
+
+ /**
+ * Set Creator
+ *
+ * @param string $pValue
+ * @return PHPExcel_DocumentProperties
+ */
+ public function setCreator($pValue = '') {
+ $this->_creator = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get Last Modified By
+ *
+ * @return string
+ */
+ public function getLastModifiedBy() {
+ return $this->_lastModifiedBy;
+ }
+
+ /**
+ * Set Last Modified By
+ *
+ * @param string $pValue
+ * @return PHPExcel_DocumentProperties
+ */
+ public function setLastModifiedBy($pValue = '') {
+ $this->_lastModifiedBy = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get Created
+ *
+ * @return datetime
+ */
+ public function getCreated() {
+ return $this->_created;
+ }
+
+ /**
+ * Set Created
+ *
+ * @param datetime $pValue
+ * @return PHPExcel_DocumentProperties
+ */
+ public function setCreated($pValue = null) {
+ if (is_null($pValue)) {
+ $pValue = time();
+ }
+ $this->_created = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get Modified
+ *
+ * @return datetime
+ */
+ public function getModified() {
+ return $this->_modified;
+ }
+
+ /**
+ * Set Modified
+ *
+ * @param datetime $pValue
+ * @return PHPExcel_DocumentProperties
+ */
+ public function setModified($pValue = null) {
+ if (is_null($pValue)) {
+ $pValue = time();
+ }
+ $this->_modified = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get Title
+ *
+ * @return string
+ */
+ public function getTitle() {
+ return $this->_title;
+ }
+
+ /**
+ * Set Title
+ *
+ * @param string $pValue
+ * @return PHPExcel_DocumentProperties
+ */
+ public function setTitle($pValue = '') {
+ $this->_title = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get Description
+ *
+ * @return string
+ */
+ public function getDescription() {
+ return $this->_description;
+ }
+
+ /**
+ * Set Description
+ *
+ * @param string $pValue
+ * @return PHPExcel_DocumentProperties
+ */
+ public function setDescription($pValue = '') {
+ $this->_description = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get Subject
+ *
+ * @return string
+ */
+ public function getSubject() {
+ return $this->_subject;
+ }
+
+ /**
+ * Set Subject
+ *
+ * @param string $pValue
+ * @return PHPExcel_DocumentProperties
+ */
+ public function setSubject($pValue = '') {
+ $this->_subject = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get Keywords
+ *
+ * @return string
+ */
+ public function getKeywords() {
+ return $this->_keywords;
+ }
+
+ /**
+ * Set Keywords
+ *
+ * @param string $pValue
+ * @return PHPExcel_DocumentProperties
+ */
+ public function setKeywords($pValue = '') {
+ $this->_keywords = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get Category
+ *
+ * @return string
+ */
+ public function getCategory() {
+ return $this->_category;
+ }
+
+ /**
+ * Set Category
+ *
+ * @param string $pValue
+ * @return PHPExcel_DocumentProperties
+ */
+ public function setCategory($pValue = '') {
+ $this->_category = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get Company
+ *
+ * @return string
+ */
+ public function getCompany() {
+ return $this->_company;
+ }
+
+ /**
+ * Set Company
+ *
+ * @param string $pValue
+ * @return PHPPowerPoint_DocumentProperties
+ */
+ public function setCompany($pValue = '') {
+ $this->_company = $pValue;
+ return $this;
+ }
+
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone() {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/DocumentSecurity.php b/libraries/PHPExcel/PHPExcel/DocumentSecurity.php
new file mode 100644
index 000000000..65c64742f
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/DocumentSecurity.php
@@ -0,0 +1,230 @@
+_lockRevision = false;
+ $this->_lockStructure = false;
+ $this->_lockWindows = false;
+ $this->_revisionsPassword = '';
+ $this->_workbookPassword = '';
+ }
+
+ /**
+ * Is some sort of dcument security enabled?
+ *
+ * @return boolean
+ */
+ function isSecurityEnabled() {
+ return $this->_lockRevision ||
+ $this->_lockStructure ||
+ $this->_lockWindows;
+ }
+
+ /**
+ * Get LockRevision
+ *
+ * @return boolean
+ */
+ function getLockRevision() {
+ return $this->_lockRevision;
+ }
+
+ /**
+ * Set LockRevision
+ *
+ * @param boolean $pValue
+ * @return PHPExcel_DocumentSecurity
+ */
+ function setLockRevision($pValue = false) {
+ $this->_lockRevision = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get LockStructure
+ *
+ * @return boolean
+ */
+ function getLockStructure() {
+ return $this->_lockStructure;
+ }
+
+ /**
+ * Set LockStructure
+ *
+ * @param boolean $pValue
+ * @return PHPExcel_DocumentSecurity
+ */
+ function setLockStructure($pValue = false) {
+ $this->_lockStructure = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get LockWindows
+ *
+ * @return boolean
+ */
+ function getLockWindows() {
+ return $this->_lockWindows;
+ }
+
+ /**
+ * Set LockWindows
+ *
+ * @param boolean $pValue
+ * @return PHPExcel_DocumentSecurity
+ */
+ function setLockWindows($pValue = false) {
+ $this->_lockWindows = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get RevisionsPassword (hashed)
+ *
+ * @return string
+ */
+ function getRevisionsPassword() {
+ return $this->_revisionsPassword;
+ }
+
+ /**
+ * Set RevisionsPassword
+ *
+ * @param string $pValue
+ * @param boolean $pAlreadyHashed If the password has already been hashed, set this to true
+ * @return PHPExcel_DocumentSecurity
+ */
+ function setRevisionsPassword($pValue = '', $pAlreadyHashed = false) {
+ if (!$pAlreadyHashed) {
+ $pValue = PHPExcel_Shared_PasswordHasher::hashPassword($pValue);
+ }
+ $this->_revisionsPassword = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get WorkbookPassword (hashed)
+ *
+ * @return string
+ */
+ function getWorkbookPassword() {
+ return $this->_workbookPassword;
+ }
+
+ /**
+ * Set WorkbookPassword
+ *
+ * @param string $pValue
+ * @param boolean $pAlreadyHashed If the password has already been hashed, set this to true
+ * @return PHPExcel_DocumentSecurity
+ */
+ function setWorkbookPassword($pValue = '', $pAlreadyHashed = false) {
+ if (!$pAlreadyHashed) {
+ $pValue = PHPExcel_Shared_PasswordHasher::hashPassword($pValue);
+ }
+ $this->_workbookPassword = $pValue;
+ return $this;
+ }
+
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone() {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/HashTable.php b/libraries/PHPExcel/PHPExcel/HashTable.php
new file mode 100644
index 000000000..b516f7998
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/HashTable.php
@@ -0,0 +1,228 @@
+addFromSource($pSource);
+ }
+ }
+
+ /**
+ * Add HashTable items from source
+ *
+ * @param PHPExcel_IComparable[] $pSource Source array to create HashTable from
+ * @throws Exception
+ */
+ public function addFromSource($pSource = null) {
+ // Check if an array was passed
+ if ($pSource == null) {
+ return;
+ } else if (!is_array($pSource)) {
+ throw new Exception('Invalid array parameter passed.');
+ }
+
+ foreach ($pSource as $item) {
+ $this->add($item);
+ }
+ }
+
+ /**
+ * Add HashTable item
+ *
+ * @param PHPExcel_IComparable $pSource Item to add
+ * @throws Exception
+ */
+ public function add(PHPExcel_IComparable $pSource = null) {
+ // Determine hashcode
+ $hashCode = null;
+ $hashIndex = $pSource->getHashIndex();
+ if ( is_null ( $hashIndex ) ) {
+ $hashCode = $pSource->getHashCode();
+ } else if ( isset ( $this->_keyMap[$hashIndex] ) ) {
+ $hashCode = $this->_keyMap[$hashIndex];
+ } else {
+ $hashCode = $pSource->getHashCode();
+ }
+
+ // Add value
+ if (!isset($this->_items[ $hashCode ])) {
+ $this->_items[ $hashCode ] = $pSource;
+ $index = count($this->_items) - 1;
+ $this->_keyMap[ $index ] = $hashCode;
+ $pSource->setHashIndex( $index );
+ } else {
+ $pSource->setHashIndex( $this->_items[ $hashCode ]->getHashIndex() );
+ }
+ }
+
+ /**
+ * Remove HashTable item
+ *
+ * @param PHPExcel_IComparable $pSource Item to remove
+ * @throws Exception
+ */
+ public function remove(PHPExcel_IComparable $pSource = null) {
+ if (isset($this->_items[ $pSource->getHashCode() ])) {
+ unset($this->_items[ $pSource->getHashCode() ]);
+
+ $deleteKey = -1;
+ foreach ($this->_keyMap as $key => $value) {
+ if ($deleteKey >= 0) {
+ $this->_keyMap[$key - 1] = $value;
+ }
+
+ if ($value == $pSource->getHashCode()) {
+ $deleteKey = $key;
+ }
+ }
+ unset($this->_keyMap[ count($this->_keyMap) - 1 ]);
+ }
+ }
+
+ /**
+ * Clear HashTable
+ *
+ */
+ public function clear() {
+ $this->_items = array();
+ $this->_keyMap = array();
+ }
+
+ /**
+ * Count
+ *
+ * @return int
+ */
+ public function count() {
+ return count($this->_items);
+ }
+
+ /**
+ * Get index for hash code
+ *
+ * @param string $pHashCode
+ * @return int Index
+ */
+ public function getIndexForHashCode($pHashCode = '') {
+ return array_search($pHashCode, $this->_keyMap);
+ }
+
+ /**
+ * Get by index
+ *
+ * @param int $pIndex
+ * @return PHPExcel_IComparable
+ *
+ */
+ public function getByIndex($pIndex = 0) {
+ if (isset($this->_keyMap[$pIndex])) {
+ return $this->getByHashCode( $this->_keyMap[$pIndex] );
+ }
+
+ return null;
+ }
+
+ /**
+ * Get by hashcode
+ *
+ * @param string $pHashCode
+ * @return PHPExcel_IComparable
+ *
+ */
+ public function getByHashCode($pHashCode = '') {
+ if (isset($this->_items[$pHashCode])) {
+ return $this->_items[$pHashCode];
+ }
+
+ return null;
+ }
+
+ /**
+ * HashTable to array
+ *
+ * @return PHPExcel_IComparable[]
+ */
+ public function toArray() {
+ return $this->_items;
+ }
+
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone() {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ }
+ }
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/IComparable.php b/libraries/PHPExcel/PHPExcel/IComparable.php
new file mode 100644
index 000000000..f02271fca
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/IComparable.php
@@ -0,0 +1,62 @@
+ 'IWriter', 'path' => 'PHPExcel/Writer/{0}.php', 'class' => 'PHPExcel_Writer_{0}' ),
+ array( 'type' => 'IReader', 'path' => 'PHPExcel/Reader/{0}.php', 'class' => 'PHPExcel_Reader_{0}' )
+ );
+
+ /**
+ * Autoresolve classes
+ *
+ * @var array
+ */
+ private static $_autoResolveClasses = array(
+ 'Excel2007',
+ 'Excel5',
+ 'Serialized',
+ 'CSV'
+ );
+
+ /**
+ * Private constructor for PHPExcel_IOFactory
+ */
+ private function __construct() { }
+
+ /**
+ * Get search locations
+ *
+ * @return array
+ */
+ public static function getSearchLocations() {
+ return self::$_searchLocations;
+ }
+
+ /**
+ * Set search locations
+ *
+ * @param array $value
+ * @throws Exception
+ */
+ public static function setSearchLocations($value) {
+ if (is_array($value)) {
+ self::$_searchLocations = $value;
+ } else {
+ throw new Exception('Invalid parameter passed.');
+ }
+ }
+
+ /**
+ * Add search location
+ *
+ * @param string $type Example: IWriter
+ * @param string $location Example: PHPExcel/Writer/{0}.php
+ * @param string $classname Example: PHPExcel_Writer_{0}
+ */
+ public static function addSearchLocation($type = '', $location = '', $classname = '') {
+ self::$_searchLocations[] = array( 'type' => $type, 'path' => $location, 'class' => $classname );
+ }
+
+ /**
+ * Create PHPExcel_Writer_IWriter
+ *
+ * @param PHPExcel $phpExcel
+ * @param string $writerType Example: Excel2007
+ * @return PHPExcel_Writer_IWriter
+ */
+ public static function createWriter(PHPExcel $phpExcel, $writerType = '') {
+ // Search type
+ $searchType = 'IWriter';
+
+ // Include class
+ foreach (self::$_searchLocations as $searchLocation) {
+ if ($searchLocation['type'] == $searchType) {
+ $className = str_replace('{0}', $writerType, $searchLocation['class']);
+ $classFile = str_replace('{0}', $writerType, $searchLocation['path']);
+
+ if (!class_exists($className)) {
+ require_once PHPEXCEL_ROOT . $classFile;
+ }
+
+ $instance = new $className($phpExcel);
+ if (!is_null($instance)) {
+ return $instance;
+ }
+ }
+ }
+
+ // Nothing found...
+ throw new Exception("No $searchType found for type $writerType");
+ }
+
+ /**
+ * Create PHPExcel_Reader_IReader
+ *
+ * @param string $readerType Example: Excel2007
+ * @return PHPExcel_Reader_IReader
+ */
+ public static function createReader($readerType = '') {
+ // Search type
+ $searchType = 'IReader';
+
+ // Include class
+ foreach (self::$_searchLocations as $searchLocation) {
+ if ($searchLocation['type'] == $searchType) {
+ $className = str_replace('{0}', $readerType, $searchLocation['class']);
+ $classFile = str_replace('{0}', $readerType, $searchLocation['path']);
+
+ if (!class_exists($className)) {
+ require_once PHPEXCEL_ROOT . $classFile;
+ }
+
+ $instance = new $className();
+ if (!is_null($instance)) {
+ return $instance;
+ }
+ }
+ }
+
+ // Nothing found...
+ throw new Exception("No $searchType found for type $readerType");
+ }
+
+ /**
+ * Loads PHPExcel from file using automatic PHPExcel_Reader_IReader resolution
+ *
+ * @param string $pFileName
+ * @return PHPExcel
+ */
+ public static function load($pFilename) {
+ $reader = self::createReaderForFile($pFilename);
+ return $reader->load($pFilename);
+ }
+
+ /**
+ * Create PHPExcel_Reader_IReader for file using automatic PHPExcel_Reader_IReader resolution
+ *
+ * @param string $pFileName
+ * @return PHPExcel_Reader_IReader
+ * @throws Exception
+ */
+ public static function createReaderForFile($pFilename) {
+ // Try loading using self::$_autoResolveClasses
+ foreach (self::$_autoResolveClasses as $autoResolveClass) {
+ $reader = self::createReader($autoResolveClass);
+ if ($reader->canRead($pFilename)) {
+ return $reader;
+ }
+ }
+
+ throw new Exception("Could not automatically determine PHPExcel_Reader_IReader for file.");
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/NamedRange.php b/libraries/PHPExcel/PHPExcel/NamedRange.php
new file mode 100644
index 000000000..ba6ad281e
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/NamedRange.php
@@ -0,0 +1,231 @@
+_worksheet)
+ *
+ * @var bool
+ */
+ private $_localOnly;
+
+ /**
+ * Create a new NamedRange
+ *
+ * @param string $pName
+ * @param PHPExcel_Worksheet $pWorksheet
+ * @param string $pRange
+ * @param bool $pLocalOnly
+ */
+ public function __construct($pName = null, PHPExcel_Worksheet $pWorksheet, $pRange = 'A1', $pLocalOnly = false)
+ {
+ // Validate data
+ if (is_null($pName) || is_null($pWorksheet)|| is_null($pRange)) {
+ throw new Exception('Parameters can not be null.');
+ }
+
+ // Set local members
+ $this->_name = $pName;
+ $this->_worksheet = $pWorksheet;
+ $this->_range = $pRange;
+ $this->_localOnly = $pLocalOnly;
+ }
+
+ /**
+ * Get name
+ *
+ * @return string
+ */
+ public function getName() {
+ return $this->_name;
+ }
+
+ /**
+ * Set name
+ *
+ * @param string $value
+ * @return PHPExcel_NamedRange
+ */
+ public function setName($value = null) {
+ if (!is_null($value)) {
+ // Old title
+ $oldTitle = $this->_name;
+
+ // Re-attach
+ if (!is_null($this->_worksheet)) {
+ $this->_worksheet->getParent()->removeNamedRange($this->_name,$this->_worksheet);
+ }
+ $this->_name = $value;
+
+ if (!is_null($this->_worksheet)) {
+ $this->_worksheet->getParent()->addNamedRange($this);
+ }
+
+ // New title
+ $newTitle = $this->_name;
+ PHPExcel_ReferenceHelper::getInstance()->updateNamedFormulas($this->_worksheet->getParent(), $oldTitle, $newTitle);
+ }
+ return $this;
+ }
+
+ /**
+ * Get worksheet
+ *
+ * @return PHPExcel_Worksheet
+ */
+ public function getWorksheet() {
+ return $this->_worksheet;
+ }
+
+ /**
+ * Set worksheet
+ *
+ * @param PHPExcel_Worksheet $value
+ * @return PHPExcel_NamedRange
+ */
+ public function setWorksheet(PHPExcel_Worksheet $value = null) {
+ if (!is_null($value)) {
+ $this->_worksheet = $value;
+ }
+ return $this;
+ }
+
+ /**
+ * Get range
+ *
+ * @return string
+ */
+ public function getRange() {
+ return $this->_range;
+ }
+
+ /**
+ * Set range
+ *
+ * @param string $value
+ * @return PHPExcel_NamedRange
+ */
+ public function setRange($value = null) {
+ if (!is_null($value)) {
+ $this->_range = $value;
+ }
+ return $this;
+ }
+
+ /**
+ * Get localOnly
+ *
+ * @return bool
+ */
+ public function getLocalOnly() {
+ return $this->_localOnly;
+ }
+
+ /**
+ * Set localOnly
+ *
+ * @param bool $value
+ * @return PHPExcel_NamedRange
+ */
+ public function setLocalOnly($value = false) {
+ $this->_localOnly = $value;
+ return $this;
+ }
+
+ /**
+ * Resolve a named range to a regular cell range
+ *
+ * @param string $pNamedRange Named range
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @return PHPExcel_NamedRange
+ */
+ public static function resolveRange($pNamedRange = '', PHPExcel_Worksheet $pSheet) {
+ return $pSheet->getParent()->getNamedRange($pNamedRange, $pSheet);
+ }
+
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone() {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Reader/CSV.php b/libraries/PHPExcel/PHPExcel/Reader/CSV.php
new file mode 100644
index 000000000..30e894b6b
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Reader/CSV.php
@@ -0,0 +1,294 @@
+_delimiter = ',';
+ $this->_enclosure = '"';
+ $this->_lineEnding = PHP_EOL;
+ $this->_sheetIndex = 0;
+ $this->_readFilter = new PHPExcel_Reader_DefaultReadFilter();
+ }
+
+ /**
+ * Can the current PHPExcel_Reader_IReader read the file?
+ *
+ * @param string $pFileName
+ * @return boolean
+ */
+ public function canRead($pFilename)
+ {
+ // Check if file exists
+ if (!file_exists($pFilename)) {
+ throw new Exception("Could not open " . $pFilename . " for reading! File does not exist.");
+ }
+
+ // Check if it is a CSV file (using file name)
+ return (substr(strtolower($pFilename), -3) == 'csv');
+ }
+
+ /**
+ * Loads PHPExcel from file
+ *
+ * @param string $pFilename
+ * @throws Exception
+ */
+ public function load($pFilename)
+ {
+ // Create new PHPExcel
+ $objPHPExcel = new PHPExcel();
+
+ // Load into this instance
+ return $this->loadIntoExisting($pFilename, $objPHPExcel);
+ }
+
+ /**
+ * Read filter
+ *
+ * @return PHPExcel_Reader_IReadFilter
+ */
+ public function getReadFilter() {
+ return $this->_readFilter;
+ }
+
+ /**
+ * Set read filter
+ *
+ * @param PHPExcel_Reader_IReadFilter $pValue
+ */
+ public function setReadFilter(PHPExcel_Reader_IReadFilter $pValue) {
+ $this->_readFilter = $pValue;
+ }
+
+ /**
+ * Loads PHPExcel from file into PHPExcel instance
+ *
+ * @param string $pFilename
+ * @param PHPExcel $objPHPExcel
+ * @throws Exception
+ */
+ public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)
+ {
+ // Check if file exists
+ if (!file_exists($pFilename)) {
+ throw new Exception("Could not open " . $pFilename . " for reading! File does not exist.");
+ }
+
+ // Create new PHPExcel
+ while ($objPHPExcel->getSheetCount() <= $this->_sheetIndex) {
+ $objPHPExcel->createSheet();
+ }
+ $objPHPExcel->setActiveSheetIndex( $this->_sheetIndex );
+
+ // Open file
+ $fileHandle = fopen($pFilename, 'r');
+ if ($fileHandle === false) {
+ throw new Exception("Could not open file $pFilename for reading.");
+ }
+
+ // Loop trough file
+ $currentRow = 0;
+ $rowData = array();
+ while (($rowData = fgetcsv($fileHandle, 0, $this->_delimiter, $this->_enclosure)) !== FALSE) {
+ ++$currentRow;
+ $rowDataCount = count($rowData);
+ for ($i = 0; $i < $rowDataCount; ++$i) {
+ $columnLetter = PHPExcel_Cell::stringFromColumnIndex($i);
+ if ($rowData[$i] != '' && $this->_readFilter->readCell($columnLetter, $currentRow)) {
+ // Unescape enclosures
+ $rowData[$i] = str_replace("\\" . $this->_enclosure, $this->_enclosure, $rowData[$i]);
+ $rowData[$i] = str_replace($this->_enclosure . $this->_enclosure, $this->_enclosure, $rowData[$i]);
+
+ // Set cell value
+ $objPHPExcel->getActiveSheet()->setCellValue(
+ $columnLetter . $currentRow, $rowData[$i]
+ );
+ }
+ }
+ }
+
+ // Close file
+ fclose($fileHandle);
+
+ // Return
+ return $objPHPExcel;
+ }
+
+ /**
+ * Get delimiter
+ *
+ * @return string
+ */
+ public function getDelimiter() {
+ return $this->_delimiter;
+ }
+
+ /**
+ * Set delimiter
+ *
+ * @param string $pValue Delimiter, defaults to ,
+ * @return PHPExcel_Reader_CSV
+ */
+ public function setDelimiter($pValue = ',') {
+ $this->_delimiter = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get enclosure
+ *
+ * @return string
+ */
+ public function getEnclosure() {
+ return $this->_enclosure;
+ }
+
+ /**
+ * Set enclosure
+ *
+ * @param string $pValue Enclosure, defaults to "
+ * @return PHPExcel_Reader_CSV
+ */
+ public function setEnclosure($pValue = '"') {
+ if ($pValue == '') {
+ $pValue = '"';
+ }
+ $this->_enclosure = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get line ending
+ *
+ * @return string
+ */
+ public function getLineEnding() {
+ return $this->_lineEnding;
+ }
+
+ /**
+ * Set line ending
+ *
+ * @param string $pValue Line ending, defaults to OS line ending (PHP_EOL)
+ * @return PHPExcel_Reader_CSV
+ */
+ public function setLineEnding($pValue = PHP_EOL) {
+ $this->_lineEnding = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get sheet index
+ *
+ * @return int
+ */
+ public function getSheetIndex() {
+ return $this->_sheetIndex;
+ }
+
+ /**
+ * Set sheet index
+ *
+ * @param int $pValue Sheet index
+ * @return PHPExcel_Reader_CSV
+ */
+ public function setSheetIndex($pValue = 0) {
+ $this->_sheetIndex = $pValue;
+ return $this;
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Reader/DefaultReadFilter.php b/libraries/PHPExcel/PHPExcel/Reader/DefaultReadFilter.php
new file mode 100644
index 000000000..8d8d83488
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Reader/DefaultReadFilter.php
@@ -0,0 +1,61 @@
+_readDataOnly;
+ }
+
+ /**
+ * Set read data only
+ *
+ * @param boolean $pValue
+ * @return PHPExcel_Reader_Excel2007
+ */
+ public function setReadDataOnly($pValue = false) {
+ $this->_readDataOnly = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get which sheets to load
+ *
+ * @return mixed
+ */
+ public function getLoadSheetsOnly()
+ {
+ return $this->_loadSheetsOnly;
+ }
+
+ /**
+ * Set which sheets to load
+ *
+ * @param mixed $value
+ * @return PHPExcel_Reader_Excel2007
+ */
+ public function setLoadSheetsOnly($value = null)
+ {
+ $this->_loadSheetsOnly = is_array($value) ?
+ $value : array($value);
+ return $this;
+ }
+
+ /**
+ * Set all sheets to load
+ *
+ * @return PHPExcel_Reader_Excel2007
+ */
+ public function setLoadAllSheets()
+ {
+ $this->_loadSheetsOnly = null;
+ return $this;
+ }
+
+ /**
+ * Read filter
+ *
+ * @return PHPExcel_Reader_IReadFilter
+ */
+ public function getReadFilter() {
+ return $this->_readFilter;
+ }
+
+ /**
+ * Set read filter
+ *
+ * @param PHPExcel_Reader_IReadFilter $pValue
+ * @return PHPExcel_Reader_Excel2007
+ */
+ public function setReadFilter(PHPExcel_Reader_IReadFilter $pValue) {
+ $this->_readFilter = $pValue;
+ return $this;
+ }
+
+ /**
+ * Create a new PHPExcel_Reader_Excel2007 instance
+ */
+ public function __construct() {
+ $this->_readFilter = new PHPExcel_Reader_DefaultReadFilter();
+ }
+
+ /**
+ * Can the current PHPExcel_Reader_IReader read the file?
+ *
+ * @param string $pFileName
+ * @return boolean
+ */
+ public function canRead($pFilename)
+ {
+ // Check if file exists
+ if (!file_exists($pFilename)) {
+ throw new Exception("Could not open " . $pFilename . " for reading! File does not exist.");
+ }
+
+ // Load file
+ $zip = new ZipArchive;
+ if ($zip->open($pFilename) === true) {
+ // check if it is an OOXML archive
+ $rels = simplexml_load_string($zip->getFromName("_rels/.rels"));
+
+ $zip->close();
+
+ return ($rels !== false);
+ }
+
+ return false;
+ }
+
+
+ private function _castToBool($c) {
+// echo 'Initial Cast to Boolean ';
+ $value = isset($c->v) ? (string) $c->v : null;
+ if ($value == '0') {
+ $value = false;
+ } elseif ($value == '1') {
+ $value = true;
+ } else {
+ $value = (bool)$c->v;
+ }
+ return $value;
+ } // function _castToBool()
+
+ private function _castToError($c) {
+// echo 'Initial Cast to Error ';
+ return isset($c->v) ? (string) $c->v : null;;
+ } // function _castToError()
+
+ private function _castToString($c) {
+// echo 'Initial Cast to String ';
+ return isset($c->v) ? (string) $c->v : null;;
+ } // function _castToString()
+
+ private function _castToFormula($c,$r,&$cellDataType,&$value,&$calculatedValue,&$sharedFormulas,$castBaseType) {
+// echo 'Formula ';
+// echo '$c->f is '.$c->f.' ';
+ $cellDataType = 'f';
+ $value = "={$c->f}";
+ $calculatedValue = $this->$castBaseType($c);
+
+ // Shared formula?
+ if (isset($c->f['t']) && strtolower((string)$c->f['t']) == 'shared') {
+// echo 'SHARED FORMULA ';
+ $instance = (string)$c->f['si'];
+
+// echo 'Instance ID = '.$instance.' ';
+//
+// echo 'Shared Formula Array:
';
+// print_r($sharedFormulas);
+// echo '
';
+ if (!isset($sharedFormulas[(string)$c->f['si']])) {
+// echo 'SETTING NEW SHARED FORMULA ';
+// echo 'Master is '.$r.' ';
+// echo 'Formula is '.$value.' ';
+ $sharedFormulas[$instance] = array( 'master' => $r,
+ 'formula' => $value
+ );
+// echo 'New Shared Formula Array:
';
+// print_r($sharedFormulas);
+// echo '
';
+ } else {
+// echo 'GETTING SHARED FORMULA ';
+// echo 'Master is '.$sharedFormulas[$instance]['master'].' ';
+// echo 'Formula is '.$sharedFormulas[$instance]['formula'].' ';
+ $master = PHPExcel_Cell::coordinateFromString($sharedFormulas[$instance]['master']);
+ $current = PHPExcel_Cell::coordinateFromString($r);
+
+ $difference = array(0, 0);
+ $difference[0] = PHPExcel_Cell::columnIndexFromString($current[0]) - PHPExcel_Cell::columnIndexFromString($master[0]);
+ $difference[1] = $current[1] - $master[1];
+
+ $helper = PHPExcel_ReferenceHelper::getInstance();
+ $value = $helper->updateFormulaReferences( $sharedFormulas[$instance]['formula'],
+ 'A1',
+ $difference[0],
+ $difference[1]
+ );
+// echo 'Adjusted Formula is '.$value.' ';
+ }
+ }
+ }
+
+
+ /**
+ * Loads PHPExcel from file
+ *
+ * @param string $pFilename
+ * @throws Exception
+ */
+ public function load($pFilename)
+ {
+ // Check if file exists
+ if (!file_exists($pFilename)) {
+ throw new Exception("Could not open " . $pFilename . " for reading! File does not exist.");
+ }
+
+ // Initialisations
+ $excel = new PHPExcel;
+ $excel->removeSheetByIndex(0);
+ if (!$this->_readDataOnly) {
+ $excel->removeCellStyleXfByIndex(0); // remove the default style
+ $excel->removeCellXfByIndex(0); // remove the default style
+ }
+ $zip = new ZipArchive;
+ $zip->open($pFilename);
+
+ $rels = simplexml_load_string($zip->getFromName("_rels/.rels")); //~ http://schemas.openxmlformats.org/package/2006/relationships");
+ foreach ($rels->Relationship as $rel) {
+ switch ($rel["Type"]) {
+ case "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties":
+ $xmlCore = simplexml_load_string($zip->getFromName("{$rel['Target']}"));
+ if ($xmlCore === false) { // Apache POI hack
+ $xmlCore = simplexml_load_string($zip->getFromName(substr("{$rel['Target']}", 1)));
+ }
+ if ($xmlCore) {
+ $xmlCore->registerXPathNamespace("dc", "http://purl.org/dc/elements/1.1/");
+ $xmlCore->registerXPathNamespace("dcterms", "http://purl.org/dc/terms/");
+ $xmlCore->registerXPathNamespace("cp", "http://schemas.openxmlformats.org/package/2006/metadata/core-properties");
+ $docProps = $excel->getProperties();
+ $docProps->setCreator((string) self::array_item($xmlCore->xpath("dc:creator")));
+ $docProps->setLastModifiedBy((string) self::array_item($xmlCore->xpath("cp:lastModifiedBy")));
+ $docProps->setCreated(strtotime(self::array_item($xmlCore->xpath("dcterms:created")))); //! respect xsi:type
+ $docProps->setModified(strtotime(self::array_item($xmlCore->xpath("dcterms:modified")))); //! respect xsi:type
+ $docProps->setTitle((string) self::array_item($xmlCore->xpath("dc:title")));
+ $docProps->setDescription((string) self::array_item($xmlCore->xpath("dc:description")));
+ $docProps->setSubject((string) self::array_item($xmlCore->xpath("dc:subject")));
+ $docProps->setKeywords((string) self::array_item($xmlCore->xpath("cp:keywords")));
+ $docProps->setCategory((string) self::array_item($xmlCore->xpath("cp:category")));
+ }
+ break;
+
+ case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument":
+ $dir = dirname($rel["Target"]);
+ $relsWorkbook = simplexml_load_string($zip->getFromName("$dir/_rels/" . basename($rel["Target"]) . ".rels")); //~ http://schemas.openxmlformats.org/package/2006/relationships");
+ if ($relsWorkbook === false) { // Apache POI hack
+ $relsWorkbook = simplexml_load_string($zip->getFromName(substr("$dir/_rels/" . basename($rel["Target"]) . ".rels", 1))); //~ http://schemas.openxmlformats.org/package/2006/relationships");
+ }
+ $relsWorkbook->registerXPathNamespace("rel", "http://schemas.openxmlformats.org/package/2006/relationships");
+
+ $sharedStrings = array();
+ $xpath = self::array_item($relsWorkbook->xpath("rel:Relationship[@Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings']"));
+ $xmlStrings = simplexml_load_string($zip->getFromName("$dir/$xpath[Target]")); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main");
+ if (isset($xmlStrings) && isset($xmlStrings->si)) {
+ foreach ($xmlStrings->si as $val) {
+ if (isset($val->t)) {
+ $sharedStrings[] = PHPExcel_Shared_String::ControlCharacterOOXML2PHP( (string) $val->t );
+ } elseif (isset($val->r)) {
+ $sharedStrings[] = $this->_parseRichText($val);
+ }
+ }
+ }
+
+ $worksheets = array();
+ foreach ($relsWorkbook->Relationship as $ele) {
+ if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") {
+ $worksheets[(string) $ele["Id"]] = $ele["Target"];
+ }
+ }
+
+ $styles = array();
+ $cellStyles = array();
+ $xpath = self::array_item($relsWorkbook->xpath("rel:Relationship[@Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles']"));
+ $xmlStyles = simplexml_load_string($zip->getFromName("$dir/$xpath[Target]")); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main");
+ $numFmts = null;
+ if ($xmlStyles && $xmlStyles->numFmts[0]) {
+ $numFmts = $xmlStyles->numFmts[0];
+ }
+ if (isset($numFmts) && !is_null($numFmts)) {
+ $numFmts->registerXPathNamespace("sml", "http://schemas.openxmlformats.org/spreadsheetml/2006/main");
+ }
+ if (!$this->_readDataOnly && $xmlStyles) {
+ foreach ($xmlStyles->cellXfs->xf as $xf) {
+ $numFmt = PHPExcel_Style_NumberFormat::FORMAT_GENERAL;
+
+ if ($xf["numFmtId"]) {
+ if (isset($numFmts)) {
+ $tmpNumFmt = self::array_item($numFmts->xpath("sml:numFmt[@numFmtId=$xf[numFmtId]]"));
+
+ if (isset($tmpNumFmt["formatCode"])) {
+ $numFmt = (string) $tmpNumFmt["formatCode"];
+ }
+ }
+
+ if ((int)$xf["numFmtId"] < 164) {
+ $numFmt = PHPExcel_Style_NumberFormat::builtInFormatCode((int)$xf["numFmtId"]);
+ }
+ }
+ //$numFmt = str_replace('mm', 'i', $numFmt);
+ //$numFmt = str_replace('h', 'H', $numFmt);
+
+ $style = (object) array(
+ "numFmt" => $numFmt,
+ "font" => $xmlStyles->fonts->font[intval($xf["fontId"])],
+ "fill" => $xmlStyles->fills->fill[intval($xf["fillId"])],
+ "border" => $xmlStyles->borders->border[intval($xf["borderId"])],
+ "alignment" => $xf->alignment,
+ "protection" => $xf->protection,
+ "applyAlignment" => (isset($xf["applyAlignment"]) && ((string)$xf["applyAlignment"] == 'true' || (string)$xf["applyAlignment"] == '1')),
+ "applyBorder" => (isset($xf["applyBorder"]) && ((string)$xf["applyBorder"] == 'true' || (string)$xf["applyBorder"] == '1')),
+ "applyFill" => (isset($xf["applyFill"]) && ((string)$xf["applyFill"] == 'true' || (string)$xf["applyFill"] == '1')),
+ "applyFont" => (isset($xf["applyFont"]) && ((string)$xf["applyFont"] == 'true' || (string)$xf["applyFont"] == '1')),
+ "applyNumberFormat" => (isset($xf["applyNumberFormat"]) && ((string)$xf["applyNumberFormat"] == 'true' || (string)$xf["applyNumberFormat"] == '1')),
+ "applyProtection" => (isset($xf["applyProtection"]) && ((string)$xf["applyProtection"] == 'true' || (string)$xf["applyProtection"] == '1'))
+ );
+ $styles[] = $style;
+
+ // add style to cellXf collection
+ $objStyle = new PHPExcel_Style;
+ $this->_readStyle($objStyle, $style);
+ $excel->addCellXf($objStyle);
+ }
+
+ foreach ($xmlStyles->cellStyleXfs->xf as $xf) {
+ $numFmt = PHPExcel_Style_NumberFormat::FORMAT_GENERAL;
+ if ($numFmts && $xf["numFmtId"]) {
+ $tmpNumFmt = self::array_item($numFmts->xpath("sml:numFmt[@numFmtId=$xf[numFmtId]]"));
+ if (isset($tmpNumFmt["formatCode"])) {
+ $numFmt = (string) $tmpNumFmt["formatCode"];
+ } else if ((int)$xf["numFmtId"] < 165) {
+ $numFmt = PHPExcel_Style_NumberFormat::builtInFormatCode((int)$xf["numFmtId"]);
+ }
+ }
+
+ $cellStyle = (object) array(
+ "numFmt" => $numFmt,
+ "font" => $xmlStyles->fonts->font[intval($xf["fontId"])],
+ "fill" => $xmlStyles->fills->fill[intval($xf["fillId"])],
+ "border" => $xmlStyles->borders->border[intval($xf["borderId"])],
+ "alignment" => $xf->alignment,
+ "protection" => $xf->protection,
+ "applyAlignment" => true,
+ "applyBorder" => true,
+ "applyFill" => true,
+ "applyFont" => true,
+ "applyNumberFormat" => true,
+ "applyProtection" => true
+ );
+ $cellStyles[] = $cellStyle;
+
+ // add style to cellStyleXf collection
+ $objStyle = new PHPExcel_Style;
+ $this->_readStyle($objStyle, $cellStyle);
+ $excel->addCellStyleXf($objStyle);
+ }
+ }
+
+ $dxfs = array();
+ if (!$this->_readDataOnly && $xmlStyles) {
+ foreach ($xmlStyles->dxfs->dxf as $dxf) {
+ $style = new PHPExcel_Style;
+ $this->_readStyle($style, $dxf);
+ $dxfs[] = $style;
+ }
+
+ foreach ($xmlStyles->cellStyles->cellStyle as $cellStyle) {
+ if (intval($cellStyle['builtinId']) == 0) {
+ if (isset($cellStyles[intval($cellStyle['xfId'])])) {
+ // Set default style
+ $style = new PHPExcel_Style;
+ $this->_readStyle($style, $cellStyles[intval($cellStyle['xfId'])]);
+
+ // normal style, currently not using it for anything
+ }
+ }
+ }
+ }
+
+ $xmlWorkbook = simplexml_load_string($zip->getFromName("{$rel['Target']}")); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main");
+ if ($xmlWorkbook === false) { // Apache POI hack
+ $xmlWorkbook = simplexml_load_string($zip->getFromName(substr("{$rel['Target']}", 1))); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main");
+ }
+ // Set base date
+ if ($xmlWorkbook->workbookPr) {
+ PHPExcel_Shared_Date::setExcelCalendar(PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900);
+ if (isset($xmlWorkbook->workbookPr['date1904'])) {
+ $date1904 = (string)$xmlWorkbook->workbookPr['date1904'];
+ if ($date1904 == "true" || $date1904 == "1") {
+ PHPExcel_Shared_Date::setExcelCalendar(PHPExcel_Shared_Date::CALENDAR_MAC_1904);
+ }
+ }
+ }
+
+ $sheetId = 0; // keep track of new sheet id in final workbook
+ $oldSheetId = -1; // keep track of old sheet id in final workbook
+ $countSkippedSheets = 0; // keep track of number of skipped sheets
+ $mapSheetId = array(); // mapping of sheet ids from old to new
+
+ foreach ($xmlWorkbook->sheets->sheet as $eleSheet) {
+ ++$oldSheetId;
+
+ // Check if sheet should be skipped
+ if (isset($this->_loadSheetsOnly) && !in_array((string) $eleSheet["name"], $this->_loadSheetsOnly)) {
+ ++$countSkippedSheets;
+ $mapSheetId[$oldSheetId] = null;
+ continue;
+ }
+
+ // Map old sheet id in original workbook to new sheet id.
+ // They will differ if loadSheetsOnly() is being used
+ $mapSheetId[$oldSheetId] = $oldSheetId - $countSkippedSheets;
+
+ // Load sheet
+ $docSheet = $excel->createSheet();
+ $docSheet->setTitle((string) $eleSheet["name"]);
+ $fileWorksheet = $worksheets[(string) self::array_item($eleSheet->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"), "id")];
+ $xmlSheet = simplexml_load_string($zip->getFromName("$dir/$fileWorksheet")); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main");
+
+ $sharedFormulas = array();
+
+ if (isset($xmlSheet->sheetViews) && isset($xmlSheet->sheetViews->sheetView)) {
+ if (isset($xmlSheet->sheetViews->sheetView['zoomScale'])) {
+ $docSheet->getSheetView()->setZoomScale( intval($xmlSheet->sheetViews->sheetView['zoomScale']) );
+ }
+
+ if (isset($xmlSheet->sheetViews->sheetView['zoomScaleNormal'])) {
+ $docSheet->getSheetView()->setZoomScaleNormal( intval($xmlSheet->sheetViews->sheetView['zoomScaleNormal']) );
+ }
+
+ if (isset($xmlSheet->sheetViews->sheetView['showGridLines'])) {
+ $docSheet->setShowGridLines((string)$xmlSheet->sheetViews->sheetView['showGridLines'] ? true : false);
+ }
+
+ if (isset($xmlSheet->sheetViews->sheetView['rightToLeft'])) {
+ $docSheet->setRightToLeft((string)$xmlSheet->sheetViews->sheetView['rightToLeft'] ? true : false);
+ }
+
+ if (isset($xmlSheet->sheetViews->sheetView->pane)) {
+ if (isset($xmlSheet->sheetViews->sheetView->pane['topLeftCell'])) {
+ $docSheet->freezePane( (string)$xmlSheet->sheetViews->sheetView->pane['topLeftCell'] );
+ } else {
+ $xSplit = 0;
+ $ySplit = 0;
+
+ if (isset($xmlSheet->sheetViews->sheetView->pane['xSplit'])) {
+ $xSplit = 1 + intval($xmlSheet->sheetViews->sheetView->pane['xSplit']);
+ }
+
+ if (isset($xmlSheet->sheetViews->sheetView->pane['ySplit'])) {
+ $ySplit = 1 + intval($xmlSheet->sheetViews->sheetView->pane['ySplit']);
+ }
+
+ $docSheet->freezePaneByColumnAndRow($xSplit, $ySplit);
+ }
+ }
+ }
+
+ if (isset($xmlSheet->sheetPr) && isset($xmlSheet->sheetPr->outlinePr)) {
+ if (isset($xmlSheet->sheetPr->outlinePr['summaryRight']) && $xmlSheet->sheetPr->outlinePr['summaryRight'] == false) {
+ $docSheet->setShowSummaryRight(false);
+ } else {
+ $docSheet->setShowSummaryRight(true);
+ }
+
+ if (isset($xmlSheet->sheetPr->outlinePr['summaryBelow']) && $xmlSheet->sheetPr->outlinePr['summaryBelow'] == false) {
+ $docSheet->setShowSummaryBelow(false);
+ } else {
+ $docSheet->setShowSummaryBelow(true);
+ }
+ }
+
+ if (isset($xmlSheet->sheetFormatPr)) {
+ if (isset($xmlSheet->sheetFormatPr['customHeight']) && ((string)$xmlSheet->sheetFormatPr['customHeight'] == '1' || strtolower((string)$xmlSheet->sheetFormatPr['customHeight']) == 'true') && isset($xmlSheet->sheetFormatPr['defaultRowHeight'])) {
+ $docSheet->getDefaultRowDimension()->setRowHeight( (float)$xmlSheet->sheetFormatPr['defaultRowHeight'] );
+ }
+ if (isset($xmlSheet->sheetFormatPr['defaultColWidth'])) {
+ $docSheet->getDefaultColumnDimension()->setWidth( (float)$xmlSheet->sheetFormatPr['defaultColWidth'] );
+ }
+ }
+
+ if (isset($xmlSheet->cols) && !$this->_readDataOnly) {
+ foreach ($xmlSheet->cols->col as $col) {
+ for ($i = intval($col["min"]) - 1; $i < intval($col["max"]); ++$i) {
+ if ($col["bestFit"]) {
+ $docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setAutoSize(true);
+ }
+ if ($col["hidden"]) {
+ $docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setVisible(false);
+ }
+ if ($col["collapsed"]) {
+ $docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setCollapsed(true);
+ }
+ if ($col["outlineLevel"] > 0) {
+ $docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setOutlineLevel(intval($col["outlineLevel"]));
+ }
+ $docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setWidth(floatval($col["width"]));
+
+ if (intval($col["max"]) == 16384) {
+ break;
+ }
+ }
+ }
+ }
+
+ if (isset($xmlSheet->printOptions) && !$this->_readDataOnly) {
+ if ($xmlSheet->printOptions['gridLinesSet'] == 'true' && $xmlSheet->printOptions['gridLinesSet'] == '1') {
+ $docSheet->setShowGridlines(true);
+ }
+
+ if ($xmlSheet->printOptions['gridLines'] == 'true' || $xmlSheet->printOptions['gridLines'] == '1') {
+ $docSheet->setPrintGridlines(true);
+ }
+
+ if ($xmlSheet->printOptions['horizontalCentered']) {
+ $docSheet->getPageSetup()->setHorizontalCentered(true);
+ }
+ if ($xmlSheet->printOptions['verticalCentered']) {
+ $docSheet->getPageSetup()->setVerticalCentered(true);
+ }
+ }
+
+ if ($xmlSheet && $xmlSheet->sheetData && $xmlSheet->sheetData->row) {
+ foreach ($xmlSheet->sheetData->row as $row) {
+ if ($row["ht"] && !$this->_readDataOnly) {
+ $docSheet->getRowDimension(intval($row["r"]))->setRowHeight(floatval($row["ht"]));
+ }
+ if ($row["hidden"] && !$this->_readDataOnly) {
+ $docSheet->getRowDimension(intval($row["r"]))->setVisible(false);
+ }
+ if ($row["collapsed"]) {
+ $docSheet->getRowDimension(intval($row["r"]))->setCollapsed(true);
+ }
+ if ($row["outlineLevel"] > 0) {
+ $docSheet->getRowDimension(intval($row["r"]))->setOutlineLevel(intval($row["outlineLevel"]));
+ }
+
+ foreach ($row->c as $c) {
+ $r = (string) $c["r"];
+ $cellDataType = (string) $c["t"];
+ $value = null;
+ $calculatedValue = null;
+
+ // Read cell?
+ if (!is_null($this->getReadFilter())) {
+ $coordinates = PHPExcel_Cell::coordinateFromString($r);
+
+ if (!$this->getReadFilter()->readCell($coordinates[0], $coordinates[1], $docSheet->getTitle())) {
+ break;
+ }
+ }
+
+// echo 'Reading cell '.$coordinates[0].$coordinates[1].' ';
+// print_r($c);
+// echo ' ';
+// echo 'Cell Data Type is '.$cellDataType.': ';
+//
+ // Read cell!
+ switch ($cellDataType) {
+ case "s":
+// echo 'String ';
+ if ((string)$c->v != '') {
+ $value = $sharedStrings[intval($c->v)];
+
+ if ($value instanceof PHPExcel_RichText) {
+ $value = clone $value;
+ }
+ } else {
+ $value = '';
+ }
+
+ break;
+ case "b":
+// echo 'Boolean ';
+ if (!isset($c->f)) {
+ $value = $this->_castToBool($c);
+ } else {
+ // Formula
+ $this->_castToFormula($c,$r,$cellDataType,$value,$calculatedValue,$sharedFormulas,'_castToBool');
+// echo '$calculatedValue = '.$calculatedValue.' ';
+ }
+ break;
+ case "inlineStr":
+// echo 'Inline String ';
+ $value = $this->_parseRichText($c->is);
+
+ break;
+ case "e":
+// echo 'Error ';
+ if (!isset($c->f)) {
+ $value = $this->_castToError($c);
+ } else {
+ // Formula
+ $this->_castToFormula($c,$r,$cellDataType,$value,$calculatedValue,$sharedFormulas,'_castToError');
+// echo '$calculatedValue = '.$calculatedValue.' ';
+ }
+
+ break;
+
+ default:
+// echo 'Default ';
+ if (!isset($c->f)) {
+// echo 'Not a Formula ';
+ $value = $this->_castToString($c);
+ } else {
+// echo 'Treat as Formula ';
+ // Formula
+ $this->_castToFormula($c,$r,$cellDataType,$value,$calculatedValue,$sharedFormulas,'_castToString');
+// echo '$calculatedValue = '.$calculatedValue.' ';
+ }
+
+ break;
+ }
+// echo 'Value is '.$value.' ';
+
+ // Check for numeric values
+ if (is_numeric($value) && $cellDataType != 's') {
+ if ($value == (int)$value) $value = (int)$value;
+ elseif ($value == (float)$value) $value = (float)$value;
+ elseif ($value == (double)$value) $value = (double)$value;
+ }
+
+ // Rich text?
+ if ($value instanceof PHPExcel_RichText && $this->_readDataOnly) {
+ $value = $value->getPlainText();
+ }
+
+ // Assign value
+ if ($cellDataType != '') {
+ $docSheet->setCellValueExplicit($r, $value, $cellDataType);
+ } else {
+ $docSheet->setCellValue($r, $value);
+ }
+ if (!is_null($calculatedValue)) {
+ $docSheet->getCell($r)->setCalculatedValue($calculatedValue);
+ }
+
+ // Style information?
+ if ($c["s"] && !$this->_readDataOnly) {
+ // no style index means 0, it seems
+ $docSheet->getCell($r)->setXfIndex(isset($styles[intval($c["s"])]) ?
+ intval($c["s"]) : 0);
+ }
+
+ // Set rich text parent
+ if ($value instanceof PHPExcel_RichText && !$this->_readDataOnly) {
+ $value->setParent($docSheet->getCell($r));
+ }
+ }
+ }
+ }
+
+ $conditionals = array();
+ if (!$this->_readDataOnly && $xmlSheet && $xmlSheet->conditionalFormatting) {
+ foreach ($xmlSheet->conditionalFormatting as $conditional) {
+ foreach ($conditional->cfRule as $cfRule) {
+ if (
+ (
+ (string)$cfRule["type"] == PHPExcel_Style_Conditional::CONDITION_NONE ||
+ (string)$cfRule["type"] == PHPExcel_Style_Conditional::CONDITION_CELLIS ||
+ (string)$cfRule["type"] == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT
+ ) && isset($dxfs[intval($cfRule["dxfId"])])
+ ) {
+ $conditionals[(string) $conditional["sqref"]][intval($cfRule["priority"])] = $cfRule;
+ }
+ }
+ }
+
+ foreach ($conditionals as $ref => $cfRules) {
+ ksort($cfRules);
+ $conditionalStyles = array();
+ foreach ($cfRules as $cfRule) {
+ $objConditional = new PHPExcel_Style_Conditional();
+ $objConditional->setConditionType((string)$cfRule["type"]);
+ $objConditional->setOperatorType((string)$cfRule["operator"]);
+
+ if ((string)$cfRule["text"] != '') {
+ $objConditional->setText((string)$cfRule["text"]);
+ }
+
+ if (count($cfRule->formula) > 1) {
+ foreach ($cfRule->formula as $formula) {
+ $objConditional->addCondition((string)$formula);
+ }
+ } else {
+ $objConditional->addCondition((string)$cfRule->formula);
+ }
+ $objConditional->setStyle(clone $dxfs[intval($cfRule["dxfId"])]);
+ $conditionalStyles[] = $objConditional;
+ }
+
+ // Extract all cell references in $ref
+ $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($ref);
+ foreach ($aReferences as $reference) {
+ $docSheet->getStyle($reference)->setConditionalStyles($conditionalStyles);
+ }
+ }
+ }
+
+ $aKeys = array("sheet", "objects", "scenarios", "formatCells", "formatColumns", "formatRows", "insertColumns", "insertRows", "insertHyperlinks", "deleteColumns", "deleteRows", "selectLockedCells", "sort", "autoFilter", "pivotTables", "selectUnlockedCells");
+ if (!$this->_readDataOnly && $xmlSheet && $xmlSheet->sheetProtection) {
+ foreach ($aKeys as $key) {
+ $method = "set" . ucfirst($key);
+ $docSheet->getProtection()->$method($xmlSheet->sheetProtection[$key] == "true");
+ }
+ }
+
+ if (!$this->_readDataOnly && $xmlSheet && $xmlSheet->sheetProtection) {
+ $docSheet->getProtection()->setPassword((string) $xmlSheet->sheetProtection["password"], true);
+ if ($xmlSheet->protectedRanges->protectedRange) {
+ foreach ($xmlSheet->protectedRanges->protectedRange as $protectedRange) {
+ $docSheet->protectCells((string) $protectedRange["sqref"], (string) $protectedRange["password"], true);
+ }
+ }
+ }
+
+ if ($xmlSheet && $xmlSheet->autoFilter && !$this->_readDataOnly) {
+ $docSheet->setAutoFilter((string) $xmlSheet->autoFilter["ref"]);
+ }
+
+ if ($xmlSheet && $xmlSheet->mergeCells && $xmlSheet->mergeCells->mergeCell && !$this->_readDataOnly) {
+ foreach ($xmlSheet->mergeCells->mergeCell as $mergeCell) {
+ $docSheet->mergeCells((string) $mergeCell["ref"]);
+ }
+ }
+
+ if ($xmlSheet && $xmlSheet->pageMargins && !$this->_readDataOnly) {
+ $docPageMargins = $docSheet->getPageMargins();
+ $docPageMargins->setLeft(floatval($xmlSheet->pageMargins["left"]));
+ $docPageMargins->setRight(floatval($xmlSheet->pageMargins["right"]));
+ $docPageMargins->setTop(floatval($xmlSheet->pageMargins["top"]));
+ $docPageMargins->setBottom(floatval($xmlSheet->pageMargins["bottom"]));
+ $docPageMargins->setHeader(floatval($xmlSheet->pageMargins["header"]));
+ $docPageMargins->setFooter(floatval($xmlSheet->pageMargins["footer"]));
+ }
+
+ if ($xmlSheet && $xmlSheet->pageSetup && !$this->_readDataOnly) {
+ $docPageSetup = $docSheet->getPageSetup();
+
+ if (isset($xmlSheet->pageSetup["orientation"])) {
+ $docPageSetup->setOrientation((string) $xmlSheet->pageSetup["orientation"]);
+ }
+ if (isset($xmlSheet->pageSetup["paperSize"])) {
+ $docPageSetup->setPaperSize(intval($xmlSheet->pageSetup["paperSize"]));
+ }
+ if (isset($xmlSheet->pageSetup["scale"])) {
+ $docPageSetup->setScale(intval($xmlSheet->pageSetup["scale"]));
+ }
+ if (isset($xmlSheet->pageSetup["fitToHeight"]) && intval($xmlSheet->pageSetup["fitToHeight"]) > 0) {
+ $docPageSetup->setFitToHeight(intval($xmlSheet->pageSetup["fitToHeight"]));
+ }
+ if (isset($xmlSheet->pageSetup["fitToWidth"]) && intval($xmlSheet->pageSetup["fitToWidth"]) > 0) {
+ $docPageSetup->setFitToWidth(intval($xmlSheet->pageSetup["fitToWidth"]));
+ }
+ }
+
+ if ($xmlSheet && $xmlSheet->headerFooter && !$this->_readDataOnly) {
+ $docHeaderFooter = $docSheet->getHeaderFooter();
+
+ if (isset($xmlSheet->headerFooter["differentOddEven"]) &&
+ ((string)$xmlSheet->headerFooter["differentOddEven"] == 'true' || (string)$xmlSheet->headerFooter["differentOddEven"] == '1')) {
+ $docHeaderFooter->setDifferentOddEven(true);
+ } else {
+ $docHeaderFooter->setDifferentOddEven(false);
+ }
+ if (isset($xmlSheet->headerFooter["differentFirst"]) &&
+ ((string)$xmlSheet->headerFooter["differentFirst"] == 'true' || (string)$xmlSheet->headerFooter["differentFirst"] == '1')) {
+ $docHeaderFooter->setDifferentFirst(true);
+ } else {
+ $docHeaderFooter->setDifferentFirst(false);
+ }
+ if (isset($xmlSheet->headerFooter["scaleWithDoc"]) &&
+ ((string)$xmlSheet->headerFooter["scaleWithDoc"] == 'false' || (string)$xmlSheet->headerFooter["scaleWithDoc"] == '0')) {
+ $docHeaderFooter->setScaleWithDocument(false);
+ } else {
+ $docHeaderFooter->setScaleWithDocument(true);
+ }
+ if (isset($xmlSheet->headerFooter["alignWithMargins"]) &&
+ ((string)$xmlSheet->headerFooter["alignWithMargins"] == 'false' || (string)$xmlSheet->headerFooter["alignWithMargins"] == '0')) {
+ $docHeaderFooter->setAlignWithMargins(false);
+ } else {
+ $docHeaderFooter->setAlignWithMargins(true);
+ }
+
+ $docHeaderFooter->setOddHeader((string) $xmlSheet->headerFooter->oddHeader);
+ $docHeaderFooter->setOddFooter((string) $xmlSheet->headerFooter->oddFooter);
+ $docHeaderFooter->setEvenHeader((string) $xmlSheet->headerFooter->evenHeader);
+ $docHeaderFooter->setEvenFooter((string) $xmlSheet->headerFooter->evenFooter);
+ $docHeaderFooter->setFirstHeader((string) $xmlSheet->headerFooter->firstHeader);
+ $docHeaderFooter->setFirstFooter((string) $xmlSheet->headerFooter->firstFooter);
+ }
+
+ if ($xmlSheet && $xmlSheet->rowBreaks && $xmlSheet->rowBreaks->brk && !$this->_readDataOnly) {
+ foreach ($xmlSheet->rowBreaks->brk as $brk) {
+ if ($brk["man"]) {
+ $docSheet->setBreak("A$brk[id]", PHPExcel_Worksheet::BREAK_ROW);
+ }
+ }
+ }
+ if ($xmlSheet && $xmlSheet->colBreaks && $xmlSheet->colBreaks->brk && !$this->_readDataOnly) {
+ foreach ($xmlSheet->colBreaks->brk as $brk) {
+ if ($brk["man"]) {
+ $docSheet->setBreak(PHPExcel_Cell::stringFromColumnIndex($brk["id"]) . "1", PHPExcel_Worksheet::BREAK_COLUMN);
+ }
+ }
+ }
+
+ if ($xmlSheet && $xmlSheet->dataValidations && !$this->_readDataOnly) {
+ foreach ($xmlSheet->dataValidations->dataValidation as $dataValidation) {
+ // Uppercase coordinate
+ $range = strtoupper($dataValidation["sqref"]);
+
+ // Extract all cell references in $range
+ $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($range);
+ foreach ($aReferences as $reference) {
+ // Create validation
+ $docValidation = $docSheet->getCell($reference)->getDataValidation();
+ $docValidation->setType((string) $dataValidation["type"]);
+ $docValidation->setErrorStyle((string) $dataValidation["errorStyle"]);
+ $docValidation->setOperator((string) $dataValidation["operator"]);
+ $docValidation->setAllowBlank($dataValidation["allowBlank"] != 0);
+ $docValidation->setShowDropDown($dataValidation["showDropDown"] == 0);
+ $docValidation->setShowInputMessage($dataValidation["showInputMessage"] != 0);
+ $docValidation->setShowErrorMessage($dataValidation["showErrorMessage"] != 0);
+ $docValidation->setErrorTitle((string) $dataValidation["errorTitle"]);
+ $docValidation->setError((string) $dataValidation["error"]);
+ $docValidation->setPromptTitle((string) $dataValidation["promptTitle"]);
+ $docValidation->setPrompt((string) $dataValidation["prompt"]);
+ $docValidation->setFormula1((string) $dataValidation->formula1);
+ $docValidation->setFormula2((string) $dataValidation->formula2);
+ }
+ }
+ }
+
+ // Add hyperlinks
+ $hyperlinks = array();
+ if (!$this->_readDataOnly) {
+ // Locate hyperlink relations
+ if ($zip->locateName(dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")) {
+ $relsWorksheet = simplexml_load_string($zip->getFromName( dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels") ); //~ http://schemas.openxmlformats.org/package/2006/relationships");
+ foreach ($relsWorksheet->Relationship as $ele) {
+ if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink") {
+ $hyperlinks[(string)$ele["Id"]] = (string)$ele["Target"];
+ }
+ }
+ }
+
+ // Loop trough hyperlinks
+ if ($xmlSheet && $xmlSheet->hyperlinks) {
+ foreach ($xmlSheet->hyperlinks->hyperlink as $hyperlink) {
+ // Link url
+ $linkRel = $hyperlink->attributes('http://schemas.openxmlformats.org/officeDocument/2006/relationships');
+
+ foreach (PHPExcel_Cell::extractAllCellReferencesInRange($hyperlink['ref']) as $cellReference) {
+ if (isset($linkRel['id'])) {
+ $docSheet->getCell( $cellReference )->getHyperlink()->setUrl( $hyperlinks[ (string)$linkRel['id'] ] );
+ }
+ if (isset($hyperlink['location'])) {
+ $docSheet->getCell( $cellReference )->getHyperlink()->setUrl( 'sheet://' . (string)$hyperlink['location'] );
+ }
+
+ // Tooltip
+ if (isset($hyperlink['tooltip'])) {
+ $docSheet->getCell( $cellReference )->getHyperlink()->setTooltip( (string)$hyperlink['tooltip'] );
+ }
+ }
+ }
+ }
+ }
+
+ // Add comments
+ $comments = array();
+ $vmlComments = array();
+ if (!$this->_readDataOnly) {
+ // Locate comment relations
+ if ($zip->locateName(dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")) {
+ $relsWorksheet = simplexml_load_string($zip->getFromName( dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels") ); //~ http://schemas.openxmlformats.org/package/2006/relationships");
+ foreach ($relsWorksheet->Relationship as $ele) {
+ if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments") {
+ $comments[(string)$ele["Id"]] = (string)$ele["Target"];
+ }
+ if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing") {
+ $vmlComments[(string)$ele["Id"]] = (string)$ele["Target"];
+ }
+ }
+ }
+
+ // Loop trough comments
+ foreach ($comments as $relName => $relPath) {
+ // Load comments file
+ $relPath = PHPExcel_Shared_File::realpath(dirname("$dir/$fileWorksheet") . "/" . $relPath);
+ $commentsFile = simplexml_load_string($zip->getFromName($relPath) );
+
+ // Utility variables
+ $authors = array();
+
+ // Loop trough authors
+ foreach ($commentsFile->authors->author as $author) {
+ $authors[] = (string)$author;
+ }
+
+ // Loop trough contents
+ foreach ($commentsFile->commentList->comment as $comment) {
+ $docSheet->getComment( (string)$comment['ref'] )->setAuthor( $authors[(string)$comment['authorId']] );
+ $docSheet->getComment( (string)$comment['ref'] )->setText( $this->_parseRichText($comment->text) );
+ }
+ }
+
+ // Loop trough VML comments
+ foreach ($vmlComments as $relName => $relPath) {
+ // Load VML comments file
+ $relPath = PHPExcel_Shared_File::realpath(dirname("$dir/$fileWorksheet") . "/" . $relPath);
+ $vmlCommentsFile = simplexml_load_string( $zip->getFromName($relPath) );
+ $vmlCommentsFile->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml');
+
+ $shapes = $vmlCommentsFile->xpath('//v:shape');
+ foreach ($shapes as $shape) {
+ $shape->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml');
+
+ if (isset($shape['style'])) {
+ $style = (string)$shape['style'];
+ $fillColor = strtoupper( substr( (string)$shape['fillcolor'], 1 ) );
+ $column = null;
+ $row = null;
+
+ $clientData = $shape->xpath('.//x:ClientData');
+ if (is_array($clientData)) {
+ $clientData = $clientData[0];
+
+ if ( isset($clientData['ObjectType']) && (string)$clientData['ObjectType'] == 'Note' ) {
+ $temp = $clientData->xpath('.//x:Row');
+ if (is_array($temp)) $row = $temp[0];
+
+ $temp = $clientData->xpath('.//x:Column');
+ if (is_array($temp)) $column = $temp[0];
+ }
+ }
+
+ if (!is_null($column) && !is_null($row)) {
+ // Set comment properties
+ $comment = $docSheet->getCommentByColumnAndRow($column, $row + 1);
+ $comment->getFillColor()->setRGB( $fillColor );
+
+ // Parse style
+ $styleArray = explode(';', str_replace(' ', '', $style));
+ foreach ($styleArray as $stylePair) {
+ $stylePair = explode(':', $stylePair);
+
+ if ($stylePair[0] == 'margin-left') $comment->setMarginLeft($stylePair[1]);
+ if ($stylePair[0] == 'margin-top') $comment->setMarginTop($stylePair[1]);
+ if ($stylePair[0] == 'width') $comment->setWidth($stylePair[1]);
+ if ($stylePair[0] == 'height') $comment->setHeight($stylePair[1]);
+ if ($stylePair[0] == 'visibility') $comment->setVisible( $stylePair[1] == 'visible' );
+
+ }
+ }
+ }
+ }
+ }
+
+ // Header/footer images
+ if ($xmlSheet && $xmlSheet->legacyDrawingHF && !$this->_readDataOnly) {
+ if ($zip->locateName(dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")) {
+ $relsWorksheet = simplexml_load_string($zip->getFromName( dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels") ); //~ http://schemas.openxmlformats.org/package/2006/relationships");
+ $vmlRelationship = '';
+
+ foreach ($relsWorksheet->Relationship as $ele) {
+ if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing") {
+ $vmlRelationship = self::dir_add("$dir/$fileWorksheet", $ele["Target"]);
+ }
+ }
+
+ if ($vmlRelationship != '') {
+ // Fetch linked images
+ $relsVML = simplexml_load_string($zip->getFromName( dirname($vmlRelationship) . '/_rels/' . basename($vmlRelationship) . '.rels' )); //~ http://schemas.openxmlformats.org/package/2006/relationships");
+ $drawings = array();
+ foreach ($relsVML->Relationship as $ele) {
+ if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image") {
+ $drawings[(string) $ele["Id"]] = self::dir_add($vmlRelationship, $ele["Target"]);
+ }
+ }
+
+ // Fetch VML document
+ $vmlDrawing = simplexml_load_string($zip->getFromName($vmlRelationship));
+ $vmlDrawing->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml');
+
+ $hfImages = array();
+
+ $shapes = $vmlDrawing->xpath('//v:shape');
+ foreach ($shapes as $shape) {
+ $shape->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml');
+ $imageData = $shape->xpath('//v:imagedata');
+ $imageData = $imageData[0];
+
+ $imageData = $imageData->attributes('urn:schemas-microsoft-com:office:office');
+ $style = self::toCSSArray( (string)$shape['style'] );
+
+ $hfImages[ (string)$shape['id'] ] = new PHPExcel_Worksheet_HeaderFooterDrawing();
+ if (isset($imageData['title'])) {
+ $hfImages[ (string)$shape['id'] ]->setName( (string)$imageData['title'] );
+ }
+
+ $hfImages[ (string)$shape['id'] ]->setPath("zip://$pFilename#" . $drawings[(string)$imageData['relid']], false);
+ $hfImages[ (string)$shape['id'] ]->setResizeProportional(false);
+ $hfImages[ (string)$shape['id'] ]->setWidth($style['width']);
+ $hfImages[ (string)$shape['id'] ]->setHeight($style['height']);
+ $hfImages[ (string)$shape['id'] ]->setOffsetX($style['margin-left']);
+ $hfImages[ (string)$shape['id'] ]->setOffsetY($style['margin-top']);
+ $hfImages[ (string)$shape['id'] ]->setResizeProportional(true);
+ }
+
+ $docSheet->getHeaderFooter()->setImages($hfImages);
+ }
+ }
+ }
+
+ }
+
+// TODO: Make sure drawings and graph are loaded differently!
+ if ($zip->locateName(dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")) {
+ $relsWorksheet = simplexml_load_string($zip->getFromName( dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels") ); //~ http://schemas.openxmlformats.org/package/2006/relationships");
+ $drawings = array();
+ foreach ($relsWorksheet->Relationship as $ele) {
+ if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing") {
+ $drawings[(string) $ele["Id"]] = self::dir_add("$dir/$fileWorksheet", $ele["Target"]);
+ }
+ }
+ if ($xmlSheet->drawing && !$this->_readDataOnly) {
+ foreach ($xmlSheet->drawing as $drawing) {
+ $fileDrawing = $drawings[(string) self::array_item($drawing->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"), "id")];
+ $relsDrawing = simplexml_load_string($zip->getFromName( dirname($fileDrawing) . "/_rels/" . basename($fileDrawing) . ".rels") ); //~ http://schemas.openxmlformats.org/package/2006/relationships");
+ $images = array();
+
+ if ($relsDrawing && $relsDrawing->Relationship) {
+ foreach ($relsDrawing->Relationship as $ele) {
+ if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image") {
+ $images[(string) $ele["Id"]] = self::dir_add($fileDrawing, $ele["Target"]);
+ }
+ }
+ }
+ $xmlDrawing = simplexml_load_string($zip->getFromName($fileDrawing))->children("http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing");
+
+ if ($xmlDrawing->oneCellAnchor) {
+ foreach ($xmlDrawing->oneCellAnchor as $oneCellAnchor) {
+ if ($oneCellAnchor->pic->blipFill) {
+ $blip = $oneCellAnchor->pic->blipFill->children("http://schemas.openxmlformats.org/drawingml/2006/main")->blip;
+ $xfrm = $oneCellAnchor->pic->spPr->children("http://schemas.openxmlformats.org/drawingml/2006/main")->xfrm;
+ $outerShdw = $oneCellAnchor->pic->spPr->children("http://schemas.openxmlformats.org/drawingml/2006/main")->effectLst->outerShdw;
+ $objDrawing = new PHPExcel_Worksheet_Drawing;
+ $objDrawing->setName((string) self::array_item($oneCellAnchor->pic->nvPicPr->cNvPr->attributes(), "name"));
+ $objDrawing->setDescription((string) self::array_item($oneCellAnchor->pic->nvPicPr->cNvPr->attributes(), "descr"));
+ $objDrawing->setPath("zip://$pFilename#" . $images[(string) self::array_item($blip->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"), "embed")], false);
+ $objDrawing->setCoordinates(PHPExcel_Cell::stringFromColumnIndex($oneCellAnchor->from->col) . ($oneCellAnchor->from->row + 1));
+ $objDrawing->setOffsetX(PHPExcel_Shared_Drawing::EMUToPixels($oneCellAnchor->from->colOff));
+ $objDrawing->setOffsetY(PHPExcel_Shared_Drawing::EMUToPixels($oneCellAnchor->from->rowOff));
+ $objDrawing->setResizeProportional(false);
+ $objDrawing->setWidth(PHPExcel_Shared_Drawing::EMUToPixels(self::array_item($oneCellAnchor->ext->attributes(), "cx")));
+ $objDrawing->setHeight(PHPExcel_Shared_Drawing::EMUToPixels(self::array_item($oneCellAnchor->ext->attributes(), "cy")));
+ if ($xfrm) {
+ $objDrawing->setRotation(PHPExcel_Shared_Drawing::angleToDegrees(self::array_item($xfrm->attributes(), "rot")));
+ }
+ if ($outerShdw) {
+ $shadow = $objDrawing->getShadow();
+ $shadow->setVisible(true);
+ $shadow->setBlurRadius(PHPExcel_Shared_Drawing::EMUTopixels(self::array_item($outerShdw->attributes(), "blurRad")));
+ $shadow->setDistance(PHPExcel_Shared_Drawing::EMUTopixels(self::array_item($outerShdw->attributes(), "dist")));
+ $shadow->setDirection(PHPExcel_Shared_Drawing::angleToDegrees(self::array_item($outerShdw->attributes(), "dir")));
+ $shadow->setAlignment((string) self::array_item($outerShdw->attributes(), "algn"));
+ $shadow->getColor()->setRGB(self::array_item($outerShdw->srgbClr->attributes(), "val"));
+ $shadow->setAlpha(self::array_item($outerShdw->srgbClr->alpha->attributes(), "val") / 1000);
+ }
+ $objDrawing->setWorksheet($docSheet);
+ }
+ }
+ }
+ if ($xmlDrawing->twoCellAnchor) {
+ foreach ($xmlDrawing->twoCellAnchor as $twoCellAnchor) {
+ if ($twoCellAnchor->pic->blipFill) {
+ $blip = $twoCellAnchor->pic->blipFill->children("http://schemas.openxmlformats.org/drawingml/2006/main")->blip;
+ $xfrm = $twoCellAnchor->pic->spPr->children("http://schemas.openxmlformats.org/drawingml/2006/main")->xfrm;
+ $outerShdw = $twoCellAnchor->pic->spPr->children("http://schemas.openxmlformats.org/drawingml/2006/main")->effectLst->outerShdw;
+ $objDrawing = new PHPExcel_Worksheet_Drawing;
+ $objDrawing->setName((string) self::array_item($twoCellAnchor->pic->nvPicPr->cNvPr->attributes(), "name"));
+ $objDrawing->setDescription((string) self::array_item($twoCellAnchor->pic->nvPicPr->cNvPr->attributes(), "descr"));
+ $objDrawing->setPath("zip://$pFilename#" . $images[(string) self::array_item($blip->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"), "embed")], false);
+ $objDrawing->setCoordinates(PHPExcel_Cell::stringFromColumnIndex($twoCellAnchor->from->col) . ($twoCellAnchor->from->row + 1));
+ $objDrawing->setOffsetX(PHPExcel_Shared_Drawing::EMUToPixels($twoCellAnchor->from->colOff));
+ $objDrawing->setOffsetY(PHPExcel_Shared_Drawing::EMUToPixels($twoCellAnchor->from->rowOff));
+ $objDrawing->setResizeProportional(false);
+
+ $objDrawing->setWidth(PHPExcel_Shared_Drawing::EMUToPixels(self::array_item($xfrm->ext->attributes(), "cx")));
+ $objDrawing->setHeight(PHPExcel_Shared_Drawing::EMUToPixels(self::array_item($xfrm->ext->attributes(), "cy")));
+
+ if ($xfrm) {
+ $objDrawing->setRotation(PHPExcel_Shared_Drawing::angleToDegrees(self::array_item($xfrm->attributes(), "rot")));
+ }
+ if ($outerShdw) {
+ $shadow = $objDrawing->getShadow();
+ $shadow->setVisible(true);
+ $shadow->setBlurRadius(PHPExcel_Shared_Drawing::EMUTopixels(self::array_item($outerShdw->attributes(), "blurRad")));
+ $shadow->setDistance(PHPExcel_Shared_Drawing::EMUTopixels(self::array_item($outerShdw->attributes(), "dist")));
+ $shadow->setDirection(PHPExcel_Shared_Drawing::angleToDegrees(self::array_item($outerShdw->attributes(), "dir")));
+ $shadow->setAlignment((string) self::array_item($outerShdw->attributes(), "algn"));
+ $shadow->getColor()->setRGB(self::array_item($outerShdw->srgbClr->attributes(), "val"));
+ $shadow->setAlpha(self::array_item($outerShdw->srgbClr->alpha->attributes(), "val") / 1000);
+ }
+ $objDrawing->setWorksheet($docSheet);
+ }
+ }
+ }
+
+ }
+ }
+ }
+
+ // Loop trough definedNames
+ if ($xmlWorkbook->definedNames) {
+ foreach ($xmlWorkbook->definedNames->definedName as $definedName) {
+ // Extract range
+ $extractedRange = (string)$definedName;
+ $extractedRange = preg_replace('/\'(\w+)\'\!/', '', $extractedRange);
+ $extractedRange = str_replace('$', '', $extractedRange);
+
+ // Valid range?
+ if (stripos((string)$definedName, '#REF!') !== false || $extractedRange == '') {
+ continue;
+ }
+
+ // Some definedNames are only applicable if we are on the same sheet...
+ if ((string)$definedName['localSheetId'] != '' && (string)$definedName['localSheetId'] == $sheetId) {
+ // Switch on type
+ switch ((string)$definedName['name']) {
+
+ case '_xlnm._FilterDatabase':
+ $docSheet->setAutoFilter($extractedRange);
+ break;
+
+ case '_xlnm.Print_Titles':
+ // Split $extractedRange
+ $extractedRange = explode(',', $extractedRange);
+
+ // Set print titles
+ if (isset($extractedRange[0])) {
+ $range = explode(':', $extractedRange[0]);
+
+ if (PHPExcel_Worksheet::extractSheetTitle($range[0]) != '')
+ $range[0] = PHPExcel_Worksheet::extractSheetTitle($range[0]);
+ $range[0] = str_replace('$', '', $range[0]);
+ if (PHPExcel_Worksheet::extractSheetTitle($range[1]) != '')
+ $range[1] = PHPExcel_Worksheet::extractSheetTitle($range[1]);
+ $range[1] = str_replace('$', '', $range[1]);
+
+ $docSheet->getPageSetup()->setColumnsToRepeatAtLeft( $range );
+ }
+ if (isset($extractedRange[1])) {
+ $range = explode(':', $extractedRange[1]);
+
+ if (PHPExcel_Worksheet::extractSheetTitle($range[0]) != '')
+ $range[0] = PHPExcel_Worksheet::extractSheetTitle($range[0]);
+ $range[0] = str_replace('$', '', $range[0]);
+ if (PHPExcel_Worksheet::extractSheetTitle($range[1]) != '')
+ $range[1] = PHPExcel_Worksheet::extractSheetTitle($range[1]);
+ $range[1] = str_replace('$', '', $range[1]);
+
+ $docSheet->getPageSetup()->setRowsToRepeatAtTop( $range );
+ }
+
+ break;
+
+ case '_xlnm.Print_Area':
+ $range = explode('!', $extractedRange);
+ $extractedRange = isset($range[1]) ? $range[1] : $range[0];
+
+ $docSheet->getPageSetup()->setPrintArea($extractedRange);
+ break;
+
+ default:
+ $range = explode('!', $extractedRange);
+ $extractedRange = isset($range[1]) ? $range[1] : $range[0];
+
+ $excel->addNamedRange( new PHPExcel_NamedRange((string)$definedName['name'], $docSheet, $extractedRange, true) );
+ break;
+ }
+ } else {
+ // "Global" definedNames
+ $locatedSheet = null;
+ $extractedSheetName = '';
+ if (strpos( (string)$definedName, '!' ) !== false) {
+ // Extract sheet name
+ $extractedSheetName = PHPExcel_Worksheet::extractSheetTitle( (string)$definedName, true );
+ $extractedSheetName = $extractedSheetName[0];
+
+ // Locate sheet
+ $locatedSheet = $excel->getSheetByName($extractedSheetName);
+
+ // Modify range
+ $range = explode('!', $extractedRange);
+ $extractedRange = isset($range[1]) ? $range[1] : $range[0];
+ }
+
+ if (!is_null($locatedSheet)) {
+ $excel->addNamedRange( new PHPExcel_NamedRange((string)$definedName['name'], $locatedSheet, $extractedRange, false) );
+ }
+ }
+ }
+ }
+
+ // Next sheet id
+ ++$sheetId;
+ }
+
+ if (!$this->_readDataOnly) {
+ // active sheet index
+ $activeTab = intval($xmlWorkbook->bookViews->workbookView["activeTab"]); // refers to old sheet index
+
+ // keep active sheet index if sheet is still loaded, else first sheet is set as the active
+ if ($mapSheetId[$activeTab] !== null) {
+ $excel->setActiveSheetIndex($mapSheetId[$activeTab]);
+ } else {
+ $excel->setActiveSheetIndex(0);
+ }
+ }
+ break;
+ }
+
+ }
+
+ return $excel;
+ }
+
+ private function _readColor($color) {
+ if (isset($color["rgb"])) {
+ return (string)$color["rgb"];
+ } else if (isset($color["indexed"])) {
+ return PHPExcel_Style_Color::indexedColor($color["indexed"])->getARGB();
+ }
+ }
+
+ private function _readStyle($docStyle, $style) {
+ // format code
+ if ($style->applyNumberFormat) $docStyle->getNumberFormat()->setFormatCode($style->numFmt);
+
+ // font
+ if (isset($style->font)) {
+ $docStyle->getFont()->setName((string) $style->font->name["val"]);
+ $docStyle->getFont()->setSize((string) $style->font->sz["val"]);
+ if (isset($style->font->b)) {
+ $docStyle->getFont()->setBold(!isset($style->font->b["val"]) || $style->font->b["val"] == 'true');
+ }
+ if (isset($style->font->i)) {
+ $docStyle->getFont()->setItalic(!isset($style->font->i["val"]) || $style->font->i["val"] == 'true');
+ }
+ if (isset($style->font->strike)) {
+ $docStyle->getFont()->setStrikethrough(!isset($style->font->strike["val"]) || $style->font->strike["val"] == 'true');
+ }
+ $docStyle->getFont()->getColor()->setARGB($this->_readColor($style->font->color));
+
+ if (isset($style->font->u) && !isset($style->font->u["val"])) {
+ $docStyle->getFont()->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLE);
+ } else if (isset($style->font->u) && isset($style->font->u["val"])) {
+ $docStyle->getFont()->setUnderline((string)$style->font->u["val"]);
+ }
+
+ if (isset($style->font->vertAlign) && isset($style->font->vertAlign["val"])) {
+ $vertAlign = strtolower((string)$style->font->vertAlign["val"]);
+ if ($vertAlign == 'superscript') {
+ $docStyle->getFont()->setSuperScript(true);
+ }
+ if ($vertAlign == 'subscript') {
+ $docStyle->getFont()->setSubScript(true);
+ }
+ }
+ }
+
+ // fill
+ if (isset($style->fill) && ($style->applyFill || $style instanceof SimpleXMLElement)) {
+ if ($style->fill->gradientFill) {
+ $gradientFill = $style->fill->gradientFill[0];
+ $docStyle->getFill()->setFillType((string) $gradientFill["type"]);
+ $docStyle->getFill()->setRotation(floatval($gradientFill["degree"]));
+ $gradientFill->registerXPathNamespace("sml", "http://schemas.openxmlformats.org/spreadsheetml/2006/main");
+ $docStyle->getFill()->getStartColor()->setARGB($this->_readColor( self::array_item($gradientFill->xpath("sml:stop[@position=0]"))->color) );
+ $docStyle->getFill()->getEndColor()->setARGB($this->_readColor( self::array_item($gradientFill->xpath("sml:stop[@position=1]"))->color) );
+ } elseif ($style->fill->patternFill) {
+ $patternType = (string)$style->fill->patternFill["patternType"] != '' ? (string)$style->fill->patternFill["patternType"] : 'solid';
+ $docStyle->getFill()->setFillType($patternType);
+ if ($style->fill->patternFill->fgColor) {
+ $docStyle->getFill()->getStartColor()->setARGB($this->_readColor($style->fill->patternFill->fgColor));
+ } else {
+ $docStyle->getFill()->getStartColor()->setARGB('FF000000');
+ }
+ if ($style->fill->patternFill->bgColor) {
+ $docStyle->getFill()->getEndColor()->setARGB($this->_readColor($style->fill->patternFill->bgColor));
+ }
+ }
+ }
+
+ // border
+ if (isset($style->border) && ($style->applyBorder || $style instanceof SimpleXMLElement)) {
+ if ($style->border["diagonalUp"] == 'true') {
+ $docStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_UP);
+ } elseif ($style->border["diagonalDown"] == 'true') {
+ $docStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_DOWN);
+ }
+ $this->_readBorder($docStyle->getBorders()->getLeft(), $style->border->left);
+ $this->_readBorder($docStyle->getBorders()->getRight(), $style->border->right);
+ $this->_readBorder($docStyle->getBorders()->getTop(), $style->border->top);
+ $this->_readBorder($docStyle->getBorders()->getBottom(), $style->border->bottom);
+ $this->_readBorder($docStyle->getBorders()->getDiagonal(), $style->border->diagonal);
+ }
+
+ // alignment
+ if (isset($style->alignment) && ($style->applyAlignment || $style instanceof SimpleXMLElement)) {
+ $docStyle->getAlignment()->setHorizontal((string) $style->alignment["horizontal"]);
+ $docStyle->getAlignment()->setVertical((string) $style->alignment["vertical"]);
+
+ $textRotation = 0;
+ if ((int)$style->alignment["textRotation"] <= 90) {
+ $textRotation = (int)$style->alignment["textRotation"];
+ } else if ((int)$style->alignment["textRotation"] > 90) {
+ $textRotation = 90 - (int)$style->alignment["textRotation"];
+ }
+
+ $docStyle->getAlignment()->setTextRotation(intval($textRotation));
+ $docStyle->getAlignment()->setWrapText( (string)$style->alignment["wrapText"] == "true" || (string)$style->alignment["wrapText"] == "1" );
+ $docStyle->getAlignment()->setShrinkToFit( (string)$style->alignment["shrinkToFit"] == "true" || (string)$style->alignment["shrinkToFit"] == "1" );
+ $docStyle->getAlignment()->setIndent( intval((string)$style->alignment["indent"]) > 0 ? intval((string)$style->alignment["indent"]) : 0 );
+ }
+
+ // protection
+ if (isset($style->protection) && $style->applyProtection) {
+ if (isset($style->protection['locked'])) {
+ if ((string)$style->protection['locked'] == 'true') {
+ $docStyle->getProtection()->setLocked(PHPExcel_Style_Protection::PROTECTION_PROTECTED);
+ } else {
+ $docStyle->getProtection()->setLocked(PHPExcel_Style_Protection::PROTECTION_UNPROTECTED);
+ }
+ }
+
+ if (isset($style->protection['hidden'])) {
+ if ((string)$style->protection['hidden'] == 'true') {
+ $docStyle->getProtection()->setHidden(PHPExcel_Style_Protection::PROTECTION_PROTECTED);
+ } else {
+ $docStyle->getProtection()->setHidden(PHPExcel_Style_Protection::PROTECTION_UNPROTECTED);
+ }
+ }
+ }
+ }
+
+ private function _readBorder($docBorder, $eleBorder) {
+ if (isset($eleBorder["style"])) {
+ $docBorder->setBorderStyle((string) $eleBorder["style"]);
+ }
+ if (isset($eleBorder->color)) {
+ $docBorder->getColor()->setARGB($this->_readColor($eleBorder->color));
+ }
+ }
+
+ private function _parseRichText($is = null) {
+ $value = new PHPExcel_RichText();
+
+ if (isset($is->t)) {
+ $value->createText( PHPExcel_Shared_String::ControlCharacterOOXML2PHP( (string) $is->t ) );
+ } else {
+ foreach ($is->r as $run) {
+ $objText = $value->createTextRun( PHPExcel_Shared_String::ControlCharacterOOXML2PHP( (string) $run->t ) );
+
+ if (isset($run->rPr)) {
+ if (isset($run->rPr->rFont["val"])) {
+ $objText->getFont()->setName((string) $run->rPr->rFont["val"]);
+ }
+
+ if (isset($run->rPr->sz["val"])) {
+ $objText->getFont()->setSize((string) $run->rPr->sz["val"]);
+ }
+
+ if (isset($run->rPr->color)) {
+ $objText->getFont()->setColor( new PHPExcel_Style_Color( $this->_readColor($run->rPr->color) ) );
+ }
+
+ if ( (isset($run->rPr->b["val"]) && ((string) $run->rPr->b["val"] == 'true' || (string) $run->rPr->b["val"] == '1'))
+ || (isset($run->rPr->b) && !isset($run->rPr->b["val"])) ) {
+ $objText->getFont()->setBold(true);
+ }
+
+ if ( (isset($run->rPr->i["val"]) && ((string) $run->rPr->i["val"] == 'true' || (string) $run->rPr->i["val"] == '1'))
+ || (isset($run->rPr->i) && !isset($run->rPr->i["val"])) ) {
+ $objText->getFont()->setItalic(true);
+ }
+
+ if (isset($run->rPr->vertAlign) && isset($run->rPr->vertAlign["val"])) {
+ $vertAlign = strtolower((string)$run->rPr->vertAlign["val"]);
+ if ($vertAlign == 'superscript') {
+ $objText->getFont()->setSuperScript(true);
+ }
+ if ($vertAlign == 'subscript') {
+ $objText->getFont()->setSubScript(true);
+ }
+ }
+
+ if (isset($run->rPr->u) && !isset($run->rPr->u["val"])) {
+ $objText->getFont()->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLE);
+ } else if (isset($run->rPr->u) && isset($run->rPr->u["val"])) {
+ $objText->getFont()->setUnderline((string)$run->rPr->u["val"]);
+ }
+
+ if ( (isset($run->rPr->strike["val"]) && ((string) $run->rPr->strike["val"] == 'true' || (string) $run->rPr->strike["val"] == '1'))
+ || (isset($run->rPr->strike) && !isset($run->rPr->strike["val"])) ) {
+ $objText->getFont()->setStrikethrough(true);
+ }
+ }
+ }
+ }
+
+ return $value;
+ }
+
+ private static function array_item($array, $key = 0) {
+ return (isset($array[$key]) ? $array[$key] : null);
+ }
+
+ private static function dir_add($base, $add) {
+ return preg_replace('~[^/]+/\.\./~', '', dirname($base) . "/$add");
+ }
+
+ private static function toCSSArray($style) {
+ $style = str_replace("\r", "", $style);
+ $style = str_replace("\n", "", $style);
+
+ $temp = explode(';', $style);
+
+ $style = array();
+ foreach ($temp as $item) {
+ $item = explode(':', $item);
+
+ if (strpos($item[1], 'px') !== false) {
+ $item[1] = str_replace('px', '', $item[1]);
+ }
+ if (strpos($item[1], 'pt') !== false) {
+ $item[1] = str_replace('pt', '', $item[1]);
+ $item[1] = PHPExcel_Shared_Font::fontSizeToPixels($item[1]);
+ }
+ if (strpos($item[1], 'in') !== false) {
+ $item[1] = str_replace('in', '', $item[1]);
+ $item[1] = PHPExcel_Shared_Font::inchSizeToPixels($item[1]);
+ }
+ if (strpos($item[1], 'cm') !== false) {
+ $item[1] = str_replace('cm', '', $item[1]);
+ $item[1] = PHPExcel_Shared_Font::centimeterSizeToPixels($item[1]);
+ }
+
+ $style[$item[0]] = $item[1];
+ }
+
+ return $style;
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Reader/Excel5.php b/libraries/PHPExcel/PHPExcel/Reader/Excel5.php
new file mode 100644
index 000000000..0dcaa2941
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Reader/Excel5.php
@@ -0,0 +1,5246 @@
+_data
+ *
+ * @var int
+ */
+ private $_dataSize;
+
+ /**
+ * Current position in stream
+ *
+ * @var integer
+ */
+ private $_pos;
+
+ /**
+ * Workbook to be returned by the reader.
+ *
+ * @var PHPExcel
+ */
+ private $_phpExcel;
+
+ /**
+ * Worksheet that is currently being built by the reader.
+ *
+ * @var PHPExcel_Worksheet
+ */
+ private $_phpSheet;
+
+ /**
+ * BIFF version
+ *
+ * @var int
+ */
+ private $_version;
+
+ /**
+ * Codepage set in the Excel file being read. Only important for BIFF5 (Excel 5.0 - Excel 95)
+ * For BIFF8 (Excel 97 - Excel 2003) this will always have the value 'UTF-16LE'
+ *
+ * @var string
+ */
+ private $_codepage;
+
+ /**
+ * Shared formats
+ *
+ * @var array
+ */
+ private $_formats;
+
+ /**
+ * Shared fonts
+ *
+ * @var array
+ */
+ private $_objFonts;
+
+ /**
+ * Color palette
+ *
+ * @var array
+ */
+ private $_palette;
+
+ /**
+ * Worksheets
+ *
+ * @var array
+ */
+ private $_sheets;
+
+ /**
+ * External books
+ *
+ * @var array
+ */
+ private $_externalBooks;
+
+ /**
+ * REF structures. Only applies to BIFF8.
+ *
+ * @var array
+ */
+ private $_ref;
+
+ /**
+ * Defined names
+ *
+ * @var array
+ */
+ private $_definedname;
+
+ /**
+ * Shared strings. Only applies to BIFF8.
+ *
+ * @var array
+ */
+ private $_sst;
+
+ /**
+ * Panes are frozen? (in sheet currently being read). See WINDOW2 record.
+ *
+ * @var boolean
+ */
+ private $_frozen;
+
+ /**
+ * Fit printout to number of pages? (in sheet currently being read). See SHEETPR record.
+ *
+ * @var boolean
+ */
+ private $_isFitToPages;
+
+ /**
+ * Objects. One OBJ record contributes with one entry.
+ *
+ * @var array
+ */
+ private $_objs;
+
+ /**
+ * The combined MSODRAWINGGROUP data
+ *
+ * @var string
+ */
+ private $_drawingGroupData;
+
+ /**
+ * The combined MSODRAWING data (per sheet)
+ *
+ * @var string
+ */
+ private $_drawingData;
+
+ /**
+ * Keep track of XF index
+ *
+ * @var int
+ */
+ private $_xfIndex;
+
+ /**
+ * Mapping of XF index (that is a cell XF) to final index in cellXf collection
+ *
+ * @var array
+ */
+ private $_mapCellXfIndex;
+
+ /**
+ * Mapping of XF index (that is a style XF) to final index in cellStyleXf collection
+ *
+ * @var array
+ */
+ private $_mapCellStyleXfIndex;
+
+ /**
+ * The shared formulas in a sheet. One SHAREDFMLA record contributes with one value.
+ *
+ * @var array
+ */
+ private $_sharedFormulas;
+
+ /**
+ * The shared formula parts in a sheet. One FORMULA record contributes with one value if it
+ * refers to a shared formula.
+ *
+ * @var array
+ */
+ private $_sharedFormulaParts;
+
+ /**
+ * Read data only?
+ *
+ * @return boolean
+ */
+ public function getReadDataOnly()
+ {
+ return $this->_readDataOnly;
+ }
+
+ /**
+ * Set read data only
+ *
+ * @param boolean $pValue
+ * @return PHPExcel_Reader_Excel5
+ */
+ public function setReadDataOnly($pValue = false)
+ {
+ $this->_readDataOnly = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get which sheets to load
+ *
+ * @return mixed
+ */
+ public function getLoadSheetsOnly()
+ {
+ return $this->_loadSheetsOnly;
+ }
+
+ /**
+ * Set which sheets to load
+ *
+ * @param mixed $value
+ * @return PHPExcel_Reader_Excel5
+ */
+ public function setLoadSheetsOnly($value = null)
+ {
+ $this->_loadSheetsOnly = is_array($value) ?
+ $value : array($value);
+ return $this;
+ }
+
+ /**
+ * Set all sheets to load
+ *
+ * @return PHPExcel_Reader_Excel5
+ */
+ public function setLoadAllSheets()
+ {
+ $this->_loadSheetsOnly = null;
+ return $this;
+ }
+
+ /**
+ * Read filter
+ *
+ * @return PHPExcel_Reader_IReadFilter
+ */
+ public function getReadFilter() {
+ return $this->_readFilter;
+ }
+
+ /**
+ * Set read filter
+ *
+ * @param PHPExcel_Reader_IReadFilter $pValue
+ * @return PHPExcel_Reader_Excel5
+ */
+ public function setReadFilter(PHPExcel_Reader_IReadFilter $pValue) {
+ $this->_readFilter = $pValue;
+ return $this;
+ }
+
+ /**
+ * Create a new PHPExcel_Reader_Excel5 instance
+ */
+ public function __construct() {
+ $this->_readFilter = new PHPExcel_Reader_DefaultReadFilter();
+ }
+
+ /**
+ * Can the current PHPExcel_Reader_IReader read the file?
+ *
+ * @param string $pFileName
+ * @return boolean
+ */
+ public function canRead($pFilename)
+ {
+ // Check if file exists
+ if (!file_exists($pFilename)) {
+ throw new Exception("Could not open " . $pFilename . " for reading! File does not exist.");
+ }
+
+ try {
+ // Use ParseXL for the hard work.
+ $this->_ole = new PHPExcel_Shared_OLERead();
+
+ // get excel data
+ $res = $this->_ole->read($pFilename);
+ return true;
+
+ } catch (Exception $e) {
+ return false;
+ }
+ }
+
+ /**
+ * Loads PHPExcel from file
+ *
+ * @param string $pFilename
+ * @throws Exception
+ */
+ public function load($pFilename)
+ {
+ // Initialisations
+ $this->_phpExcel = new PHPExcel;
+ $this->_phpExcel->removeSheetByIndex(0); // remove 1st sheet
+ if (!$this->_readDataOnly) {
+ $this->_phpExcel->removeCellStyleXfByIndex(0); // remove the default style
+ $this->_phpExcel->removeCellXfByIndex(0); // remove the default style
+ }
+
+ // Use ParseXL for the hard work.
+ $this->_ole = new PHPExcel_Shared_OLERead();
+
+ // get excel data
+ $res = $this->_ole->read($pFilename);
+ $this->_data = $this->_ole->getWorkBook();
+
+ // total byte size of Excel data (workbook global substream + sheet substreams)
+ $this->_dataSize = strlen($this->_data);
+
+ // initialize
+ $this->_pos = 0;
+ $this->_codepage = 'CP1252';
+ $this->_formats = array();
+ $this->_objFonts = array();
+ $this->_palette = array();
+ $this->_sheets = array();
+ $this->_externalBooks = array();
+ $this->_ref = array();
+ $this->_definedname = array();
+ $this->_sst = array();
+ $this->_drawingGroupData = '';
+ $this->_xfIndex = '';
+ $this->_mapCellXfIndex = array();
+ $this->_mapCellStyleXfIndex = array();
+
+ // Parse Workbook Global Substream
+ while ($this->_pos < $this->_dataSize) {
+ $code = $this->_GetInt2d($this->_data, $this->_pos);
+
+ switch ($code) {
+ case self::XLS_Type_BOF:
+ $pos = $this->_pos;
+ $length = $this->_GetInt2d($this->_data, $pos + 2);
+ $recordData = substr($this->_data, $pos + 4, $length);
+
+ // offset: 0; size: 2; BIFF version
+ $this->_version = $this->_GetInt2d($this->_data, $pos + 4);
+
+ if (($this->_version != self::XLS_BIFF8) && ($this->_version != self::XLS_BIFF7)) {
+ return false;
+ }
+
+ // offset: 2; size: 2; type of stream
+ $substreamType = $this->_GetInt2d($this->_data, $pos + 6);
+ if ($substreamType != self::XLS_WorkbookGlobals) {
+ return false;
+ }
+ $this->_pos += 4 + $length;
+ break;
+
+ case self::XLS_Type_FILEPASS: $this->_readFilepass(); break;
+ case self::XLS_Type_CODEPAGE: $this->_readCodepage(); break;
+ case self::XLS_Type_DATEMODE: $this->_readDateMode(); break;
+ case self::XLS_Type_FONT: $this->_readFont(); break;
+ case self::XLS_Type_FORMAT: $this->_readFormat(); break;
+ case self::XLS_Type_XF: $this->_readXf(); break;
+ case self::XLS_Type_STYLE: $this->_readStyle(); break;
+ case self::XLS_Type_PALETTE: $this->_readPalette(); break;
+ case self::XLS_Type_SHEET: $this->_readSheet(); break;
+ case self::XLS_Type_EXTERNALBOOK: $this->_readExternalBook(); break;
+ case self::XLS_Type_EXTERNSHEET: $this->_readExternSheet(); break;
+ case self::XLS_Type_DEFINEDNAME: $this->_readDefinedName(); break;
+ case self::XLS_Type_MSODRAWINGGROUP: $this->_readMsoDrawingGroup(); break;
+ case self::XLS_Type_SST: $this->_readSst(); break;
+ case self::XLS_Type_EOF: $this->_readDefault(); break 2;
+ default: $this->_readDefault(); break;
+ }
+ }
+
+ // Resolve indexed colors for font, fill, and border colors
+ // Cannot be resolved already in XF record, because PALETTE record comes afterwards
+ if (!$this->_readDataOnly) {
+ foreach ($this->_objFonts as $objFont) {
+ $color = $this->_readColor($objFont->colorIndex);
+ $objFont->getColor()->setRGB($color['rgb']);
+ }
+
+ foreach ($this->_phpExcel->getCellXfCollection() as $objStyle) {
+ // fill start and end color
+ $startColor = $this->_readColor($objStyle->getFill()->startcolorIndex);
+ $objStyle->getFill()->getStartColor()->setRGB($startColor['rgb']);
+
+ $endColor = $this->_readColor($objStyle->getFill()->endcolorIndex);
+ $objStyle->getFill()->getEndColor()->setRGB($endColor['rgb']);
+
+ // border colors
+ $borderTopColor = $this->_readColor($objStyle->getBorders()->getTop()->colorIndex);
+ $objStyle->getBorders()->getTop()->getColor()->setRGB($borderTopColor['rgb']);
+
+ $borderRightColor = $this->_readColor($objStyle->getBorders()->getRight()->colorIndex);
+ $objStyle->getBorders()->getRight()->getColor()->setRGB($borderRightColor['rgb']);
+
+ $borderBottomColor = $this->_readColor($objStyle->getBorders()->getBottom()->colorIndex);
+ $objStyle->getBorders()->getBottom()->getColor()->setRGB($borderBottomColor['rgb']);
+
+ $borderLeftColor = $this->_readColor($objStyle->getBorders()->getLeft()->colorIndex);
+ $objStyle->getBorders()->getLeft()->getColor()->setRGB($borderLeftColor['rgb']);
+ }
+ }
+
+ // treat MSODRAWINGGROUP records, workbook-level Escher
+ if (!$this->_readDataOnly && $this->_drawingGroupData) {
+ $escherWorkbook = new PHPExcel_Shared_Escher();
+ $reader = new PHPExcel_Reader_Excel5_Escher($escherWorkbook);
+ $escherWorkbook = $reader->load($this->_drawingGroupData);
+
+ // debug Escher stream
+ //$debug = new Debug_Escher(new PHPExcel_Shared_Escher());
+ //$debug->load($this->_drawingGroupData);
+ }
+
+ // Parse the individual sheets
+ foreach ($this->_sheets as $sheet) {
+
+ // check if sheet should be skipped
+ if (isset($this->_loadSheetsOnly) && !in_array($sheet['name'], $this->_loadSheetsOnly)) {
+ continue;
+ }
+
+ // add sheet to PHPExcel object
+ $this->_phpSheet = $this->_phpExcel->createSheet();
+ $this->_phpSheet->setTitle($sheet['name']);
+
+ $this->_pos = $sheet['offset'];
+
+ // Initialize isFitToPages. May change after reading SHEETPR record.
+ $this->_isFitToPages = false;
+
+ // Initialize drawingData
+ $this->_drawingData = '';
+
+ // Initialize objs
+ $this->_objs = array();
+
+ // Initialize shared formula parts
+ $this->_sharedFormulaParts = array();
+
+ // Initialize shared formulas
+ $this->_sharedFormulas = array();
+
+ while ($this->_pos < $this->_dataSize) {
+ $code = $this->_GetInt2d($this->_data, $this->_pos);
+
+ switch ($code) {
+ case self::XLS_Type_BOF:
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // do not use this version information for anything
+ // it is unreliable (OpenOffice doc, 5.8), use only version information from the global stream
+
+ // offset: 2; size: 2; type of the following data
+ $substreamType = $this->_GetInt2d($recordData, 2);
+ if ($substreamType != self::XLS_Worksheet) {
+ break 2;
+ }
+ break;
+
+ case self::XLS_Type_PRINTGRIDLINES: $this->_readPrintGridlines(); break;
+ case self::XLS_Type_DEFAULTROWHEIGHT: $this->_readDefaultRowHeight(); break;
+ case self::XLS_Type_SHEETPR: $this->_readSheetPr(); break;
+ case self::XLS_Type_HORIZONTALPAGEBREAKS: $this->_readHorizontalPageBreaks(); break;
+ case self::XLS_Type_VERTICALPAGEBREAKS: $this->_readVerticalPageBreaks(); break;
+ case self::XLS_Type_HEADER: $this->_readHeader(); break;
+ case self::XLS_Type_FOOTER: $this->_readFooter(); break;
+ case self::XLS_Type_HCENTER: $this->_readHcenter(); break;
+ case self::XLS_Type_VCENTER: $this->_readVcenter(); break;
+ case self::XLS_Type_LEFTMARGIN: $this->_readLeftMargin(); break;
+ case self::XLS_Type_RIGHTMARGIN: $this->_readRightMargin(); break;
+ case self::XLS_Type_TOPMARGIN: $this->_readTopMargin(); break;
+ case self::XLS_Type_BOTTOMMARGIN: $this->_readBottomMargin(); break;
+ case self::XLS_Type_PAGESETUP: $this->_readPageSetup(); break;
+ case self::XLS_Type_PROTECT: $this->_readProtect(); break;
+ case self::XLS_Type_PASSWORD: $this->_readPassword(); break;
+ case self::XLS_Type_DEFCOLWIDTH: $this->_readDefColWidth(); break;
+ case self::XLS_Type_COLINFO: $this->_readColInfo(); break;
+ case self::XLS_Type_DIMENSION: $this->_readDefault(); break;
+ case self::XLS_Type_ROW: $this->_readRow(); break;
+ case self::XLS_Type_DBCELL: $this->_readDefault(); break;
+ case self::XLS_Type_RK: $this->_readRk(); break;
+ case self::XLS_Type_LABELSST: $this->_readLabelSst(); break;
+ case self::XLS_Type_MULRK: $this->_readMulRk(); break;
+ case self::XLS_Type_NUMBER: $this->_readNumber(); break;
+ case self::XLS_Type_FORMULA: $this->_readFormula(); break;
+ case self::XLS_Type_SHAREDFMLA: $this->_readSharedFmla(); break;
+ case self::XLS_Type_BOOLERR: $this->_readBoolErr(); break;
+ case self::XLS_Type_MULBLANK: $this->_readMulBlank(); break;
+ case self::XLS_Type_LABEL: $this->_readLabel(); break;
+ case self::XLS_Type_BLANK: $this->_readBlank(); break;
+ case self::XLS_Type_MSODRAWING: $this->_readMsoDrawing(); break;
+ case self::XLS_Type_OBJ: $this->_readObj(); break;
+ case self::XLS_Type_WINDOW2: $this->_readWindow2(); break;
+ case self::XLS_Type_SCL: $this->_readScl(); break;
+ case self::XLS_Type_PANE: $this->_readPane(); break;
+ case self::XLS_Type_MERGEDCELLS: $this->_readMergedCells(); break;
+ case self::XLS_Type_HYPERLINK: $this->_readHyperLink(); break;
+ case self::XLS_Type_RANGEPROTECTION: $this->_readRangeProtection(); break;
+ //case self::XLS_Type_IMDATA: $this->_readImData(); break;
+ case self::XLS_Type_CONTINUE: $this->_readContinue(); break;
+ case self::XLS_Type_EOF: $this->_readDefault(); break 2;
+ default: $this->_readDefault(); break;
+ }
+
+ }
+
+ // treat MSODRAWING records, sheet-level Escher
+ if (!$this->_readDataOnly && $this->_drawingData) {
+ $escherWorksheet = new PHPExcel_Shared_Escher();
+ $reader = new PHPExcel_Reader_Excel5_Escher($escherWorksheet);
+ $escherWorksheet = $reader->load($this->_drawingData);
+
+ // debug Escher stream
+ //$debug = new Debug_Escher(new PHPExcel_Shared_Escher());
+ //$debug->load($this->_drawingData);
+
+ // get all spContainers in one long array, so they can be mapped to OBJ records
+ $allSpContainers = $escherWorksheet->getDgContainer()->getSpgrContainer()->getAllSpContainers();
+ }
+
+ // treat OBJ records
+ foreach ($this->_objs as $n => $obj) {
+
+ // the first shape container never has a corresponding OBJ record, hence $n + 1
+ $spContainer = $allSpContainers[$n + 1];
+
+ // we skip all spContainers that are a part of a group shape since we cannot yet handle those
+ if ($spContainer->getNestingLevel() > 1) {
+ continue;
+ }
+
+ // calculate the width and height of the shape
+ list($startColumn, $startRow) = PHPExcel_Cell::coordinateFromString($spContainer->getStartCoordinates());
+ list($endColumn, $endRow) = PHPExcel_Cell::coordinateFromString($spContainer->getEndCoordinates());
+
+ $startOffsetX = $spContainer->getStartOffsetX();
+ $startOffsetY = $spContainer->getStartOffsetY();
+ $endOffsetX = $spContainer->getEndOffsetX();
+ $endOffsetY = $spContainer->getEndOffsetY();
+
+ $width = PHPExcel_Shared_Excel5::getDistanceX($this->_phpSheet, $startColumn, $startOffsetX, $endColumn, $endOffsetX);
+ $height = PHPExcel_Shared_Excel5::getDistanceY($this->_phpSheet, $startRow, $startOffsetY, $endRow, $endOffsetY);
+
+ // calculate offsetX and offsetY of the shape
+ $offsetX = $startOffsetX * PHPExcel_Shared_Excel5::sizeCol($this->_phpSheet, $startColumn) / 1024;
+ $offsetY = $startOffsetY * PHPExcel_Shared_Excel5::sizeRow($this->_phpSheet, $startRow) / 256;
+
+ switch ($obj['type']) {
+
+ case 0x08:
+ // picture
+
+ // get index to BSE entry (1-based)
+ $BSEindex = $spContainer->getOPT(0x0104);
+ $BSECollection = $escherWorkbook->getDggContainer()->getBstoreContainer()->getBSECollection();
+ $BSE = $BSECollection[$BSEindex - 1];
+ $blipType = $BSE->getBlipType();
+
+ // need check because some blip types are not supported by Escher reader such as EMF
+ if ($blip = $BSE->getBlip()) {
+ $ih = imagecreatefromstring($blip->getData());
+ $drawing = new PHPExcel_Worksheet_MemoryDrawing();
+ $drawing->setImageResource($ih);
+
+ // width, height, offsetX, offsetY
+ $drawing->setResizeProportional(false);
+ $drawing->setWidth($width);
+ $drawing->setHeight($height);
+ $drawing->setOffsetX($offsetX);
+ $drawing->setOffsetY($offsetY);
+
+ switch ($blipType) {
+
+ case PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_JPEG:
+ $drawing->setRenderingFunction(PHPExcel_Worksheet_MemoryDrawing::RENDERING_JPEG);
+ $drawing->setMimeType(PHPExcel_Worksheet_MemoryDrawing::MIMETYPE_JPEG);
+ break;
+
+ case PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG:
+ $drawing->setRenderingFunction(PHPExcel_Worksheet_MemoryDrawing::RENDERING_PNG);
+ $drawing->setMimeType(PHPExcel_Worksheet_MemoryDrawing::MIMETYPE_PNG);
+ break;
+ }
+
+ $drawing->setWorksheet($this->_phpSheet);
+ $drawing->setCoordinates($spContainer->getStartCoordinates());
+ }
+
+ break;
+
+ default:
+ // other object type
+ break;
+
+ }
+ }
+
+ // treat SHAREDFMLA records
+ if ($this->_version == self::XLS_BIFF8) {
+ foreach ($this->_sharedFormulaParts as $cell => $baseCell) {
+ $formula = $this->_getFormulaFromStructure($this->_sharedFormulas[$baseCell], $cell);
+ $this->_phpSheet->getCell($cell)->setValueExplicit('=' . $formula, PHPExcel_Cell_DataType::TYPE_FORMULA);
+ }
+ }
+ }
+
+ // add the named ranges (defined names)
+ foreach ($this->_definedname as $definedName) {
+ if ($definedName['isBuiltInName']) {
+ switch ($definedName['name']) {
+
+ case pack('C', 0x06):
+ // print area
+ // in general, formula looks like this: Foo!$C$7:$J$66,Bar!$A$1:$IV$2
+
+ $ranges = explode(',', $definedName['formula']); // FIXME: what if sheetname contains comma?
+
+ foreach ($ranges as $range) {
+ // $range should look like this one of these
+ // Foo!$C$7:$J$66
+ // Bar!$A$1:$IV$2
+
+ $explodes = explode('!', $range);
+
+ if (count($explodes) == 2) {
+ if ($docSheet = $this->_phpExcel->getSheetByName($explodes[0])) {
+ $extractedRange = $explodes[1];
+ $extractedRange = str_replace('$', '', $extractedRange);
+ $docSheet->getPageSetup()->setPrintArea($extractedRange);
+ }
+ }
+ }
+ break;
+
+ case pack('C', 0x07):
+ // print titles (repeating rows)
+ // Assuming BIFF8, there are 3 cases
+ // 1. repeating rows
+ // formula looks like this: Sheet!$A$1:$IV$2
+ // rows 1-2 repeat
+ // 2. repeating columns
+ // formula looks like this: Sheet!$A$1:$B$65536
+ // columns A-B repeat
+ // 3. both repeating rows and repeating columns
+ // formula looks like this: Sheet!$A$1:$B$65536,Sheet!$A$1:$IV$2
+
+ $ranges = explode(',', $definedName['formula']); // FIXME: what if sheetname contains comma?
+
+ foreach ($ranges as $range) {
+ // $range should look like this one of these
+ // Sheet!$A$1:$B$65536
+ // Sheet!$A$1:$IV$2
+
+ $explodes = explode('!', $range);
+
+ if (count($explodes) == 2) {
+ if ($docSheet = $this->_phpExcel->getSheetByName($explodes[0])) {
+
+ $extractedRange = $explodes[1];
+ $extractedRange = str_replace('$', '', $extractedRange);
+
+ $coordinateStrings = explode(':', $extractedRange);
+ if (count($coordinateStrings) == 2) {
+ list($firstColumn, $firstRow) = PHPExcel_Cell::coordinateFromString($coordinateStrings[0]);
+ list($lastColumn, $lastRow) = PHPExcel_Cell::coordinateFromString($coordinateStrings[1]);
+
+ if ($firstColumn == 'A' and $lastColumn == 'IV') {
+ // then we have repeating rows
+ $docSheet->getPageSetup()->setRowsToRepeatAtTop(array($firstRow, $lastRow));
+ } elseif ($firstRow == 1 and $lastRow == 65536) {
+ // then we have repeating columns
+ $docSheet->getPageSetup()->setColumnsToRepeatAtLeft(array($firstColumn, $lastColumn));
+ }
+ }
+ }
+ }
+ }
+ break;
+
+ }
+ } else {
+ // Extract range
+ $explodes = explode('!', $definedName['formula']);
+
+ if (count($explodes) == 2) {
+ if ($docSheet = $this->_phpExcel->getSheetByName($explodes[0])) {
+ $extractedRange = $explodes[1];
+ $extractedRange = str_replace('$', '', $extractedRange);
+
+ $this->_phpExcel->addNamedRange( new PHPExcel_NamedRange((string)$definedName['name'], $docSheet, $extractedRange, false) );
+ }
+ }
+ }
+ }
+
+ return $this->_phpExcel;
+ }
+
+ /**
+ * Reads a general type of BIFF record. Does nothing except for moving stream pointer forward to next record.
+ */
+ private function _readDefault()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+ }
+
+ /**
+ * FILEPASS
+ *
+ * This record is part of the File Protection Block. It
+ * contains information about the read/write password of the
+ * file. All record contents following this record will be
+ * encrypted.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readFilepass()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ throw new Exception('Cannot read encrypted file');
+ }
+
+ /**
+ * CODEPAGE
+ *
+ * This record stores the text encoding used to write byte
+ * strings, stored as MS Windows code page identifier.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readCodepage()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 2; code page identifier
+ $codepage = $this->_GetInt2d($recordData, 0);
+
+ switch ($codepage) {
+
+ case 367: // ASCII
+ $this->_codepage ="ASCII";
+ break;
+
+ case 437: //OEM US
+ $this->_codepage ="CP437";
+ break;
+
+ case 720: //OEM Arabic
+ // currently not supported by libiconv
+ $this->_codepage = "";
+ break;
+
+ case 737: //OEM Greek
+ $this->_codepage ="CP737";
+ break;
+
+ case 775: //OEM Baltic
+ $this->_codepage ="CP775";
+ break;
+
+ case 850: //OEM Latin I
+ $this->_codepage ="CP850";
+ break;
+
+ case 852: //OEM Latin II (Central European)
+ $this->_codepage ="CP852";
+ break;
+
+ case 855: //OEM Cyrillic
+ $this->_codepage ="CP855";
+ break;
+
+ case 857: //OEM Turkish
+ $this->_codepage ="CP857";
+ break;
+
+ case 858: //OEM Multilingual Latin I with Euro
+ $this->_codepage ="CP858";
+ break;
+
+ case 860: //OEM Portugese
+ $this->_codepage ="CP860";
+ break;
+
+ case 861: //OEM Icelandic
+ $this->_codepage ="CP861";
+ break;
+
+ case 862: //OEM Hebrew
+ $this->_codepage ="CP862";
+ break;
+
+ case 863: //OEM Canadian (French)
+ $this->_codepage ="CP863";
+ break;
+
+ case 864: //OEM Arabic
+ $this->_codepage ="CP864";
+ break;
+
+ case 865: //OEM Nordic
+ $this->_codepage ="CP865";
+ break;
+
+ case 866: //OEM Cyrillic (Russian)
+ $this->_codepage ="CP866";
+ break;
+
+ case 869: //OEM Greek (Modern)
+ $this->_codepage ="CP869";
+ break;
+
+ case 874: //ANSI Thai
+ $this->_codepage ="CP874";
+ break;
+
+ case 932: //ANSI Japanese Shift-JIS
+ $this->_codepage ="CP932";
+ break;
+
+ case 936: //ANSI Chinese Simplified GBK
+ $this->_codepage ="CP936";
+ break;
+
+ case 949: //ANSI Korean (Wansung)
+ $this->_codepage ="CP949";
+ break;
+
+ case 950: //ANSI Chinese Traditional BIG5
+ $this->_codepage ="CP950";
+ break;
+
+ case 1200: //UTF-16 (BIFF8)
+ $this->_codepage ="UTF-16LE";
+ break;
+
+ case 1250:// ANSI Latin II (Central European)
+ $this->_codepage ="CP1250";
+ break;
+
+ case 1251: //ANSI Cyrillic
+ $this->_codepage ="CP1251";
+ break;
+
+ case 1252: //ANSI Latin I (BIFF4-BIFF7)
+ $this->_codepage ="CP1252";
+ break;
+
+ case 1253: //ANSI Greek
+ $this->_codepage ="CP1253";
+ break;
+
+ case 1254: //ANSI Turkish
+ $this->_codepage ="CP1254";
+ break;
+
+ case 1255: //ANSI Hebrew
+ $this->_codepage ="CP1255";
+ break;
+
+ case 1256: //ANSI Arabic
+ $this->_codepage ="CP1256";
+ break;
+
+ case 1257: //ANSI Baltic
+ $this->_codepage ="CP1257";
+ break;
+
+ case 1258: //ANSI Vietnamese
+ $this->_codepage ="CP1258";
+ break;
+
+ case 1361: //ANSI Korean (Johab)
+ $this->_codepage ="CP1361";
+ break;
+
+ case 10000: //Apple Roman
+ $this->_codepage = 'MAC';
+ break;
+
+ case 32768: //Apple Roman
+ $this->_codepage = 'MAC';
+ break;
+
+ case 32769: //ANSI Latin I (BIFF2-BIFF3)
+ // currently not supported by libiconv
+ $this->_codepage = "";
+ break;
+
+ }
+ }
+
+ /**
+ * DATEMODE
+ *
+ * This record specifies the base date for displaying date
+ * values. All dates are stored as count of days past this
+ * base date. In BIFF2-BIFF4 this record is part of the
+ * Calculation Settings Block. In BIFF5-BIFF8 it is
+ * stored in the Workbook Globals Substream.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readDateMode()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 2; 0 = base 1900, 1 = base 1904
+ PHPExcel_Shared_Date::setExcelCalendar(PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900);
+ if (ord($recordData{0}) == 1) {
+ PHPExcel_Shared_Date::setExcelCalendar(PHPExcel_Shared_Date::CALENDAR_MAC_1904);
+ }
+ }
+
+ /**
+ * Read a FONT record
+ */
+ private function _readFont()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ $objFont = new PHPExcel_Style_Font();
+
+ // offset: 0; size: 2; height of the font (in twips = 1/20 of a point)
+ $size = $this->_GetInt2d($recordData, 0);
+ $objFont->setSize($size / 20);
+
+ // offset: 2; size: 2; option flags
+ // bit: 0; mask 0x0001; bold (redundant in BIFF5-BIFF8)
+ // bit: 1; mask 0x0002; italic
+ $isItalic = (0x0002 & $this->_GetInt2d($recordData, 2)) >> 1;
+ if ($isItalic) $objFont->setItalic(true);
+
+ // bit: 2; mask 0x0004; underlined (redundant in BIFF5-BIFF8)
+ // bit: 3; mask 0x0008; strike
+ $isStrike = (0x0008 & $this->_GetInt2d($recordData, 2)) >> 3;
+ if ($isStrike) $objFont->setStriketrough(true);
+
+ // offset: 4; size: 2; colour index
+ $colorIndex = $this->_GetInt2d($recordData, 4);
+ $objFont->colorIndex = $colorIndex;
+
+ // offset: 6; size: 2; font weight
+ $weight = $this->_GetInt2d($recordData, 6);
+ switch ($weight) {
+ case 0x02BC:
+ $objFont->setBold(true);
+ break;
+ }
+
+ // offset: 8; size: 2; escapement type
+ $escapement = $this->_GetInt2d($recordData, 8);
+ switch ($escapement) {
+ case 0x0001:
+ $objFont->setSuperScript(true);
+ break;
+ case 0x0002:
+ $objFont->setSubScript(true);
+ break;
+ }
+
+ // offset: 10; size: 1; underline type
+ $underlineType = ord($recordData{10});
+ switch ($underlineType) {
+ case 0x00:
+ break; // no underline
+ case 0x01:
+ $objFont->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLE);
+ break;
+ case 0x02:
+ $objFont->setUnderline(PHPExcel_Style_Font::UNDERLINE_DOUBLE);
+ break;
+ case 0x21:
+ $objFont->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING);
+ break;
+ case 0x22:
+ $objFont->setUnderline(PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING);
+ break;
+ }
+
+ // offset: 11; size: 1; font family
+ // offset: 12; size: 1; character set
+ // offset: 13; size: 1; not used
+ // offset: 14; size: var; font name
+ if ($this->_version == self::XLS_BIFF8) {
+ $string = $this->_readUnicodeStringShort(substr($recordData, 14));
+ } else {
+ $string = $this->_readByteStringShort(substr($recordData, 14));
+ }
+ $objFont->setName($string['value']);
+
+ $this->_objFonts[] = $objFont;
+ }
+ }
+
+ /**
+ * FORMAT
+ *
+ * This record contains information about a number format.
+ * All FORMAT records occur together in a sequential list.
+ *
+ * In BIFF2-BIFF4 other records referencing a FORMAT record
+ * contain a zero-based index into this list. From BIFF5 on
+ * the FORMAT record contains the index itself that will be
+ * used by other records.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readFormat()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ $indexCode = $this->_GetInt2d($recordData, 0);
+
+ if ($this->_version == self::XLS_BIFF8) {
+ $string = $this->_readUnicodeStringLong(substr($recordData, 2));
+ } else {
+ // BIFF7
+ $string = $this->_readByteStringShort(substr($recordData, 2));
+ }
+
+ $formatString = $string['value'];
+ $this->_formats[$indexCode] = $formatString;
+ }
+ }
+
+ /**
+ * XF - Extended Format
+ *
+ * This record contains formatting information for cells, rows, columns or styles.
+ * According to http://support.microsoft.com/kb/147732 there are always at least 15 cell style XF
+ * and 1 cell XF.
+ * Inspection of Excel files generated by MS Office Excel shows that XF records 0-14 are cell style XF
+ * and XF record 15 is a cell XF
+ * We only read the first cell style XF and skip the remaining cell style XF records
+ * We read all cell XF records.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readXf()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ $objStyle = new PHPExcel_Style();
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: 2; Index to FONT record
+ if ($this->_GetInt2d($recordData, 0) < 4) {
+ $fontIndex = $this->_GetInt2d($recordData, 0);
+ } else {
+ // this has to do with that index 4 is omitted in all BIFF versions for some strange reason
+ // check the OpenOffice documentation of the FONT record
+ $fontIndex = $this->_GetInt2d($recordData, 0) - 1;
+ }
+ $objStyle->setFont($this->_objFonts[$fontIndex]);
+
+ // offset: 2; size: 2; Index to FORMAT record
+ $numberFormatIndex = $this->_GetInt2d($recordData, 2);
+ if (isset($this->_formats[$numberFormatIndex])) {
+ // then we have user-defined format code
+ $numberformat = array('code' => $this->_formats[$numberFormatIndex]);
+ } elseif (($code = PHPExcel_Style_NumberFormat::builtInFormatCode($numberFormatIndex)) !== '') {
+ // then we have built-in format code
+ $numberformat = array('code' => $code);
+ } else {
+ // we set the general format code
+ $numberformat = array('code' => 'General');
+ }
+ $objStyle->getNumberFormat()->setFormatCode($numberformat['code']);
+
+ // offset: 4; size: 2; XF type, cell protection, and parent style XF
+ // bit 2-0; mask 0x0007; XF_TYPE_PROT
+ $xfTypeProt = $this->_GetInt2d($recordData, 4);
+ // bit 0; mask 0x01; 1 = cell is locked
+ $isLocked = (0x01 & $xfTypeProt) >> 0;
+ $objStyle->getProtection()->setLocked($isLocked ?
+ PHPExcel_Style_Protection::PROTECTION_INHERIT : PHPExcel_Style_Protection::PROTECTION_UNPROTECTED);
+
+ // bit 1; mask 0x02; 1 = Formula is hidden
+ $isHidden = (0x02 & $xfTypeProt) >> 1;
+ $objStyle->getProtection()->setHidden($isHidden ?
+ PHPExcel_Style_Protection::PROTECTION_PROTECTED : PHPExcel_Style_Protection::PROTECTION_UNPROTECTED);
+
+ // bit 2; mask 0x04; 0 = Cell XF, 1 = Cell Style XF
+ $isCellStyleXf = (0x04 & $xfTypeProt) >> 2;
+
+ // offset: 6; size: 1; Alignment and text break
+ // bit 2-0, mask 0x07; horizontal alignment
+ $horAlign = (0x07 & ord($recordData{6})) >> 0;
+ switch ($horAlign) {
+ case 0:
+ $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_GENERAL);
+ break;
+ case 1:
+ $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_LEFT);
+ break;
+ case 2:
+ $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
+ break;
+ case 3:
+ $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_RIGHT);
+ break;
+ case 5:
+ $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY);
+ break;
+ case 6:
+ $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS);
+ break;
+ }
+ // bit 3, mask 0x08; wrap text
+ $wrapText = (0x08 & ord($recordData{6})) >> 3;
+ switch ($wrapText) {
+ case 0:
+ $objStyle->getAlignment()->setWrapText(false);
+ break;
+ case 1:
+ $objStyle->getAlignment()->setWrapText(true);
+ break;
+ }
+ // bit 6-4, mask 0x70; vertical alignment
+ $vertAlign = (0x70 & ord($recordData{6})) >> 4;
+ switch ($vertAlign) {
+ case 0:
+ $objStyle->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_TOP);
+ break;
+ case 1:
+ $objStyle->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER);
+ break;
+ case 2:
+ $objStyle->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_BOTTOM);
+ break;
+ case 3:
+ $objStyle->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_JUSTIFY);
+ break;
+ }
+
+ if ($this->_version == self::XLS_BIFF8) {
+ // offset: 7; size: 1; XF_ROTATION: Text rotation angle
+ $angle = ord($recordData{7});
+ $rotation = 0;
+ if ($angle <= 90) {
+ $rotation = $angle;
+ } else if ($angle <= 180) {
+ $rotation = 90 - $angle;
+ } else if ($angle == 255) {
+ $rotation = -165;
+ }
+ $objStyle->getAlignment()->setTextRotation($rotation);
+
+ // offset: 8; size: 1; Indentation, shrink to cell size, and text direction
+ // bit: 3-0; mask: 0x0F; indent level
+ $indent = (0x0F & ord($recordData{8})) >> 0;
+ $objStyle->getAlignment()->setIndent($indent);
+
+ // bit: 4; mask: 0x10; 1 = shrink content to fit into cell
+ $shrinkToFit = (0x10 & ord($recordData{8})) >> 4;
+ switch ($shrinkToFit) {
+ case 0:
+ $objStyle->getAlignment()->setShrinkToFit(false);
+ break;
+ case 1:
+ $objStyle->getAlignment()->setShrinkToFit(true);
+ break;
+ }
+
+ // offset: 9; size: 1; Flags used for attribute groups
+
+ // offset: 10; size: 4; Cell border lines and background area
+ // bit: 3-0; mask: 0x0000000F; left style
+ if ($bordersLeftStyle = $this->_mapBorderStyle((0x0000000F & $this->_GetInt4d($recordData, 10)) >> 0)) {
+ $objStyle->getBorders()->getLeft()->setBorderStyle($bordersLeftStyle);
+ }
+ // bit: 7-4; mask: 0x000000F0; right style
+ if ($bordersRightStyle = $this->_mapBorderStyle((0x000000F0 & $this->_GetInt4d($recordData, 10)) >> 4)) {
+ $objStyle->getBorders()->getRight()->setBorderStyle($bordersRightStyle);
+ }
+ // bit: 11-8; mask: 0x00000F00; top style
+ if ($bordersTopStyle = $this->_mapBorderStyle((0x00000F00 & $this->_GetInt4d($recordData, 10)) >> 8)) {
+ $objStyle->getBorders()->getTop()->setBorderStyle($bordersTopStyle);
+ }
+ // bit: 15-12; mask: 0x0000F000; bottom style
+ if ($bordersBottomStyle = $this->_mapBorderStyle((0x0000F000 & $this->_GetInt4d($recordData, 10)) >> 12)) {
+ $objStyle->getBorders()->getBottom()->setBorderStyle($bordersBottomStyle);
+ }
+ // bit: 22-16; mask: 0x007F0000; left color
+ $objStyle->getBorders()->getLeft()->colorIndex = (0x007F0000 & $this->_GetInt4d($recordData, 10)) >> 16;
+
+ // bit: 29-23; mask: 0x3F800000; right color
+ $objStyle->getBorders()->getRight()->colorIndex = (0x3F800000 & $this->_GetInt4d($recordData, 10)) >> 23;
+
+ // offset: 14; size: 4;
+ // bit: 6-0; mask: 0x0000007F; top color
+ $objStyle->getBorders()->getTop()->colorIndex = (0x0000007F & $this->_GetInt4d($recordData, 14)) >> 0;
+
+ // bit: 13-7; mask: 0x00003F80; bottom color
+ $objStyle->getBorders()->getBottom()->colorIndex = (0x00003F80 & $this->_GetInt4d($recordData, 14)) >> 7;
+
+ // bit: 31-26; mask: 0xFC000000 fill pattern
+ if ($fillType = $this->_mapFillPattern((0xFC000000 & $this->_GetInt4d($recordData, 14)) >> 26)) {
+ $objStyle->getFill()->setFillType($fillType);
+ }
+ // offset: 18; size: 2; pattern and background colour
+ // bit: 6-0; mask: 0x007F; color index for pattern color
+ $objStyle->getFill()->startcolorIndex = (0x007F & $this->_GetInt2d($recordData, 18)) >> 0;
+
+ // bit: 13-7; mask: 0x3F80; color index for pattern background
+ $objStyle->getFill()->endcolorIndex = (0x3F80 & $this->_GetInt2d($recordData, 18)) >> 7;
+ } else {
+ // BIFF5
+
+ // offset: 7; size: 1; Text orientation and flags
+ $orientationAndFlags = ord($recordData{7});
+
+ // bit: 1-0; mask: 0x03; XF_ORIENTATION: Text orientation
+ $xfOrientation = (0x03 & $orientationAndFlags) >> 0;
+ switch ($xfOrientation) {
+ case 0:
+ $objStyle->getAlignment()->setTextRotation(0);
+ break;
+ case 1:
+ $objStyle->getAlignment()->setTextRotation(-165);
+ break;
+ case 2:
+ $objStyle->getAlignment()->setTextRotation(90);
+ break;
+ case 3:
+ $objStyle->getAlignment()->setTextRotation(-90);
+ break;
+ }
+
+ // offset: 8; size: 4; cell border lines and background area
+ $borderAndBackground = $this->_GetInt4d($recordData, 8);
+
+ // bit: 6-0; mask: 0x0000007F; color index for pattern color
+ $objStyle->getFill()->startcolorIndex = (0x0000007F & $borderAndBackground) >> 0;
+
+ // bit: 13-7; mask: 0x00003F80; color index for pattern background
+ $objStyle->getFill()->endcolorIndex = (0x00003F80 & $borderAndBackground) >> 7;
+
+ // bit: 21-16; mask: 0x003F0000; fill pattern
+ $objStyle->getFill()->setFillType($this->_mapFillPattern((0x003F0000 & $borderAndBackground) >> 16));
+
+ // bit: 24-22; mask: 0x01C00000; bottom line style
+ $objStyle->getBorders()->getBottom()->setBorderStyle($this->_mapBorderStyle((0x01C00000 & $borderAndBackground) >> 22));
+
+ // bit: 31-25; mask: 0xFE000000; bottom line color
+ $objStyle->getBorders()->getBottom()->colorIndex = (0xFE000000 & $borderAndBackground) >> 25;
+
+ // offset: 12; size: 4; cell border lines
+ $borderLines = $this->_GetInt4d($recordData, 12);
+
+ // bit: 2-0; mask: 0x00000007; top line style
+ $objStyle->getBorders()->getTop()->setBorderStyle($this->_mapBorderStyle((0x00000007 & $borderLines) >> 0));
+
+ // bit: 5-3; mask: 0x00000038; left line style
+ $objStyle->getBorders()->getLeft()->setBorderStyle($this->_mapBorderStyle((0x00000038 & $borderLines) >> 3));
+
+ // bit: 8-6; mask: 0x000001C0; right line style
+ $objStyle->getBorders()->getRight()->setBorderStyle($this->_mapBorderStyle((0x000001C0 & $borderLines) >> 6));
+
+ // bit: 15-9; mask: 0x0000FE00; top line color index
+ $objStyle->getBorders()->getTop()->colorIndex = (0x0000FE00 & $borderLines) >> 9;
+
+ // bit: 22-16; mask: 0x007F0000; left line color index
+ $objStyle->getBorders()->getLeft()->colorIndex = (0x007F0000 & $borderLines) >> 16;
+
+ // bit: 29-23; mask: 0x3F800000; right line color index
+ $objStyle->getBorders()->getRight()->colorIndex = (0x3F800000 & $borderLines) >> 23;
+ }
+
+ // add cellStyleXf or cellXf and update mapping
+ if ($isCellStyleXf) {
+ // we only read one style XF record which is always the first
+ if ($this->_xfIndex == 0) {
+ $this->_phpExcel->addCellStyleXf($objStyle);
+ $this->_mapCellStyleXfIndex[$this->_xfIndex] = 0;
+ }
+ } else {
+ // we read all cell XF records
+ $this->_phpExcel->addCellXf($objStyle);
+ $this->_mapCellXfIndex[$this->_xfIndex] = count($this->_phpExcel->getCellXfCollection()) - 1;
+ }
+
+ // update XF index for when we read next record
+ ++$this->_xfIndex;
+ }
+ }
+
+ /**
+ * Read STYLE record
+ */
+ private function _readStyle()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: 2; index to XF record and flag for built-in style
+ $ixfe = $this->_GetInt2d($recordData, 0);
+
+ // bit: 11-0; mask 0x0FFF; index to XF record
+ $xfIndex = (0x0FFF & $ixfe) >> 0;
+
+ // bit: 15; mask 0x8000; 0 = user-defined style, 1 = built-in style
+ $isBuiltIn = (bool) ((0x8000 & $ixfe) >> 15);
+
+ if ($isBuiltIn) {
+ // offset: 2; size: 1; identifier for built-in style
+ $builtInId = ord($recordData{2});
+
+ switch ($builtInId) {
+ case 0x00:
+ // currently, we are not using this for anything
+ break;
+
+ default:
+ break;
+ }
+
+ } else {
+ // user-defined; not supported by PHPExcel
+ }
+ }
+ }
+
+ /**
+ * Read PALETTE record
+ */
+ private function _readPalette()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: 2; number of following colors
+ $nm = $this->_GetInt2d($recordData, 0);
+
+ // list of RGB colors
+ for ($i = 0; $i < $nm; ++$i) {
+ $rgb = substr($recordData, 2 + 4 * $i, 4);
+ $this->_palette[] = $this->_readRGB($rgb);
+ }
+ }
+ }
+
+ /**
+ * SHEET
+ *
+ * This record is located in the Workbook Globals
+ * Substream and represents a sheet inside the workbook.
+ * One SHEET record is written for each sheet. It stores the
+ * sheet name and a stream offset to the BOF record of the
+ * respective Sheet Substream within the Workbook Stream.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readSheet()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 4; absolute stream position of the BOF record of the sheet
+ $rec_offset = $this->_GetInt4d($recordData, 0);
+
+ // offset: 4; size: 1; sheet state
+ $rec_typeFlag = ord($recordData{4});
+
+ // offset: 5; size: 1; sheet type
+ $rec_visibilityFlag = ord($recordData{5});
+
+ // offset: 6; size: var; sheet name
+ if ($this->_version == self::XLS_BIFF8) {
+ $string = $this->_readUnicodeStringShort(substr($recordData, 6));
+ $rec_name = $string['value'];
+ } elseif ($this->_version == self::XLS_BIFF7) {
+ $string = $this->_readByteStringShort(substr($recordData, 6));
+ $rec_name = $string['value'];
+ }
+ $this->_sheets[] = array(
+ 'name' => $rec_name,
+ 'offset' => $rec_offset
+ );
+ }
+
+ /**
+ * Read EXTERNALBOOK record
+ */
+ private function _readExternalBook()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset within record data
+ $offset = 0;
+
+ // there are 4 types of records
+ if (strlen($recordData) > 4) {
+ // external reference
+ // offset: 0; size: 2; number of sheet names ($nm)
+ $nm = $this->_GetInt2d($recordData, 0);
+ $offset += 2;
+
+ // offset: 2; size: var; encoded URL without sheet name (Unicode string, 16-bit length)
+ $encodedUrlString = $this->_readUnicodeStringLong(substr($recordData, 2));
+ $offset += $encodedUrlString['size'];
+
+ // offset: var; size: var; list of $nm sheet names (Unicode strings, 16-bit length)
+ $externalSheetNames = array();
+ for ($i = 0; $i < $nm; ++$i) {
+ $externalSheetNameString = $this->_readUnicodeStringLong(substr($recordData, $offset));
+ $externalSheetNames[] = $externalSheetNameString['value'];
+ $offset += $externalSheetNameString['size'];
+ }
+
+ // store the record data
+ $this->_externalBooks[] = array(
+ 'type' => 'external',
+ 'encodedUrl' => $encodedUrlString['value'],
+ 'externalSheetNames' => $externalSheetNames,
+ );
+
+ } elseif (substr($recordData, 2, 2) == pack('CC', 0x01, 0x04)) {
+ // internal reference
+ // offset: 0; size: 2; number of sheet in this document
+ // offset: 2; size: 2; 0x01 0x04
+ $this->_externalBooks[] = array(
+ 'type' => 'internal',
+ );
+ } elseif (substr($recordData, 0, 4) == pack('VCC', 0x0001, 0x01, 0x3A)) {
+ // add-in function
+ // offset: 0; size: 2; 0x0001
+ $this->_externalBooks[] = array(
+ 'type' => 'addInFunction',
+ );
+ } elseif (substr($recordData, 0, 2) == pack('V', 0x0000)) {
+ // DDE links, OLE links
+ // offset: 0; size: 2; 0x0000
+ // offset: 2; size: var; encoded source document name
+ $this->_externalBooks[] = array(
+ 'type' => 'DDEorOLE',
+ );
+ }
+ }
+
+ /**
+ * Read EXTERNSHEET record
+ */
+ private function _readExternSheet()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // external sheet references provided for named cells
+ if ($this->_version == self::XLS_BIFF8) {
+ // offset: 0; size: 2; number of following ref structures
+ $nm = $this->_GetInt2d($recordData, 0);
+ for ($i = 0; $i < $nm; ++$i) {
+ $this->_ref[] = array(
+ // offset: 2 + 6 * $i; index to EXTERNALBOOK record
+ 'externalBookIndex' => $this->_GetInt2d($recordData, 2 + 6 * $i),
+ // offset: 4 + 6 * $i; index to first sheet in EXTERNALBOOK record
+ 'firstSheetIndex' => $this->_GetInt2d($recordData, 4 + 6 * $i),
+ // offset: 6 + 6 * $i; index to last sheet in EXTERNALBOOK record
+ 'lastSheetIndex' => $this->_GetInt2d($recordData, 6 + 6 * $i),
+ );
+ }
+ }
+ }
+
+ /**
+ * DEFINEDNAME
+ *
+ * This record is part of a Link Table. It contains the name
+ * and the token array of an internal defined name. Token
+ * arrays of defined names contain tokens with aberrant
+ * token classes.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readDefinedName()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if ($this->_version == self::XLS_BIFF8) {
+ // retrieves named cells
+
+ // offset: 0; size: 2; option flags
+ $opts = $this->_GetInt2d($recordData, 0);
+
+ // bit: 5; mask: 0x0020; 0 = user-defined name, 1 = built-in-name
+ $isBuiltInName = (0x0020 & $opts) >> 5;
+
+ // offset: 2; size: 1; keyboard shortcut
+
+ // offset: 3; size: 1; length of the name (character count)
+ $nlen = ord($recordData{3});
+
+ // offset: 4; size: 2; size of the formula data (it can happen that this is zero)
+ $flen = $this->_GetInt2d($recordData, 4);
+
+ // offset: 14; size: var; Name (Unicode string without length field)
+ $string = $this->_readUnicodeString(substr($recordData, 14), $nlen);
+
+ // offset: var; size: $flen; formula data
+ $offset = 14 + $string['size'];
+ $formulaStructure = pack('v', $flen) . substr($recordData, $offset, $flen);
+
+ try {
+ $formula = $this->_getFormulaFromStructure($formulaStructure);
+ } catch (Exception $e) {
+ $formula = '';
+ }
+
+ $this->_definedname[] = array(
+ 'isBuiltInName' => $isBuiltInName,
+ 'name' => $string['value'],
+ 'formula' => $formula,
+ );
+ }
+ }
+
+ /**
+ * Read MSODRAWINGGROUP record
+ */
+ private function _readMsoDrawingGroup()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+
+ // get spliced record data
+ $splicedRecordData = $this->_getSplicedRecordData();
+ $recordData = $splicedRecordData['recordData'];
+
+ $this->_drawingGroupData .= $recordData;
+ }
+
+ /**
+ * SST - Shared String Table
+ *
+ * This record contains a list of all strings used anywhere
+ * in the workbook. Each string occurs only once. The
+ * workbook uses indexes into the list to reference the
+ * strings.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ **/
+ private function _readSst()
+ {
+ // offset within (spliced) record data
+ $pos = 0;
+
+ // get spliced record data
+ $splicedRecordData = $this->_getSplicedRecordData();
+
+ $recordData = $splicedRecordData['recordData'];
+ $spliceOffsets = $splicedRecordData['spliceOffsets'];
+
+ // offset: 0; size: 4; total number of strings in the workbook
+ $pos += 4;
+
+ // offset: 4; size: 4; number of following strings ($nm)
+ $nm = $this->_GetInt4d($recordData, 4);
+ $pos += 4;
+
+ // loop through the Unicode strings (16-bit length)
+ for ($i = 0; $i < $nm; ++$i) {
+
+ // number of characters in the Unicode string
+ $numChars = $this->_GetInt2d($recordData, $pos);
+ $pos += 2;
+
+ // option flags
+ $optionFlags = ord($recordData{$pos});
+ ++$pos;
+
+ // bit: 0; mask: 0x01; 0 = compressed; 1 = uncompressed
+ $isCompressed = (($optionFlags & 0x01) == 0) ;
+
+ // bit: 2; mask: 0x02; 0 = ordinary; 1 = Asian phonetic
+ $hasAsian = (($optionFlags & 0x04) != 0);
+
+ // bit: 3; mask: 0x03; 0 = ordinary; 1 = Rich-Text
+ $hasRichText = (($optionFlags & 0x08) != 0);
+
+ if ($hasRichText) {
+ // number of Rich-Text formatting runs
+ $formattingRuns = $this->_GetInt2d($recordData, $pos);
+ $pos += 2;
+ }
+
+ if ($hasAsian) {
+ // size of Asian phonetic setting
+ $extendedRunLength = $this->_GetInt4d($recordData, $pos);
+ $pos += 4;
+ }
+
+ // expected byte length of character array if not split
+ $len = ($isCompressed) ? $numChars : $numChars * 2;
+
+ // look up limit position
+ foreach ($spliceOffsets as $spliceOffset) {
+ if ($pos < $spliceOffset) {
+ $limitpos = $spliceOffset;
+ break;
+ }
+ }
+
+ if ($pos + $len <= $limitpos) {
+ // character array is not split between records
+
+ $retstr = substr($recordData, $pos, $len);
+ $pos += $len;
+
+ } else {
+ // character array is split between records
+
+ // first part of character array
+ $retstr = substr($recordData, $pos, $limitpos - $pos);
+
+ $bytesRead = $limitpos - $pos;
+
+ // remaining characters in Unicode string
+ $charsLeft = $numChars - (($isCompressed) ? $bytesRead : ($bytesRead / 2));
+
+ $pos = $limitpos;
+
+ // keep reading the characters
+ while ($charsLeft > 0) {
+
+ // look up next limit position, in case the string span more than one continue record
+ foreach ($spliceOffsets as $spliceOffset) {
+ if ($pos < $spliceOffset) {
+ $limitpos = $spliceOffset;
+ break;
+ }
+ }
+
+ // repeated option flags
+ // OpenOffice.org documentation 5.21
+ $option = ord($recordData{$pos});
+ ++$pos;
+
+ if ($isCompressed && ($option == 0)) {
+ // 1st fragment compressed
+ // this fragment compressed
+ $len = min($charsLeft, $limitpos - $pos);
+ $retstr .= substr($recordData, $pos, $len);
+ $charsLeft -= $len;
+ $isCompressed = true;
+
+ } elseif (!$isCompressed && ($option != 0)) {
+ // 1st fragment uncompressed
+ // this fragment uncompressed
+ $len = min($charsLeft * 2, $limitpos - $pos);
+ $retstr .= substr($recordData, $pos, $len);
+ $charsLeft -= $len / 2;
+ $isCompressed = false;
+
+ } elseif (!$isCompressed && ($option == 0)) {
+ // 1st fragment uncompressed
+ // this fragment compressed
+ $len = min($charsLeft, $limitpos - $pos);
+ for ($j = 0; $j < $len; ++$j) {
+ $retstr .= $recordData{$pos + $j} . chr(0);
+ }
+ $charsLeft -= $len;
+ $isCompressed = false;
+
+ } else {
+ // 1st fragment compressed
+ // this fragment uncompressed
+ $newstr = '';
+ for ($j = 0; $j < strlen($retstr); ++$j) {
+ $newstr .= $retstr[$j] . chr(0);
+ }
+ $retstr = $newstr;
+ $len = min($charsLeft * 2, $limitpos - $pos);
+ $retstr .= substr($recordData, $pos, $len);
+ $charsLeft -= $len / 2;
+ $isCompressed = false;
+ }
+
+ $pos += $len;
+ }
+ }
+
+ // convert to UTF-8
+ $retstr = $this->_encodeUTF16($retstr, $isCompressed);
+
+ // read additional Rich-Text information, if any
+ $fmtRuns = array();
+ if ($hasRichText) {
+ // list of formatting runs
+ for ($j = 0; $j < $formattingRuns; ++$j) {
+ // first formatted character; zero-based
+ $charPos = $this->_GetInt2d($recordData, $pos + $j * 4);
+
+ // index to font record
+ $fontIndex = $this->_GetInt2d($recordData, $pos + 2 + $j * 4);
+
+ $fmtRuns[] = array(
+ 'charPos' => $charPos,
+ 'fontIndex' => $fontIndex,
+ );
+ }
+ $pos += 4 * $formattingRuns;
+ }
+
+ // read additional Asian phonetics information, if any
+ if ($hasAsian) {
+ // For Asian phonetic settings, we skip the extended string data
+ $pos += $extendedRunLength;
+ }
+
+ // store the shared sting
+ $this->_sst[] = array(
+ 'value' => $retstr,
+ 'fmtRuns' => $fmtRuns,
+ );
+ }
+
+ // _getSplicedRecordData() takes care of moving current position in data stream
+ }
+
+ /**
+ * Read PRINTGRIDLINES record
+ */
+ private function _readPrintGridlines()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if ($this->_version == self::XLS_BIFF8 && !$this->_readDataOnly) {
+ // offset: 0; size: 2; 0 = do not print sheet grid lines; 1 = print sheet gridlines
+ $printGridlines = (bool) $this->_GetInt2d($recordData, 0);
+ $this->_phpSheet->setPrintGridlines($printGridlines);
+ }
+ }
+
+ /**
+ * Read DEFAULTROWHEIGHT record
+ */
+ private function _readDefaultRowHeight()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 2; option flags
+ // offset: 2; size: 2; default height for unused rows, (twips 1/20 point)
+ $height = $this->_GetInt2d($recordData, 2);
+ $this->_phpSheet->getDefaultRowDimension()->setRowHeight($height / 20);
+ }
+
+ /**
+ * Read SHEETPR record
+ */
+ private function _readSheetPr()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 2
+
+ // bit: 6; mask: 0x0040; 0 = outline buttons above outline group
+ $isSummaryBelow = (0x0040 & $this->_GetInt2d($recordData, 0)) >> 6;
+ $this->_phpSheet->setShowSummaryBelow($isSummaryBelow);
+
+ // bit: 7; mask: 0x0080; 0 = outline buttons left of outline group
+ $isSummaryRight = (0x0080 & $this->_GetInt2d($recordData, 0)) >> 7;
+ $this->_phpSheet->setShowSummaryRight($isSummaryRight);
+
+ // bit: 8; mask: 0x100; 0 = scale printout in percent, 1 = fit printout to number of pages
+ // this corresponds to radio button setting in page setup dialog in Excel
+ $this->_isFitToPages = (bool) ((0x0100 & $this->_GetInt2d($recordData, 0)) >> 8);
+ }
+
+ /**
+ * Read HORIZONTALPAGEBREAKS record
+ */
+ private function _readHorizontalPageBreaks()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if ($this->_version == self::XLS_BIFF8 && !$this->_readDataOnly) {
+
+ // offset: 0; size: 2; number of the following row index structures
+ $nm = $this->_GetInt2d($recordData, 0);
+
+ // offset: 2; size: 6 * $nm; list of $nm row index structures
+ for ($i = 0; $i < $nm; ++$i) {
+ $r = $this->_GetInt2d($recordData, 2 + 6 * $i);
+ $cf = $this->_GetInt2d($recordData, 2 + 6 * $i + 2);
+ $cl = $this->_GetInt2d($recordData, 2 + 6 * $i + 4);
+
+ // not sure why two column indexes are necessary?
+ $this->_phpSheet->setBreakByColumnAndRow($cf, $r, PHPExcel_Worksheet::BREAK_ROW);
+ }
+ }
+ }
+
+ /**
+ * Read VERTICALPAGEBREAKS record
+ */
+ private function _readVerticalPageBreaks()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if ($this->_version == self::XLS_BIFF8 && !$this->_readDataOnly) {
+ // offset: 0; size: 2; number of the following column index structures
+ $nm = $this->_GetInt2d($recordData, 0);
+
+ // offset: 2; size: 6 * $nm; list of $nm row index structures
+ for ($i = 0; $i < $nm; ++$i) {
+ $c = $this->_GetInt2d($recordData, 2 + 6 * $i);
+ $rf = $this->_GetInt2d($recordData, 2 + 6 * $i + 2);
+ $rl = $this->_GetInt2d($recordData, 2 + 6 * $i + 4);
+
+ // not sure why two row indexes are necessary?
+ $this->_phpSheet->setBreakByColumnAndRow($c, $rf, PHPExcel_Worksheet::BREAK_COLUMN);
+ }
+ }
+ }
+
+ /**
+ * Read HEADER record
+ */
+ private function _readHeader()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: var
+ // realized that $recordData can be empty even when record exists
+ if ($recordData) {
+ if ($this->_version == self::XLS_BIFF8) {
+ $string = $this->_readUnicodeStringLong($recordData);
+ } else {
+ $string = $this->_readByteStringShort($recordData);
+ }
+
+ $this->_phpSheet->getHeaderFooter()->setOddHeader($string['value']);
+ $this->_phpSheet->getHeaderFooter()->setEvenHeader($string['value']);
+ }
+ }
+ }
+
+ /**
+ * Read FOOTER record
+ */
+ private function _readFooter()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: var
+ // realized that $recordData can be empty even when record exists
+ if ($recordData) {
+ if ($this->_version == self::XLS_BIFF8) {
+ $string = $this->_readUnicodeStringLong($recordData);
+ } else {
+ $string = $this->_readByteStringShort($recordData);
+ }
+ $this->_phpSheet->getHeaderFooter()->setOddFooter($string['value']);
+ $this->_phpSheet->getHeaderFooter()->setEvenFooter($string['value']);
+ }
+ }
+ }
+
+ /**
+ * Read HCENTER record
+ */
+ private function _readHcenter()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: 2; 0 = print sheet left aligned, 1 = print sheet centered horizontally
+ $isHorizontalCentered = (bool) $this->_GetInt2d($recordData, 0);
+
+ $this->_phpSheet->getPageSetup()->setHorizontalCentered($isHorizontalCentered);
+ }
+ }
+
+ /**
+ * Read VCENTER record
+ */
+ private function _readVcenter()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: 2; 0 = print sheet aligned at top page border, 1 = print sheet vertically centered
+ $isVerticalCentered = (bool) $this->_GetInt2d($recordData, 0);
+
+ $this->_phpSheet->getPageSetup()->setVerticalCentered($isVerticalCentered);
+ }
+ }
+
+ /**
+ * Read LEFTMARGIN record
+ */
+ private function _readLeftMargin()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: 8
+ $this->_phpSheet->getPageMargins()->setLeft($this->_extractNumber($recordData));
+ }
+ }
+
+ /**
+ * Read RIGHTMARGIN record
+ */
+ private function _readRightMargin()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: 8
+ $this->_phpSheet->getPageMargins()->setRight($this->_extractNumber($recordData));
+ }
+ }
+
+ /**
+ * Read TOPMARGIN record
+ */
+ private function _readTopMargin()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: 8
+ $this->_phpSheet->getPageMargins()->setTop($this->_extractNumber($recordData));
+ }
+ }
+
+ /**
+ * Read BOTTOMMARGIN record
+ */
+ private function _readBottomMargin()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: 8
+ $this->_phpSheet->getPageMargins()->setBottom($this->_extractNumber($recordData));
+ }
+ }
+
+ /**
+ * Read PAGESETUP record
+ */
+ private function _readPageSetup()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: 2; paper size
+ $paperSize = $this->_GetInt2d($recordData, 0);
+
+ // offset: 2; size: 2; scaling factor
+ $scale = $this->_GetInt2d($recordData, 2);
+
+ // offset: 6; size: 2; fit worksheet width to this number of pages, 0 = use as many as needed
+ $fitToWidth = $this->_GetInt2d($recordData, 6);
+
+ // offset: 8; size: 2; fit worksheet height to this number of pages, 0 = use as many as needed
+ $fitToHeight = $this->_GetInt2d($recordData, 8);
+
+ // offset: 10; size: 2; option flags
+
+ // bit: 1; mask: 0x0002; 0=landscape, 1=portrait
+ $isPortrait = (0x0002 & $this->_GetInt2d($recordData, 10)) >> 1;
+
+ // bit: 2; mask: 0x0004; 1= paper size, scaling factor, paper orient. not init
+ // when this bit is set, do not use flags for those properties
+ $isNotInit = (0x0004 & $this->_GetInt2d($recordData, 10)) >> 2;
+
+ if (!$isNotInit) {
+ $this->_phpSheet->getPageSetup()->setPaperSize($paperSize);
+ switch ($isPortrait) {
+ case 0: $this->_phpSheet->getPageSetup()->setOrientation(PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE); break;
+ case 1: $this->_phpSheet->getPageSetup()->setOrientation(PHPExcel_Worksheet_PageSetup::ORIENTATION_PORTRAIT); break;
+ }
+
+ if (!$this->_isFitToPages) {
+ $this->_phpSheet->getPageSetup()->setScale($scale);
+ } else {
+ $this->_phpSheet->getPageSetup()->setFitToWidth($fitToWidth);
+ $this->_phpSheet->getPageSetup()->setFitToHeight($fitToHeight);
+ }
+ }
+
+ // offset: 16; size: 8; header margin (IEEE 754 floating-point value)
+ $marginHeader = $this->_extractNumber(substr($recordData, 16, 8));
+ $this->_phpSheet->getPageMargins()->setHeader($marginHeader);
+
+ // offset: 24; size: 8; footer margin (IEEE 754 floating-point value)
+ $marginFooter = $this->_extractNumber(substr($recordData, 24, 8));
+ $this->_phpSheet->getPageMargins()->setFooter($marginFooter);
+ }
+ }
+
+ /**
+ * PROTECT - Sheet protection (BIFF2 through BIFF8)
+ * if this record is omitted, then it also means no sheet protection
+ */
+ private function _readProtect()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: 2;
+
+ // bit 0, mask 0x01; sheet protection
+ $isSheetProtected = (0x01 & $this->_GetInt2d($recordData, 0)) >> 0;
+ switch ($isSheetProtected) {
+ case 0: break;
+ case 1: $this->_phpSheet->getProtection()->setSheet(true); break;
+ }
+ }
+ }
+
+ /**
+ * PASSWORD - Sheet protection (hashed) password (BIFF2 through BIFF8)
+ */
+ private function _readPassword()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: 2; 16-bit hash value of password
+ $password = strtoupper(dechex($this->_GetInt2d($recordData, 0))); // the hashed password
+ $this->_phpSheet->getProtection()->setPassword($password, true);
+ }
+ }
+
+ /**
+ * Read DEFCOLWIDTH record
+ */
+ private function _readDefColWidth()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 2; default column width
+ $width = $this->_GetInt2d($recordData, 0);
+ if ($width != 8) {
+ $this->_phpSheet->getDefaultColumnDimension()->setWidth($width);
+ }
+ }
+
+ /**
+ * Read COLINFO record
+ */
+ private function _readColInfo()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: 2; index to first column in range
+ $fc = $this->_GetInt2d($recordData, 0); // first column index
+
+ // offset: 2; size: 2; index to last column in range
+ $lc = $this->_GetInt2d($recordData, 2); // first column index
+
+ // offset: 4; size: 2; width of the column in 1/256 of the width of the zero character
+ $width = $this->_GetInt2d($recordData, 4);
+
+ // offset: 6; size: 2; index to XF record for default column formatting
+ $xfIndex = $this->_GetInt2d($recordData, 6);
+
+ // offset: 8; size: 2; option flags
+
+ // bit: 0; mask: 0x0001; 1= columns are hidden
+ $isHidden = (0x0001 & $this->_GetInt2d($recordData, 8)) >> 0;
+
+ // bit: 10-8; mask: 0x0700; outline level of the columns (0 = no outline)
+ $level = (0x0700 & $this->_GetInt2d($recordData, 8)) >> 8;
+
+ // bit: 12; mask: 0x1000; 1 = collapsed
+ $isCollapsed = (0x1000 & $this->_GetInt2d($recordData, 8)) >> 12;
+
+ // offset: 10; size: 2; not used
+
+ for ($i = $fc; $i <= $lc; ++$i) {
+ if ($lc == 255 || $lc == 256) {
+ $this->_phpSheet->getDefaultColumnDimension()->setWidth($width / 256);
+ break;
+ }
+ $this->_phpSheet->getColumnDimensionByColumn($i)->setWidth($width / 256);
+ $this->_phpSheet->getColumnDimensionByColumn($i)->setVisible(!$isHidden);
+ $this->_phpSheet->getColumnDimensionByColumn($i)->setOutlineLevel($level);
+ $this->_phpSheet->getColumnDimensionByColumn($i)->setCollapsed($isCollapsed);
+ }
+ }
+ }
+
+ /**
+ * ROW
+ *
+ * This record contains the properties of a single row in a
+ * sheet. Rows and cells in a sheet are divided into blocks
+ * of 32 rows.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readRow()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: 2; index of this row
+ $r = $this->_GetInt2d($recordData, 0);
+
+ // offset: 2; size: 2; index to column of the first cell which is described by a cell record
+
+ // offset: 4; size: 2; index to column of the last cell which is described by a cell record, increased by 1
+
+ // offset: 6; size: 2;
+
+ // bit: 14-0; mask: 0x7FF; height of the row, in twips = 1/20 of a point
+ $height = (0x7FF & $this->_GetInt2d($recordData, 6)) >> 0;
+
+ // bit: 15: mask: 0x8000; 0 = row has custom height; 1= row has default height
+ $useDefaultHeight = (0x8000 & $this->_GetInt2d($recordData, 6)) >> 15;
+
+ if (!$useDefaultHeight) {
+ $this->_phpSheet->getRowDimension($r + 1)->setRowHeight($height / 20);
+ }
+
+ // offset: 8; size: 2; not used
+
+ // offset: 10; size: 2; not used in BIFF5-BIFF8
+
+ // offset: 12; size: 4; option flags and default row formatting
+
+ // bit: 2-0: mask: 0x00000007; outline level of the row
+ $level = (0x00000007 & $this->_GetInt4d($recordData, 12)) >> 0;
+ $this->_phpSheet->getRowDimension($r + 1)->setOutlineLevel($level);
+
+ // bit: 4; mask: 0x00000010; 1 = outline group start or ends here... and is collapsed
+ $isCollapsed = (0x00000010 & $this->_GetInt4d($recordData, 12)) >> 4;
+ $this->_phpSheet->getRowDimension($r + 1)->setCollapsed($isCollapsed);
+
+ // bit: 5; mask: 0x00000020; 1 = row is hidden
+ $isHidden = (0x00000020 & $this->_GetInt4d($recordData, 12)) >> 5;
+ $this->_phpSheet->getRowDimension($r + 1)->setVisible(!$isHidden);
+
+ // bit: 7; mask: 0x00000080; 1 = row has explicit default format
+ $hasDefaultFormat = (0x00000080 & $this->_GetInt4d($recordData, 12)) >> 7;
+
+ // bit: 27-16; mask: 0x0FFF0000; only applies when hasDefaultFormat = 1; index to XF record
+ $xfIndex = (0x0FFF0000 & $this->_GetInt4d($recordData, 12)) >> 16;
+ }
+ }
+
+ /**
+ * Read RK record
+ * This record represents a cell that contains an RK value
+ * (encoded integer or floating-point value). If a
+ * floating-point value cannot be encoded to an RK value,
+ * a NUMBER record will be written. This record replaces the
+ * record INTEGER written in BIFF2.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readRk()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 2; index to row
+ $row = $this->_GetInt2d($recordData, 0);
+
+ // offset: 2; size: 2; index to column
+ $column = $this->_GetInt2d($recordData, 2);
+ $columnString = PHPExcel_Cell::stringFromColumnIndex($column);
+
+ // Read cell?
+ if ( !is_null($this->getReadFilter()) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) {
+ // offset: 4; size: 2; index to XF record
+ $xfindex = $this->_GetInt2d($recordData, 4);
+
+ // offset: 6; size: 4; RK value
+ $rknum = $this->_GetInt4d($recordData, 6);
+ $numValue = $this->_GetIEEE754($rknum);
+
+ // add style information
+ if (!$this->_readDataOnly) {
+ $this->_phpSheet->getCell($columnString . ($row + 1))->setXfIndex($this->_mapCellXfIndex[$xfindex]);
+ }
+
+ // add cell
+ $this->_phpSheet->setCellValueExplicit($columnString . ($row + 1), $numValue, PHPExcel_Cell_DataType::TYPE_NUMERIC);
+ }
+ }
+
+ /**
+ * Read LABELSST record
+ * This record represents a cell that contains a string. It
+ * replaces the LABEL record and RSTRING record used in
+ * BIFF2-BIFF5.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readLabelSst()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 2; index to row
+ $row = $this->_GetInt2d($recordData, 0);
+
+ // offset: 2; size: 2; index to column
+ $column = $this->_GetInt2d($recordData, 2);
+ $columnString = PHPExcel_Cell::stringFromColumnIndex($column);
+
+ // Read cell?
+ if ( !is_null($this->getReadFilter()) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) {
+ // offset: 4; size: 2; index to XF record
+ $xfindex = $this->_GetInt2d($recordData, 4);
+
+ // offset: 6; size: 4; index to SST record
+ $index = $this->_GetInt4d($recordData, 6);
+
+ // add cell
+ if (($fmtRuns = $this->_sst[$index]['fmtRuns']) && !$this->_readDataOnly) {
+ // then we should treat as rich text
+ $richText = new PHPExcel_RichText($this->_phpSheet->getCell($columnString . ($row + 1)));
+ $charPos = 0;
+ for ($i = 0; $i <= count($this->_sst[$index]['fmtRuns']); ++$i) {
+ if (isset($fmtRuns[$i])) {
+ $text = mb_substr($this->_sst[$index]['value'], $charPos, $fmtRuns[$i]['charPos'] - $charPos, 'UTF-8');
+ $charPos = $fmtRuns[$i]['charPos'];
+ } else {
+ $text = mb_substr($this->_sst[$index]['value'], $charPos, mb_strlen($this->_sst[$index]['value']), 'UTF-8');
+ }
+
+ if (mb_strlen($text) > 0) {
+ if ($i == 0) { // first text run, no style
+ $richText->createText($text);
+ } else {
+ $textRun = $richText->createTextRun($text);
+ if (isset($fmtRuns[$i - 1])) {
+ if ($fmtRuns[$i - 1]['fontIndex'] < 4) {
+ $fontIndex = $fmtRuns[$i - 1]['fontIndex'];
+ } else {
+ // this has to do with that index 4 is omitted in all BIFF versions for some strange reason
+ // check the OpenOffice documentation of the FONT record
+ $fontIndex = $fmtRuns[$i - 1]['fontIndex'] - 1;
+ }
+ $textRun->setFont(clone $this->_objFonts[$fontIndex]);
+ }
+ }
+ }
+ }
+ } else {
+ $this->_phpSheet->setCellValueExplicit($columnString . ($row + 1), $this->_sst[$index]['value'], PHPExcel_Cell_DataType::TYPE_STRING);
+ }
+
+ // add style information
+ if (!$this->_readDataOnly) {
+ $this->_phpSheet->getCell($columnString . ($row + 1))->setXfIndex($this->_mapCellXfIndex[$xfindex]);
+ }
+ }
+ }
+
+ /**
+ * Read MULRK record
+ * This record represents a cell range containing RK value
+ * cells. All cells are located in the same row.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readMulRk()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 2; index to row
+ $row = $this->_GetInt2d($recordData, 0);
+
+ // offset: 2; size: 2; index to first column
+ $colFirst = $this->_GetInt2d($recordData, 2);
+
+ // offset: var; size: 2; index to last column
+ $colLast = $this->_GetInt2d($recordData, $length - 2);
+ $columns = $colLast - $colFirst + 1;
+
+ // offset within record data
+ $offset = 4;
+
+ for ($i = 0; $i < $columns; ++$i) {
+ $columnString = PHPExcel_Cell::stringFromColumnIndex($colFirst + $i);
+
+ // Read cell?
+ if ( !is_null($this->getReadFilter()) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) {
+
+ // offset: var; size: 2; index to XF record
+ $xfindex = $this->_GetInt2d($recordData, $offset);
+
+ // offset: var; size: 4; RK value
+ $numValue = $this->_GetIEEE754($this->_GetInt4d($recordData, $offset + 2));
+ if (!$this->_readDataOnly) {
+ // add style
+ $this->_phpSheet->getCell($columnString . ($row + 1))->setXfIndex($this->_mapCellXfIndex[$xfindex]);
+ }
+
+ // add cell value
+ $this->_phpSheet->setCellValueExplicit($columnString . ($row + 1), $numValue, PHPExcel_Cell_DataType::TYPE_NUMERIC);
+ }
+
+ $offset += 6;
+ }
+ }
+
+ /**
+ * Read NUMBER record
+ * This record represents a cell that contains a
+ * floating-point value.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readNumber()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 2; index to row
+ $row = $this->_GetInt2d($recordData, 0);
+
+ // offset: 2; size 2; index to column
+ $column = $this->_GetInt2d($recordData, 2);
+ $columnString = PHPExcel_Cell::stringFromColumnIndex($column);
+
+ // Read cell?
+ if ( !is_null($this->getReadFilter()) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) {
+ // offset 4; size: 2; index to XF record
+ $xfindex = $this->_GetInt2d($recordData, 4);
+
+ $numValue = $this->_extractNumber(substr($recordData, 6, 8));
+
+ // add cell style
+ if (!$this->_readDataOnly) {
+ $this->_phpSheet->getCell($columnString . ($row + 1))->setXfIndex($this->_mapCellXfIndex[$xfindex]);
+ }
+
+ // add cell value
+ $this->_phpSheet->setCellValueExplicit($columnString . ($row + 1), $numValue, PHPExcel_Cell_DataType::TYPE_NUMERIC);
+ }
+ }
+
+ /**
+ * Read FORMULA record + perhaps a following STRING record if formula result is a string
+ * This record contains the token array and the result of a
+ * formula cell.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readFormula()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 2; row index
+ $row = $this->_GetInt2d($recordData, 0);
+
+ // offset: 2; size: 2; col index
+ $column = $this->_GetInt2d($recordData, 2);
+ $columnString = PHPExcel_Cell::stringFromColumnIndex($column);
+
+ // Read cell?
+ if ( !is_null($this->getReadFilter()) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) {
+
+ // offset: 20: size: variable; formula structure
+ $formulaStructure = substr($recordData, 20);
+
+ // offset: 14: size: 2; option flags, recalculate always, recalculate on open etc.
+ $options = $this->_GetInt2d($recordData, 14);
+
+ // bit: 0; mask: 0x0001; 1 = recalculate always
+ // bit: 1; mask: 0x0002; 1 = calculate on open
+ // bit: 2; mask: 0x0008; 1 = part of a shared formula
+ $isPartOfSharedFormula = (bool) (0x0008 & $options);
+ if ($isPartOfSharedFormula) {
+ // part of shared formula which means there will be a formula with a tExp token and nothing else
+ // get the base cell, grab tExp token
+ $baseRow = $this->_GetInt2d($formulaStructure, 3);
+ $baseCol = $this->_GetInt2d($formulaStructure, 5);
+ $this->_baseCell = PHPExcel_Cell::stringFromColumnIndex($baseCol). ($baseRow + 1);
+
+ // formula is added to this cell after the sheet has been read
+ $this->_sharedFormulaParts[$columnString . ($row + 1)] = $this->_baseCell;
+ }
+
+ // offset: 16: size: 4; not used
+
+ // offset: 4; size: 2; XF index
+ $xfindex = $this->_GetInt2d($recordData, 4);
+
+ // offset: 6; size: 8; result of the formula
+ if ( (ord($recordData{6}) == 0)
+ && (ord($recordData{12}) == 255)
+ && (ord($recordData{13}) == 255) ) {
+
+ // String formula. Result follows in appended STRING record
+ $dataType = PHPExcel_Cell_DataType::TYPE_STRING;
+
+ // read possible SHAREDFMLA record
+ $code = $this->_GetInt2d($this->_data, $this->_pos);
+ if ($code == self::XLS_Type_SHAREDFMLA) {
+ $this->_readSharedFmla();
+ }
+
+ // read STRING record
+ $value = $this->_readString();
+
+ } elseif ((ord($recordData{6}) == 1)
+ && (ord($recordData{12}) == 255)
+ && (ord($recordData{13}) == 255)) {
+
+ // Boolean formula. Result is in +2; 0=false, 1=true
+ $dataType = PHPExcel_Cell_DataType::TYPE_BOOL;
+ $value = (bool) ord($recordData{8});
+
+ } elseif ((ord($recordData{6}) == 2)
+ && (ord($recordData{12}) == 255)
+ && (ord($recordData{13}) == 255)) {
+
+ // Error formula. Error code is in +2
+ $dataType = PHPExcel_Cell_DataType::TYPE_ERROR;
+ $value = $this->_mapErrorCode(ord($recordData{8}));
+
+ } elseif ((ord($recordData{6}) == 3)
+ && (ord($recordData{12}) == 255)
+ && (ord($recordData{13}) == 255)) {
+
+ // Formula result is a null string
+ $dataType = PHPExcel_Cell_DataType::TYPE_NULL;
+ $value = '';
+
+ } else {
+
+ // forumla result is a number, first 14 bytes like _NUMBER record
+ $dataType = PHPExcel_Cell_DataType::TYPE_NUMERIC;
+ $value = $this->_extractNumber(substr($recordData, 6, 8));
+
+ }
+
+ // add cell style
+ if (!$this->_readDataOnly) {
+ $this->_phpSheet->getCell($columnString . ($row + 1))->setXfIndex($this->_mapCellXfIndex[$xfindex]);
+ }
+
+ // store the formula
+ if (!$isPartOfSharedFormula) {
+ // not part of shared formula
+ // add cell value. If we can read formula, populate with formula, otherwise just used cached value
+ try {
+ if ($this->_version != self::XLS_BIFF8) {
+ throw new Exception('Not BIFF8. Can only read BIFF8 formulas');
+ }
+ $formula = $this->_getFormulaFromStructure($formulaStructure); // get formula in human language
+ $this->_phpSheet->getCell($columnString . ($row + 1))->setValueExplicit('=' . $formula, PHPExcel_Cell_DataType::TYPE_FORMULA);
+
+ } catch (Exception $e) {
+ $this->_phpSheet->setCellValueExplicit($columnString . ($row + 1), $value, $dataType);
+ }
+ } else {
+ if ($this->_version == self::XLS_BIFF8) {
+ // do nothing at this point, formula id added later in the code
+ } else {
+ $this->_phpSheet->setCellValueExplicit($columnString . ($row + 1), $value, $dataType);
+ }
+ }
+
+ // store the cached calculated value
+ $this->_phpSheet->getCell($columnString . ($row + 1))->setCalculatedValue($value);
+ }
+ }
+
+ /**
+ * Read a SHAREDFMLA record. This function just stores the binary shared formula in the reader,
+ * which usually contains relative references.
+ * These will be used to construct the formula in each shared formula part after the sheet is read.
+ */
+ private function _readSharedFmla()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0, size: 6; cell range address of the area used by the shared formula, not used for anything
+ $cellRange = substr($recordData, 0, 6);
+ $cellRange = $this->_readBIFF5CellRangeAddressFixed($cellRange); // note: even BIFF8 uses BIFF5 syntax
+
+ // offset: 6, size: 1; not used
+
+ // offset: 7, size: 1; number of existing FORMULA records for this shared formula
+ $no = ord($recordData{7});
+
+ // offset: 8, size: var; Binary token array of the shared formula
+ $formula = substr($recordData, 8);
+
+ // at this point we only store the shared formula for later use
+ $this->_sharedFormulas[$this->_baseCell] = $formula;
+
+ }
+
+ /**
+ * Read a STRING record from current stream position and advance the stream pointer to next record
+ * This record is used for storing result from FORMULA record when it is a string, and
+ * it occurs directly after the FORMULA record
+ *
+ * @return string The string contents as UTF-8
+ */
+ private function _readString()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if ($this->_version == self::XLS_BIFF8) {
+ $string = $this->_readUnicodeStringLong($recordData);
+ $value = $string['value'];
+ } else {
+ $string = $this->_readByteStringLong($recordData);
+ $value = $string['value'];
+ }
+
+ return $value;
+ }
+
+ /**
+ * Read BOOLERR record
+ * This record represents a Boolean value or error value
+ * cell.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readBoolErr()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 2; row index
+ $row = $this->_GetInt2d($recordData, 0);
+
+ // offset: 2; size: 2; column index
+ $column = $this->_GetInt2d($recordData, 2);
+ $columnString = PHPExcel_Cell::stringFromColumnIndex($column);
+
+ // Read cell?
+ if ( !is_null($this->getReadFilter()) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) {
+ // offset: 4; size: 2; index to XF record
+ $xfindex = $this->_GetInt2d($recordData, 4);
+
+ // offset: 6; size: 1; the boolean value or error value
+ $boolErr = ord($recordData{6});
+
+ // offset: 7; size: 1; 0=boolean; 1=error
+ $isError = ord($recordData{7});
+
+ switch ($isError) {
+ case 0: // boolean
+ $value = (bool) $boolErr;
+
+ // add cell value
+ $this->_phpSheet->getCell($columnString . ($row + 1))->setValueExplicit($value, PHPExcel_Cell_DataType::TYPE_BOOL);
+ break;
+
+ case 1: // error type
+ $value = $this->_mapErrorCode($boolErr);
+
+ // add cell value
+ $this->_phpSheet->getCell($columnString . ($row + 1))->setValueExplicit($value, PHPExcel_Cell_DataType::TYPE_ERROR);
+ break;
+ }
+
+ // add cell style
+ if (!$this->_readDataOnly) {
+ $this->_phpSheet->getCell($columnString . ($row + 1))->setXfIndex($this->_mapCellXfIndex[$xfindex]);
+ }
+ }
+ }
+
+ /**
+ * Read MULBLANK record
+ * This record represents a cell range of empty cells. All
+ * cells are located in the same row
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readMulBlank()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 2; index to row
+ $row = $this->_GetInt2d($recordData, 0);
+
+ // offset: 2; size: 2; index to first column
+ $fc = $this->_GetInt2d($recordData, 2);
+
+ // offset: 4; size: 2 x nc; list of indexes to XF records
+ // add style information
+ if (!$this->_readDataOnly) {
+ for ($i = 0; $i < $length / 2 - 3; ++$i) {
+ $columnString = PHPExcel_Cell::stringFromColumnIndex($fc + $i);
+
+ // Read cell?
+ if ( !is_null($this->getReadFilter()) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) {
+ $xfindex = $this->_GetInt2d($recordData, 4 + 2 * $i);
+ $this->_phpSheet->getCell($columnString . ($row + 1))->setXfIndex($this->_mapCellXfIndex[$xfindex]);
+ }
+ }
+ }
+
+ // offset: 6; size 2; index to last column (not needed)
+ }
+
+ /**
+ * Read LABEL record
+ * This record represents a cell that contains a string. In
+ * BIFF8 it is usually replaced by the LABELSST record.
+ * Excel still uses this record, if it copies unformatted
+ * text cells to the clipboard.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readLabel()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 2; index to row
+ $row = $this->_GetInt2d($recordData, 0);
+
+ // offset: 2; size: 2; index to column
+ $column = $this->_GetInt2d($recordData, 2);
+ $columnString = PHPExcel_Cell::stringFromColumnIndex($column);
+
+ // Read cell?
+ if ( !is_null($this->getReadFilter()) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) {
+ // offset: 4; size: 2; XF index
+ $xfindex = $this->_GetInt2d($recordData, 4);
+
+ // add cell value
+ // todo: what if string is very long? continue record
+ if ($this->_version == self::XLS_BIFF8) {
+ $string = $this->_readUnicodeStringLong(substr($recordData, 6));
+ $value = $string['value'];
+ } else {
+ $string = $this->_readByteStringLong(substr($recordData, 6));
+ $value = $string['value'];
+ }
+ $this->_phpSheet->setCellValueExplicit($columnString . ($row + 1), $value, PHPExcel_Cell_DataType::TYPE_STRING);
+
+ // add cell style
+ if (!$this->_readDataOnly) {
+ $this->_phpSheet->getCell($columnString . ($row + 1))->setXfIndex($this->_mapCellXfIndex[$xfindex]);
+ }
+ }
+ }
+
+ /**
+ * Read BLANK record
+ */
+ private function _readBlank()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 2; row index
+ $row = $this->_GetInt2d($recordData, 0);
+
+ // offset: 2; size: 2; col index
+ $col = $this->_GetInt2d($recordData, 2);
+ $columnString = PHPExcel_Cell::stringFromColumnIndex($col);
+
+ // Read cell?
+ if ( !is_null($this->getReadFilter()) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->_phpSheet->getTitle()) ) {
+ // offset: 4; size: 2; XF index
+ $xfindex = $this->_GetInt2d($recordData, 4);
+
+ // add style information
+ if (!$this->_readDataOnly) {
+ $this->_phpSheet->getCell($columnString . ($row + 1))->setXfIndex($this->_mapCellXfIndex[$xfindex]);
+ }
+ }
+
+ }
+
+ /**
+ * Read MSODRAWING record
+ */
+ private function _readMsoDrawing()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ $this->_drawingData .= $recordData;
+ }
+
+ /**
+ * Read OBJ record
+ */
+ private function _readObj()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if ($this->_readDataOnly || $this->_version != self::XLS_BIFF8) {
+ return;
+ }
+
+ // recordData consists of an array of subrecords looking like this:
+ // ft: 2 bytes; id number
+ // cb: 2 bytes; size in bytes of following data
+ // data: var; subrecord data
+
+ // for now, we are just interested in the second subrecord containing the object type
+ $ot = $this->_GetInt2d($recordData, 4);
+
+ $this->_objs[] = array(
+ 'type' => $ot,
+ );
+ }
+
+ /**
+ * Read WINDOW2 record
+ */
+ private function _readWindow2()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 2; option flags
+ $options = $this->_GetInt2d($recordData, 0);
+
+ // bit: 1; mask: 0x0002; 0 = do not show gridlines, 1 = show gridlines
+ $showGridlines = (bool) ((0x0002 & $options) >> 1);
+ $this->_phpSheet->setShowGridlines($showGridlines);
+
+ // bit: 3; mask: 0x0008; 0 = panes are not frozen, 1 = panes are frozen
+ $this->_frozen = (bool) ((0x0008 & $options) >> 3);
+
+ // bit: 6; mask: 0x0040; 0 = columns from left to right, 1 = columns from right to left
+ $this->_phpSheet->setRightToLeft((bool)((0x0040 & $options) >> 6));
+
+ // bit: 10; mask: 0x0400; 0 = sheet not active, 1 = sheet active
+ $isActive = (bool) ((0x0400 & $options) >> 10);
+ if ($isActive) {
+ $this->_phpExcel->setActiveSheetIndex($this->_phpExcel->getIndex($this->_phpSheet));
+ }
+ }
+
+ /**
+ * Read SCL record
+ */
+ private function _readScl()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // offset: 0; size: 2; numerator of the view magnification
+ $numerator = $this->_GetInt2d($recordData, 0);
+
+ // offset: 2; size: 2; numerator of the view magnification
+ $denumerator = $this->_GetInt2d($recordData, 2);
+
+ // set the zoom scale (in percent)
+ $this->_phpSheet->getSheetView()->setZoomScale($numerator * 100 / $denumerator);
+ }
+
+ /**
+ * Read PANE record
+ */
+ private function _readPane()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: 2; position of vertical split
+ $px = $this->_GetInt2d($recordData, 0);
+
+ // offset: 2; size: 2; position of horizontal split
+ $py = $this->_GetInt2d($recordData, 2);
+
+ if ($this->_frozen) {
+ // frozen panes
+ $this->_phpSheet->freezePane(PHPExcel_Cell::stringFromColumnIndex($px) . ($py + 1));
+ } else {
+ // unfrozen panes; split windows; not supported by PHPExcel core
+ }
+ }
+ }
+
+ /**
+ * MERGEDCELLS
+ *
+ * This record contains the addresses of merged cell ranges
+ * in the current sheet.
+ *
+ * -- "OpenOffice.org's Documentation of the Microsoft
+ * Excel File Format"
+ */
+ private function _readMergedCells()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ if ($this->_version == self::XLS_BIFF8 && !$this->_readDataOnly) {
+ $cellRangeAddressList = $this->_readBIFF8CellRangeAddressList($recordData);
+ foreach ($cellRangeAddressList['cellRangeAddresses'] as $cellRangeAddress) {
+ $this->_phpSheet->mergeCells($cellRangeAddress);
+ }
+ }
+ }
+
+ /**
+ * Read HYPERLINK record
+ */
+ private function _readHyperLink()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer forward to next record
+ $this->_pos += 4 + $length;
+
+ if (!$this->_readDataOnly) {
+ // offset: 0; size: 8; cell range address of all cells containing this hyperlink
+ try {
+ $cellRange = $this->_readBIFF8CellRangeAddressFixed($recordData, 0, 8);
+ } catch (Exception $e) {
+ return;
+ }
+
+ // offset: 8, size: 16; GUID of StdLink
+
+ // offset: 24, size: 4; unknown value
+
+ // offset: 28, size: 4; option flags
+
+ // bit: 0; mask: 0x00000001; 0 = no link or extant, 1 = file link or URL
+ $isFileLinkOrUrl = (0x00000001 & $this->_GetInt2d($recordData, 28)) >> 0;
+
+ // bit: 1; mask: 0x00000002; 0 = relative path, 1 = absolute path or URL
+ $isAbsPathOrUrl = (0x00000001 & $this->_GetInt2d($recordData, 28)) >> 1;
+
+ // bit: 2 (and 4); mask: 0x00000014; 0 = no description
+ $hasDesc = (0x00000014 & $this->_GetInt2d($recordData, 28)) >> 2;
+
+ // bit: 3; mask: 0x00000008; 0 = no text, 1 = has text
+ $hasText = (0x00000008 & $this->_GetInt2d($recordData, 28)) >> 3;
+
+ // bit: 7; mask: 0x00000080; 0 = no target frame, 1 = has target frame
+ $hasFrame = (0x00000080 & $this->_GetInt2d($recordData, 28)) >> 7;
+
+ // bit: 8; mask: 0x00000100; 0 = file link or URL, 1 = UNC path (inc. server name)
+ $isUNC = (0x00000100 & $this->_GetInt2d($recordData, 28)) >> 8;
+
+ // offset within record data
+ $offset = 32;
+
+ if ($hasDesc) {
+ // offset: 32; size: var; character count of description text
+ $dl = $this->_GetInt4d($recordData, 32);
+ // offset: 36; size: var; character array of description text, no Unicode string header, always 16-bit characters, zero terminated
+ $desc = $this->_encodeUTF16(substr($recordData, 36, 2 * ($dl - 1)), false);
+ $offset += 4 + 2 * $dl;
+ }
+ if ($hasFrame) {
+ $fl = $this->_GetInt4d($recordData, $offset);
+ $offset += 4 + 2 * $fl;
+ }
+
+ // detect type of hyperlink (there are 4 types)
+ $hyperlinkType = null;
+
+ if ($isUNC) {
+ $hyperlinkType = 'UNC';
+ } else if (!$isFileLinkOrUrl) {
+ $hyperlinkType = 'workbook';
+ } else if (ord($recordData{$offset}) == 0x03) {
+ $hyperlinkType = 'local';
+ } else if (ord($recordData{$offset}) == 0xE0) {
+ $hyperlinkType = 'URL';
+ }
+
+ switch ($hyperlinkType) {
+ case 'URL':
+ // offset: var; size: 16; GUID of URL Moniker
+ $offset += 16;
+ // offset: var; size: 4; size (in bytes) of character array of the URL including trailing zero word
+ $us = $this->_GetInt4d($recordData, $offset);
+ $offset += 4;
+ // offset: var; size: $us; character array of the URL, no Unicode string header, always 16-bit characters, zero-terminated
+ $url = $this->_encodeUTF16(substr($recordData, $offset, $us - 2), false);
+ $url .= $hasText ? '#' : '';
+ $offset += $us;
+ break;
+
+ case 'workbook':
+ // section 5.58.5: Hyperlink to the Current Workbook
+ // e.g. Sheet2!B1:C2, stored in text mark field
+ $url = 'sheet://';
+ break;
+
+ case 'local':
+ // section 5.58.2: Hyperlink containing a URL
+ // e.g. http://example.org/index.php
+ // todo: implement
+
+ case 'UNC':
+ // section 5.58.4: Hyperlink to a File with UNC (Universal Naming Convention) Path
+ // todo: implement
+
+ default:
+ return;
+
+ }
+
+ if ($hasText) {
+ // offset: var; size: 4; character count of text mark including trailing zero word
+ $tl = $this->_GetInt4d($recordData, $offset);
+ $offset += 4;
+ // offset: var; size: var; character array of the text mark without the # sign, no Unicode header, always 16-bit characters, zero-terminated
+ $text = $this->_encodeUTF16(substr($recordData, $offset, 2 * ($tl - 1)), false);
+ $url .= $text;
+ }
+
+ // apply the hyperlink to all the relevant cells
+ foreach (PHPExcel_Cell::extractAllCellReferencesInRange($cellRange) as $coordinate) {
+ $this->_phpSheet->getCell($coordinate)->getHyperLink()->setUrl($url);
+ }
+ }
+ }
+
+ /**
+ * Read RANGEPROTECTION record
+ * Reading of this record is based on Microsoft Office Excel 97-2000 Binary File Format Specification,
+ * where it is referred to as FEAT record
+ */
+ private function _readRangeProtection()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // local pointer in record data
+ $offset = 0;
+
+ if (!$this->_readDataOnly) {
+ $offset += 12;
+
+ // offset: 12; size: 2; shared feature type, 2 = enhanced protection, 4 = smart tag
+ $isf = $this->_GetInt2d($recordData, 12);
+ if ($isf != 2) {
+ // we only read FEAT records of type 2
+ return;
+ }
+ $offset += 2;
+
+ $offset += 5;
+
+ // offset: 19; size: 2; count of ref ranges this feature is on
+ $cref = $this->_GetInt2d($recordData, 19);
+ $offset += 2;
+
+ $offset += 6;
+
+ // offset: 27; size: 8 * $cref; list of cell ranges (like in hyperlink record)
+ $cellRanges = array();
+ for ($i = 0; $i < $cref; ++$i) {
+ try {
+ $cellRange = $this->_readBIFF8CellRangeAddressFixed(substr($recordData, 27 + 8 * $i, 8));
+ } catch (Exception $e) {
+ return;
+ }
+ $cellRanges[] = $cellRange;
+ $offset += 8;
+ }
+
+ // offset: var; size: var; variable length of feature specific data
+ $rgbFeat = substr($recordData, $offset);
+ $offset += 4;
+
+ // offset: var; size: 4; the encrypted password (only 16-bit although field is 32-bit)
+ $wPassword = $this->_GetInt4d($recordData, $offset);
+ $offset += 4;
+
+ // Apply range protection to sheet
+ if ($cellRanges) {
+ $this->_phpSheet->protectCells(implode(' ', $cellRanges), strtoupper(dechex($wPassword)), true);
+ }
+ }
+ }
+
+ /**
+ * Read IMDATA record
+ */
+ private function _readImData()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+
+ // get spliced record data
+ $splicedRecordData = $this->_getSplicedRecordData();
+ $recordData = $splicedRecordData['recordData'];
+
+ // UNDER CONSTRUCTION
+
+ // offset: 0; size: 2; image format
+ $cf = $this->_GetInt2d($recordData, 0);
+
+ // offset: 2; size: 2; environment from which the file was written
+ $env = $this->_GetInt2d($recordData, 2);
+
+ // offset: 4; size: 4; length of the image data
+ $lcb = $this->_GetInt4d($recordData, 4);
+
+ // offset: 8; size: var; image data
+ $iData = substr($recordData, 8);
+
+ switch ($cf) {
+ case 0x09: // Windows bitmap format
+ // BITMAPCOREINFO
+ // 1. BITMAPCOREHEADER
+ // offset: 0; size: 4; bcSize, Specifies the number of bytes required by the structure
+ $bcSize = $this->_GetInt4d($iData, 0);
+ var_dump($bcSize);
+
+ // offset: 4; size: 2; bcWidth, specifies the width of the bitmap, in pixels
+ $bcWidth = $this->_GetInt2d($iData, 4);
+ var_dump($bcWidth);
+
+ // offset: 6; size: 2; bcHeight, specifies the height of the bitmap, in pixels.
+ $bcHeight = $this->_GetInt2d($iData, 6);
+ var_dump($bcHeight);
+ $ih = imagecreatetruecolor($bcWidth, $bcHeight);
+
+ // offset: 8; size: 2; bcPlanes, specifies the number of planes for the target device. This value must be 1
+
+ // offset: 10; size: 2; bcBitCount specifies the number of bits-per-pixel. This value must be 1, 4, 8, or 24
+ $bcBitCount = $this->_GetInt2d($iData, 10);
+ var_dump($bcBitCount);
+
+ $rgbString = substr($iData, 12);
+ $rgbTriples = array();
+ while (strlen($rgbString) > 0) {
+ $rgbTriples[] = unpack('Cb/Cg/Cr', $rgbString);
+ $rgbString = substr($rgbString, 3);
+ }
+ $x = 0;
+ $y = 0;
+ foreach ($rgbTriples as $i => $rgbTriple) {
+ $color = imagecolorallocate($ih, $rgbTriple['r'], $rgbTriple['g'], $rgbTriple['b']);
+ imagesetpixel($ih, $x, $bcHeight - 1 - $y, $color);
+ $x = ($x + 1) % $bcWidth;
+ $y = $y + floor(($x + 1) / $bcWidth);
+ }
+ //imagepng($ih, 'image.png');
+
+ $drawing = new PHPExcel_Worksheet_Drawing();
+ $drawing->setPath($filename);
+ $drawing->setWorksheet($this->_phpSheet);
+
+ break;
+
+ case 0x02: // Windows metafile or Macintosh PICT format
+ case 0x0e: // native format
+ default;
+ break;
+
+ }
+
+ // _getSplicedRecordData() takes care of moving current position in data stream
+ }
+
+ /**
+ * Read a free CONTINUE record. Free CONTINUE record may be a camouflaged MSODRAWING record
+ * When MSODRAWING data on a sheet exceeds 8224 bytes, CONTINUE records are used instead. Undocumented.
+ * In this case, we must treat the CONTINUE record as a MSODRAWING record
+ */
+ private function _readContinue()
+ {
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $recordData = substr($this->_data, $this->_pos + 4, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 4 + $length;
+
+ // check if we are reading drawing data
+ // this is in case a free CONTINUE record occurs in other circumstances we are unaware of
+ if ($this->_drawingData == '') {
+ return;
+ }
+
+ // check if record data is at least 4 bytes long, otherwise there is no chance this is MSODRAWING data
+ if (strlen($recordData) < 4) {
+ return;
+ }
+
+ // dirty check to see if CONTINUE record could be a camouflaged MSODRAWING record
+ // look inside CONTINUE record to see if it looks like a part of an Escher stream
+ // we know that Escher stream may be split at least at
+ // 0xF004 MsofbtSpContainer
+ // 0xF00D MsofbtClientTextbox
+ $validSplitPoints = array(0xF004, 0xF00D); // add identifiers if we find more
+
+ $splitPoint = $this->_GetInt2d($recordData, 2);
+ if (in_array($splitPoint, $validSplitPoints)) {
+ $this->_drawingData .= $recordData;
+ }
+ }
+
+
+ /**
+ * Reads a record from current position in data stream and continues reading data as long as CONTINUE
+ * records are found. Splices the record data pieces and returns the combined string as if record data
+ * is in one piece.
+ * Moves to next current position in data stream to start of next record different from a CONtINUE record
+ *
+ * @return array
+ */
+ private function _getSplicedRecordData()
+ {
+ $data = '';
+ $spliceOffsets = array();
+
+ $i = 0;
+ $spliceOffsets[0] = 0;
+
+ do {
+ ++$i;
+
+ // offset: 0; size: 2; identifier
+ $identifier = $this->_GetInt2d($this->_data, $this->_pos);
+ // offset: 2; size: 2; length
+ $length = $this->_GetInt2d($this->_data, $this->_pos + 2);
+ $data .= substr($this->_data, $this->_pos + 4, $length);
+
+ $spliceOffsets[$i] = $spliceOffsets[$i - 1] + $length;
+
+ $this->_pos += 4 + $length;
+ $nextIdentifier = $this->_GetInt2d($this->_data, $this->_pos);
+ }
+ while ($nextIdentifier == self::XLS_Type_CONTINUE);
+
+ $splicedData = array(
+ 'recordData' => $data,
+ 'spliceOffsets' => $spliceOffsets,
+ );
+
+ return $splicedData;
+
+ }
+
+ /**
+ * Convert formula structure into human readable Excel formula like 'A3+A5*5'
+ *
+ * @param string $formulaStructure The complete binary data for the formula
+ * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas
+ * @return string Human readable formula
+ */
+ private function _getFormulaFromStructure($formulaStructure, $baseCell = 'A1')
+ {
+ // offset: 0; size: 2; size of the following formula data
+ $sz = $this->_GetInt2d($formulaStructure, 0);
+
+ // offset: 2; size: sz
+ $formulaData = substr($formulaStructure, 2, $sz);
+
+ // for debug: dump the formula data
+ //echo '';
+ //echo 'size: ' . $sz . "\n";
+ //echo 'the entire formula data: ';
+ //Debug::dump($formulaData);
+ //echo "\n----\n";
+
+ // offset: 2 + sz; size: variable (optional)
+ if (strlen($formulaStructure) > 2 + $sz) {
+ $additionalData = substr($formulaStructure, 2 + $sz);
+
+ // for debug: dump the additional data
+ //echo 'the entire additional data: ';
+ //Debug::dump($additionalData);
+ //echo "\n----\n";
+
+ } else {
+ $additionalData = '';
+ }
+
+ return $this->_getFormulaFromData($formulaData, $additionalData, $baseCell);
+ }
+
+ /**
+ * Take formula data and additional data for formula and return human readable formula
+ *
+ * @param string $formulaData The binary data for the formula itself
+ * @param string $additionalData Additional binary data going with the formula
+ * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas
+ * @return string Human readable formula
+ */
+ private function _getFormulaFromData($formulaData, $additionalData = '', $baseCell = 'A1')
+ {
+ // start parsing the formula data
+ $tokens = array();
+
+ while (strlen($formulaData) > 0 and $token = $this->_getNextToken($formulaData, $baseCell)) {
+ $tokens[] = $token;
+ $formulaData = substr($formulaData, $token['size']);
+
+ // for debug: dump the token
+ //var_dump($token);
+ }
+
+ $formulaString = $this->_createFormulaFromTokens($tokens, $additionalData);
+
+ return $formulaString;
+ }
+
+ /**
+ * Take array of tokens together with additional data for formula and return human readable formula
+ *
+ * @param array $tokens
+ * @param array $additionalData Additional binary data going with the formula
+ * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas
+ * @return string Human readable formula
+ */
+ private function _createFormulaFromTokens($tokens, $additionalData)
+ {
+ // empty formula?
+ if (count($tokens) == 0) {
+ return '';
+ }
+
+ $formulaStrings = array();
+ foreach ($tokens as $token) {
+ // initialize spaces
+ $space0 = isset($space0) ? $space0 : ''; // spaces before next token, not tParen
+ $space1 = isset($space1) ? $space1 : ''; // carriage returns before next token, not tParen
+ $space2 = isset($space2) ? $space2 : ''; // spaces before opening parenthesis
+ $space3 = isset($space3) ? $space3 : ''; // carriage returns before opening parenthesis
+ $space4 = isset($space4) ? $space4 : ''; // spaces before closing parenthesis
+ $space5 = isset($space5) ? $space5 : ''; // carriage returns before closing parenthesis
+
+ switch ($token['name']) {
+ case 'tAdd': // addition
+ case 'tConcat': // addition
+ case 'tDiv': // division
+ case 'tEQ': // equaltiy
+ case 'tGE': // greater than or equal
+ case 'tGT': // greater than
+ case 'tIsect': // intersection
+ case 'tLE': // less than or equal
+ case 'tList': // less than or equal
+ case 'tLT': // less than
+ case 'tMul': // multiplication
+ case 'tNE': // multiplication
+ case 'tPower': // power
+ case 'tRange': // range
+ case 'tSub': // subtraction
+ $op2 = array_pop($formulaStrings);
+ $op1 = array_pop($formulaStrings);
+ $formulaStrings[] = "$op1$space1$space0{$token['data']}$op2";
+ unset($space0, $space1);
+ break;
+ case 'tUplus': // unary plus
+ case 'tUminus': // unary minus
+ $op = array_pop($formulaStrings);
+ $formulaStrings[] = "$space1$space0{$token['data']}$op";
+ unset($space0, $space1);
+ break;
+ case 'tPercent': // percent sign
+ $op = array_pop($formulaStrings);
+ $formulaStrings[] = "$op$space1$space0{$token['data']}";
+ unset($space0, $space1);
+ break;
+ case 'tAttrVolatile': // indicates volatile function
+ case 'tAttrIf':
+ case 'tAttrSkip':
+ case 'tAttrChoose':
+ // token is only important for Excel formula evaluator
+ // do nothing
+ break;
+ case 'tAttrSpace': // space / carriage return
+ // space will be used when next token arrives, do not alter formulaString stack
+ switch ($token['data']['spacetype']) {
+ case 'type0':
+ $space0 = str_repeat(' ', $token['data']['spacecount']);
+ break;
+ case 'type1':
+ $space1 = str_repeat("\n", $token['data']['spacecount']);
+ break;
+ case 'type2':
+ $space2 = str_repeat(' ', $token['data']['spacecount']);
+ break;
+ case 'type3':
+ $space3 = str_repeat("\n", $token['data']['spacecount']);
+ break;
+ case 'type4':
+ $space4 = str_repeat(' ', $token['data']['spacecount']);
+ break;
+ case 'type5':
+ $space5 = str_repeat("\n", $token['data']['spacecount']);
+ break;
+ }
+ break;
+ case 'tAttrSum': // SUM function with one parameter
+ $op = array_pop($formulaStrings);
+ $formulaStrings[] = "{$space1}{$space0}SUM($op)";
+ unset($space0, $space1);
+ break;
+ case 'tFunc': // function with fixed number of arguments
+ case 'tFuncV': // function with variable number of arguments
+ $ops = array(); // array of operators
+ for ($i = 0; $i < $token['data']['args']; ++$i) {
+ $ops[] = array_pop($formulaStrings);
+ }
+ $ops = array_reverse($ops);
+ $formulaStrings[] = "$space1$space0{$token['data']['function']}(" . implode(',', $ops) . ")";
+ unset($space0, $space1);
+ break;
+ case 'tParen': // parenthesis
+ $expression = array_pop($formulaStrings);
+ $formulaStrings[] = "$space3$space2($expression$space5$space4)";
+ unset($space2, $space3, $space4, $space5);
+ break;
+ case 'tArray': // array constant
+ $constantArray = $this->_readBIFF8ConstantArray($additionalData);
+ $formulaStrings[] = $space1 . $space0 . $constantArray['value'];
+ $additionalData = substr($additionalData, $constantArray['size']); // bite of chunk of additional data
+ unset($space0, $space1);
+ break;
+ case 'tMemArea':
+ // bite off chunk of additional data
+ $cellRangeAddressList = $this->_readBIFF8CellRangeAddressList($additionalData);
+ $additionalData = substr($additionalData, $cellRangeAddressList['size']);
+ $formulaStrings[] = "$space1$space0{$token['data']}";
+ unset($space0, $space1);
+ break;
+ case 'tArea': // cell range address
+ case 'tBool': // boolean
+ case 'tErr': // error code
+ case 'tInt': // integer
+ case 'tMemErr':
+ case 'tMemFunc':
+ case 'tMissArg':
+ case 'tName':
+ case 'tNum': // number
+ case 'tRef': // single cell reference
+ case 'tRef3d': // 3d cell reference
+ case 'tArea3d': // 3d cell range reference
+ case 'tRefN':
+ case 'tStr': // string
+ $formulaStrings[] = "$space1$space0{$token['data']}";
+ unset($space0, $space1);
+ break;
+ }
+ }
+ $formulaString = $formulaStrings[0];
+
+ // for debug: dump the human readable formula
+ //echo '----' . "\n";
+ //echo 'Formula: ' . $formulaString;
+
+ return $formulaString;
+ }
+
+ /**
+ * Fetch next token from binary formula data
+ *
+ * @param string Formula data
+ * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas
+ * @return array
+ * @throws Exception
+ */
+ private function _getNextToken($formulaData, $baseCell = 'A1')
+ {
+ // offset: 0; size: 1; token id
+ $id = ord($formulaData[0]); // token id
+ $name = false; // initialize token name
+
+ switch ($id) {
+ case 0x03: $name = 'tAdd'; $size = 1; $data = '+'; break;
+ case 0x04: $name = 'tSub'; $size = 1; $data = '-'; break;
+ case 0x05: $name = 'tMul'; $size = 1; $data = '*'; break;
+ case 0x06: $name = 'tDiv'; $size = 1; $data = '/'; break;
+ case 0x07: $name = 'tPower'; $size = 1; $data = '^'; break;
+ case 0x08: $name = 'tConcat'; $size = 1; $data = '&'; break;
+ case 0x09: $name = 'tLT'; $size = 1; $data = '<'; break;
+ case 0x0A: $name = 'tLE'; $size = 1; $data = '<='; break;
+ case 0x0B: $name = 'tEQ'; $size = 1; $data = '='; break;
+ case 0x0C: $name = 'tGE'; $size = 1; $data = '>='; break;
+ case 0x0D: $name = 'tGT'; $size = 1; $data = '>'; break;
+ case 0x0E: $name = 'tNE'; $size = 1; $data = '<>'; break;
+ case 0x0F: $name = 'tIsect'; $size = 1; $data = ' '; break;
+ case 0x10: $name = 'tList'; $size = 1; $data = ','; break;
+ case 0x11: $name = 'tRange'; $size = 1; $data = ':'; break;
+ case 0x12: $name = 'tUplus'; $size = 1; $data = '+'; break;
+ case 0x13: $name = 'tUminus'; $size = 1; $data = '-'; break;
+ case 0x14: $name = 'tPercent'; $size = 1; $data = '%'; break;
+ case 0x15: // parenthesis
+ $name = 'tParen';
+ $size = 1;
+ $data = null;
+ break;
+ case 0x16: // missing argument
+ $name = 'tMissArg';
+ $size = 1;
+ $data = '';
+ break;
+ case 0x17: // string
+ $name = 'tStr';
+ // offset: 1; size: var; Unicode string, 8-bit string length
+ $string = $this->_readUnicodeStringShort(substr($formulaData, 1));
+ $size = 1 + $string['size'];
+ $data = $this->_UTF8toExcelDoubleQuoted($string['value']);
+ break;
+ case 0x19: // Special attribute
+ // offset: 1; size: 1; attribute type flags:
+ switch (ord($formulaData[1])) {
+ case 0x01:
+ $name = 'tAttrVolatile';
+ $size = 4;
+ $data = null;
+ break;
+ case 0x02:
+ $name = 'tAttrIf';
+ $size = 4;
+ $data = null;
+ break;
+ case 0x04:
+ $name = 'tAttrChoose';
+ // offset: 2; size: 2; number of choices in the CHOOSE function ($nc, number of parameters decreased by 1)
+ $nc = $this->_GetInt2d($formulaData, 2);
+ // offset: 4; size: 2 * $nc
+ // offset: 4 + 2 * $nc; size: 2
+ $size = 2 * $nc + 6;
+ $data = null;
+ break;
+ case 0x08:
+ $name = 'tAttrSkip';
+ $size = 4;
+ $data = null;
+ break;
+ case 0x10:
+ $name = 'tAttrSum';
+ $size = 4;
+ $data = null;
+ break;
+ case 0x40:
+ case 0x41:
+ $name = 'tAttrSpace';
+ $size = 4;
+ // offset: 2; size: 2; space type and position
+ switch (ord($formulaData[2])) {
+ case 0x00:
+ $spacetype = 'type0';
+ break;
+ case 0x01:
+ $spacetype = 'type1';
+ break;
+ case 0x02:
+ $spacetype = 'type2';
+ break;
+ case 0x03:
+ $spacetype = 'type3';
+ break;
+ case 0x04:
+ $spacetype = 'type4';
+ break;
+ case 0x05:
+ $spacetype = 'type5';
+ break;
+ default:
+ throw new Exception('Unrecognized space type in tAttrSpace token');
+ break;
+ }
+ // offset: 3; size: 1; number of inserted spaces/carriage returns
+ $spacecount = ord($formulaData[3]);
+
+ $data = array('spacetype' => $spacetype, 'spacecount' => $spacecount);
+ break;
+ default:
+ throw new Exception('Unrecognized attribute flag in tAttr token');
+ break;
+ }
+ break;
+ case 0x1C: // error code
+ // offset: 1; size: 1; error code
+ $name = 'tErr';
+ $size = 2;
+ $data = $this->_mapErrorCode(ord($formulaData[1]));
+ break;
+ case 0x1D: // boolean
+ // offset: 1; size: 1; 0 = false, 1 = true;
+ $name = 'tBool';
+ $size = 2;
+ $data = ord($formulaData[1]) ? 'TRUE' : 'FALSE';
+ break;
+ case 0x1E: // integer
+ // offset: 1; size: 2; unsigned 16-bit integer
+ $name = 'tInt';
+ $size = 3;
+ $data = $this->_GetInt2d($formulaData, 1);
+ break;
+ case 0x1F: // number
+ // offset: 1; size: 8;
+ $name = 'tNum';
+ $size = 9;
+ $data = $this->_extractNumber(substr($formulaData, 1));
+ $data = str_replace(',', '.', (string)$data); // in case non-English locale
+ break;
+ case 0x40: // array constant
+ case 0x60: // array constant
+ // offset: 1; size: 7; not used
+ $name = 'tArray';
+ $size = 8;
+ $data = null;
+ break;
+ case 0x41: // function with fixed number of arguments
+ $name = 'tFunc';
+ $size = 3;
+ // offset: 1; size: 2; index to built-in sheet function
+ switch ($this->_GetInt2d($formulaData, 1)) {
+ case 2: $function = 'ISNA'; $args = 1; break;
+ case 3: $function = 'ISERROR'; $args = 1; break;
+ case 10: $function = 'NA'; $args = 0; break;
+ case 15: $function = 'SIN'; $args = 1; break;
+ case 16: $function = 'COS'; $args = 1; break;
+ case 17: $function = 'TAN'; $args = 1; break;
+ case 18: $function = 'ATAN'; $args = 1; break;
+ case 19: $function = 'PI'; $args = 0; break;
+ case 20: $function = 'SQRT'; $args = 1; break;
+ case 21: $function = 'EXP'; $args = 1; break;
+ case 22: $function = 'LN'; $args = 1; break;
+ case 23: $function = 'LOG10'; $args = 1; break;
+ case 24: $function = 'ABS'; $args = 1; break;
+ case 25: $function = 'INT'; $args = 1; break;
+ case 26: $function = 'SIGN'; $args = 1; break;
+ case 27: $function = 'ROUND'; $args = 2; break;
+ case 30: $function = 'REPT'; $args = 2; break;
+ case 31: $function = 'MID'; $args = 3; break;
+ case 32: $function = 'LEN'; $args = 1; break;
+ case 33: $function = 'VALUE'; $args = 1; break;
+ case 34: $function = 'TRUE'; $args = 0; break;
+ case 35: $function = 'FALSE'; $args = 0; break;
+ case 38: $function = 'NOT'; $args = 1; break;
+ case 39: $function = 'MOD'; $args = 2; break;
+ case 40: $function = 'DCOUNT'; $args = 3; break;
+ case 41: $function = 'DSUM'; $args = 3; break;
+ case 42: $function = 'DAVERAGE'; $args = 3; break;
+ case 43: $function = 'DMIN'; $args = 3; break;
+ case 44: $function = 'DMAX'; $args = 3; break;
+ case 45: $function = 'DSTDEV'; $args = 3; break;
+ case 48: $function = 'TEXT'; $args = 2; break;
+ case 61: $function = 'MIRR'; $args = 3; break;
+ case 63: $function = 'RAND'; $args = 0; break;
+ case 65: $function = 'DATE'; $args = 3; break;
+ case 66: $function = 'TIME'; $args = 3; break;
+ case 67: $function = 'DAY'; $args = 1; break;
+ case 68: $function = 'MONTH'; $args = 1; break;
+ case 69: $function = 'YEAR'; $args = 1; break;
+ case 71: $function = 'HOUR'; $args = 1; break;
+ case 72: $function = 'MINUTE'; $args = 1; break;
+ case 73: $function = 'SECOND'; $args = 1; break;
+ case 74: $function = 'NOW'; $args = 0; break;
+ case 75: $function = 'AREAS'; $args = 1; break;
+ case 76: $function = 'ROWS'; $args = 1; break;
+ case 77: $function = 'COLUMNS'; $args = 1; break;
+ case 83: $function = 'TRANSPOSE'; $args = 1; break;
+ case 86: $function = 'TYPE'; $args = 1; break;
+ case 97: $function = 'ATAN2'; $args = 2; break;
+ case 98: $function = 'ASIN'; $args = 1; break;
+ case 99: $function = 'ACOS'; $args = 1; break;
+ case 105: $function = 'ISREF'; $args = 1; break;
+ case 111: $function = 'CHAR'; $args = 1; break;
+ case 112: $function = 'LOWER'; $args = 1; break;
+ case 113: $function = 'UPPER'; $args = 1; break;
+ case 114: $function = 'PROPER'; $args = 1; break;
+ case 117: $function = 'EXACT'; $args = 2; break;
+ case 118: $function = 'TRIM'; $args = 1; break;
+ case 119: $function = 'REPLACE'; $args = 4; break;
+ case 121: $function = 'CODE'; $args = 1; break;
+ case 126: $function = 'ISERR'; $args = 1; break;
+ case 127: $function = 'ISTEXT'; $args = 1; break;
+ case 128: $function = 'ISNUMBER'; $args = 1; break;
+ case 129: $function = 'ISBLANK'; $args = 1; break;
+ case 130: $function = 'T'; $args = 1; break;
+ case 131: $function = 'N'; $args = 1; break;
+ case 140: $function = 'DATEVALUE'; $args = 1; break;
+ case 141: $function = 'TIMEVALUE'; $args = 1; break;
+ case 142: $function = 'SLN'; $args = 3; break;
+ case 143: $function = 'SYD'; $args = 4; break;
+ case 162: $function = 'CLEAN'; $args = 1; break;
+ case 163: $function = 'MDETERM'; $args = 1; break;
+ case 164: $function = 'MINVERSE'; $args = 1; break;
+ case 165: $function = 'MMULT'; $args = 2; break;
+ case 184: $function = 'FACT'; $args = 1; break;
+ case 189: $function = 'DPRODUCT'; $args = 3; break;
+ case 190: $function = 'ISNONTEXT'; $args = 1; break;
+ case 195: $function = 'DSTDEVP'; $args = 3; break;
+ case 196: $function = 'DVARP'; $args = 3; break;
+ case 198: $function = 'ISLOGICAL'; $args = 1; break;
+ case 199: $function = 'DCOUNTA'; $args = 3; break;
+ case 207: $function = 'REPLACEB'; $args = 4; break;
+ case 210: $function = 'MIDB'; $args = 3; break;
+ case 211: $function = 'LENB'; $args = 1; break;
+ case 212: $function = 'ROUNDUP'; $args = 2; break;
+ case 213: $function = 'ROUNDDOWN'; $args = 2; break;
+ case 214: $function = 'ASC'; $args = 1; break;
+ case 215: $function = 'DBCS'; $args = 1; break;
+ case 221: $function = 'TODAY'; $args = 0; break;
+ case 229: $function = 'SINH'; $args = 1; break;
+ case 230: $function = 'COSH'; $args = 1; break;
+ case 231: $function = 'TANH'; $args = 1; break;
+ case 232: $function = 'ASINH'; $args = 1; break;
+ case 233: $function = 'ACOSH'; $args = 1; break;
+ case 234: $function = 'ATANH'; $args = 1; break;
+ case 235: $function = 'DGET'; $args = 3; break;
+ case 244: $function = 'INFO'; $args = 1; break;
+ case 252: $function = 'FREQUENCY'; $args = 2; break;
+ case 261: $function = 'ERROR.TYPE'; $args = 1; break;
+ case 271: $function = 'GAMMALN'; $args = 1; break;
+ case 273: $function = 'BINOMDIST'; $args = 4; break;
+ case 274: $function = 'CHIDIST'; $args = 2; break;
+ case 275: $function = 'CHIINV'; $args = 2; break;
+ case 276: $function = 'COMBIN'; $args = 2; break;
+ case 277: $function = 'CONFIDENCE'; $args = 3; break;
+ case 278: $function = 'CRITBINOM'; $args = 3; break;
+ case 279: $function = 'EVEN'; $args = 1; break;
+ case 280: $function = 'EXPONDIST'; $args = 3; break;
+ case 281: $function = 'FDIST'; $args = 3; break;
+ case 282: $function = 'FINV'; $args = 3; break;
+ case 283: $function = 'FISHER'; $args = 1; break;
+ case 284: $function = 'FISHERINV'; $args = 1; break;
+ case 285: $function = 'FLOOR'; $args = 2; break;
+ case 286: $function = 'GAMMADIST'; $args = 4; break;
+ case 287: $function = 'GAMMAINV'; $args = 3; break;
+ case 288: $function = 'CEILING'; $args = 2; break;
+ case 289: $function = 'HYPGEOMDIST'; $args = 4; break;
+ case 290: $function = 'LOGNORMDIST'; $args = 3; break;
+ case 291: $function = 'LOGINV'; $args = 3; break;
+ case 292: $function = 'NEGBINOMDIST'; $args = 3; break;
+ case 293: $function = 'NORMDIST'; $args = 4; break;
+ case 294: $function = 'NORMSDIST'; $args = 1; break;
+ case 295: $function = 'NORMINV'; $args = 3; break;
+ case 296: $function = 'NORMSINV'; $args = 1; break;
+ case 297: $function = 'STANDARDIZE'; $args = 3; break;
+ case 298: $function = 'ODD'; $args = 1; break;
+ case 299: $function = 'PERMUT'; $args = 2; break;
+ case 300: $function = 'POISSON'; $args = 3; break;
+ case 301: $function = 'TDIST'; $args = 3; break;
+ case 302: $function = 'WEIBULL'; $args = 4; break;
+ case 303: $function = 'SUMXMY2'; $args = 2; break;
+ case 304: $function = 'SUMX2MY2'; $args = 2; break;
+ case 305: $function = 'SUMX2PY2'; $args = 2; break;
+ case 306: $function = 'CHITEST'; $args = 2; break;
+ case 307: $function = 'CORREL'; $args = 2; break;
+ case 308: $function = 'COVAR'; $args = 2; break;
+ case 309: $function = 'FORECAST'; $args = 3; break;
+ case 310: $function = 'FTEST'; $args = 2; break;
+ case 311: $function = 'INTERCEPT'; $args = 2; break;
+ case 312: $function = 'PEARSON'; $args = 2; break;
+ case 313: $function = 'RSQ'; $args = 2; break;
+ case 314: $function = 'STEYX'; $args = 2; break;
+ case 315: $function = 'SLOPE'; $args = 2; break;
+ case 316: $function = 'TTEST'; $args = 4; break;
+ case 325: $function = 'LARGE'; $args = 2; break;
+ case 326: $function = 'SMALL'; $args = 2; break;
+ case 327: $function = 'QUARTILE'; $args = 2; break;
+ case 328: $function = 'PERCENTILE'; $args = 2; break;
+ case 331: $function = 'TRIMMEAN'; $args = 2; break;
+ case 332: $function = 'TINV'; $args = 2; break;
+ case 337: $function = 'POWER'; $args = 2; break;
+ case 342: $function = 'RADIANS'; $args = 1; break;
+ case 343: $function = 'DEGREES'; $args = 1; break;
+ case 346: $function = 'COUNTIF'; $args = 2; break;
+ case 347: $function = 'COUNTBLANK'; $args = 1; break;
+ case 350: $function = 'ISPMT'; $args = 4; break;
+ case 351: $function = 'DATEDIF'; $args = 3; break;
+ case 352: $function = 'DATESTRING'; $args = 1; break;
+ case 353: $function = 'NUMBERSTRING'; $args = 2; break;
+ case 360: $function = 'PHONETIC'; $args = 1; break;
+ default:
+ throw new Exception('Unrecognized function in formula');
+ break;
+ }
+ $data = array('function' => $function, 'args' => $args);
+ break;
+ case 0x22: // function with variable number of arguments
+ case 0x42: // function with variable number of arguments
+ case 0x62: // function with variable number of arguments
+ $name = 'tFuncV';
+ $size = 4;
+ // offset: 1; size: 1; number of arguments
+ $args = ord($formulaData[1]);
+ // offset: 2: size: 2; index to built-in sheet function
+ switch ($this->_GetInt2d($formulaData, 2)) {
+ case 0: $function = 'COUNT'; break;
+ case 1: $function = 'IF'; break;
+ case 4: $function = 'SUM'; break;
+ case 5: $function = 'AVERAGE'; break;
+ case 6: $function = 'MIN'; break;
+ case 7: $function = 'MAX'; break;
+ case 8: $function = 'ROW'; break;
+ case 9: $function = 'COLUMN'; break;
+ case 11: $function = 'NPV'; break;
+ case 12: $function = 'STDEV'; break;
+ case 13: $function = 'DOLLAR'; break;
+ case 14: $function = 'FIXED'; break;
+ case 28: $function = 'LOOKUP'; break;
+ case 29: $function = 'INDEX'; break;
+ case 36: $function = 'AND'; break;
+ case 37: $function = 'OR'; break;
+ case 46: $function = 'VAR'; break;
+ case 49: $function = 'LINEST'; break;
+ case 50: $function = 'TREND'; break;
+ case 51: $function = 'LOGEST'; break;
+ case 52: $function = 'GROWTH'; break;
+ case 56: $function = 'PV'; break;
+ case 57: $function = 'FV'; break;
+ case 58: $function = 'NPER'; break;
+ case 59: $function = 'PMT'; break;
+ case 60: $function = 'RATE'; break;
+ case 62: $function = 'IRR'; break;
+ case 64: $function = 'MATCH'; break;
+ case 70: $function = 'WEEKDAY'; break;
+ case 78: $function = 'OFFSET'; break;
+ case 82: $function = 'SEARCH'; break;
+ case 100: $function = 'CHOOSE'; break;
+ case 101: $function = 'HLOOKUP'; break;
+ case 102: $function = 'VLOOKUP'; break;
+ case 109: $function = 'LOG'; break;
+ case 115: $function = 'LEFT'; break;
+ case 116: $function = 'RIGHT'; break;
+ case 120: $function = 'SUBSTITUTE'; break;
+ case 124: $function = 'FIND'; break;
+ case 125: $function = 'CELL'; break;
+ case 144: $function = 'DDB'; break;
+ case 148: $function = 'INDIRECT'; break;
+ case 167: $function = 'IPMT'; break;
+ case 168: $function = 'PPMT'; break;
+ case 169: $function = 'COUNTA'; break;
+ case 183: $function = 'PRODUCT'; break;
+ case 193: $function = 'STDEVP'; break;
+ case 194: $function = 'VARP'; break;
+ case 197: $function = 'TRUNC'; break;
+ case 204: $function = 'USDOLLAR'; break;
+ case 205: $function = 'FINDB'; break;
+ case 206: $function = 'SEARCHB'; break;
+ case 208: $function = 'LEFTB'; break;
+ case 209: $function = 'RIGHTB'; break;
+ case 216: $function = 'RANK'; break;
+ case 219: $function = 'ADDRESS'; break;
+ case 220: $function = 'DAYS360'; break;
+ case 222: $function = 'VDB'; break;
+ case 227: $function = 'MEDIAN'; break;
+ case 228: $function = 'SUMPRODUCT'; break;
+ case 247: $function = 'DB'; break;
+ case 269: $function = 'AVEDEV'; break;
+ case 270: $function = 'BETADIST'; break;
+ case 272: $function = 'BETAINV'; break;
+ case 317: $function = 'PROB'; break;
+ case 318: $function = 'DEVSQ'; break;
+ case 319: $function = 'GEOMEAN'; break;
+ case 320: $function = 'HARMEAN'; break;
+ case 321: $function = 'SUMSQ'; break;
+ case 322: $function = 'KURT'; break;
+ case 323: $function = 'SKEW'; break;
+ case 324: $function = 'ZTEST'; break;
+ case 329: $function = 'PERCENTRANK'; break;
+ case 330: $function = 'MODE'; break;
+ case 336: $function = 'CONCATENATE'; break;
+ case 344: $function = 'SUBTOTAL'; break;
+ case 345: $function = 'SUMIF'; break;
+ case 354: $function = 'ROMAN'; break;
+ case 358: $function = 'GETPIVOTDATA'; break;
+ case 359: $function = 'HYPERLINK'; break;
+ case 361: $function = 'AVERAGEA'; break;
+ case 362: $function = 'MAXA'; break;
+ case 363: $function = 'MINA'; break;
+ case 364: $function = 'STDEVPA'; break;
+ case 365: $function = 'VARPA'; break;
+ case 366: $function = 'STDEVA'; break;
+ case 367: $function = 'VARA'; break;
+ default:
+ throw new Exception('Unrecognized function in formula');
+ break;
+ }
+ $data = array('function' => $function, 'args' => $args);
+ break;
+ case 0x23: // index to defined name
+ case 0x43:
+ $name = 'tName';
+ $size = 5;
+ // offset: 1; size: 2; one-based index to definedname record
+ $definedNameIndex = $this->_GetInt2d($formulaData, 1) - 1;
+ // offset: 2; size: 2; not used
+ $data = $this->_definedname[$definedNameIndex]['name'];
+ break;
+ case 0x24: // single cell reference e.g. A5
+ case 0x44:
+ case 0x64:
+ $name = 'tRef';
+ $size = 5;
+ $data = $this->_readBIFF8CellAddress(substr($formulaData, 1, 4));
+ break;
+ case 0x25: // cell range reference to cells in the same sheet
+ case 0x45:
+ case 0x65:
+ $name = 'tArea';
+ $size = 9;
+ $data = $this->_readBIFF8CellRangeAddress(substr($formulaData, 1, 8));
+ break;
+ case 0x26:
+ case 0x46:
+ $name = 'tMemArea';
+ // offset: 1; size: 4; not used
+ // offset: 5; size: 2; size of the following subexpression
+ $subSize = $this->_GetInt2d($formulaData, 5);
+ $size = 7 + $subSize;
+ $data = $this->_getFormulaFromData(substr($formulaData, 7, $subSize));
+ break;
+ case 0x47:
+ $name = 'tMemErr';
+ // offset: 1; size: 4; not used
+ // offset: 5; size: 2; size of the following subexpression
+ $subSize = $this->_GetInt2d($formulaData, 5);
+ $size = 7 + $subSize;
+ $data = $this->_getFormulaFromData(substr($formulaData, 7, $subSize));
+ break;
+ case 0x29:
+ case 0x49:
+ $name = 'tMemFunc';
+ // offset: 1; size: 2; size of the following subexpression
+ $subSize = $this->_GetInt2d($formulaData, 1);
+ $size = 3 + $subSize;
+ $data = $this->_getFormulaFromData(substr($formulaData, 3, $subSize));
+ break;
+
+ case 0x4C: // Relative reference, used in shared formulas and some other places
+ $name = 'tRefN';
+ $size = 5;
+ $data = $this->_readBIFF8CellAddressB(substr($formulaData, 1, 4), $baseCell);
+ break;
+
+ case 0x3A: // 3d reference to cell
+ case 0x5A:
+ $name = 'tRef3d';
+ $size = 7;
+ // offset: 1; size: 2; index to REF entry
+ $sheetRange = $this->_readSheetRangeByRefIndex($this->_GetInt2d($formulaData, 1));
+ // offset: 3; size: 4; cell address
+ $cellAddress = $this->_readBIFF8CellAddress(substr($formulaData, 3, 4));
+
+ $data = "$sheetRange!$cellAddress";
+
+ break;
+ case 0x3B: // 3d reference to cell range
+ case 0x5B:
+ $name = 'tArea3d';
+ $size = 11;
+ // offset: 1; size: 2; index to REF entry
+ $sheetRange = $this->_readSheetRangeByRefIndex($this->_GetInt2d($formulaData, 1));
+ // offset: 3; size: 8; cell address
+ $cellRangeAddress = $this->_readBIFF8CellRangeAddress(substr($formulaData, 3, 8));
+
+ $data = "$sheetRange!$cellRangeAddress";
+
+ break;
+ // case 0x39: // don't know how to deal with
+ default:
+ throw new Exception('Unrecognized token ' . sprintf('%02X', $id) . ' in formula');
+ break;
+ }
+
+ return array(
+ 'id' => $id,
+ 'name' => $name,
+ 'size' => $size,
+ 'data' => $data,
+ );
+ }
+
+ /**
+ * Reads a cell address in BIFF8 e.g. 'A2' or '$A$2'
+ * section 3.3.4
+ *
+ * @param string $cellAddressStructure
+ * @return string
+ */
+ private function _readBIFF8CellAddress($cellAddressStructure)
+ {
+ // offset: 0; size: 2; index to row (0... 65535) (or offset (-32768... 32767))
+ $row = $this->_GetInt2d($cellAddressStructure, 0) + 1;
+
+ // offset: 2; size: 2; index to column or column offset + relative flags
+
+ // bit: 7-0; mask 0x00FF; column index
+ $column = PHPExcel_Cell::stringFromColumnIndex(0x00FF & $this->_GetInt2d($cellAddressStructure, 2));
+
+ // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index)
+ if (!(0x4000 & $this->_GetInt2d($cellAddressStructure, 2))) {
+ $column = '$' . $column;
+ }
+ // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
+ if (!(0x8000 & $this->_GetInt2d($cellAddressStructure, 2))) {
+ $row = '$' . $row;
+ }
+
+ return $column . $row;
+ }
+
+ /**
+ * Reads a cell address in BIFF8 for shared formulas. Uses positive and negative values for row and column
+ * to indicate offsets from a base cell
+ * section 3.3.4
+ *
+ * @param string $cellAddressStructure
+ * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas
+ * @return string
+ */
+ private function _readBIFF8CellAddressB($cellAddressStructure, $baseCell = 'A1')
+ {
+ list($baseCol, $baseRow) = PHPExcel_Cell::coordinateFromString($baseCell);
+ $baseCol = PHPExcel_Cell::columnIndexFromString($baseCol) - 1;
+
+ // offset: 0; size: 2; index to row (0... 65535) (or offset (-32768... 32767))
+ $rowIndex = $this->_GetInt2d($cellAddressStructure, 0);
+ $row = $this->_GetInt2d($cellAddressStructure, 0) + 1;
+
+ // offset: 2; size: 2; index to column or column offset + relative flags
+
+ // bit: 7-0; mask 0x00FF; column index
+ $colIndex = 0x00FF & $this->_GetInt2d($cellAddressStructure, 2);
+
+ // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index)
+ if (!(0x4000 & $this->_GetInt2d($cellAddressStructure, 2))) {
+ $column = PHPExcel_Cell::stringFromColumnIndex($colIndex);
+ $column = '$' . $column;
+ } else {
+ $colIndex = ($colIndex <= 127) ? $colIndex : $colIndex - 256;
+ $column = PHPExcel_Cell::stringFromColumnIndex($baseCol + $colIndex);
+ }
+
+ // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
+ if (!(0x8000 & $this->_GetInt2d($cellAddressStructure, 2))) {
+ $row = '$' . $row;
+ } else {
+ $rowIndex = ($rowIndex <= 32767) ? $rowIndex : $rowIndex - 65536;
+ $row = $baseRow + $rowIndex;
+ }
+
+ return $column . $row;
+ }
+
+ /**
+ * Reads a cell range address in BIFF5 e.g. 'A2:B6' or 'A1'
+ * always fixed range
+ * section 2.5.14
+ *
+ * @param string $subData
+ * @return string
+ * @throws Exception
+ */
+ private function _readBIFF5CellRangeAddressFixed($subData)
+ {
+ // offset: 0; size: 2; index to first row
+ $fr = $this->_GetInt2d($subData, 0) + 1;
+
+ // offset: 2; size: 2; index to last row
+ $lr = $this->_GetInt2d($subData, 2) + 1;
+
+ // offset: 4; size: 1; index to first column
+ $fc = ord($subData{4});
+
+ // offset: 5; size: 1; index to last column
+ $lc = ord($subData{5});
+
+ // check values
+ if ($fr > $lr || $fc > $lc) {
+ throw new Exception('Not a cell range address');
+ }
+
+ // column index to letter
+ $fc = PHPExcel_Cell::stringFromColumnIndex($fc);
+ $lc = PHPExcel_Cell::stringFromColumnIndex($lc);
+
+ if ($fr == $lr and $fc == $lc) {
+ return "$fc$fr";
+ }
+ return "$fc$fr:$lc$lr";
+ }
+
+ /**
+ * Reads a cell range address in BIFF8 e.g. 'A2:B6' or 'A1'
+ * always fixed range
+ * section 2.5.14
+ *
+ * @param string $subData
+ * @return string
+ * @throws Exception
+ */
+ private function _readBIFF8CellRangeAddressFixed($subData)
+ {
+ // offset: 0; size: 2; index to first row
+ $fr = $this->_GetInt2d($subData, 0) + 1;
+
+ // offset: 2; size: 2; index to last row
+ $lr = $this->_GetInt2d($subData, 2) + 1;
+
+ // offset: 4; size: 2; index to first column
+ $fc = $this->_GetInt2d($subData, 4);
+
+ // offset: 6; size: 2; index to last column
+ $lc = $this->_GetInt2d($subData, 6);
+
+ // check values
+ if ($fr > $lr || $fc > $lc) {
+ throw new Exception('Not a cell range address');
+ }
+
+ // column index to letter
+ $fc = PHPExcel_Cell::stringFromColumnIndex($fc);
+ $lc = PHPExcel_Cell::stringFromColumnIndex($lc);
+
+ if ($fr == $lr and $fc == $lc) {
+ return "$fc$fr";
+ }
+ return "$fc$fr:$lc$lr";
+ }
+
+ /**
+ * Reads a cell range address in BIFF8 e.g. 'A2:B6' or '$A$2:$B$6'
+ * there are flags indicating whether column/row index is relative
+ * section 3.3.4
+ *
+ * @param string $subData
+ * @return string
+ */
+ private function _readBIFF8CellRangeAddress($subData)
+ {
+ // todo: if cell range is just a single cell, should this funciton
+ // not just return e.g. 'A1' and not 'A1:A1' ?
+
+ // offset: 0; size: 2; index to first row (0... 65535) (or offset (-32768... 32767))
+ $fr = $this->_GetInt2d($subData, 0) + 1;
+
+ // offset: 2; size: 2; index to last row (0... 65535) (or offset (-32768... 32767))
+ $lr = $this->_GetInt2d($subData, 2) + 1;
+
+ // offset: 4; size: 2; index to first column or column offset + relative flags
+
+ // bit: 7-0; mask 0x00FF; column index
+ $fc = PHPExcel_Cell::stringFromColumnIndex(0x00FF & $this->_GetInt2d($subData, 4));
+
+ // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index)
+ if (!(0x4000 & $this->_GetInt2d($subData, 4))) {
+ $fc = '$' . $fc;
+ }
+
+ // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
+ if (!(0x8000 & $this->_GetInt2d($subData, 4))) {
+ $fr = '$' . $fr;
+ }
+
+ // offset: 6; size: 2; index to last column or column offset + relative flags
+
+ // bit: 7-0; mask 0x00FF; column index
+ $lc = PHPExcel_Cell::stringFromColumnIndex(0x00FF & $this->_GetInt2d($subData, 6));
+
+ // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index)
+ if (!(0x4000 & $this->_GetInt2d($subData, 6))) {
+ $lc = '$' . $lc;
+ }
+
+ // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
+ if (!(0x8000 & $this->_GetInt2d($subData, 6))) {
+ $lr = '$' . $lr;
+ }
+
+ return "$fc$fr:$lc$lr";
+ }
+
+ /**
+ * Read BIFF8 cell range address list
+ * section 2.5.15
+ *
+ * @param string $subData
+ * @return array
+ */
+ private function _readBIFF8CellRangeAddressList($subData)
+ {
+ $cellRangeAddresses = array();
+
+ // offset: 0; size: 2; number of the following cell range addresses
+ $nm = $this->_GetInt2d($subData, 0);
+
+ $offset = 2;
+ // offset: 2; size: 8 * $nm; list of $nm (fixed) cell range addresses
+ for ($i = 0; $i < $nm; ++$i) {
+ $cellRangeAddresses[] = $this->_readBIFF8CellRangeAddressFixed(substr($subData, $offset, 8));
+ $offset += 8;
+ }
+
+ return array(
+ 'size' => 2 + 8 * $nm,
+ 'cellRangeAddresses' => $cellRangeAddresses,
+ );
+ }
+
+ /**
+ * Get a sheet range like Sheet1:Sheet3 from REF index
+ * Note: If there is only one sheet in the range, one gets e.g Sheet1
+ * It can also happen that the REF structure uses the -1 (FFFF) code to indicate deleted sheets,
+ * in which case an exception is thrown
+ *
+ * @param int $index
+ * @return string|false
+ * @throws Exception
+ */
+ private function _readSheetRangeByRefIndex($index)
+ {
+ if (isset($this->_ref[$index])) {
+
+ $type = $this->_externalBooks[$this->_ref[$index]['externalBookIndex']]['type'];
+
+ switch ($type) {
+ case 'internal':
+ // check if we have a deleted 3d reference
+ if ($this->_ref[$index]['firstSheetIndex'] == 0xFFFF or $this->_ref[$index]['lastSheetIndex'] == 0xFFFF) {
+ throw new Exception('Deleted sheet reference');
+ }
+
+ // we have normal sheet range (collapsed or uncollapsed)
+ $firstSheetName = $this->_sheets[$this->_ref[$index]['firstSheetIndex']]['name'];
+ $lastSheetName = $this->_sheets[$this->_ref[$index]['lastSheetIndex']]['name'];
+
+ if ($firstSheetName == $lastSheetName) {
+ // collapsed sheet range
+ $sheetRange = $firstSheetName;
+ } else {
+ $sheetRange = "$firstSheetName:$lastSheetName";
+ }
+
+ // escape the single-quotes
+ $sheetRange = str_replace("'", "''", $sheetRange);
+
+ // if there are special characters, we need to enclose the range in single-quotes
+ // todo: check if we have identified the whole set of special characters
+ // it seems that the following characters are not accepted for sheet names
+ // and we may assume that they are not present: []*/:\?
+ if (preg_match("/[ !\"@#£$%&{()}<>=+'|^,;-]/", $sheetRange)) {
+ $sheetRange = "'$sheetRange'";
+ }
+
+ return $sheetRange;
+ break;
+
+ default:
+ // TODO: external sheet support
+ throw new Exception('Excel5 reader only supports internal sheets in fomulas');
+ break;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * read BIFF8 constant value array from array data
+ * returns e.g. array('value' => '{1,2;3,4}', 'size' => 40}
+ * section 2.5.8
+ *
+ * @param string $arrayData
+ * @return array
+ */
+ private function _readBIFF8ConstantArray($arrayData)
+ {
+ // offset: 0; size: 1; number of columns decreased by 1
+ $nc = ord($arrayData[0]);
+
+ // offset: 1; size: 2; number of rows decreased by 1
+ $nr = $this->_GetInt2d($arrayData, 1);
+ $size = 3; // initialize
+ $arrayData = substr($arrayData, 3);
+
+ // offset: 3; size: var; list of ($nc + 1) * ($nr + 1) constant values
+ $matrixChunks = array();
+ for ($r = 1; $r <= $nr + 1; ++$r) {
+ $items = array();
+ for ($c = 1; $c <= $nc + 1; ++$c) {
+ $constant = $this->_readBIFF8Constant($arrayData);
+ $items[] = $constant['value'];
+ $arrayData = substr($arrayData, $constant['size']);
+ $size += $constant['size'];
+ }
+ $matrixChunks[] = implode(',', $items); // looks like e.g. '1,"hello"'
+ }
+ $matrix = '{' . implode(';', $matrixChunks) . '}';
+
+ return array(
+ 'value' => $matrix,
+ 'size' => $size,
+ );
+ }
+
+ /**
+ * read BIFF8 constant value which may be 'Empty Value', 'Number', 'String Value', 'Boolean Value', 'Error Value'
+ * section 2.5.7
+ * returns e.g. array('value' => '5', 'size' => 9)
+ *
+ * @param string $valueData
+ * @return array
+ */
+ private function _readBIFF8Constant($valueData)
+ {
+ // offset: 0; size: 1; identifier for type of constant
+ $identifier = ord($valueData[0]);
+
+ switch ($identifier) {
+ case 0x00: // empty constant (what is this?)
+ $value = '';
+ $size = 9;
+ break;
+ case 0x01: // number
+ // offset: 1; size: 8; IEEE 754 floating-point value
+ $value = $this->_extractNumber(substr($valueData, 1, 8));
+ $size = 9;
+ break;
+ case 0x02: // string value
+ // offset: 1; size: var; Unicode string, 16-bit string length
+ $string = $this->_readUnicodeStringLong(substr($valueData, 1));
+ $value = '"' . $string['value'] . '"';
+ $size = 1 + $string['size'];
+ break;
+ case 0x04: // boolean
+ // offset: 1; size: 1; 0 = FALSE, 1 = TRUE
+ if (ord($valueData[1])) {
+ $value = 'TRUE';
+ } else {
+ $value = 'FALSE';
+ }
+ $size = 9;
+ break;
+ case 0x10: // error code
+ // offset: 1; size: 1; error code
+ $value = $this->_mapErrorCode(ord($valueData[1]));
+ $size = 9;
+ break;
+ }
+ return array(
+ 'value' => $value,
+ 'size' => $size,
+ );
+ }
+
+ /**
+ * Extract RGB color
+ * OpenOffice.org's Documentation of the Microsoft Excel File Format, section 2.5.4
+ *
+ * @param string $rgb Encoded RGB value (4 bytes)
+ * @return array
+ */
+ private function _readRGB($rgb)
+ {
+ // offset: 0; size 1; Red component
+ $r = ord($rgb{0});
+
+ // offset: 1; size: 1; Green component
+ $g = ord($rgb{1});
+
+ // offset: 2; size: 1; Blue component
+ $b = ord($rgb{2});
+
+ // HEX notation, e.g. 'FF00FC'
+ $rgb = sprintf('%02X', $r) . sprintf('%02X', $g) . sprintf('%02X', $b);
+
+ return array('rgb' => $rgb);
+ }
+
+ /**
+ * Read byte string (8-bit string length)
+ * OpenOffice documentation: 2.5.2
+ *
+ * @param string $subData
+ * @return array
+ */
+ private function _readByteStringShort($subData)
+ {
+ // offset: 0; size: 1; length of the string (character count)
+ $ln = ord($subData[0]);
+
+ // offset: 1: size: var; character array (8-bit characters)
+ $value = $this->_decodeCodepage(substr($subData, 1, $ln));
+
+ return array(
+ 'value' => $value,
+ 'size' => 1 + $ln, // size in bytes of data structure
+ );
+ }
+
+ /**
+ * Read byte string (16-bit string length)
+ * OpenOffice documentation: 2.5.2
+ *
+ * @param string $subData
+ * @return array
+ */
+ private function _readByteStringLong($subData)
+ {
+ // offset: 0; size: 2; length of the string (character count)
+ $ln = $this->_GetInt2d($subData, 0);
+
+ // offset: 2: size: var; character array (8-bit characters)
+ $value = $this->_decodeCodepage(substr($subData, 2));
+
+ //return $string;
+ return array(
+ 'value' => $value,
+ 'size' => 2 + $ln, // size in bytes of data structure
+ );
+ }
+
+ /**
+ * Extracts an Excel Unicode short string (8-bit string length)
+ * OpenOffice documentation: 2.5.3
+ * function will automatically find out where the Unicode string ends.
+ *
+ * @param string $subData
+ * @return array
+ */
+ private function _readUnicodeStringShort($subData)
+ {
+ $value = '';
+
+ // offset: 0: size: 1; length of the string (character count)
+ $characterCount = ord($subData[0]);
+
+ $string = $this->_readUnicodeString(substr($subData, 1), $characterCount);
+
+ // add 1 for the string length
+ $string['size'] += 1;
+
+ return $string;
+ }
+
+ /**
+ * Extracts an Excel Unicode long string (16-bit string length)
+ * OpenOffice documentation: 2.5.3
+ * this function is under construction, needs to support rich text, and Asian phonetic settings
+ *
+ * @param string $subData
+ * @return array
+ */
+ private function _readUnicodeStringLong($subData)
+ {
+ $value = '';
+
+ // offset: 0: size: 2; length of the string (character count)
+ $characterCount = $this->_GetInt2d($subData, 0);
+
+ $string = $this->_readUnicodeString(substr($subData, 2), $characterCount);
+
+ // add 2 for the string length
+ $string['size'] += 2;
+
+ return $string;
+ }
+
+ /**
+ * Read Unicode string with no string length field, but with known character count
+ * this function is under construction, needs to support rich text, and Asian phonetic settings
+ * OpenOffice.org's Documentation of the Microsoft Excel File Format, section 2.5.3
+ *
+ * @param string $subData
+ * @param int $characterCount
+ * @return array
+ */
+ private function _readUnicodeString($subData, $characterCount)
+ {
+ $value = '';
+
+ // offset: 0: size: 1; option flags
+
+ // bit: 0; mask: 0x01; character compression (0 = compressed 8-bit, 1 = uncompressed 16-bit)
+ $isCompressed = !((0x01 & ord($subData[0])) >> 0);
+
+ // bit: 2; mask: 0x04; Asian phonetic settings
+ $hasAsian = (0x04) & ord($subData[0]) >> 2;
+
+ // bit: 3; mask: 0x08; Rich-Text settings
+ $hasRichText = (0x08) & ord($subData[0]) >> 3;
+
+ // offset: 1: size: var; character array
+ // this offset assumes richtext and Asian phonetic settings are off which is generally wrong
+ // needs to be fixed
+ $value = $this->_encodeUTF16(substr($subData, 1, $isCompressed ? $characterCount : 2 * $characterCount), $isCompressed);
+
+ return array(
+ 'value' => $value,
+ 'size' => $isCompressed ? 1 + $characterCount : 1 + 2 * $characterCount, // the size in bytes including the option flags
+ );
+ }
+
+ /**
+ * Convert UTF-8 string to string surounded by double quotes. Used for explicit string tokens in formulas.
+ * Example: hello"world --> "hello""world"
+ *
+ * @param string $value UTF-8 encoded string
+ * @return string
+ */
+ private function _UTF8toExcelDoubleQuoted($value)
+ {
+ return '"' . str_replace('"', '""', $value) . '"';
+ }
+
+ /**
+ * Reads first 8 bytes of a string and return IEEE 754 float
+ *
+ * @param string $data Binary string that is at least 8 bytes long
+ * @return float
+ */
+ private function _extractNumber($data)
+ {
+ $rknumhigh = $this->_GetInt4d($data, 4);
+ $rknumlow = $this->_GetInt4d($data, 0);
+ $sign = ($rknumhigh & 0x80000000) >> 31;
+ $exp = ($rknumhigh & 0x7ff00000) >> 20;
+ $mantissa = (0x100000 | ($rknumhigh & 0x000fffff));
+ $mantissalow1 = ($rknumlow & 0x80000000) >> 31;
+ $mantissalow2 = ($rknumlow & 0x7fffffff);
+ $value = $mantissa / pow( 2 , (20 - ($exp - 1023)));
+
+ if ($mantissalow1 != 0) {
+ $value += 1 / pow (2 , (21 - ($exp - 1023)));
+ }
+
+ $value += $mantissalow2 / pow (2 , (52 - ($exp - 1023)));
+ if ($sign) {
+ $value = -1 * $value;
+ }
+
+ return $value;
+ }
+
+ private function _GetIEEE754($rknum)
+ {
+ if (($rknum & 0x02) != 0) {
+ $value = $rknum >> 2;
+ }
+ else {
+ // changes by mmp, info on IEEE754 encoding from
+ // research.microsoft.com/~hollasch/cgindex/coding/ieeefloat.html
+ // The RK format calls for using only the most significant 30 bits
+ // of the 64 bit floating point value. The other 34 bits are assumed
+ // to be 0 so we use the upper 30 bits of $rknum as follows...
+ $sign = ($rknum & 0x80000000) >> 31;
+ $exp = ($rknum & 0x7ff00000) >> 20;
+ $mantissa = (0x100000 | ($rknum & 0x000ffffc));
+ $value = $mantissa / pow( 2 , (20- ($exp - 1023)));
+ if ($sign) {
+ $value = -1 * $value;
+ }
+ //end of changes by mmp
+ }
+ if (($rknum & 0x01) != 0) {
+ $value /= 100;
+ }
+ return $value;
+ }
+
+ /**
+ * Get UTF-8 string from (compressed or uncompressed) UTF-16 string
+ *
+ * @param string $string
+ * @param bool $compressed
+ * @return string
+ */
+ private function _encodeUTF16($string, $compressed = '')
+ {
+ if ($compressed) {
+ $string = $this->_uncompressByteString($string);
+ }
+
+ $result = PHPExcel_Shared_String::ConvertEncoding($string, 'UTF-8', 'UTF-16LE');
+
+ return $result;
+ }
+
+ /**
+ * Convert UTF-16 string in compressed notation to uncompressed form. Only used for BIFF8.
+ *
+ * @param string $string
+ * @return string
+ */
+ private function _uncompressByteString($string)
+ {
+ $uncompressedString = '';
+ for ($i = 0; $i < strlen($string); ++$i) {
+ $uncompressedString .= $string[$i] . "\0";
+ }
+
+ return $uncompressedString;
+ }
+
+ /**
+ * Convert string to UTF-8. Only used for BIFF5.
+ *
+ * @param string $string
+ * @return string
+ */
+ private function _decodeCodepage($string)
+ {
+ $result = PHPExcel_Shared_String::ConvertEncoding($string, 'UTF-8', $this->_codepage);
+ return $result;
+ }
+
+ /**
+ * Read 16-bit unsigned integer
+ *
+ * @param string $data
+ * @param int $pos
+ * @return int
+ */
+ private function _GetInt2d($data, $pos)
+ {
+ return ord($data[$pos]) | (ord($data[$pos + 1]) << 8);
+ }
+
+ /**
+ * Read 32-bit signed integer
+ *
+ * @param string $data
+ * @param int $pos
+ * @return int
+ */
+ private function _GetInt4d($data, $pos)
+ {
+ //return ord($data[$pos]) | (ord($data[$pos + 1]) << 8) |
+ // (ord($data[$pos + 2]) << 16) | (ord($data[$pos + 3]) << 24);
+
+ // FIX: represent numbers correctly on 64-bit system
+ // http://sourceforge.net/tracker/index.php?func=detail&aid=1487372&group_id=99160&atid=623334
+ $_or_24 = ord($data[$pos + 3]);
+ if ($_or_24 >= 128) {
+ // negative number
+ $_ord_24 = -abs((256 - $_or_24) << 24);
+ } else {
+ $_ord_24 = ($_or_24 & 127) << 24;
+ }
+ return ord($data[$pos]) | (ord($data[$pos + 1]) << 8) | (ord($data[$pos + 2]) << 16) | $_ord_24;
+ }
+
+ /**
+ * Read color
+ *
+ * @param int $color Indexed color
+ * @return array RGB color value, example: array('rgb' => 'FF0000')
+ */
+ private function _readColor($color)
+ {
+ if ($color <= 0x07 || $color >= 0x40) {
+ // special built-in color
+ $color = $this->_mapBuiltInColor($color);
+ } else if (isset($this->_palette) && isset($this->_palette[$color - 8])) {
+ // palette color, color index 0x08 maps to pallete index 0
+ $color = $this->_palette[$color - 8];
+ } else {
+ // default color table
+ if ($this->_version == self::XLS_BIFF8) {
+ $color = $this->_mapColor($color);
+ } else {
+ // BIFF5
+ $color = $this->_mapColorBIFF5($color);
+ }
+ }
+
+ return $color;
+ }
+
+
+ /**
+ * Map border style
+ * OpenOffice documentation: 2.5.11
+ *
+ * @param int $index
+ * @return string
+ */
+ private function _mapBorderStyle($index)
+ {
+ switch ($index) {
+ case 0x00: return PHPExcel_Style_Border::BORDER_NONE;
+ case 0x01: return PHPExcel_Style_Border::BORDER_THIN;
+ case 0x02: return PHPExcel_Style_Border::BORDER_MEDIUM;
+ case 0x03: return PHPExcel_Style_Border::BORDER_DASHED;
+ case 0x04: return PHPExcel_Style_Border::BORDER_DOTTED;
+ case 0x05: return PHPExcel_Style_Border::BORDER_THICK;
+ case 0x06: return PHPExcel_Style_Border::BORDER_DOUBLE;
+ case 0x07: return PHPExcel_Style_Border::BORDER_HAIR;
+ case 0x08: return PHPExcel_Style_Border::BORDER_MEDIUMDASHED;
+ case 0x09: return PHPExcel_Style_Border::BORDER_DASHDOT;
+ case 0x0A: return PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT;
+ case 0x0B: return PHPExcel_Style_Border::BORDER_DASHDOTDOT;
+ case 0x0C: return PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT;
+ case 0x0D: return PHPExcel_Style_Border::BORDER_SLANTDASHDOT;
+ default: return PHPExcel_Style_Border::BORDER_NONE;
+ }
+ }
+
+ /**
+ * Get fill pattern from index
+ * OpenOffice documentation: 2.5.12
+ *
+ * @param int $index
+ * @return string
+ */
+ private function _mapFillPattern($index)
+ {
+ switch ($index) {
+ case 0x00: return PHPExcel_Style_Fill::FILL_NONE;
+ case 0x01: return PHPExcel_Style_Fill::FILL_SOLID;
+ case 0x02: return PHPExcel_Style_Fill::FILL_PATTERN_MEDIUMGRAY;
+ case 0x03: return PHPExcel_Style_Fill::FILL_PATTERN_DARKGRAY;
+ case 0x04: return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRAY;
+ case 0x05: return PHPExcel_Style_Fill::FILL_PATTERN_DARKHORIZONTAL;
+ case 0x06: return PHPExcel_Style_Fill::FILL_PATTERN_DARKVERTICAL;
+ case 0x07: return PHPExcel_Style_Fill::FILL_PATTERN_DARKDOWN;
+ case 0x08: return PHPExcel_Style_Fill::FILL_PATTERN_DARKUP;
+ case 0x09: return PHPExcel_Style_Fill::FILL_PATTERN_DARKGRID;
+ case 0x0A: return PHPExcel_Style_Fill::FILL_PATTERN_DARKTRELLIS;
+ case 0x0B: return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTHORIZONTAL;
+ case 0x0C: return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTVERTICAL;
+ case 0x0D: return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTDOWN;
+ case 0x0E: return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTUP;
+ case 0x0F: return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRID;
+ case 0x10: return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTTRELLIS;
+ case 0x11: return PHPExcel_Style_Fill::FILL_PATTERN_GRAY125;
+ case 0x12: return PHPExcel_Style_Fill::FILL_PATTERN_GRAY0625;
+ default: return PHPExcel_Style_Fill::FILL_NONE;
+ }
+ }
+
+ /**
+ * Map error code, e.g. '#N/A'
+ *
+ * @param int $subData
+ * @return string
+ */
+ private function _mapErrorCode($subData)
+ {
+ switch ($subData) {
+ case 0x00: return '#NULL!'; break;
+ case 0x07: return '#DIV/0!'; break;
+ case 0x0F: return '#VALUE!'; break;
+ case 0x17: return '#REF!'; break;
+ case 0x1D: return '#NAME?'; break;
+ case 0x24: return '#NUM!'; break;
+ case 0x2A: return '#N/A'; break;
+ default: return false;
+ }
+ }
+
+ /**
+ * Map built-in color to RGB value
+ *
+ * @param int $color Indexed color
+ * @return array
+ */
+ private function _mapBuiltInColor($color)
+ {
+ switch ($color) {
+ case 0x00: return array('rgb' => '000000');
+ case 0x01: return array('rgb' => 'FFFFFF');
+ case 0x02: return array('rgb' => 'FF0000');
+ case 0x03: return array('rgb' => '00FF00');
+ case 0x04: return array('rgb' => '0000FF');
+ case 0x05: return array('rgb' => 'FFFF00');
+ case 0x06: return array('rgb' => 'FF00FF');
+ case 0x07: return array('rgb' => '00FFFF');
+ case 0x40: return array('rgb' => '000000'); // system window text color
+ case 0x41: return array('rgb' => 'FFFFFF'); // system window background color
+ default: return array('rgb' => '000000');
+ }
+ }
+
+ /**
+ * Map color array from BIFF5 built-in color index
+ *
+ * @param int $subData
+ * @return array
+ */
+ private function _mapColorBIFF5($subData)
+ {
+ switch ($subData) {
+ case 0x08: return array('rgb' => '000000');
+ case 0x09: return array('rgb' => 'FFFFFF');
+ case 0x0A: return array('rgb' => 'FF0000');
+ case 0x0B: return array('rgb' => '00FF00');
+ case 0x0C: return array('rgb' => '0000FF');
+ case 0x0D: return array('rgb' => 'FFFF00');
+ case 0x0E: return array('rgb' => 'FF00FF');
+ case 0x0F: return array('rgb' => '00FFFF');
+ case 0x10: return array('rgb' => '800000');
+ case 0x11: return array('rgb' => '008000');
+ case 0x12: return array('rgb' => '000080');
+ case 0x13: return array('rgb' => '808000');
+ case 0x14: return array('rgb' => '800080');
+ case 0x15: return array('rgb' => '008080');
+ case 0x16: return array('rgb' => 'C0C0C0');
+ case 0x17: return array('rgb' => '808080');
+ case 0x18: return array('rgb' => '8080FF');
+ case 0x19: return array('rgb' => '802060');
+ case 0x1A: return array('rgb' => 'FFFFC0');
+ case 0x1B: return array('rgb' => 'A0E0F0');
+ case 0x1C: return array('rgb' => '600080');
+ case 0x1D: return array('rgb' => 'FF8080');
+ case 0x1E: return array('rgb' => '0080C0');
+ case 0x1F: return array('rgb' => 'C0C0FF');
+ case 0x20: return array('rgb' => '000080');
+ case 0x21: return array('rgb' => 'FF00FF');
+ case 0x22: return array('rgb' => 'FFFF00');
+ case 0x23: return array('rgb' => '00FFFF');
+ case 0x24: return array('rgb' => '800080');
+ case 0x25: return array('rgb' => '800000');
+ case 0x26: return array('rgb' => '008080');
+ case 0x27: return array('rgb' => '0000FF');
+ case 0x28: return array('rgb' => '00CFFF');
+ case 0x29: return array('rgb' => '69FFFF');
+ case 0x2A: return array('rgb' => 'E0FFE0');
+ case 0x2B: return array('rgb' => 'FFFF80');
+ case 0x2C: return array('rgb' => 'A6CAF0');
+ case 0x2D: return array('rgb' => 'DD9CB3');
+ case 0x2E: return array('rgb' => 'B38FEE');
+ case 0x2F: return array('rgb' => 'E3E3E3');
+ case 0x30: return array('rgb' => '2A6FF9');
+ case 0x31: return array('rgb' => '3FB8CD');
+ case 0x32: return array('rgb' => '488436');
+ case 0x33: return array('rgb' => '958C41');
+ case 0x34: return array('rgb' => '8E5E42');
+ case 0x35: return array('rgb' => 'A0627A');
+ case 0x36: return array('rgb' => '624FAC');
+ case 0x37: return array('rgb' => '969696');
+ case 0x38: return array('rgb' => '1D2FBE');
+ case 0x39: return array('rgb' => '286676');
+ case 0x3A: return array('rgb' => '004500');
+ case 0x3B: return array('rgb' => '453E01');
+ case 0x3C: return array('rgb' => '6A2813');
+ case 0x3D: return array('rgb' => '85396A');
+ case 0x3E: return array('rgb' => '4A3285');
+ case 0x3F: return array('rgb' => '424242');
+ default: return array('rgb' => '000000');
+ }
+ }
+
+ /**
+ * Map color array from BIFF8 built-in color index
+ *
+ * @param int $subData
+ * @return array
+ */
+ private function _mapColor($subData)
+ {
+ switch ($subData) {
+ case 0x08: return array('rgb' => '000000');
+ case 0x09: return array('rgb' => 'FFFFFF');
+ case 0x0A: return array('rgb' => 'FF0000');
+ case 0x0B: return array('rgb' => '00FF00');
+ case 0x0C: return array('rgb' => '0000FF');
+ case 0x0D: return array('rgb' => 'FFFF00');
+ case 0x0E: return array('rgb' => 'FF00FF');
+ case 0x0F: return array('rgb' => '00FFFF');
+ case 0x10: return array('rgb' => '800000');
+ case 0x11: return array('rgb' => '008000');
+ case 0x12: return array('rgb' => '000080');
+ case 0x13: return array('rgb' => '808000');
+ case 0x14: return array('rgb' => '800080');
+ case 0x15: return array('rgb' => '008080');
+ case 0x16: return array('rgb' => 'C0C0C0');
+ case 0x17: return array('rgb' => '808080');
+ case 0x18: return array('rgb' => '9999FF');
+ case 0x19: return array('rgb' => '993366');
+ case 0x1A: return array('rgb' => 'FFFFCC');
+ case 0x1B: return array('rgb' => 'CCFFFF');
+ case 0x1C: return array('rgb' => '660066');
+ case 0x1D: return array('rgb' => 'FF8080');
+ case 0x1E: return array('rgb' => '0066CC');
+ case 0x1F: return array('rgb' => 'CCCCFF');
+ case 0x20: return array('rgb' => '000080');
+ case 0x21: return array('rgb' => 'FF00FF');
+ case 0x22: return array('rgb' => 'FFFF00');
+ case 0x23: return array('rgb' => '00FFFF');
+ case 0x24: return array('rgb' => '800080');
+ case 0x25: return array('rgb' => '800000');
+ case 0x26: return array('rgb' => '008080');
+ case 0x27: return array('rgb' => '0000FF');
+ case 0x28: return array('rgb' => '00CCFF');
+ case 0x29: return array('rgb' => 'CCFFFF');
+ case 0x2A: return array('rgb' => 'CCFFCC');
+ case 0x2B: return array('rgb' => 'FFFF99');
+ case 0x2C: return array('rgb' => '99CCFF');
+ case 0x2D: return array('rgb' => 'FF99CC');
+ case 0x2E: return array('rgb' => 'CC99FF');
+ case 0x2F: return array('rgb' => 'FFCC99');
+ case 0x30: return array('rgb' => '3366FF');
+ case 0x31: return array('rgb' => '33CCCC');
+ case 0x32: return array('rgb' => '99CC00');
+ case 0x33: return array('rgb' => 'FFCC00');
+ case 0x34: return array('rgb' => 'FF9900');
+ case 0x35: return array('rgb' => 'FF6600');
+ case 0x36: return array('rgb' => '666699');
+ case 0x37: return array('rgb' => '969696');
+ case 0x38: return array('rgb' => '003366');
+ case 0x39: return array('rgb' => '339966');
+ case 0x3A: return array('rgb' => '003300');
+ case 0x3B: return array('rgb' => '333300');
+ case 0x3C: return array('rgb' => '993300');
+ case 0x3D: return array('rgb' => '993366');
+ case 0x3E: return array('rgb' => '333399');
+ case 0x3F: return array('rgb' => '333333');
+ default: return array('rgb' => '000000');
+ }
+ }
+
+}
diff --git a/libraries/PHPExcel/PHPExcel/Reader/Excel5/Escher.php b/libraries/PHPExcel/PHPExcel/Reader/Excel5/Escher.php
new file mode 100644
index 000000000..3cdc38449
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Reader/Excel5/Escher.php
@@ -0,0 +1,709 @@
+_object = $object;
+ }
+
+ /**
+ * Load Escher stream data. May be a partial Escher stream.
+ *
+ * @param string $data
+ */
+ public function load($data)
+ {
+ $this->_data = $data;
+
+ // total byte size of Excel data (workbook global substream + sheet substreams)
+ $this->_dataSize = strlen($this->_data);
+
+ $this->_pos = 0;
+
+ // Parse Escher stream
+ while ($this->_pos < $this->_dataSize) {
+
+
+ // offset: 2; size: 2: Record Type
+ $fbt = $this->_GetInt2d($this->_data, $this->_pos + 2);
+
+ switch ($fbt) {
+ case self::DGGCONTAINER: $this->_readDggContainer(); break;
+ case self::DGG: $this->_readDgg(); break;
+ case self::BSTORECONTAINER: $this->_readBstoreContainer(); break;
+ case self::BSE: $this->_readBSE(); break;
+ case self::BLIPJPEG: $this->_readBlipJPEG(); break;
+ case self::BLIPPNG: $this->_readBlipPNG(); break;
+ case self::OPT: $this->_readOPT(); break;
+ case self::TERTIARYOPT: $this->_readTertiaryOPT(); break;
+ case self::SPLITMENUCOLORS: $this->_readSplitMenuColors(); break;
+ case self::DGCONTAINER: $this->_readDgContainer(); break;
+ case self::DG: $this->_readDg(); break;
+ case self::SPGRCONTAINER: $this->_readSpgrContainer(); break;
+ case self::SPCONTAINER: $this->_readSpContainer(); break;
+ case self::SPGR: $this->_readSpgr(); break;
+ case self::SP: $this->_readSp(); break;
+ case self::CLIENTTEXTBOX: $this->_readClientTextbox(); break;
+ case self::CLIENTANCHOR: $this->_readClientAnchor(); break;
+ case self::CLIENTDATA: $this->_readClientData(); break;
+ default: $this->_readDefault(); break;
+ }
+ }
+
+ return $this->_object;
+ }
+
+ /**
+ * Read a generic record
+ */
+ private function _readDefault()
+ {
+ // offset 0; size: 2; recVer and recInstance
+ $verInstance = $this->_GetInt2d($this->_data, $this->_pos);
+
+ // offset: 2; size: 2: Record Type
+ $fbt = $this->_GetInt2d($this->_data, $this->_pos + 2);
+
+ // bit: 0-3; mask: 0x000F; recVer
+ $recVer = (0x000F & $verInstance) >> 0;
+
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+ }
+
+ /**
+ * Read DggContainer record (Drawing Group Container)
+ */
+ private function _readDggContainer()
+ {
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+
+ // record is a container, read contents
+ $dggContainer = new PHPExcel_Shared_Escher_DggContainer();
+ $this->_object->setDggContainer($dggContainer);
+ $reader = new PHPExcel_Reader_Excel5_Escher($dggContainer);
+ $reader->load($recordData);
+ }
+
+ /**
+ * Read Dgg record (Drawing Group)
+ */
+ private function _readDgg()
+ {
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+ }
+
+ /**
+ * Read BstoreContainer record (Blip Store Container)
+ */
+ private function _readBstoreContainer()
+ {
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+
+ // record is a container, read contents
+ $bstoreContainer = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer();
+ $this->_object->setBstoreContainer($bstoreContainer);
+ $reader = new PHPExcel_Reader_Excel5_Escher($bstoreContainer);
+ $reader->load($recordData);
+ }
+
+ /**
+ * Read BSE record
+ */
+ private function _readBSE()
+ {
+ // offset: 0; size: 2; recVer and recInstance
+
+ // bit: 4-15; mask: 0xFFF0; recInstance
+ $recInstance = (0xFFF0 & $this->_GetInt2d($this->_data, $this->_pos)) >> 4;
+
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+
+ // add BSE to BstoreContainer
+ $BSE = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE();
+ $this->_object->addBSE($BSE);
+
+ $BSE->setBLIPType($recInstance);
+
+ // offset: 0; size: 1; btWin32 (MSOBLIPTYPE)
+ $btWin32 = ord($recordData[0]);
+
+ // offset: 1; size: 1; btWin32 (MSOBLIPTYPE)
+ $btMacOS = ord($recordData[1]);
+
+ // offset: 2; size: 16; MD4 digest
+ $rgbUid = substr($recordData, 2, 16);
+
+ // offset: 18; size: 2; tag
+ $tag = $this->_GetInt2d($recordData, 18);
+
+ // offset: 20; size: 4; size of BLIP in bytes
+ $size = $this->_GetInt4d($recordData, 20);
+
+ // offset: 24; size: 4; number of references to this BLIP
+ $cRef = $this->_GetInt4d($recordData, 24);
+
+ // offset: 28; size: 4; MSOFO file offset
+ $foDelay = $this->_GetInt4d($recordData, 28);
+
+ // offset: 32; size: 1; unused1
+ $unused1 = ord($recordData{32});
+
+ // offset: 33; size: 1; size of nameData in bytes (including null terminator)
+ $cbName = ord($recordData{33});
+
+ // offset: 34; size: 1; unused2
+ $unused2 = ord($recordData{34});
+
+ // offset: 35; size: 1; unused3
+ $unused3 = ord($recordData{35});
+
+ // offset: 36; size: $cbName; nameData
+ $nameData = substr($recordData, 36, $cbName);
+
+ // offset: 36 + $cbName, size: var; the BLIP data
+ $blipData = substr($recordData, 36 + $cbName);
+
+ // record is a container, read contents
+ $reader = new PHPExcel_Reader_Excel5_Escher($BSE);
+ $reader->load($blipData);
+ }
+
+ /**
+ * Read BlipJPEG record. Holds raw JPEG image data
+ */
+ private function _readBlipJPEG()
+ {
+ // offset: 0; size: 2; recVer and recInstance
+
+ // bit: 4-15; mask: 0xFFF0; recInstance
+ $recInstance = (0xFFF0 & $this->_GetInt2d($this->_data, $this->_pos)) >> 4;
+
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+
+ $pos = 0;
+
+ // offset: 0; size: 16; rgbUid1 (MD4 digest of)
+ $rgbUid1 = substr($recordData, 0, 16);
+ $pos += 16;
+
+ // offset: 16; size: 16; rgbUid2 (MD4 digest), only if $recInstance = 0x46B or 0x6E3
+ if (in_array($recInstance, array(0x046B, 0x06E3))) {
+ $rgbUid2 = substr($recordData, 16, 16);
+ $pos += 16;
+ }
+
+ // offset: var; size: 1; tag
+ $tag = ord($recordData{$pos});
+ $pos += 1;
+
+ // offset: var; size: var; the raw image data
+ $data = substr($recordData, $pos);
+
+ $blip = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip();
+ $blip->setData($data);
+
+ $this->_object->setBlip($blip);
+ }
+
+ /**
+ * Read BlipPNG record. Holds raw PNG image data
+ */
+ private function _readBlipPNG()
+ {
+ // offset: 0; size: 2; recVer and recInstance
+
+ // bit: 4-15; mask: 0xFFF0; recInstance
+ $recInstance = (0xFFF0 & $this->_GetInt2d($this->_data, $this->_pos)) >> 4;
+
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+
+ $pos = 0;
+
+ // offset: 0; size: 16; rgbUid1 (MD4 digest of)
+ $rgbUid1 = substr($recordData, 0, 16);
+ $pos += 16;
+
+ // offset: 16; size: 16; rgbUid2 (MD4 digest), only if $recInstance = 0x46B or 0x6E3
+ if ($recInstance == 0x06E1) {
+ $rgbUid2 = substr($recordData, 16, 16);
+ $pos += 16;
+ }
+
+ // offset: var; size: 1; tag
+ $tag = ord($recordData{$pos});
+ $pos += 1;
+
+ // offset: var; size: var; the raw image data
+ $data = substr($recordData, $pos);
+
+ $blip = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip();
+ $blip->setData($data);
+
+ $this->_object->setBlip($blip);
+ }
+
+ /**
+ * Read OPT record. This record may occur within DggContainer record or SpContainer
+ */
+ private function _readOPT()
+ {
+ // offset: 0; size: 2; recVer and recInstance
+
+ // bit: 4-15; mask: 0xFFF0; recInstance
+ $recInstance = (0xFFF0 & $this->_GetInt2d($this->_data, $this->_pos)) >> 4;
+
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+
+ $this->_readOfficeArtRGFOPTE($recordData, $recInstance);
+ }
+
+ /**
+ * Read TertiaryOPT record
+ */
+ private function _readTertiaryOPT()
+ {
+ // offset: 0; size: 2; recVer and recInstance
+
+ // bit: 4-15; mask: 0xFFF0; recInstance
+ $recInstance = (0xFFF0 & $this->_GetInt2d($this->_data, $this->_pos)) >> 4;
+
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+ }
+
+ /**
+ * Read SplitMenuColors record
+ */
+ private function _readSplitMenuColors()
+ {
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+ }
+
+ /**
+ * Read DgContainer record (Drawing Container)
+ */
+ private function _readDgContainer()
+ {
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+
+ // record is a container, read contents
+ $dgContainer = new PHPExcel_Shared_Escher_DgContainer();
+ $this->_object->setDgContainer($dgContainer);
+ $reader = new PHPExcel_Reader_Excel5_Escher($dgContainer);
+ $escher = $reader->load($recordData);
+ }
+
+ /**
+ * Read Dg record (Drawing)
+ */
+ private function _readDg()
+ {
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+ }
+
+ /**
+ * Read SpgrContainer record (Shape Group Container)
+ */
+ private function _readSpgrContainer()
+ {
+ // context is either context DgContainer or SpgrContainer
+
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+
+ // record is a container, read contents
+ $spgrContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer();
+
+ if ($this->_object instanceof PHPExcel_Shared_Escher_DgContainer) {
+ // DgContainer
+ $this->_object->setSpgrContainer($spgrContainer);
+ } else {
+ // SpgrContainer
+ $this->_object->addChild($spgrContainer);
+ }
+
+ $reader = new PHPExcel_Reader_Excel5_Escher($spgrContainer);
+ $escher = $reader->load($recordData);
+ }
+
+ /**
+ * Read SpContainer record (Shape Container)
+ */
+ private function _readSpContainer()
+ {
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // add spContainer to spgrContainer
+ $spContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer();
+ $this->_object->addChild($spContainer);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+
+ // record is a container, read contents
+ $reader = new PHPExcel_Reader_Excel5_Escher($spContainer);
+ $escher = $reader->load($recordData);
+ }
+
+ /**
+ * Read Spgr record (Shape Group)
+ */
+ private function _readSpgr()
+ {
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+ }
+
+ /**
+ * Read Sp record (Shape)
+ */
+ private function _readSp()
+ {
+ // offset: 0; size: 2; recVer and recInstance
+
+ // bit: 4-15; mask: 0xFFF0; recInstance
+ $recInstance = (0xFFF0 & $this->_GetInt2d($this->_data, $this->_pos)) >> 4;
+
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+ }
+
+ /**
+ * Read ClientTextbox record
+ */
+ private function _readClientTextbox()
+ {
+ // offset: 0; size: 2; recVer and recInstance
+
+ // bit: 4-15; mask: 0xFFF0; recInstance
+ $recInstance = (0xFFF0 & $this->_GetInt2d($this->_data, $this->_pos)) >> 4;
+
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+ }
+
+ /**
+ * Read ClientAnchor record. This record holds information about where the shape is anchored in worksheet
+ */
+ private function _readClientAnchor()
+ {
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+
+ // offset: 2; size: 2; upper-left corner column index (0-based)
+ $c1 = $this->_GetInt2d($recordData, 2);
+
+ // offset: 4; size: 2; upper-left corner horizontal offset in 1/1024 of column width
+ $startOffsetX = $this->_GetInt2d($recordData, 4);
+
+ // offset: 6; size: 2; upper-left corner row index (0-based)
+ $r1 = $this->_GetInt2d($recordData, 6);
+
+ // offset: 8; size: 2; upper-left corner vertical offset in 1/256 of row height
+ $startOffsetY = $this->_GetInt2d($recordData, 8);
+
+ // offset: 10; size: 2; bottom-right corner column index (0-based)
+ $c2 = $this->_GetInt2d($recordData, 10);
+
+ // offset: 12; size: 2; bottom-right corner horizontal offset in 1/1024 of column width
+ $endOffsetX = $this->_GetInt2d($recordData, 12);
+
+ // offset: 14; size: 2; bottom-right corner row index (0-based)
+ $r2 = $this->_GetInt2d($recordData, 14);
+
+ // offset: 16; size: 2; bottom-right corner vertical offset in 1/256 of row height
+ $endOffsetY = $this->_GetInt2d($recordData, 16);
+
+ // set the start coordinates
+ $this->_object->setStartCoordinates(PHPExcel_Cell::stringFromColumnIndex($c1) . ($r1 + 1));
+
+ // set the start offsetX
+ $this->_object->setStartOffsetX($startOffsetX);
+
+ // set the start offsetY
+ $this->_object->setStartOffsetY($startOffsetY);
+
+ // set the end coordinates
+ $this->_object->setEndCoordinates(PHPExcel_Cell::stringFromColumnIndex($c2) . ($r2 + 1));
+
+ // set the end offsetX
+ $this->_object->setEndOffsetX($endOffsetX);
+
+ // set the end offsetY
+ $this->_object->setEndOffsetY($endOffsetY);
+ }
+
+ /**
+ * Read ClientData record
+ */
+ private function _readClientData()
+ {
+ $length = $this->_GetInt4d($this->_data, $this->_pos + 4);
+ $recordData = substr($this->_data, $this->_pos + 8, $length);
+
+ // move stream pointer to next record
+ $this->_pos += 8 + $length;
+ }
+
+ /**
+ * Read OfficeArtRGFOPTE table of property-value pairs
+ *
+ * @param string $data Binary data
+ * @param int $n Number of properties
+ */
+ private function _readOfficeArtRGFOPTE($data, $n) {
+
+ $splicedComplexData = substr($data, 6 * $n);
+
+ // loop through property-value pairs
+ for ($i = 0; $i < $n; ++$i) {
+ // read 6 bytes at a time
+ $fopte = substr($data, 6 * $i, 6);
+
+ // offset: 0; size: 2; opid
+ $opid = $this->_GetInt2d($fopte, 0);
+
+ // bit: 0-13; mask: 0x3FFF; opid.opid
+ $opidOpid = (0x3FFF & $opid) >> 0;
+
+ // bit: 14; mask 0x4000; 1 = value in op field is BLIP identifier
+ $opidFBid = (0x4000 & $opid) >> 14;
+
+ // bit: 15; mask 0x8000; 1 = this is a complex property, op field specifies size of complex data
+ $opidFComplex = (0x8000 & $opid) >> 15;
+
+ // offset: 2; size: 4; the value for this property
+ $op = $this->_GetInt4d($fopte, 2);
+
+ if ($opidFComplex) {
+ $complexData = substr($splicedComplexData, 0, $op);
+ $splicedComplexData = substr($splicedComplexData, $op);
+
+ // we store string value with complex data
+ $value = $complexData;
+ } else {
+ // we store integer value
+ $value = $op;
+ }
+
+ $this->_object->setOPT($opidOpid, $value);
+ }
+ }
+
+ /**
+ * Read 16-bit unsigned integer
+ *
+ * @param string $data
+ * @param int $pos
+ * @return int
+ */
+ private function _GetInt2d($data, $pos)
+ {
+ return ord($data[$pos]) | (ord($data[$pos + 1]) << 8);
+ }
+
+ /**
+ * Read 32-bit signed integer
+ *
+ * @param string $data
+ * @param int $pos
+ * @return int
+ */
+ private function _GetInt4d($data, $pos)
+ {
+ //return ord($data[$pos]) | (ord($data[$pos + 1]) << 8) |
+ // (ord($data[$pos + 2]) << 16) | (ord($data[$pos + 3]) << 24);
+
+ // FIX: represent numbers correctly on 64-bit system
+ // http://sourceforge.net/tracker/index.php?func=detail&aid=1487372&group_id=99160&atid=623334
+ $_or_24 = ord($data[$pos + 3]);
+ if ($_or_24 >= 128) {
+ // negative number
+ $_ord_24 = -abs((256 - $_or_24) << 24);
+ } else {
+ $_ord_24 = ($_or_24 & 127) << 24;
+ }
+ return ord($data[$pos]) | (ord($data[$pos + 1]) << 8) | (ord($data[$pos + 2]) << 16) | $_ord_24;
+ }
+
+}
diff --git a/libraries/PHPExcel/PHPExcel/Reader/IReadFilter.php b/libraries/PHPExcel/PHPExcel/Reader/IReadFilter.php
new file mode 100644
index 000000000..a173b3f0f
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Reader/IReadFilter.php
@@ -0,0 +1,47 @@
+fileSupportsUnserializePHPExcel($pFilename);
+ }
+
+ /**
+ * Loads PHPExcel Serialized file
+ *
+ * @param string $pFilename
+ * @return PHPExcel
+ * @throws Exception
+ */
+ public function load($pFilename)
+ {
+ // Check if file exists
+ if (!file_exists($pFilename)) {
+ throw new Exception("Could not open " . $pFilename . " for reading! File does not exist.");
+ }
+
+ // Unserialize... First make sure the file supports it!
+ if (!$this->fileSupportsUnserializePHPExcel($pFilename)) {
+ throw new Exception("Invalid file format for PHPExcel_Reader_Serialized: " . $pFilename . ".");
+ }
+
+ return $this->_loadSerialized($pFilename);
+ }
+
+ /**
+ * Load PHPExcel Serialized file
+ *
+ * @param string $pFilename
+ * @return PHPExcel
+ */
+ private function _loadSerialized($pFilename) {
+ $xmlData = simplexml_load_string(file_get_contents("zip://$pFilename#phpexcel.xml"));
+ $excel = unserialize(base64_decode((string)$xmlData->data));
+
+ // Update media links
+ for ($i = 0; $i < $excel->getSheetCount(); ++$i) {
+ for ($j = 0; $j < $excel->getSheet($i)->getDrawingCollection()->count(); ++$j) {
+ if ($excel->getSheet($i)->getDrawingCollection()->offsetGet($j) instanceof PHPExcl_Worksheet_BaseDrawing) {
+ $imgTemp =& $excel->getSheet($i)->getDrawingCollection()->offsetGet($j);
+ $imgTemp->setPath('zip://' . $pFilename . '#media/' . $imgTemp->getFilename(), false);
+ }
+ }
+ }
+
+ return $excel;
+ }
+
+ /**
+ * Does a file support UnserializePHPExcel ?
+ *
+ * @param string $pFilename
+ * @throws Exception
+ * @return boolean
+ */
+ public function fileSupportsUnserializePHPExcel($pFilename = '') {
+ // Check if file exists
+ if (!file_exists($pFilename)) {
+ throw new Exception("Could not open " . $pFilename . " for reading! File does not exist.");
+ }
+
+ // File exists, does it contain phpexcel.xml?
+ return PHPExcel_Shared_File::file_exists("zip://$pFilename#phpexcel.xml");
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/ReferenceHelper.php b/libraries/PHPExcel/PHPExcel/ReferenceHelper.php
new file mode 100644
index 000000000..886ce286c
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/ReferenceHelper.php
@@ -0,0 +1,546 @@
+getCellCollection();
+ $aCellCollection = array();
+ foreach ($aTemp as $key => $value) {
+ $aCellCollection[$key] = clone $value;
+ }*/
+ $aCellCollection = $pSheet->getCellCollection();
+
+ // Get coordinates of $pBefore
+ $beforeColumn = 'A';
+ $beforeRow = 1;
+ list($beforeColumn, $beforeRow) = PHPExcel_Cell::coordinateFromString( $pBefore );
+
+
+ // Clear cells if we are removing columns or rows
+ $highestColumn = $pSheet->getHighestColumn();
+ $highestRow = $pSheet->getHighestRow();
+
+ // 1. Clear column strips if we are removing columns
+ if ($pNumCols < 0 && PHPExcel_Cell::columnIndexFromString($beforeColumn) - 2 + $pNumCols > 0) {
+ for ($i = 1; $i <= $highestRow - 1; ++$i) {
+ for ($j = PHPExcel_Cell::columnIndexFromString($beforeColumn) - 1 + $pNumCols; $j <= PHPExcel_Cell::columnIndexFromString($beforeColumn) - 2; ++$j) {
+ $coordinate = PHPExcel_Cell::stringFromColumnIndex($j) . $i;
+ $pSheet->removeConditionalStyles($coordinate);
+ if ($pSheet->cellExists($coordinate)) {
+ $pSheet->getCell($coordinate)->setValueExplicit('', PHPExcel_Cell_DataType::TYPE_NULL);
+ $pSheet->getCell($coordinate)->setXfIndex(0);
+ }
+ }
+ }
+ }
+
+ // 2. Clear row strips if we are removing rows
+ if ($pNumRows < 0 && $beforeRow - 1 + $pNumRows > 0) {
+ for ($i = PHPExcel_Cell::columnIndexFromString($beforeColumn) - 1; $i <= PHPExcel_Cell::columnIndexFromString($highestColumn) - 1; ++$i) {
+ for ($j = $beforeRow + $pNumRows; $j <= $beforeRow - 1; ++$j) {
+ $coordinate = PHPExcel_Cell::stringFromColumnIndex($i) . $j;
+ $pSheet->removeConditionalStyles($coordinate);
+ if ($pSheet->cellExists($coordinate)) {
+ $pSheet->getCell($coordinate)->setValueExplicit('', PHPExcel_Cell_DataType::TYPE_NULL);
+ $pSheet->getCell($coordinate)->setXfIndex(0);
+ }
+ }
+ }
+ }
+
+
+ // Loop through cells, bottom-up, and change cell coordinates
+ while ( ($cell = ($pNumCols < 0 || $pNumRows < 0) ? array_shift($aCellCollection) : array_pop($aCellCollection)) ) {
+ // New coordinates
+ $newCoordinates = PHPExcel_Cell::stringFromColumnIndex( PHPExcel_Cell::columnIndexFromString($cell->getColumn()) - 1 + $pNumCols ) . ($cell->getRow() + $pNumRows);
+
+ // Should the cell be updated? Move value and cellXf index from one cell to another.
+ if (
+ (PHPExcel_Cell::columnIndexFromString( $cell->getColumn() ) >= PHPExcel_Cell::columnIndexFromString($beforeColumn)) &&
+ ($cell->getRow() >= $beforeRow)
+ ) {
+
+ // Update cell styles
+ $pSheet->getCell($newCoordinates)->setXfIndex($cell->getXfIndex());
+ $cell->setXfIndex(0);
+
+ // Insert this cell at its new location
+ if ($cell->getDataType() == PHPExcel_Cell_DataType::TYPE_FORMULA) {
+ // Formula should be adjusted
+ $pSheet->setCellValue(
+ $newCoordinates
+ , $this->updateFormulaReferences($cell->getValue(), $pBefore, $pNumCols, $pNumRows)
+ );
+ } else {
+ // Formula should not be adjusted
+ $pSheet->setCellValue($newCoordinates, $cell->getValue());
+ }
+
+ // Clear the original cell
+ $pSheet->setCellValue($cell->getCoordinate(), '');
+ }
+ }
+
+
+ // Duplicate styles for the newly inserted cells
+ $highestColumn = $pSheet->getHighestColumn();
+ $highestRow = $pSheet->getHighestRow();
+
+ if ($pNumCols > 0 && PHPExcel_Cell::columnIndexFromString($beforeColumn) - 2 > 0) {
+ for ($i = $beforeRow; $i <= $highestRow - 1; ++$i) {
+
+ // Style
+ $coordinate = PHPExcel_Cell::stringFromColumnIndex( PHPExcel_Cell::columnIndexFromString($beforeColumn) - 2 ) . $i;
+ if ($pSheet->cellExists($coordinate)) {
+ $xfIndex = $pSheet->getCell($coordinate)->getXfIndex();
+ $conditionalStyles = $pSheet->conditionalStylesExists($coordinate) ?
+ $pSheet->getConditionalStyles($coordinate) : false;
+ for ($j = PHPExcel_Cell::columnIndexFromString($beforeColumn) - 1; $j <= PHPExcel_Cell::columnIndexFromString($beforeColumn) - 2 + $pNumCols; ++$j) {
+ $pSheet->getCellByColumnAndRow($j, $i)->setXfIndex($xfIndex);
+ if ($conditionalStyles) {
+ $cloned = array();
+ foreach ($conditionalStyles as $conditionalStyle) {
+ $cloned[] = clone $conditionalStyle;
+ }
+ $pSheet->setConditionalStyles(PHPExcel_Cell::stringFromColumnIndex($j) . $i, $cloned);
+ }
+ }
+ }
+
+ }
+ }
+
+ if ($pNumRows > 0 && $beforeRow - 1 > 0) {
+ for ($i = PHPExcel_Cell::columnIndexFromString($beforeColumn) - 1; $i <= PHPExcel_Cell::columnIndexFromString($highestColumn) - 1; ++$i) {
+
+ // Style
+ $coordinate = PHPExcel_Cell::stringFromColumnIndex($i) . ($beforeRow - 1);
+ if ($pSheet->cellExists($coordinate)) {
+ $xfIndex = $pSheet->getCell($coordinate)->getXfIndex();
+ $conditionalStyles = $pSheet->conditionalStylesExists($coordinate) ?
+ $pSheet->getConditionalStyles($coordinate) : false;
+ for ($j = $beforeRow; $j <= $beforeRow - 1 + $pNumRows; ++$j) {
+ $pSheet->getCell(PHPExcel_Cell::stringFromColumnIndex($i) . $j)->setXfIndex($xfIndex);
+ if ($conditionalStyles) {
+ $cloned = array();
+ foreach ($conditionalStyles as $conditionalStyle) {
+ $cloned[] = clone $conditionalStyle;
+ }
+ $pSheet->setConditionalStyles(PHPExcel_Cell::stringFromColumnIndex($i) . $j, $cloned);
+ }
+ }
+ }
+ }
+ }
+
+
+ // Update worksheet: column dimensions
+ $aColumnDimensions = array_reverse($pSheet->getColumnDimensions(), true);
+ if (count($aColumnDimensions) > 0) {
+ foreach ($aColumnDimensions as $objColumnDimension) {
+ $newReference = $this->updateCellReference($objColumnDimension->getColumnIndex() . '1', $pBefore, $pNumCols, $pNumRows);
+ list($newReference) = PHPExcel_Cell::coordinateFromString($newReference);
+ if ($objColumnDimension->getColumnIndex() != $newReference) {
+ $objColumnDimension->setColumnIndex($newReference);
+ }
+ }
+ $pSheet->refreshColumnDimensions();
+ }
+
+
+ // Update worksheet: row dimensions
+ $aRowDimensions = array_reverse($pSheet->getRowDimensions(), true);
+ if (count($aRowDimensions) > 0) {
+ foreach ($aRowDimensions as $objRowDimension) {
+ $newReference = $this->updateCellReference('A' . $objRowDimension->getRowIndex(), $pBefore, $pNumCols, $pNumRows);
+ list(, $newReference) = PHPExcel_Cell::coordinateFromString($newReference);
+ if ($objRowDimension->getRowIndex() != $newReference) {
+ $objRowDimension->setRowIndex($newReference);
+ }
+ }
+ $pSheet->refreshRowDimensions();
+
+ $copyDimension = $pSheet->getRowDimension($beforeRow - 1);
+ for ($i = $beforeRow; $i <= $beforeRow - 1 + $pNumRows; ++$i) {
+ $newDimension = $pSheet->getRowDimension($i);
+ $newDimension->setRowHeight($copyDimension->getRowHeight());
+ $newDimension->setVisible($copyDimension->getVisible());
+ $newDimension->setOutlineLevel($copyDimension->getOutlineLevel());
+ $newDimension->setCollapsed($copyDimension->getCollapsed());
+ }
+ }
+
+
+ // Update worksheet: breaks
+ $aBreaks = array_reverse($pSheet->getBreaks(), true);
+ foreach ($aBreaks as $key => $value) {
+ $newReference = $this->updateCellReference($key, $pBefore, $pNumCols, $pNumRows);
+ if ($key != $newReference) {
+ $pSheet->setBreak( $newReference, $value );
+ $pSheet->setBreak( $key, PHPExcel_Worksheet::BREAK_NONE );
+ }
+ }
+
+
+ // Update worksheet: hyperlinks
+ $aHyperlinkCollection = array_reverse($pSheet->getHyperlinkCollection(), true);
+ foreach ($aHyperlinkCollection as $key => $value) {
+ $newReference = $this->updateCellReference($key, $pBefore, $pNumCols, $pNumRows);
+ if ($key != $newReference) {
+ $pSheet->setHyperlink( $newReference, $value );
+ $pSheet->setHyperlink( $key, null );
+ }
+ }
+
+
+ // Update worksheet: data validations
+ $aDataValidationCollection = array_reverse($pSheet->getDataValidationCollection(), true);
+ foreach ($aDataValidationCollection as $key => $value) {
+ $newReference = $this->updateCellReference($key, $pBefore, $pNumCols, $pNumRows);
+ if ($key != $newReference) {
+ $pSheet->setDataValidation( $newReference, $value );
+ $pSheet->setDataValidation( $key, null );
+ }
+ }
+
+
+ // Update worksheet: merge cells
+ $aMergeCells = array_reverse($pSheet->getMergeCells(), true);
+ foreach ($aMergeCells as $key => $value) {
+ $newReference = $this->updateCellReference($key, $pBefore, $pNumCols, $pNumRows);
+ if ($key != $newReference) {
+ $pSheet->mergeCells( $newReference );
+ $pSheet->unmergeCells( $key );
+ }
+ }
+
+
+ // Update worksheet: protected cells
+ $aProtectedCells = array_reverse($pSheet->getProtectedCells(), true);
+ foreach ($aProtectedCells as $key => $value) {
+ $newReference = $this->updateCellReference($key, $pBefore, $pNumCols, $pNumRows);
+ if ($key != $newReference) {
+ $pSheet->protectCells( $newReference, $value, true );
+ $pSheet->unprotectCells( $key );
+ }
+ }
+
+
+ // Update worksheet: autofilter
+ if ($pSheet->getAutoFilter() != '') {
+ $pSheet->setAutoFilter( $this->updateCellReference($pSheet->getAutoFilter(), $pBefore, $pNumCols, $pNumRows) );
+ }
+
+
+ // Update worksheet: freeze pane
+ if ($pSheet->getFreezePane() != '') {
+ $pSheet->freezePane( $this->updateCellReference($pSheet->getFreezePane(), $pBefore, $pNumCols, $pNumRows) );
+ }
+
+
+ // Page setup
+ if ($pSheet->getPageSetup()->isPrintAreaSet()) {
+ $pSheet->getPageSetup()->setPrintArea( $this->updateCellReference($pSheet->getPageSetup()->getPrintArea(), $pBefore, $pNumCols, $pNumRows) );
+ }
+
+
+ // Update worksheet: drawings
+ $aDrawings = $pSheet->getDrawingCollection();
+ foreach ($aDrawings as $objDrawing) {
+ $newReference = $this->updateCellReference($objDrawing->getCoordinates(), $pBefore, $pNumCols, $pNumRows);
+ if ($objDrawing->getCoordinates() != $newReference) {
+ $objDrawing->setCoordinates($newReference);
+ }
+ }
+
+
+ // Update workbook: named ranges
+ if (count($pSheet->getParent()->getNamedRanges()) > 0) {
+ foreach ($pSheet->getParent()->getNamedRanges() as $namedRange) {
+ if ($namedRange->getWorksheet()->getHashCode() == $pSheet->getHashCode()) {
+ $namedRange->setRange(
+ $this->updateCellReference($namedRange->getRange(), $pBefore, $pNumCols, $pNumRows)
+ );
+ }
+ }
+ }
+
+ // Garbage collect
+ $pSheet->garbageCollect();
+ }
+
+ /**
+ * Update references within formulas
+ *
+ * @param string $pFormula Formula to update
+ * @param int $pBefore Insert before this one
+ * @param int $pNumCols Number of columns to insert
+ * @param int $pNumRows Number of rows to insert
+ * @return string Updated formula
+ * @throws Exception
+ */
+ public function updateFormulaReferences($pFormula = '', $pBefore = 'A1', $pNumCols = 0, $pNumRows = 0) {
+ // Formula stack
+ $executableFormulaArray = array();
+
+ // Parse formula into a tree of tokens
+ $tokenisedFormula = PHPExcel_Calculation::getInstance()->parseFormula($pFormula);
+ $newCellTokens = $cellTokens = array();
+ // Build the translation table of cell tokens
+ foreach($tokenisedFormula as $token) {
+ if (preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $token, $matches)) {
+ $newCellTokens[] = $this->updateCellReference($token, $pBefore, $pNumCols, $pNumRows);
+ $cellTokens[] = '/'.$token.'/';
+ }
+ }
+
+ // Update cell references in the formula
+ $formulaBlocks = explode('"',$pFormula);
+ $i = 0;
+ foreach($formulaBlocks as $formulaBlockKey => $formulaBlock) {
+ // Only count/replace in alternate array entries
+ if (($i++ % 2) == 0) {
+ $formulaBlocks[$formulaBlockKey] = preg_replace($cellTokens,$newCellTokens,$formulaBlock);
+ }
+ }
+ // Then rebuild the formula string
+ return implode('"',$formulaBlocks);
+ }
+
+ /**
+ * Update cell reference
+ *
+ * @param string $pCellRange Cell range
+ * @param int $pBefore Insert before this one
+ * @param int $pNumCols Number of columns to increment
+ * @param int $pNumRows Number of rows to increment
+ * @return string Updated cell range
+ * @throws Exception
+ */
+ public function updateCellReference($pCellRange = 'A1', $pBefore = 'A1', $pNumCols = 0, $pNumRows = 0) {
+ // Is it in another worksheet? Will not have to update anything.
+ if (strpos($pCellRange, "!") !== false) {
+ return $pCellRange;
+ // Is it a range or a single cell?
+ } elseif (strpos($pCellRange, ':') === false && strpos($pCellRange, ',') === false) {
+ // Single cell
+ return $this->_updateSingleCellReference($pCellRange, $pBefore, $pNumCols, $pNumRows);
+ } else if (strpos($pCellRange, ':') !== false || strpos($pCellRange, ',') !== false) {
+ // Range
+ return $this->_updateCellRange($pCellRange, $pBefore, $pNumCols, $pNumRows);
+ } else {
+ // Return original
+ return $pCellRange;
+ }
+ }
+
+ /**
+ * Update named formulas (i.e. containing worksheet references / named ranges)
+ *
+ * @param PHPExcel $pPhpExcel Object to update
+ * @param string $oldName Old name (name to replace)
+ * @param string $newName New name
+ */
+ public function updateNamedFormulas(PHPExcel $pPhpExcel, $oldName = '', $newName = '') {
+ foreach ($pPhpExcel->getWorksheetIterator() as $sheet) {
+ foreach ($sheet->getCellCollection(false) as $cell) {
+ if (!is_null($cell) && $cell->getDataType() == PHPExcel_Cell_DataType::TYPE_FORMULA) {
+ $formula = $cell->getValue();
+ if (strpos($formula, $oldName) !== false) {
+ $formula = str_replace("'" . $oldName . "'!", "'" . $newName . "'!", $formula);
+ $formula = str_replace($oldName . "!", $newName . "!", $formula);
+ $cell->setValueExplicit($formula, PHPExcel_Cell_DataType::TYPE_FORMULA);
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Update cell range
+ *
+ * @param string $pCellRange Cell range
+ * @param int $pBefore Insert before this one
+ * @param int $pNumCols Number of columns to increment
+ * @param int $pNumRows Number of rows to increment
+ * @return string Updated cell range
+ * @throws Exception
+ */
+ private function _updateCellRange($pCellRange = 'A1:A1', $pBefore = 'A1', $pNumCols = 0, $pNumRows = 0) {
+ if (strpos($pCellRange,':') !== false || strpos($pCellRange, ',') !== false) {
+ // Update range
+ $range = PHPExcel_Cell::splitRange($pCellRange);
+ for ($i = 0; $i < count($range); $i++) {
+ for ($j = 0; $j < count($range[$i]); $j++) {
+ $range[$i][$j] = $this->_updateSingleCellReference($range[$i][$j], $pBefore, $pNumCols, $pNumRows);
+ }
+ }
+
+ // Recreate range string
+ return PHPExcel_Cell::buildRange($range);
+ } else {
+ throw new Exception("Only cell ranges may be passed to this method.");
+ }
+ }
+
+ /**
+ * Update single cell reference
+ *
+ * @param string $pCellReference Single cell reference
+ * @param int $pBefore Insert before this one
+ * @param int $pNumCols Number of columns to increment
+ * @param int $pNumRows Number of rows to increment
+ * @return string Updated cell reference
+ * @throws Exception
+ */
+ private function _updateSingleCellReference($pCellReference = 'A1', $pBefore = 'A1', $pNumCols = 0, $pNumRows = 0) {
+ if (strpos($pCellReference, ':') === false && strpos($pCellReference, ',') === false) {
+ // Get coordinates of $pBefore
+ $beforeColumn = 'A';
+ $beforeRow = 1;
+ list($beforeColumn, $beforeRow) = PHPExcel_Cell::coordinateFromString( $pBefore );
+
+ // Get coordinates
+ $newColumn = 'A';
+ $newRow = 1;
+ list($newColumn, $newRow) = PHPExcel_Cell::coordinateFromString( $pCellReference );
+
+ // Make sure the reference can be used
+ if ($newColumn == '' && $newRow == '')
+ {
+ return $pCellReference;
+ }
+
+ // Verify which parts should be updated
+ $updateColumn = (PHPExcel_Cell::columnIndexFromString($newColumn) >= PHPExcel_Cell::columnIndexFromString($beforeColumn))
+ && (strpos($newColumn, '$') === false)
+ && (strpos($beforeColumn, '$') === false);
+
+ $updateRow = ($newRow >= $beforeRow)
+ && (strpos($newRow, '$') === false)
+ && (strpos($beforeRow, '$') === false);
+
+ // Create new column reference
+ if ($updateColumn) {
+ $newColumn = PHPExcel_Cell::stringFromColumnIndex( PHPExcel_Cell::columnIndexFromString($newColumn) - 1 + $pNumCols );
+ }
+
+ // Create new row reference
+ if ($updateRow) {
+ $newRow = $newRow + $pNumRows;
+ }
+
+ // Return new reference
+ return $newColumn . $newRow;
+ } else {
+ throw new Exception("Only single cell references may be passed to this method.");
+ }
+ }
+
+ /**
+ * __clone implementation. Cloning should not be allowed in a Singleton!
+ *
+ * @throws Exception
+ */
+ public final function __clone() {
+ throw new Exception("Cloning a Singleton is not allowed!");
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/RichText.php b/libraries/PHPExcel/PHPExcel/RichText.php
new file mode 100644
index 000000000..ad78f112b
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/RichText.php
@@ -0,0 +1,306 @@
+_richTextElements = array();
+
+ // Set parent?
+ if (!is_null($pCell)) {
+ // Set parent cell
+ $this->_parent = $pCell;
+
+ // Add cell text and style
+ if ($this->_parent->getValue() != "") {
+ $objRun = new PHPExcel_RichText_Run($this->_parent->getValue());
+ $objRun->setFont(clone $this->_parent->getParent()->getStyle($this->_parent->getCoordinate())->getFont());
+ $this->addText($objRun);
+ }
+
+ // Set parent value
+ $this->_parent->setValueExplicit($this, PHPExcel_Cell_DataType::TYPE_STRING);
+ }
+ }
+
+ /**
+ * Add text
+ *
+ * @param PHPExcel_RichText_ITextElement $pText Rich text element
+ * @throws Exception
+ * @return PHPExcel_RichText
+ */
+ public function addText(PHPExcel_RichText_ITextElement $pText = null)
+ {
+ $this->_richTextElements[] = $pText;
+ return $this;
+ }
+
+ /**
+ * Create text
+ *
+ * @param string $pText Text
+ * @return PHPExcel_RichText_TextElement
+ * @throws Exception
+ */
+ public function createText($pText = '')
+ {
+ $objText = new PHPExcel_RichText_TextElement($pText);
+ $this->addText($objText);
+ return $objText;
+ }
+
+ /**
+ * Create text run
+ *
+ * @param string $pText Text
+ * @return PHPExcel_RichText_Run
+ * @throws Exception
+ */
+ public function createTextRun($pText = '')
+ {
+ $objText = new PHPExcel_RichText_Run($pText);
+ $this->addText($objText);
+ return $objText;
+ }
+
+ /**
+ * Get plain text
+ *
+ * @return string
+ */
+ public function getPlainText()
+ {
+ // Return value
+ $returnValue = '';
+
+ // Loop trough all PHPExcel_RichText_ITextElement
+ foreach ($this->_richTextElements as $text) {
+ $returnValue .= $text->getText();
+ }
+
+ // Return
+ return $returnValue;
+ }
+
+ /**
+ * Convert to string
+ *
+ * @return string
+ */
+ public function __toString() {
+ return $this->getPlainText();
+ }
+
+ /**
+ * Get Rich Text elements
+ *
+ * @return PHPExcel_RichText_ITextElement[]
+ */
+ public function getRichTextElements()
+ {
+ return $this->_richTextElements;
+ }
+
+ /**
+ * Set Rich Text elements
+ *
+ * @param PHPExcel_RichText_ITextElement[] $pElements Array of elements
+ * @throws Exception
+ * @return PHPExcel_RichText
+ */
+ public function setRichTextElements($pElements = null)
+ {
+ if (is_array($pElements)) {
+ $this->_richTextElements = $pElements;
+ } else {
+ throw new Exception("Invalid PHPExcel_RichText_ITextElement[] array passed.");
+ }
+ return $this;
+ }
+
+ /**
+ * Get parent
+ *
+ * @return PHPExcel_Cell
+ */
+ public function getParent() {
+ return $this->_parent;
+ }
+
+ /**
+ * Set parent
+ *
+ * @param PHPExcel_Cell $value
+ * @return PHPExcel_RichText
+ */
+ public function setParent(PHPExcel_Cell $value) {
+ // Set parent
+ $this->_parent = $value;
+
+ // Set parent value
+ $this->_parent->setValueExplicit($this, PHPExcel_Cell_DataType::TYPE_STRING);
+
+ // Verify style information
+
+ $sheet = $this->_parent->getParent();
+ $cellFont = $sheet->getStyle($this->_parent->getCoordinate())->getFont()->getSharedComponent();
+ foreach ($this->getRichTextElements() as $element) {
+ if (!($element instanceof PHPExcel_RichText_Run)) continue;
+
+ if ($element->getFont()->getHashCode() == $sheet->getDefaultStyle()->getFont()->getHashCode()) {
+ if ($element->getFont()->getHashCode() != $cellFont->getHashCode()) {
+ $element->setFont(clone $cellFont);
+ }
+ }
+ }
+ return $this;
+ }
+
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode() {
+ $hashElements = '';
+ foreach ($this->_richTextElements as $element) {
+ $hashElements .= $element->getHashCode();
+ }
+
+ return md5(
+ $hashElements
+ . __CLASS__
+ );
+ }
+
+ /**
+ * Hash index
+ *
+ * @var string
+ */
+ private $_hashIndex;
+
+ /**
+ * Get hash index
+ *
+ * Note that this index may vary during script execution! Only reliable moment is
+ * while doing a write of a workbook and when changes are not allowed.
+ *
+ * @return string Hash index
+ */
+ public function getHashIndex() {
+ return $this->_hashIndex;
+ }
+
+ /**
+ * Set hash index
+ *
+ * Note that this index may vary during script execution! Only reliable moment is
+ * while doing a write of a workbook and when changes are not allowed.
+ *
+ * @param string $value Hash index
+ */
+ public function setHashIndex($value) {
+ $this->_hashIndex = $value;
+ }
+
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone() {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if ($key == '_parent') continue;
+
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/RichText/ITextElement.php b/libraries/PHPExcel/PHPExcel/RichText/ITextElement.php
new file mode 100644
index 000000000..32948f79e
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/RichText/ITextElement.php
@@ -0,0 +1,76 @@
+setText($pText);
+ $this->_font = new PHPExcel_Style_Font();
+ }
+
+ /**
+ * Get font
+ *
+ * @return PHPExcel_Style_Font
+ */
+ public function getFont() {
+ return $this->_font;
+ }
+
+ /**
+ * Set font
+ *
+ * @param PHPExcel_Style_Font $pFont Font
+ * @throws Exception
+ * @return PHPExcel_RichText_ITextElement
+ */
+ public function setFont(PHPExcel_Style_Font $pFont = null) {
+ $this->_font = $pFont;
+ return $this;
+ }
+
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode() {
+ return md5(
+ $this->getText()
+ . $this->_font->getHashCode()
+ . __CLASS__
+ );
+ }
+
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone() {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/RichText/TextElement.php b/libraries/PHPExcel/PHPExcel/RichText/TextElement.php
new file mode 100644
index 000000000..11b7cf120
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/RichText/TextElement.php
@@ -0,0 +1,123 @@
+_text = $pText;
+ }
+
+ /**
+ * Get text
+ *
+ * @return string Text
+ */
+ public function getText() {
+ return $this->_text;
+ }
+
+ /**
+ * Set text
+ *
+ * @param $pText string Text
+ * @return PHPExcel_RichText_ITextElement
+ */
+ public function setText($pText = '') {
+ $this->_text = $pText;
+ return $this;
+ }
+
+ /**
+ * Get font
+ *
+ * @return PHPExcel_Style_Font
+ */
+ public function getFont() {
+ return null;
+ }
+
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode() {
+ return md5(
+ $this->_text
+ . __CLASS__
+ );
+ }
+
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone() {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Shared/Date.php b/libraries/PHPExcel/PHPExcel/Shared/Date.php
new file mode 100644
index 000000000..f5e2ec8c2
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/Date.php
@@ -0,0 +1,277 @@
+= 1) {
+ $utcDays = $dateValue - $myExcelBaseDate;
+ $returnValue = (integer) round($utcDays * 24 * 60 * 60);
+ } else {
+ $hours = round($dateValue * 24);
+ $mins = round($dateValue * 24 * 60) - round($hours * 60);
+ $secs = round($dateValue * 24 * 60 * 60) - round($hours * 60 * 60) - round($mins * 60);
+ $returnValue = (integer) mktime($hours, $mins, $secs);
+ }
+
+ // Return
+ return $returnValue;
+ } // function ExcelToPHP()
+
+
+ /**
+ * Convert a date from Excel to a PHP Date/Time object
+ *
+ * @param long $dateValue Excel date/time value
+ * @return long PHP date/time object
+ */
+ public static function ExcelToPHPObject($dateValue = 0) {
+ $dateTime = self::ExcelToPHP($dateValue);
+ $days = floor($dateTime / 86400);
+ $time = round((($dateTime / 86400) - $days) * 86400);
+ $hours = round($time / 3600);
+ $minutes = round($time / 60) - ($hours * 60);
+ $seconds = round($time) - ($hours * 3600) - ($minutes * 60);
+ $dateObj = date_create('1-Jan-1970+'.$days.' days');
+ $dateObj->setTime($hours,$minutes,$seconds);
+ return $dateObj;
+ } // function ExcelToPHPObject()
+
+
+ /**
+ * Convert a date from PHP to Excel
+ *
+ * @param mixed $dateValue PHP serialized date/time or date object
+ * @return mixed Excel date/time value
+ * or boolean False on failure
+ */
+ public static function PHPToExcel($dateValue = 0) {
+ $saveTimeZone = date_default_timezone_get();
+ date_default_timezone_set('UTC');
+ $retValue = False;
+ if ((is_object($dateValue)) && ($dateValue instanceof self::$dateTimeObjectType)) {
+ $retValue = self::FormattedPHPToExcel( $dateValue->format('Y'), $dateValue->format('m'), $dateValue->format('d'),
+ $dateValue->format('H'), $dateValue->format('i'), $dateValue->format('s')
+ );
+ } elseif (is_numeric($dateValue)) {
+ $retValue = self::FormattedPHPToExcel( date('Y',$dateValue), date('m',$dateValue), date('d',$dateValue),
+ date('H',$dateValue), date('i',$dateValue), date('s',$dateValue)
+ );
+ }
+ date_default_timezone_set($saveTimeZone);
+
+ return $retValue;
+ } // function PHPToExcel()
+
+
+ /**
+ * FormattedPHPToExcel
+ *
+ * @param long $year
+ * @param long $month
+ * @param long $day
+ * @param long $hours
+ * @param long $minutes
+ * @param long $seconds
+ * @return long Excel date/time value
+ */
+ public static function FormattedPHPToExcel($year, $month, $day, $hours=0, $minutes=0, $seconds=0) {
+ if (self::$ExcelBaseDate == self::CALENDAR_WINDOWS_1900) {
+ //
+ // Fudge factor for the erroneous fact that the year 1900 is treated as a Leap Year in MS Excel
+ // This affects every date following 28th February 1900
+ //
+ $excel1900isLeapYear = True;
+ if (($year == 1900) && ($month <= 2)) { $excel1900isLeapYear = False; }
+ $myExcelBaseDate = 2415020;
+ } else {
+ $myExcelBaseDate = 2416481;
+ $excel1900isLeapYear = False;
+ }
+
+ // Julian base date Adjustment
+ if ($month > 2) {
+ $month = $month - 3;
+ } else {
+ $month = $month + 9;
+ --$year;
+ }
+
+ // Calculate the Julian Date, then subtract the Excel base date (JD 2415020 = 31-Dec-1899 Giving Excel Date of 0)
+ $century = substr($year,0,2);
+ $decade = substr($year,2,2);
+ $excelDate = floor((146097 * $century) / 4) + floor((1461 * $decade) / 4) + floor((153 * $month + 2) / 5) + $day + 1721119 - $myExcelBaseDate + $excel1900isLeapYear;
+
+ $excelTime = (($hours * 3600) + ($minutes * 60) + $seconds) / 86400;
+
+ return (float) $excelDate + $excelTime;
+ } // function FormattedPHPToExcel()
+
+
+ /**
+ * Is a given cell a date/time?
+ *
+ * @param PHPExcel_Cell $pCell
+ * @return boolean
+ */
+ public static function isDateTime(PHPExcel_Cell $pCell) {
+ return self::isDateTimeFormat($pCell->getParent()->getStyle($pCell->getCoordinate())->getNumberFormat());
+ } // function isDateTime()
+
+
+ /**
+ * Is a given number format a date/time?
+ *
+ * @param PHPExcel_Style_NumberFormat $pFormat
+ * @return boolean
+ */
+ public static function isDateTimeFormat(PHPExcel_Style_NumberFormat $pFormat) {
+ return self::isDateTimeFormatCode($pFormat->getFormatCode());
+ } // function isDateTimeFormat()
+
+
+ private static $possibleDateFormatCharacters = 'ymdHis';
+
+ /**
+ * Is a given number format code a date/time?
+ *
+ * @param string $pFormatCode
+ * @return boolean
+ */
+ public static function isDateTimeFormatCode($pFormatCode = '') {
+ // Switch on formatcode
+ switch ($pFormatCode) {
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDD:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDD2:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_DDMMYYYY:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_DMYSLASH:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_DMYMINUS:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_DMMINUS:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_MYMINUS:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_DATETIME:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME1:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME2:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME3:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME4:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME5:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME6:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME7:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME8:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDDSLASH:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX14:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX15:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX16:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX17:
+ case PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX22:
+ return true;
+ }
+
+ // Try checking for any of the date formatting characters that don't appear within square braces
+ if (preg_match('/(^|\])[^\[]*['.self::$possibleDateFormatCharacters.']/i',$pFormatCode)) {
+ return true;
+ }
+
+ // No date...
+ return false;
+ } // function isDateTimeFormatCode()
+}
diff --git a/libraries/PHPExcel/PHPExcel/Shared/Drawing.php b/libraries/PHPExcel/PHPExcel/Shared/Drawing.php
new file mode 100644
index 000000000..b56bbfd76
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/Drawing.php
@@ -0,0 +1,137 @@
+_dggContainer;
+ }
+
+ /**
+ * Set Drawing Group Container
+ *
+ * @param PHPExcel_Shared_Escher_DggContainer $dggContainer
+ */
+ public function setDggContainer($dggContainer)
+ {
+ return $this->_dggContainer = $dggContainer;
+ }
+
+ /**
+ * Get Drawing Container
+ *
+ * @return PHPExcel_Shared_Escher_DgContainer
+ */
+ public function getDgContainer()
+ {
+ return $this->_dgContainer;
+ }
+
+ /**
+ * Set Drawing Container
+ *
+ * @param PHPExcel_Shared_Escher_DgContainer $dgContainer
+ */
+ public function setDgContainer($dgContainer)
+ {
+ return $this->_dgContainer = $dgContainer;
+ }
+
+}
diff --git a/libraries/PHPExcel/PHPExcel/Shared/Escher/DgContainer.php b/libraries/PHPExcel/PHPExcel/Shared/Escher/DgContainer.php
new file mode 100644
index 000000000..588cae727
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/Escher/DgContainer.php
@@ -0,0 +1,83 @@
+_dgId;
+ }
+
+ public function setDgId($value)
+ {
+ $this->_dgId = $value;
+ }
+
+ public function getLastSpId()
+ {
+ return $this->_lastSpId;
+ }
+
+ public function setLastSpId($value)
+ {
+ $this->_lastSpId = $value;
+ }
+
+ public function getSpgrContainer()
+ {
+ return $this->_spgrContainer;
+ }
+
+ public function setSpgrContainer($spgrContainer)
+ {
+ return $this->_spgrContainer = $spgrContainer;
+ }
+
+}
diff --git a/libraries/PHPExcel/PHPExcel/Shared/Escher/DgContainer/SpgrContainer.php b/libraries/PHPExcel/PHPExcel/Shared/Escher/DgContainer/SpgrContainer.php
new file mode 100644
index 000000000..3114f9c62
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/Escher/DgContainer/SpgrContainer.php
@@ -0,0 +1,109 @@
+_parent = $parent;
+ }
+
+ /**
+ * Get the parent Shape Group Container if any
+ *
+ * @return PHPExcel_Shared_Escher_DgContainer_SpgrContainer|null
+ */
+ public function getParent()
+ {
+ return $this->_parent;
+ }
+
+ /**
+ * Add a child. This will be either spgrContainer or spContainer
+ *
+ * @param mixed $child
+ */
+ public function addChild($child)
+ {
+ $this->_children[] = $child;
+ $child->setParent($this);
+ }
+
+ /**
+ * Get collection of Shape Containers
+ */
+ public function getChildren()
+ {
+ return $this->_children;
+ }
+
+ /**
+ * Recursively get all spContainers within this spgrContainer
+ *
+ * @return PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer[]
+ */
+ public function getAllSpContainers()
+ {
+ $allSpContainers = array();
+
+ foreach ($this->_children as $child) {
+ if ($child instanceof PHPExcel_Shared_Escher_DgContainer_SpgrContainer) {
+ $allSpContainers = array_merge($allSpContainers, $child->getAllSpContainers());
+ } else {
+ $allSpContainers[] = $child;
+ }
+ }
+
+ return $allSpContainers;
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Shared/Escher/DgContainer/SpgrContainer/SpContainer.php b/libraries/PHPExcel/PHPExcel/Shared/Escher/DgContainer/SpgrContainer/SpContainer.php
new file mode 100644
index 000000000..e05188b74
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/Escher/DgContainer/SpgrContainer/SpContainer.php
@@ -0,0 +1,368 @@
+_parent = $parent;
+ }
+
+ /**
+ * Get the parent Shape Group Container
+ *
+ * @return PHPExcel_Shared_Escher_DgContainer_SpgrContainer
+ */
+ public function getParent()
+ {
+ return $this->_parent;
+ }
+
+ /**
+ * Set whether this is a group shape
+ *
+ * @param boolean $value
+ */
+ public function setSpgr($value = false)
+ {
+ $this->_spgr = $value;
+ }
+
+ /**
+ * Get whether this is a group shape
+ *
+ * @return boolean
+ */
+ public function getSpgr()
+ {
+ return $this->_spgr;
+ }
+
+ /**
+ * Set the shape type
+ *
+ * @param int $value
+ */
+ public function setSpType($value)
+ {
+ $this->_spType = $value;
+ }
+
+ /**
+ * Get the shape type
+ *
+ * @return int
+ */
+ public function getSpType()
+ {
+ return $this->_spType;
+ }
+
+ /**
+ * Set the shape index
+ *
+ * @param int $value
+ */
+ public function setSpId($value)
+ {
+ $this->_spId = $value;
+ }
+
+ /**
+ * Get the shape index
+ *
+ * @return int
+ */
+ public function getSpId()
+ {
+ return $this->_spId;
+ }
+
+ /**
+ * Set an option for the Shape Group Container
+ *
+ * @param int $property The number specifies the option
+ * @param mixed $value
+ */
+ public function setOPT($property, $value)
+ {
+ $this->_OPT[$property] = $value;
+ }
+
+ /**
+ * Get an option for the Shape Group Container
+ *
+ * @param int $property The number specifies the option
+ * @return mixed
+ */
+ public function getOPT($property)
+ {
+ if (isset($this->_OPT[$property])) {
+ return $this->_OPT[$property];
+ }
+ return null;
+ }
+
+ /**
+ * Get the collection of options
+ *
+ * @return array
+ */
+ public function getOPTCollection()
+ {
+ return $this->_OPT;
+ }
+
+ /**
+ * Set cell coordinates of upper-left corner of shape
+ *
+ * @param string $value
+ */
+ public function setStartCoordinates($value = 'A1')
+ {
+ $this->_startCoordinates = $value;
+ }
+
+ /**
+ * Get cell coordinates of upper-left corner of shape
+ *
+ * @return string
+ */
+ public function getStartCoordinates()
+ {
+ return $this->_startCoordinates;
+ }
+
+ /**
+ * Set offset in x-direction of upper-left corner of shape measured in 1/1024 of column width
+ *
+ * @param int $startOffsetX
+ */
+ public function setStartOffsetX($startOffsetX = 0)
+ {
+ $this->_startOffsetX = $startOffsetX;
+ }
+
+ /**
+ * Get offset in x-direction of upper-left corner of shape measured in 1/1024 of column width
+ *
+ * @return int
+ */
+ public function getStartOffsetX()
+ {
+ return $this->_startOffsetX;
+ }
+
+ /**
+ * Set offset in y-direction of upper-left corner of shape measured in 1/256 of row height
+ *
+ * @param int $startOffsetY
+ */
+ public function setStartOffsetY($startOffsetY = 0)
+ {
+ $this->_startOffsetY = $startOffsetY;
+ }
+
+ /**
+ * Get offset in y-direction of upper-left corner of shape measured in 1/256 of row height
+ *
+ * @return int
+ */
+ public function getStartOffsetY()
+ {
+ return $this->_startOffsetY;
+ }
+
+ /**
+ * Set cell coordinates of bottom-right corner of shape
+ *
+ * @param string $value
+ */
+ public function setEndCoordinates($value = 'A1')
+ {
+ $this->_endCoordinates = $value;
+ }
+
+ /**
+ * Get cell coordinates of bottom-right corner of shape
+ *
+ * @return string
+ */
+ public function getEndCoordinates()
+ {
+ return $this->_endCoordinates;
+ }
+
+ /**
+ * Set offset in x-direction of bottom-right corner of shape measured in 1/1024 of column width
+ *
+ * @param int $startOffsetX
+ */
+ public function setEndOffsetX($endOffsetX = 0)
+ {
+ $this->_endOffsetX = $endOffsetX;
+ }
+
+ /**
+ * Get offset in x-direction of bottom-right corner of shape measured in 1/1024 of column width
+ *
+ * @return int
+ */
+ public function getEndOffsetX()
+ {
+ return $this->_endOffsetX;
+ }
+
+ /**
+ * Set offset in y-direction of bottom-right corner of shape measured in 1/256 of row height
+ *
+ * @param int $endOffsetY
+ */
+ public function setEndOffsetY($endOffsetY = 0)
+ {
+ $this->_endOffsetY = $endOffsetY;
+ }
+
+ /**
+ * Get offset in y-direction of bottom-right corner of shape measured in 1/256 of row height
+ *
+ * @return int
+ */
+ public function getEndOffsetY()
+ {
+ return $this->_endOffsetY;
+ }
+
+ /**
+ * Get the nesting level of this spContainer. This is the number of spgrContainers between this spContainer and
+ * the dgContainer. A value of 1 = immediately within first spgrContainer
+ * Higher nesting level occurs if and only if spContainer is part of a shape group
+ *
+ * @return int Nesting level
+ */
+ public function getNestingLevel()
+ {
+ $nestingLevel = 0;
+
+ $parent = $this->getParent();
+ while ($parent instanceof PHPExcel_Shared_Escher_DgContainer_SpgrContainer) {
+ ++$nestingLevel;
+ $parent = $parent->getParent();
+ }
+
+ return $nestingLevel;
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer.php b/libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer.php
new file mode 100644
index 000000000..7b1741c82
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer.php
@@ -0,0 +1,177 @@
+_spIdMax;
+ }
+
+ /**
+ * Set maximum shape index of all shapes in all drawings (plus one)
+ *
+ * @param int
+ */
+ public function setSpIdMax($value)
+ {
+ $this->_spIdMax = $value;
+ }
+
+ /**
+ * Get total number of drawings saved
+ *
+ * @return int
+ */
+ public function getCDgSaved()
+ {
+ return $this->_cDgSaved;
+ }
+
+ /**
+ * Set total number of drawings saved
+ *
+ * @param int
+ */
+ public function setCDgSaved($value)
+ {
+ $this->_cDgSaved = $value;
+ }
+
+ /**
+ * Get total number of shapes saved (including group shapes)
+ *
+ * @return int
+ */
+ public function getCSpSaved()
+ {
+ return $this->_cSpSaved;
+ }
+
+ /**
+ * Set total number of shapes saved (including group shapes)
+ *
+ * @param int
+ */
+ public function setCSpSaved($value)
+ {
+ $this->_cSpSaved = $value;
+ }
+
+ /**
+ * Get BLIP Store Container
+ *
+ * @return PHPExcel_Shared_Escher_DggContainer_BstoreContainer
+ */
+ public function getBstoreContainer()
+ {
+ return $this->_bstoreContainer;
+ }
+
+ /**
+ * Set BLIP Store Container
+ *
+ * @param PHPExcel_Shared_Escher_DggContainer_BstoreContainer $bstoreContainer
+ */
+ public function setBstoreContainer($bstoreContainer)
+ {
+ $this->_bstoreContainer = $bstoreContainer;
+ }
+
+ /**
+ * Set an option for the drawing group
+ *
+ * @param int $property The number specifies the option
+ * @param mixed $value
+ */
+ public function setOPT($property, $value)
+ {
+ $this->_OPT[$property] = $value;
+ }
+
+ /**
+ * Get an option for the drawing group
+ *
+ * @param int $property The number specifies the option
+ * @return mixed
+ */
+ public function getOPT($property)
+ {
+ if (isset($this->_OPT[$property])) {
+ return $this->_OPT[$property];
+ }
+ return null;
+ }
+
+}
diff --git a/libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer/BstoreContainer.php b/libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer/BstoreContainer.php
new file mode 100644
index 000000000..4c26bb384
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer/BstoreContainer.php
@@ -0,0 +1,65 @@
+_BSECollection[] = $BSE;
+ $BSE->setParent($this);
+ }
+
+ /**
+ * Get the collection of BLIP Store Entries
+ *
+ * @return PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE[]
+ */
+ public function getBSECollection()
+ {
+ return $this->_BSECollection;
+ }
+
+}
diff --git a/libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE.php b/libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE.php
new file mode 100644
index 000000000..ae0f246d2
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE.php
@@ -0,0 +1,120 @@
+_parent = $parent;
+ }
+
+ /**
+ * Get the BLIP
+ *
+ * @return PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip
+ */
+ public function getBlip()
+ {
+ return $this->_blip;
+ }
+
+ /**
+ * Set the BLIP
+ *
+ * @param PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip $blip
+ */
+ public function setBlip($blip)
+ {
+ $this->_blip = $blip;
+ $blip->setParent($this);
+ }
+
+ /**
+ * Get the BLIP type
+ *
+ * @return int
+ */
+ public function getBlipType()
+ {
+ return $this->_blipType;
+ }
+
+ /**
+ * Set the BLIP type
+ *
+ * @param int
+ */
+ public function setBlipType($blipType)
+ {
+ $this->_blipType = $blipType;
+ }
+
+}
diff --git a/libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE/Blip.php b/libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE/Blip.php
new file mode 100644
index 000000000..41d095657
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE/Blip.php
@@ -0,0 +1,91 @@
+_data;
+ }
+
+ /**
+ * Set the raw image data
+ *
+ * @param string
+ */
+ public function setData($data)
+ {
+ $this->_data = $data;
+ }
+
+ /**
+ * Set parent BSE
+ *
+ * @param PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE $parent
+ */
+ public function setParent($parent)
+ {
+ $this->_parent = $parent;
+ }
+
+ /**
+ * Get parent BSE
+ *
+ * @return PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE $parent
+ */
+ public function getParent()
+ {
+ return $this->_parent;
+ }
+
+}
diff --git a/libraries/PHPExcel/PHPExcel/Shared/Excel5.php b/libraries/PHPExcel/PHPExcel/Shared/Excel5.php
new file mode 100644
index 000000000..b8e2050ee
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/Excel5.php
@@ -0,0 +1,322 @@
+getParent()->getDefaultStyle()->getFont()->getSize();
+
+ $columnDimensions = $sheet->getColumnDimensions();
+
+ // first find the true column width in pixels (uncollapsed and unhidden)
+ if ( isset($columnDimensions[$col]) and $columnDimensions[$col]->getWidth() != -1 ) {
+
+ // then we have column dimension with explicit width
+ $columnDimension = $columnDimensions[$col];
+ $width = $columnDimension->getWidth();
+ $pixelWidth = PHPExcel_Shared_Drawing::cellDimensionToPixels($width, $fontSize);
+
+ } else if ($sheet->getDefaultColumnDimension()->getWidth() != -1) {
+
+ // then we have default column dimension with explicit width
+ $defaultColumnDimension = $sheet->getDefaultColumnDimension();
+ $width = $defaultColumnDimension->getWidth();
+ $pixelWidth = PHPExcel_Shared_Drawing::cellDimensionToPixels($width, $fontSize);
+
+ } else {
+ $pixelWidth = (int) 64 * $fontSize / 11; // here we interpolate from Calibri 11
+ }
+
+ // now find the effective column width in pixels
+ if (isset($columnDimensions[$col]) and !$columnDimensions[$col]->getVisible()) {
+ $effectivePixelWidth = 0;
+ } else {
+ $effectivePixelWidth = $pixelWidth;
+ }
+
+ return $effectivePixelWidth;
+ }
+
+ /**
+ * Convert the height of a cell from user's units to pixels. By interpolation
+ * the relationship is: y = 4/3x. If the height hasn't been set by the user we
+ * use the default value. If the row is hidden we use a value of zero.
+ *
+ * @param PHPExcel_Worksheet $sheet The sheet
+ * @param integer $row The row index (1-based)
+ * @return integer The width in pixels
+ */
+ public static function sizeRow($sheet, $row = 1)
+ {
+ $rowDimensions = $sheet->getRowDimensions();
+
+ // first find the true row height in pixels (uncollapsed and unhidden)
+ if ( isset($rowDimensions[$row]) and $rowDimensions[$row]->getRowHeight() != -1) {
+
+ // then we have a row dimension
+ $rowDimension = $rowDimensions[$row];
+ $rowHeight = $rowDimension->getRowHeight();
+ $pixelRowHeight = (int) ceil(4 * $rowHeight / 3); // here we assume Arial 10
+
+ } else if ($sheet->getDefaultRowDimension()->getRowHeight() != -1) {
+
+ // then we have a default row dimension with explicit height
+ $defaultRowDimension = $sheet->getDefaultRowDimension();
+ $rowHeight = $defaultRowDimension->getRowHeight();
+ $pixelRowHeight = PHPExcel_Shared_Drawing::pointsToPixels($rowHeight);
+
+ } else {
+ $pixelRowHeight = 20; // here we assume Calibri 11
+ }
+
+ // now find the effective row height in pixels
+ if ( isset($rowDimensions[$row]) and !$rowDimensions[$row]->getVisible() ) {
+ $effectivePixelRowHeight = 0;
+ } else {
+ $effectivePixelRowHeight = $pixelRowHeight;
+ }
+
+ return $effectivePixelRowHeight;
+ }
+
+ /**
+ * Get the horizontal distance in pixels between two anchors
+ * The distanceX is found as sum of all the spanning columns widths minus correction for the two offsets
+ *
+ * @param PHPExcel_Worksheet $sheet
+ * @param string $startColumn
+ * @param integer $startOffset Offset within start cell measured in 1/1024 of the cell width
+ * @param string $endColumn
+ * @param integer $endOffset Offset within end cell measured in 1/1024 of the cell width
+ * @return integer Horizontal measured in pixels
+ */
+ public static function getDistanceX(PHPExcel_Worksheet $sheet, $startColumn = 'A', $startOffsetX = 0, $endColumn = 'A', $endOffsetX = 0)
+ {
+ $distanceX = 0;
+
+ // add the widths of the spanning columns
+ $startColumnIndex = PHPExcel_Cell::columnIndexFromString($startColumn) - 1; // 1-based
+ $endColumnIndex = PHPExcel_Cell::columnIndexFromString($endColumn) - 1; // 1-based
+ for ($i = $startColumnIndex; $i <= $endColumnIndex; ++$i) {
+ $distanceX += self::sizeCol($sheet, PHPExcel_Cell::stringFromColumnIndex($i));
+ }
+
+ // correct for offsetX in startcell
+ $distanceX -= (int) floor(self::sizeCol($sheet, $startColumn) * $startOffsetX / 1024);
+
+ // correct for offsetX in endcell
+ $distanceX -= (int) floor(self::sizeCol($sheet, $endColumn) * (1 - $endOffsetX / 1024));
+
+ return $distanceX;
+ }
+
+ /**
+ * Get the vertical distance in pixels between two anchors
+ * The distanceY is found as sum of all the spanning rows minus two offsets
+ *
+ * @param PHPExcel_Worksheet $sheet
+ * @param string $startRow (1-based)
+ * @param integer $startOffset Offset within start cell measured in 1/256 of the cell height
+ * @param string $endRow (1-based)
+ * @param integer $endOffset Offset within end cell measured in 1/256 of the cell height
+ * @return integer Vertical distance measured in pixels
+ */
+ public static function getDistanceY(PHPExcel_Worksheet $sheet, $startRow = 1, $startOffsetY = 0, $endRow = 1, $endOffsetY = 0)
+ {
+ $distanceY = 0;
+
+ // add the widths of the spanning rows
+ for ($row = $startRow; $row <= $endRow; ++$row) {
+ $distanceY += self::sizeRow($sheet, $row);
+ }
+
+ // correct for offsetX in startcell
+ $distanceY -= (int) floor(self::sizeRow($sheet, $startRow) * $startOffsetY / 256);
+
+ // correct for offsetX in endcell
+ $distanceY -= (int) floor(self::sizeRow($sheet, $endRow) * (1 - $endOffsetY / 256));
+
+ return $distanceY;
+ }
+
+ /**
+ * Convert 1-cell anchor coordinates to 2-cell anchor coordinates
+ * This function is ported from PEAR Spreadsheet_Writer_Excel with small modifications
+ *
+ * Calculate the vertices that define the position of the image as required by
+ * the OBJ record.
+ *
+ * +------------+------------+
+ * | A | B |
+ * +-----+------------+------------+
+ * | |(x1,y1) | |
+ * | 1 |(A1)._______|______ |
+ * | | | | |
+ * | | | | |
+ * +-----+----| BITMAP |-----+
+ * | | | | |
+ * | 2 | |______________. |
+ * | | | (B2)|
+ * | | | (x2,y2)|
+ * +---- +------------+------------+
+ *
+ * Example of a bitmap that covers some of the area from cell A1 to cell B2.
+ *
+ * Based on the width and height of the bitmap we need to calculate 8 vars:
+ * $col_start, $row_start, $col_end, $row_end, $x1, $y1, $x2, $y2.
+ * The width and height of the cells are also variable and have to be taken into
+ * account.
+ * The values of $col_start and $row_start are passed in from the calling
+ * function. The values of $col_end and $row_end are calculated by subtracting
+ * the width and height of the bitmap from the width and height of the
+ * underlying cells.
+ * The vertices are expressed as a percentage of the underlying cell width as
+ * follows (rhs values are in pixels):
+ *
+ * x1 = X / W *1024
+ * y1 = Y / H *256
+ * x2 = (X-1) / W *1024
+ * y2 = (Y-1) / H *256
+ *
+ * Where: X is distance from the left side of the underlying cell
+ * Y is distance from the top of the underlying cell
+ * W is the width of the cell
+ * H is the height of the cell
+ *
+ * @param PHPExcel_Worksheet $sheet
+ * @param string $coordinates E.g. 'A1'
+ * @param integer $offsetX Horizontal offset in pixels
+ * @param integer $offsetY Vertical offset in pixels
+ * @param integer $width Width in pixels
+ * @param integer $height Height in pixels
+ * @return array
+ */
+ public static function oneAnchor2twoAnchor($sheet, $coordinates, $offsetX, $offsetY, $width, $height)
+ {
+ list($column, $row) = PHPExcel_Cell::coordinateFromString($coordinates);
+ $col_start = PHPExcel_Cell::columnIndexFromString($column) - 1;
+ $row_start = $row - 1;
+
+ $x1 = $offsetX;
+ $y1 = $offsetY;
+
+ // Initialise end cell to the same as the start cell
+ $col_end = $col_start; // Col containing lower right corner of object
+ $row_end = $row_start; // Row containing bottom right corner of object
+
+ // Zero the specified offset if greater than the cell dimensions
+ if ($x1 >= self::sizeCol($sheet, PHPExcel_Cell::stringFromColumnIndex($col_start))) {
+ $x1 = 0;
+ }
+ if ($y1 >= self::sizeRow($sheet, $row_start + 1)) {
+ $y1 = 0;
+ }
+
+ $width = $width + $x1 -1;
+ $height = $height + $y1 -1;
+
+ // Subtract the underlying cell widths to find the end cell of the image
+ while ($width >= self::sizeCol($sheet, PHPExcel_Cell::stringFromColumnIndex($col_end))) {
+ $width -= self::sizeCol($sheet, PHPExcel_Cell::stringFromColumnIndex($col_end));
+ ++$col_end;
+ }
+
+ // Subtract the underlying cell heights to find the end cell of the image
+ while ($height >= self::sizeRow($sheet, $row_end + 1)) {
+ $height -= self::sizeRow($sheet, $row_end + 1);
+ ++$row_end;
+ }
+
+ // Bitmap isn't allowed to start or finish in a hidden cell, i.e. a cell
+ // with zero height or width.
+ if (self::sizeCol($sheet, PHPExcel_Cell::stringFromColumnIndex($col_start)) == 0) {
+ return;
+ }
+ if (self::sizeCol($sheet, PHPExcel_Cell::stringFromColumnIndex($col_end)) == 0) {
+ return;
+ }
+ if (self::sizeRow($sheet, $row_start + 1) == 0) {
+ return;
+ }
+ if (self::sizeRow($sheet, $row_end + 1) == 0) {
+ return;
+ }
+
+ // Convert the pixel values to the percentage value expected by Excel
+ $x1 = $x1 / self::sizeCol($sheet, PHPExcel_Cell::stringFromColumnIndex($col_start)) * 1024;
+ $y1 = $y1 / self::sizeRow($sheet, $row_start + 1) * 256;
+ $x2 = $width / self::sizeCol($sheet, PHPExcel_Cell::stringFromColumnIndex($col_end)) * 1024; // Distance to right side of object
+ $y2 = $height / self::sizeRow($sheet, $row_end + 1) * 256; // Distance to bottom of object
+
+ $startCoordinates = PHPExcel_Cell::stringFromColumnIndex($col_start) . ($row_start + 1);
+ $endCoordinates = PHPExcel_Cell::stringFromColumnIndex($col_end) . ($row_end + 1);
+
+ $twoAnchor = array(
+ 'startCoordinates' => $startCoordinates,
+ 'startOffsetX' => $x1,
+ 'startOffsetY' => $y1,
+ 'endCoordinates' => $endCoordinates,
+ 'endOffsetX' => $x2,
+ 'endOffsetY' => $y2,
+ );
+
+ return $twoAnchor;
+ }
+
+}
diff --git a/libraries/PHPExcel/PHPExcel/Shared/File.php b/libraries/PHPExcel/PHPExcel/Shared/File.php
new file mode 100644
index 000000000..3c24520a9
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/File.php
@@ -0,0 +1,98 @@
+open($zipFile) === true) {
+ $returnValue = ($zip->getFromName($archiveFile) !== false);
+ $zip->close();
+ return $returnValue;
+ } else {
+ return false;
+ }
+ } else {
+ // Regular file_exists
+ return file_exists($pFilename);
+ }
+ }
+
+ /**
+ * Returns canonicalized absolute pathname, also for ZIP archives
+ *
+ * @param string $pFilename
+ * @return string
+ */
+ public static function realpath($pFilename) {
+ // Returnvalue
+ $returnValue = '';
+
+ // Try using realpath()
+ $returnValue = realpath($pFilename);
+
+ // Found something?
+ if ($returnValue == '' || is_null($returnValue)) {
+ $pathArray = split('/' , $pFilename);
+ while(in_array('..', $pathArray) && $pathArray[0] != '..') {
+ for ($i = 0; $i < count($pathArray); ++$i) {
+ if ($pathArray[$i] == '..' && $i > 0) {
+ unset($pathArray[$i]);
+ unset($pathArray[$i - 1]);
+ break;
+ }
+ }
+ }
+ $returnValue = implode('/', $pathArray);
+ }
+
+ // Return
+ return $returnValue;
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Shared/Font.php b/libraries/PHPExcel/PHPExcel/Shared/Font.php
new file mode 100644
index 000000000..9bc8484fa
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/Font.php
@@ -0,0 +1,155 @@
+getPlainText();
+ }
+
+ // Only measure the part before the first newline character
+ if (strpos($columnText, "\r") !== false) {
+ $columnText = substr($columnText, 0, strpos($columnText, "\r"));
+ }
+ if (strpos($columnText, "\n") !== false) {
+ $columnText = substr($columnText, 0, strpos($columnText, "\n"));
+ }
+
+ // Calculate column width
+ // values 1.025 and 0.584 found via interpolation by inspecting real Excel files with
+ // Calibri font. May need further adjustment
+ $columnWidth = 1.025 * strlen($columnText) + 0.584; // Excel adds some padding
+
+ // Calculate approximate rotated column width
+ if ($rotation !== 0) {
+ if ($rotation == -165) {
+ // stacked text
+ $columnWidth = 4; // approximation
+ } else {
+ // rotated text
+ $columnWidth = $columnWidth * cos(deg2rad($rotation))
+ + $fontSize * abs(sin(deg2rad($rotation))) / 5; // approximation
+ }
+ }
+
+ // Return
+ return round($columnWidth, 6);
+ }
+
+ /**
+ * Calculate an (approximate) pixel size, based on a font points size
+ *
+ * @param int $fontSizeInPoints Font size (in points)
+ * @return int Font size (in pixels)
+ */
+ public static function fontSizeToPixels($fontSizeInPoints = 12) {
+ return ((16 / 12) * $fontSizeInPoints);
+ }
+
+ /**
+ * Calculate an (approximate) pixel size, based on inch size
+ *
+ * @param int $sizeInInch Font size (in inch)
+ * @return int Size (in pixels)
+ */
+ public static function inchSizeToPixels($sizeInInch = 1) {
+ return ($sizeInInch * 96);
+ }
+
+ /**
+ * Calculate an (approximate) pixel size, based on centimeter size
+ *
+ * @param int $sizeInCm Font size (in centimeters)
+ * @return int Size (in pixels)
+ */
+ public static function centimeterSizeToPixels($sizeInCm = 1) {
+ return ($sizeInCm * 37.795275591);
+ }
+
+ /**
+ * Returns the associated charset for the font name.
+ *
+ * @param string $name Font name
+ * @return int Character set code
+ */
+ public static function getCharsetFromFontName($name)
+ {
+ switch ($name) {
+ // Add more cases. Check FONT records in real Excel files.
+ case 'Wingdings': return self::CHARSET_SYMBOL;
+ case 'Wingdings 2': return self::CHARSET_SYMBOL;
+ case 'Wingdings 3': return self::CHARSET_SYMBOL;
+ default: return self::CHARSET_ANSI_LATIN;
+ }
+ }
+
+}
diff --git a/libraries/PHPExcel/PHPExcel/Shared/JAMA/CHANGELOG.TXT b/libraries/PHPExcel/PHPExcel/Shared/JAMA/CHANGELOG.TXT
new file mode 100644
index 000000000..1c18a5da3
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/JAMA/CHANGELOG.TXT
@@ -0,0 +1,16 @@
+Mar 1, 2005 11:15 AST by PM
+
++ For consistency, renamed Math.php to Maths.java, utils to util,
+ tests to test, docs to doc -
+
++ Removed conditional logic from top of Matrix class.
+
++ Switched to using hypo function in Maths.php for all php-hypot calls.
+ NOTE TO SELF: Need to make sure that all decompositions have been
+ switched over to using the bundled hypo.
+
+Feb 25, 2005 at 10:00 AST by PM
+
++ Recommend using simpler Error.php instead of JAMA_Error.php but
+ can be persuaded otherwise.
+
diff --git a/libraries/PHPExcel/PHPExcel/Shared/JAMA/CholeskyDecomposition.php b/libraries/PHPExcel/PHPExcel/Shared/JAMA/CholeskyDecomposition.php
new file mode 100644
index 000000000..b401b8491
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/JAMA/CholeskyDecomposition.php
@@ -0,0 +1,133 @@
+L = $A->getArray();
+ $this->m = $A->getRowDimension();
+
+ for( $i = 0; $i < $this->m; $i++ ) {
+ for( $j = $i; $j < $this->m; $j++ ) {
+ for( $sum = $this->L[$i][$j], $k = $i - 1; $k >= 0; $k-- )
+ $sum -= $this->L[$i][$k] * $this->L[$j][$k];
+
+ if( $i == $j ) {
+ if( $sum >= 0 ) {
+ $this->L[$i][$i] = sqrt( $sum );
+ } else {
+ $this->isspd = false;
+ }
+ } else {
+ if( $this->L[$i][$i] != 0 )
+ $this->L[$j][$i] = $sum / $this->L[$i][$i];
+ }
+ }
+
+ for ($k = $i+1; $k < $this->m; $k++)
+ $this->L[$i][$k] = 0.0;
+ }
+ } else {
+ trigger_error(ArgumentTypeException, ERROR);
+ }
+ }
+
+ /**
+ * Is the matrix symmetric and positive definite?
+ * @return boolean
+ */
+ function isSPD () {
+ return $this->isspd;
+ }
+
+ /**
+ * getL
+ * Return triangular factor.
+ * @return Matrix Lower triangular matrix
+ */
+ function getL () {
+ return new Matrix($this->L);
+ }
+
+ /**
+ * Solve A*X = B
+ * @param $B Row-equal matrix
+ * @return Matrix L * L' * X = B
+ */
+ function solve ( $B = null ) {
+ if( is_a($B, 'Matrix') ) {
+ if ($B->getRowDimension() == $this->m) {
+ if ($this->isspd) {
+ $X = $B->getArrayCopy();
+ $nx = $B->getColumnDimension();
+
+ for ($k = 0; $k < $this->m; $k++) {
+ for ($i = $k + 1; $i < $this->m; $i++)
+ for ($j = 0; $j < $nx; $j++)
+ $X[$i][$j] -= $X[$k][$j] * $this->L[$i][$k];
+
+ for ($j = 0; $j < $nx; $j++)
+ $X[$k][$j] /= $this->L[$k][$k];
+ }
+
+ for ($k = $this->m - 1; $k >= 0; $k--) {
+ for ($j = 0; $j < $nx; $j++)
+ $X[$k][$j] /= $this->L[$k][$k];
+
+ for ($i = 0; $i < $k; $i++)
+ for ($j = 0; $j < $nx; $j++)
+ $X[$i][$j] -= $X[$k][$j] * $this->L[$k][$i];
+ }
+
+ return new Matrix($X, $this->m, $nx);
+ } else {
+ trigger_error(MatrixSPDException, ERROR);
+ }
+ } else {
+ trigger_error(MatrixDimensionException, ERROR);
+ }
+ } else {
+ trigger_error(ArgumentTypeException, ERROR);
+ }
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Shared/JAMA/EigenvalueDecomposition.php b/libraries/PHPExcel/PHPExcel/Shared/JAMA/EigenvalueDecomposition.php
new file mode 100644
index 000000000..a010884b7
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/JAMA/EigenvalueDecomposition.php
@@ -0,0 +1,789 @@
+d = $this->V[$this->n-1];
+ // Householder reduction to tridiagonal form.
+ for ($i = $this->n-1; $i > 0; $i--) {
+ $i_ = $i -1;
+ // Scale to avoid under/overflow.
+ $h = $scale = 0.0;
+ $scale += array_sum(array_map(abs, $this->d));
+ if ($scale == 0.0) {
+ $this->e[$i] = $this->d[$i_];
+ $this->d = array_slice($this->V[$i_], 0, $i_);
+ for ($j = 0; $j < $i; $j++) {
+ $this->V[$j][$i] = $this->V[$i][$j] = 0.0;
+ }
+ } else {
+ // Generate Householder vector.
+ for ($k = 0; $k < $i; $k++) {
+ $this->d[$k] /= $scale;
+ $h += pow($this->d[$k], 2);
+ }
+ $f = $this->d[$i_];
+ $g = sqrt($h);
+ if ($f > 0)
+ $g = -$g;
+ $this->e[$i] = $scale * $g;
+ $h = $h - $f * $g;
+ $this->d[$i_] = $f - $g;
+ for ($j = 0; $j < $i; $j++)
+ $this->e[$j] = 0.0;
+ // Apply similarity transformation to remaining columns.
+ for ($j = 0; $j < $i; $j++) {
+ $f = $this->d[$j];
+ $this->V[$j][$i] = $f;
+ $g = $this->e[$j] + $this->V[$j][$j] * $f;
+ for ($k = $j+1; $k <= $i_; $k++) {
+ $g += $this->V[$k][$j] * $this->d[$k];
+ $this->e[$k] += $this->V[$k][$j] * $f;
+ }
+ $this->e[$j] = $g;
+ }
+ $f = 0.0;
+ for ($j = 0; $j < $i; $j++) {
+ $this->e[$j] /= $h;
+ $f += $this->e[$j] * $this->d[$j];
+ }
+ $hh = $f / (2 * $h);
+ for ($j=0; $j < $i; $j++)
+ $this->e[$j] -= $hh * $this->d[$j];
+ for ($j = 0; $j < $i; $j++) {
+ $f = $this->d[$j];
+ $g = $this->e[$j];
+ for ($k = $j; $k <= $i_; $k++)
+ $this->V[$k][$j] -= ($f * $this->e[$k] + $g * $this->d[$k]);
+ $this->d[$j] = $this->V[$i-1][$j];
+ $this->V[$i][$j] = 0.0;
+ }
+ }
+ $this->d[$i] = $h;
+ }
+ // Accumulate transformations.
+ for ($i = 0; $i < $this->n-1; $i++) {
+ $this->V[$this->n-1][$i] = $this->V[$i][$i];
+ $this->V[$i][$i] = 1.0;
+ $h = $this->d[$i+1];
+ if ($h != 0.0) {
+ for ($k = 0; $k <= $i; $k++)
+ $this->d[$k] = $this->V[$k][$i+1] / $h;
+ for ($j = 0; $j <= $i; $j++) {
+ $g = 0.0;
+ for ($k = 0; $k <= $i; $k++)
+ $g += $this->V[$k][$i+1] * $this->V[$k][$j];
+ for ($k = 0; $k <= $i; $k++)
+ $this->V[$k][$j] -= $g * $this->d[$k];
+ }
+ }
+ for ($k = 0; $k <= $i; $k++)
+ $this->V[$k][$i+1] = 0.0;
+ }
+
+ $this->d = $this->V[$this->n-1];
+ $this->V[$this->n-1] = array_fill(0, $j, 0.0);
+ $this->V[$this->n-1][$this->n-1] = 1.0;
+ $this->e[0] = 0.0;
+ }
+
+ /**
+ * Symmetric tridiagonal QL algorithm.
+ *
+ * This is derived from the Algol procedures tql2, by
+ * Bowdler, Martin, Reinsch, and Wilkinson, Handbook for
+ * Auto. Comp., Vol.ii-Linear Algebra, and the corresponding
+ * Fortran subroutine in EISPACK.
+ *
+ * @access private
+ */
+ function tql2 () {
+ for ($i = 1; $i < $this->n; $i++)
+ $this->e[$i-1] = $this->e[$i];
+ $this->e[$this->n-1] = 0.0;
+ $f = 0.0;
+ $tst1 = 0.0;
+ $eps = pow(2.0,-52.0);
+ for ($l = 0; $l < $this->n; $l++) {
+ // Find small subdiagonal element
+ $tst1 = max($tst1, abs($this->d[$l]) + abs($this->e[$l]));
+ $m = $l;
+ while ($m < $this->n) {
+ if (abs($this->e[$m]) <= $eps * $tst1)
+ break;
+ $m++;
+ }
+ // If m == l, $this->d[l] is an eigenvalue,
+ // otherwise, iterate.
+ if ($m > $l) {
+ $iter = 0;
+ do {
+ // Could check iteration count here.
+ $iter += 1;
+ // Compute implicit shift
+ $g = $this->d[$l];
+ $p = ($this->d[$l+1] - $g) / (2.0 * $this->e[$l]);
+ $r = hypo($p, 1.0);
+ if ($p < 0)
+ $r *= -1;
+ $this->d[$l] = $this->e[$l] / ($p + $r);
+ $this->d[$l+1] = $this->e[$l] * ($p + $r);
+ $dl1 = $this->d[$l+1];
+ $h = $g - $this->d[$l];
+ for ($i = $l + 2; $i < $this->n; $i++)
+ $this->d[$i] -= $h;
+ $f += $h;
+ // Implicit QL transformation.
+ $p = $this->d[$m];
+ $c = 1.0;
+ $c2 = $c3 = $c;
+ $el1 = $this->e[$l + 1];
+ $s = $s2 = 0.0;
+ for ($i = $m-1; $i >= $l; $i--) {
+ $c3 = $c2;
+ $c2 = $c;
+ $s2 = $s;
+ $g = $c * $this->e[$i];
+ $h = $c * $p;
+ $r = hypo($p, $this->e[$i]);
+ $this->e[$i+1] = $s * $r;
+ $s = $this->e[$i] / $r;
+ $c = $p / $r;
+ $p = $c * $this->d[$i] - $s * $g;
+ $this->d[$i+1] = $h + $s * ($c * $g + $s * $this->d[$i]);
+ // Accumulate transformation.
+ for ($k = 0; $k < $this->n; $k++) {
+ $h = $this->V[$k][$i+1];
+ $this->V[$k][$i+1] = $s * $this->V[$k][$i] + $c * $h;
+ $this->V[$k][$i] = $c * $this->V[$k][$i] - $s * $h;
+ }
+ }
+ $p = -$s * $s2 * $c3 * $el1 * $this->e[$l] / $dl1;
+ $this->e[$l] = $s * $p;
+ $this->d[$l] = $c * $p;
+ // Check for convergence.
+ } while (abs($this->e[$l]) > $eps * $tst1);
+ }
+ $this->d[$l] = $this->d[$l] + $f;
+ $this->e[$l] = 0.0;
+ }
+ // Sort eigenvalues and corresponding vectors.
+ for ($i = 0; $i < $this->n - 1; $i++) {
+ $k = $i;
+ $p = $this->d[$i];
+ for ($j = $i+1; $j < $this->n; $j++) {
+ if ($this->d[$j] < $p) {
+ $k = $j;
+ $p = $this->d[$j];
+ }
+ }
+ if ($k != $i) {
+ $this->d[$k] = $this->d[$i];
+ $this->d[$i] = $p;
+ for ($j = 0; $j < $this->n; $j++) {
+ $p = $this->V[$j][$i];
+ $this->V[$j][$i] = $this->V[$j][$k];
+ $this->V[$j][$k] = $p;
+ }
+ }
+ }
+ }
+
+ /**
+ * Nonsymmetric reduction to Hessenberg form.
+ *
+ * This is derived from the Algol procedures orthes and ortran,
+ * by Martin and Wilkinson, Handbook for Auto. Comp.,
+ * Vol.ii-Linear Algebra, and the corresponding
+ * Fortran subroutines in EISPACK.
+ *
+ * @access private
+ */
+ function orthes () {
+ $low = 0;
+ $high = $this->n-1;
+ for ($m = $low+1; $m <= $high-1; $m++) {
+ // Scale column.
+ $scale = 0.0;
+ for ($i = $m; $i <= $high; $i++)
+ $scale = $scale + abs($this->H[$i][$m-1]);
+ if ($scale != 0.0) {
+ // Compute Householder transformation.
+ $h = 0.0;
+ for ($i = $high; $i >= $m; $i--) {
+ $this->ort[$i] = $this->H[$i][$m-1]/$scale;
+ $h += $this->ort[$i] * $this->ort[$i];
+ }
+ $g = sqrt($h);
+ if ($this->ort[$m] > 0)
+ $g *= -1;
+ $h -= $this->ort[$m] * $g;
+ $this->ort[$m] -= $g;
+ // Apply Householder similarity transformation
+ // H = (I-u*u'/h)*H*(I-u*u')/h)
+ for ($j = $m; $j < $this->n; $j++) {
+ $f = 0.0;
+ for ($i = $high; $i >= $m; $i--)
+ $f += $this->ort[$i] * $this->H[$i][$j];
+ $f /= $h;
+ for ($i = $m; $i <= $high; $i++)
+ $this->H[$i][$j] -= $f * $this->ort[$i];
+ }
+ for ($i = 0; $i <= $high; $i++) {
+ $f = 0.0;
+ for ($j = $high; $j >= $m; $j--)
+ $f += $this->ort[$j] * $this->H[$i][$j];
+ $f = $f/$h;
+ for ($j = $m; $j <= $high; $j++)
+ $this->H[$i][$j] -= $f * $this->ort[$j];
+ }
+ $this->ort[$m] = $scale * $this->ort[$m];
+ $this->H[$m][$m-1] = $scale * $g;
+ }
+ }
+ // Accumulate transformations (Algol's ortran).
+ for ($i = 0; $i < $this->n; $i++)
+ for ($j = 0; $j < $this->n; $j++)
+ $this->V[$i][$j] = ($i == $j ? 1.0 : 0.0);
+ for ($m = $high-1; $m >= $low+1; $m--) {
+ if ($this->H[$m][$m-1] != 0.0) {
+ for ($i = $m+1; $i <= $high; $i++)
+ $this->ort[$i] = $this->H[$i][$m-1];
+ for ($j = $m; $j <= $high; $j++) {
+ $g = 0.0;
+ for ($i = $m; $i <= $high; $i++)
+ $g += $this->ort[$i] * $this->V[$i][$j];
+ // Double division avoids possible underflow
+ $g = ($g / $this->ort[$m]) / $this->H[$m][$m-1];
+ for ($i = $m; $i <= $high; $i++)
+ $this->V[$i][$j] += $g * $this->ort[$i];
+ }
+ }
+ }
+ }
+
+ /**
+ * Performs complex division.
+ * @access private
+ */
+ function cdiv($xr, $xi, $yr, $yi) {
+ if (abs($yr) > abs($yi)) {
+ $r = $yi / $yr;
+ $d = $yr + $r * $yi;
+ $this->cdivr = ($xr + $r * $xi) / $d;
+ $this->cdivi = ($xi - $r * $xr) / $d;
+ } else {
+ $r = $yr / $yi;
+ $d = $yi + $r * $yr;
+ $this->cdivr = ($r * $xr + $xi) / $d;
+ $this->cdivi = ($r * $xi - $xr) / $d;
+ }
+ }
+
+ /**
+ * Nonsymmetric reduction from Hessenberg to real Schur form.
+ *
+ * Code is derived from the Algol procedure hqr2,
+ * by Martin and Wilkinson, Handbook for Auto. Comp.,
+ * Vol.ii-Linear Algebra, and the corresponding
+ * Fortran subroutine in EISPACK.
+ *
+ * @access private
+ */
+ function hqr2 () {
+ // Initialize
+ $nn = $this->n;
+ $n = $nn - 1;
+ $low = 0;
+ $high = $nn - 1;
+ $eps = pow(2.0, -52.0);
+ $exshift = 0.0;
+ $p = $q = $r = $s = $z = 0;
+ // Store roots isolated by balanc and compute matrix norm
+ $norm = 0.0;
+ for ($i = 0; $i < $nn; $i++) {
+ if (($i < $low) OR ($i > $high)) {
+ $this->d[$i] = $this->H[$i][$i];
+ $this->e[$i] = 0.0;
+ }
+ for ($j = max($i-1, 0); $j < $nn; $j++)
+ $norm = $norm + abs($this->H[$i][$j]);
+ }
+ // Outer loop over eigenvalue index
+ $iter = 0;
+ while ($n >= $low) {
+ // Look for single small sub-diagonal element
+ $l = $n;
+ while ($l > $low) {
+ $s = abs($this->H[$l-1][$l-1]) + abs($this->H[$l][$l]);
+ if ($s == 0.0)
+ $s = $norm;
+ if (abs($this->H[$l][$l-1]) < $eps * $s)
+ break;
+ $l--;
+ }
+ // Check for convergence
+ // One root found
+ if ($l == $n) {
+ $this->H[$n][$n] = $this->H[$n][$n] + $exshift;
+ $this->d[$n] = $this->H[$n][$n];
+ $this->e[$n] = 0.0;
+ $n--;
+ $iter = 0;
+ // Two roots found
+ } else if ($l == $n-1) {
+ $w = $this->H[$n][$n-1] * $this->H[$n-1][$n];
+ $p = ($this->H[$n-1][$n-1] - $this->H[$n][$n]) / 2.0;
+ $q = $p * $p + $w;
+ $z = sqrt(abs($q));
+ $this->H[$n][$n] = $this->H[$n][$n] + $exshift;
+ $this->H[$n-1][$n-1] = $this->H[$n-1][$n-1] + $exshift;
+ $x = $this->H[$n][$n];
+ // Real pair
+ if ($q >= 0) {
+ if ($p >= 0)
+ $z = $p + $z;
+ else
+ $z = $p - $z;
+ $this->d[$n-1] = $x + $z;
+ $this->d[$n] = $this->d[$n-1];
+ if ($z != 0.0)
+ $this->d[$n] = $x - $w / $z;
+ $this->e[$n-1] = 0.0;
+ $this->e[$n] = 0.0;
+ $x = $this->H[$n][$n-1];
+ $s = abs($x) + abs($z);
+ $p = $x / $s;
+ $q = $z / $s;
+ $r = sqrt($p * $p + $q * $q);
+ $p = $p / $r;
+ $q = $q / $r;
+ // Row modification
+ for ($j = $n-1; $j < $nn; $j++) {
+ $z = $this->H[$n-1][$j];
+ $this->H[$n-1][$j] = $q * $z + $p * $this->H[$n][$j];
+ $this->H[$n][$j] = $q * $this->H[$n][$j] - $p * $z;
+ }
+ // Column modification
+ for ($i = 0; $i <= n; $i++) {
+ $z = $this->H[$i][$n-1];
+ $this->H[$i][$n-1] = $q * $z + $p * $this->H[$i][$n];
+ $this->H[$i][$n] = $q * $this->H[$i][$n] - $p * $z;
+ }
+ // Accumulate transformations
+ for ($i = $low; $i <= $high; $i++) {
+ $z = $this->V[$i][$n-1];
+ $this->V[$i][$n-1] = $q * $z + $p * $this->V[$i][$n];
+ $this->V[$i][$n] = $q * $this->V[$i][$n] - $p * $z;
+ }
+ // Complex pair
+ } else {
+ $this->d[$n-1] = $x + $p;
+ $this->d[$n] = $x + $p;
+ $this->e[$n-1] = $z;
+ $this->e[$n] = -$z;
+ }
+ $n = $n - 2;
+ $iter = 0;
+ // No convergence yet
+ } else {
+ // Form shift
+ $x = $this->H[$n][$n];
+ $y = 0.0;
+ $w = 0.0;
+ if ($l < $n) {
+ $y = $this->H[$n-1][$n-1];
+ $w = $this->H[$n][$n-1] * $this->H[$n-1][$n];
+ }
+ // Wilkinson's original ad hoc shift
+ if ($iter == 10) {
+ $exshift += $x;
+ for ($i = $low; $i <= $n; $i++)
+ $this->H[$i][$i] -= $x;
+ $s = abs($this->H[$n][$n-1]) + abs($this->H[$n-1][$n-2]);
+ $x = $y = 0.75 * $s;
+ $w = -0.4375 * $s * $s;
+ }
+ // MATLAB's new ad hoc shift
+ if ($iter == 30) {
+ $s = ($y - $x) / 2.0;
+ $s = $s * $s + $w;
+ if ($s > 0) {
+ $s = sqrt($s);
+ if ($y < $x)
+ $s = -$s;
+ $s = $x - $w / (($y - $x) / 2.0 + $s);
+ for ($i = $low; $i <= $n; $i++)
+ $this->H[$i][$i] -= $s;
+ $exshift += $s;
+ $x = $y = $w = 0.964;
+ }
+ }
+ // Could check iteration count here.
+ $iter = $iter + 1;
+ // Look for two consecutive small sub-diagonal elements
+ $m = $n - 2;
+ while ($m >= $l) {
+ $z = $this->H[$m][$m];
+ $r = $x - $z;
+ $s = $y - $z;
+ $p = ($r * $s - $w) / $this->H[$m+1][$m] + $this->H[$m][$m+1];
+ $q = $this->H[$m+1][$m+1] - $z - $r - $s;
+ $r = $this->H[$m+2][$m+1];
+ $s = abs($p) + abs($q) + abs($r);
+ $p = $p / $s;
+ $q = $q / $s;
+ $r = $r / $s;
+ if ($m == $l)
+ break;
+ if (abs($this->H[$m][$m-1]) * (abs($q) + abs($r)) < $eps * (abs($p) * (abs($this->H[$m-1][$m-1]) + abs($z) + abs($this->H[$m+1][$m+1]))))
+ break;
+ $m--;
+ }
+ for ($i = $m + 2; $i <= $n; $i++) {
+ $this->H[$i][$i-2] = 0.0;
+ if ($i > $m+2)
+ $this->H[$i][$i-3] = 0.0;
+ }
+ // Double QR step involving rows l:n and columns m:n
+ for ($k = $m; $k <= $n-1; $k++) {
+ $notlast = ($k != $n-1);
+ if ($k != $m) {
+ $p = $this->H[$k][$k-1];
+ $q = $this->H[$k+1][$k-1];
+ $r = ($notlast ? $this->H[$k+2][$k-1] : 0.0);
+ $x = abs($p) + abs($q) + abs($r);
+ if ($x != 0.0) {
+ $p = $p / $x;
+ $q = $q / $x;
+ $r = $r / $x;
+ }
+ }
+ if ($x == 0.0)
+ break;
+ $s = sqrt($p * $p + $q * $q + $r * $r);
+ if ($p < 0)
+ $s = -$s;
+ if ($s != 0) {
+ if ($k != $m)
+ $this->H[$k][$k-1] = -$s * $x;
+ else if ($l != $m)
+ $this->H[$k][$k-1] = -$this->H[$k][$k-1];
+ $p = $p + $s;
+ $x = $p / $s;
+ $y = $q / $s;
+ $z = $r / $s;
+ $q = $q / $p;
+ $r = $r / $p;
+ // Row modification
+ for ($j = $k; $j < $nn; $j++) {
+ $p = $this->H[$k][$j] + $q * $this->H[$k+1][$j];
+ if ($notlast) {
+ $p = $p + $r * $this->H[$k+2][$j];
+ $this->H[$k+2][$j] = $this->H[$k+2][$j] - $p * $z;
+ }
+ $this->H[$k][$j] = $this->H[$k][$j] - $p * $x;
+ $this->H[$k+1][$j] = $this->H[$k+1][$j] - $p * $y;
+ }
+ // Column modification
+ for ($i = 0; $i <= min($n, $k+3); $i++) {
+ $p = $x * $this->H[$i][$k] + $y * $this->H[$i][$k+1];
+ if ($notlast) {
+ $p = $p + $z * $this->H[$i][$k+2];
+ $this->H[$i][$k+2] = $this->H[$i][$k+2] - $p * $r;
+ }
+ $this->H[$i][$k] = $this->H[$i][$k] - $p;
+ $this->H[$i][$k+1] = $this->H[$i][$k+1] - $p * $q;
+ }
+ // Accumulate transformations
+ for ($i = $low; $i <= $high; $i++) {
+ $p = $x * $this->V[$i][$k] + $y * $this->V[$i][$k+1];
+ if ($notlast) {
+ $p = $p + $z * $this->V[$i][$k+2];
+ $this->V[$i][$k+2] = $this->V[$i][$k+2] - $p * $r;
+ }
+ $this->V[$i][$k] = $this->V[$i][$k] - $p;
+ $this->V[$i][$k+1] = $this->V[$i][$k+1] - $p * $q;
+ }
+ } // ($s != 0)
+ } // k loop
+ } // check convergence
+ } // while ($n >= $low)
+ // Backsubstitute to find vectors of upper triangular form
+ if ($norm == 0.0)
+ return;
+ for ($n = $nn-1; $n >= 0; $n--) {
+ $p = $this->d[$n];
+ $q = $this->e[$n];
+ // Real vector
+ if ($q == 0) {
+ $l = $n;
+ $this->H[$n][$n] = 1.0;
+ for ($i = $n-1; $i >= 0; $i--) {
+ $w = $this->H[$i][$i] - $p;
+ $r = 0.0;
+ for ($j = $l; $j <= $n; $j++)
+ $r = $r + $this->H[$i][$j] * $this->H[$j][$n];
+ if ($this->e[$i] < 0.0) {
+ $z = $w;
+ $s = $r;
+ } else {
+ $l = $i;
+ if ($this->e[$i] == 0.0) {
+ if ($w != 0.0)
+ $this->H[$i][$n] = -$r / $w;
+ else
+ $this->H[$i][$n] = -$r / ($eps * $norm);
+ // Solve real equations
+ } else {
+ $x = $this->H[$i][$i+1];
+ $y = $this->H[$i+1][$i];
+ $q = ($this->d[$i] - $p) * ($this->d[$i] - $p) + $this->e[$i] * $this->e[$i];
+ $t = ($x * $s - $z * $r) / $q;
+ $this->H[$i][$n] = $t;
+ if (abs($x) > abs($z))
+ $this->H[$i+1][$n] = (-$r - $w * $t) / $x;
+ else
+ $this->H[$i+1][$n] = (-$s - $y * $t) / $z;
+ }
+ // Overflow control
+ $t = abs($this->H[$i][$n]);
+ if (($eps * $t) * $t > 1) {
+ for ($j = $i; $j <= $n; $j++)
+ $this->H[$j][$n] = $this->H[$j][$n] / $t;
+ }
+ }
+ }
+ // Complex vector
+ } else if ($q < 0) {
+ $l = $n-1;
+ // Last vector component imaginary so matrix is triangular
+ if (abs($this->H[$n][$n-1]) > abs($this->H[$n-1][$n])) {
+ $this->H[$n-1][$n-1] = $q / $this->H[$n][$n-1];
+ $this->H[$n-1][$n] = -($this->H[$n][$n] - $p) / $this->H[$n][$n-1];
+ } else {
+ $this->cdiv(0.0, -$this->H[$n-1][$n], $this->H[$n-1][$n-1] - $p, $q);
+ $this->H[$n-1][$n-1] = $this->cdivr;
+ $this->H[$n-1][$n] = $this->cdivi;
+ }
+ $this->H[$n][$n-1] = 0.0;
+ $this->H[$n][$n] = 1.0;
+ for ($i = $n-2; $i >= 0; $i--) {
+ // double ra,sa,vr,vi;
+ $ra = 0.0;
+ $sa = 0.0;
+ for ($j = $l; $j <= $n; $j++) {
+ $ra = $ra + $this->H[$i][$j] * $this->H[$j][$n-1];
+ $sa = $sa + $this->H[$i][$j] * $this->H[$j][$n];
+ }
+ $w = $this->H[$i][$i] - $p;
+ if ($this->e[$i] < 0.0) {
+ $z = $w;
+ $r = $ra;
+ $s = $sa;
+ } else {
+ $l = $i;
+ if ($this->e[$i] == 0) {
+ $this->cdiv(-$ra, -$sa, $w, $q);
+ $this->H[$i][$n-1] = $this->cdivr;
+ $this->H[$i][$n] = $this->cdivi;
+ } else {
+ // Solve complex equations
+ $x = $this->H[$i][$i+1];
+ $y = $this->H[$i+1][$i];
+ $vr = ($this->d[$i] - $p) * ($this->d[$i] - $p) + $this->e[$i] * $this->e[$i] - $q * $q;
+ $vi = ($this->d[$i] - $p) * 2.0 * $q;
+ if ($vr == 0.0 & $vi == 0.0)
+ $vr = $eps * $norm * (abs($w) + abs($q) + abs($x) + abs($y) + abs($z));
+ $this->cdiv($x * $r - $z * $ra + $q * $sa, $x * $s - $z * $sa - $q * $ra, $vr, $vi);
+ $this->H[$i][$n-1] = $this->cdivr;
+ $this->H[$i][$n] = $this->cdivi;
+ if (abs($x) > (abs($z) + abs($q))) {
+ $this->H[$i+1][$n-1] = (-$ra - $w * $this->H[$i][$n-1] + $q * $this->H[$i][$n]) / $x;
+ $this->H[$i+1][$n] = (-$sa - $w * $this->H[$i][$n] - $q * $this->H[$i][$n-1]) / $x;
+ } else {
+ $this->cdiv(-$r - $y * $this->H[$i][$n-1], -$s - $y * $this->H[$i][$n], $z, $q);
+ $this->H[$i+1][$n-1] = $this->cdivr;
+ $this->H[$i+1][$n] = $this->cdivi;
+ }
+ }
+ // Overflow control
+ $t = max(abs($this->H[$i][$n-1]),abs($this->H[$i][$n]));
+ if (($eps * $t) * $t > 1) {
+ for ($j = $i; $j <= $n; $j++) {
+ $this->H[$j][$n-1] = $this->H[$j][$n-1] / $t;
+ $this->H[$j][$n] = $this->H[$j][$n] / $t;
+ }
+ }
+ } // end else
+ } // end for
+ } // end else for complex case
+ } // end for
+ // Vectors of isolated roots
+ for ($i = 0; $i < $nn; $i++) {
+ if ($i < $low | $i > $high) {
+ for ($j = $i; $j < $nn; $j++)
+ $this->V[$i][$j] = $this->H[$i][$j];
+ }
+ }
+ // Back transformation to get eigenvectors of original matrix
+ for ($j = $nn-1; $j >= $low; $j--) {
+ for ($i = $low; $i <= $high; $i++) {
+ $z = 0.0;
+ for ($k = $low; $k <= min($j,$high); $k++)
+ $z = $z + $this->V[$i][$k] * $this->H[$k][$j];
+ $this->V[$i][$j] = $z;
+ }
+ }
+ } // end hqr2
+
+ /**
+ * Constructor: Check for symmetry, then construct the eigenvalue decomposition
+ * @access public
+ * @param A Square matrix
+ * @return Structure to access D and V.
+ */
+ function EigenvalueDecomposition($Arg) {
+ $this->A = $Arg->getArray();
+ $this->n = $Arg->getColumnDimension();
+ $this->V = array();
+ $this->d = array();
+ $this->e = array();
+ $issymmetric = true;
+ for ($j = 0; ($j < $this->n) & $issymmetric; $j++)
+ for ($i = 0; ($i < $this->n) & $issymmetric; $i++)
+ $issymmetric = ($this->A[$i][$j] == $this->A[$j][$i]);
+ if ($issymmetric) {
+ $this->V = $this->A;
+ // Tridiagonalize.
+ $this->tred2();
+ // Diagonalize.
+ $this->tql2();
+ } else {
+ $this->H = $this->A;
+ $this->ort = array();
+ // Reduce to Hessenberg form.
+ $this->orthes();
+ // Reduce Hessenberg to real Schur form.
+ $this->hqr2();
+ }
+ }
+
+ /**
+ * Return the eigenvector matrix
+ * @access public
+ * @return V
+ */
+ function getV() {
+ return new Matrix($this->V, $this->n, $this->n);
+ }
+
+ /**
+ * Return the real parts of the eigenvalues
+ * @access public
+ * @return real(diag(D))
+ */
+ function getRealEigenvalues() {
+ return $this->d;
+ }
+
+ /**
+ * Return the imaginary parts of the eigenvalues
+ * @access public
+ * @return imag(diag(D))
+ */
+ function getImagEigenvalues() {
+ return $this->e;
+ }
+
+ /**
+ * Return the block diagonal eigenvalue matrix
+ * @access public
+ * @return D
+ */
+ function getD() {
+ for ($i = 0; $i < $this->n; $i++) {
+ $D[$i] = array_fill(0, $this->n, 0.0);
+ $D[$i][$i] = $this->d[$i];
+ if ($this->e[$i] == 0)
+ continue;
+ $o = ($this->e[$i] > 0) ? $i + 1 : $i - 1;
+ $D[$i][$o] = $this->e[$i];
+ }
+ return new Matrix($D);
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Shared/JAMA/LUDecomposition.php b/libraries/PHPExcel/PHPExcel/Shared/JAMA/LUDecomposition.php
new file mode 100644
index 000000000..de177a5f6
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/JAMA/LUDecomposition.php
@@ -0,0 +1,222 @@
+= n, the LU decomposition is an m-by-n
+* unit lower triangular matrix L, an n-by-n upper triangular matrix U,
+* and a permutation vector piv of length m so that A(piv,:) = L*U.
+* If m < n, then L is m-by-m and U is m-by-n.
+*
+* The LU decompostion with pivoting always exists, even if the matrix is
+* singular, so the constructor will never fail. The primary use of the
+* LU decomposition is in the solution of square systems of simultaneous
+* linear equations. This will fail if isNonsingular() returns false.
+*
+* @author Paul Meagher
+* @author Bartosz Matosiuk
+* @author Michael Bommarito
+* @version 1.1
+* @license PHP v3.0
+*/
+class LUDecomposition {
+ /**
+ * Decomposition storage
+ * @var array
+ */
+ var $LU = array();
+
+ /**
+ * Row dimension.
+ * @var int
+ */
+ var $m;
+
+ /**
+ * Column dimension.
+ * @var int
+ */
+ var $n;
+
+ /**
+ * Pivot sign.
+ * @var int
+ */
+ var $pivsign;
+
+ /**
+ * Internal storage of pivot vector.
+ * @var array
+ */
+ var $piv = array();
+
+ /**
+ * LU Decomposition constructor.
+ * @param $A Rectangular matrix
+ * @return Structure to access L, U and piv.
+ */
+ function LUDecomposition ($A) {
+ if( is_a($A, 'Matrix') ) {
+ // Use a "left-looking", dot-product, Crout/Doolittle algorithm.
+ $this->LU = $A->getArrayCopy();
+ $this->m = $A->getRowDimension();
+ $this->n = $A->getColumnDimension();
+ for ($i = 0; $i < $this->m; $i++)
+ $this->piv[$i] = $i;
+ $this->pivsign = 1;
+ $LUrowi = array();
+ $LUcolj = array();
+ // Outer loop.
+ for ($j = 0; $j < $this->n; $j++) {
+ // Make a copy of the j-th column to localize references.
+ for ($i = 0; $i < $this->m; $i++)
+ $LUcolj[$i] = &$this->LU[$i][$j];
+ // Apply previous transformations.
+ for ($i = 0; $i < $this->m; $i++) {
+ $LUrowi = $this->LU[$i];
+ // Most of the time is spent in the following dot product.
+ $kmax = min($i,$j);
+ $s = 0.0;
+ for ($k = 0; $k < $kmax; $k++)
+ $s += $LUrowi[$k]*$LUcolj[$k];
+ $LUrowi[$j] = $LUcolj[$i] -= $s;
+ }
+ // Find pivot and exchange if necessary.
+ $p = $j;
+ for ($i = $j+1; $i < $this->m; $i++) {
+ if (abs($LUcolj[$i]) > abs($LUcolj[$p]))
+ $p = $i;
+ }
+ if ($p != $j) {
+ for ($k = 0; $k < $this->n; $k++) {
+ $t = $this->LU[$p][$k];
+ $this->LU[$p][$k] = $this->LU[$j][$k];
+ $this->LU[$j][$k] = $t;
+ }
+ $k = $this->piv[$p];
+ $this->piv[$p] = $this->piv[$j];
+ $this->piv[$j] = $k;
+ $this->pivsign = $this->pivsign * -1;
+ }
+ // Compute multipliers.
+ if ( ($j < $this->m) AND ($this->LU[$j][$j] != 0.0) ) {
+ for ($i = $j+1; $i < $this->m; $i++)
+ $this->LU[$i][$j] /= $this->LU[$j][$j];
+ }
+ }
+ } else {
+ trigger_error(ArgumentTypeException, ERROR);
+ }
+ }
+
+ /**
+ * Get lower triangular factor.
+ * @return array Lower triangular factor
+ */
+ function getL () {
+ for ($i = 0; $i < $this->m; $i++) {
+ for ($j = 0; $j < $this->n; $j++) {
+ if ($i > $j)
+ $L[$i][$j] = $this->LU[$i][$j];
+ else if($i == $j)
+ $L[$i][$j] = 1.0;
+ else
+ $L[$i][$j] = 0.0;
+ }
+ }
+ return new Matrix($L);
+ }
+
+ /**
+ * Get upper triangular factor.
+ * @return array Upper triangular factor
+ */
+ function getU () {
+ for ($i = 0; $i < $this->n; $i++) {
+ for ($j = 0; $j < $this->n; $j++) {
+ if ($i <= $j)
+ $U[$i][$j] = $this->LU[$i][$j];
+ else
+ $U[$i][$j] = 0.0;
+ }
+ }
+ return new Matrix($U);
+ }
+
+ /**
+ * Return pivot permutation vector.
+ * @return array Pivot vector
+ */
+ function getPivot () {
+ return $this->piv;
+ }
+
+ /**
+ * Alias for getPivot
+ * @see getPivot
+ */
+ function getDoublePivot () {
+ return $this->getPivot();
+ }
+
+ /**
+ * Is the matrix nonsingular?
+ * @return true if U, and hence A, is nonsingular.
+ */
+ function isNonsingular () {
+ for ($j = 0; $j < $this->n; $j++) {
+ if ($this->LU[$j][$j] == 0)
+ return false;
+ }
+ return true;
+ }
+
+ /**
+ * Count determinants
+ * @return array d matrix deterninat
+ */
+ function det() {
+ if ($this->m == $this->n) {
+ $d = $this->pivsign;
+ for ($j = 0; $j < $this->n; $j++)
+ $d *= $this->LU[$j][$j];
+ return $d;
+ } else {
+ trigger_error(MatrixDimensionException, ERROR);
+ }
+ }
+
+ /**
+ * Solve A*X = B
+ * @param $B A Matrix with as many rows as A and any number of columns.
+ * @return X so that L*U*X = B(piv,:)
+ * @exception IllegalArgumentException Matrix row dimensions must agree.
+ * @exception RuntimeException Matrix is singular.
+ */
+ function solve($B) {
+ if ($B->getRowDimension() == $this->m) {
+ if ($this->isNonsingular()) {
+ // Copy right hand side with pivoting
+ $nx = $B->getColumnDimension();
+ $X = $B->getMatrix($this->piv, 0, $nx-1);
+ // Solve L*Y = B(piv,:)
+ for ($k = 0; $k < $this->n; $k++)
+ for ($i = $k+1; $i < $this->n; $i++)
+ for ($j = 0; $j < $nx; $j++)
+ $X->A[$i][$j] -= $X->A[$k][$j] * $this->LU[$i][$k];
+ // Solve U*X = Y;
+ for ($k = $this->n-1; $k >= 0; $k--) {
+ for ($j = 0; $j < $nx; $j++)
+ $X->A[$k][$j] /= $this->LU[$k][$k];
+ for ($i = 0; $i < $k; $i++)
+ for ($j = 0; $j < $nx; $j++)
+ $X->A[$i][$j] -= $X->A[$k][$j] * $this->LU[$i][$k];
+ }
+ return $X;
+ } else {
+ trigger_error(MatrixSingularException, ERROR);
+ }
+ } else {
+ trigger_error(MatrixSquareException, ERROR);
+ }
+ }
+}
diff --git a/libraries/PHPExcel/PHPExcel/Shared/JAMA/Matrix.php b/libraries/PHPExcel/PHPExcel/Shared/JAMA/Matrix.php
new file mode 100644
index 000000000..c1b79ae04
--- /dev/null
+++ b/libraries/PHPExcel/PHPExcel/Shared/JAMA/Matrix.php
@@ -0,0 +1,1331 @@
+ 0 ) {
+
+ $args = func_get_args();
+ $match = implode(",", array_map('gettype', $args));
+
+ switch( $match ) {
+
+ //Square matrix - n x n
+ case 'integer':
+ $this->m = $args[0];
+ $this->n = $args[0];
+ $this->A = array_fill(0, $this->m, array_fill(0, $this->n, 0));
+ break;
+
+ //Rectangular matrix - m x n
+ case 'integer,integer':
+ $this->m = $args[0];
+ $this->n = $args[1];
+ $this->A = array_fill(0, $this->m, array_fill(0, $this->n, 0));
+ break;
+
+ //Rectangular matrix constant-filled - m x n filled with c
+ case 'integer,integer,integer':
+ $this->m = $args[0];
+ $this->n = $args[1];
+ $this->A = array_fill(0, $this->m, array_fill(0, $this->n, $args[2]));
+ break;
+
+ //Rectangular matrix constant-filled - m x n filled with c
+ case 'integer,integer,double':
+ $this->m = $args[0];
+ $this->n = $args[1];
+ $this->A = array_fill(0, $this->m, array_fill(0, $this->n, $args[2]));
+ break;
+
+ //Rectangular matrix - m x n initialized from 2D array
+ case 'array':
+ $this->m = count($args[0]);
+ $this->n = count($args[0][0]);
+ $this->A = $args[0];
+ break;
+
+ //Rectangular matrix - m x n initialized from 2D array
+ case 'array,integer,integer':
+ $this->m = $args[1];
+ $this->n = $args[2];
+ $this->A = $args[0];
+ break;
+
+ //Rectangular matrix - m x n initialized from packed array
+ case 'array,integer':
+ $this->m = $args[1];
+
+ if ($this->m != 0)
+ $this->n = count($args[0]) / $this->m;
+ else
+ $this->n = 0;
+
+ if ($this->m * $this->n == count($args[0]))
+ for($i = 0; $i < $this->m; $i++)
+ for($j = 0; $j < $this->n; $j++)
+ $this->A[$i][$j] = $args[0][$i + $j * $this->m];
+ else
+ trigger_error(ArrayLengthException, ERROR);
+
+ break;
+ default:
+ trigger_error(PolymorphicArgumentException, ERROR);
+ break;
+ }
+ } else
+ trigger_error(PolymorphicArgumentException, ERROR);
+ }
+
+ /**
+ * getArray
+ * @return array Matrix array
+ */
+ function &getArray() {
+ return $this->A;
+ }
+
+ /**
+ * getArrayCopy
+ * @return array Matrix array copy
+ */
+ function getArrayCopy() {
+ return $this->A;
+ }
+
+ /** Construct a matrix from a copy of a 2-D array.
+ * @param double A[][] Two-dimensional array of doubles.
+ * @exception IllegalArgumentException All rows must have the same length
+ */
+ function constructWithCopy($A) {
+ $this->m = count($A);
+ $this->n = count($A[0]);
+ $X = new Matrix($this->m, $this->n);
+ for ($i = 0; $i < $this->m; $i++) {
+ if (count($A[$i]) != $this->n)
+ trigger_error(RowLengthException, ERROR);
+ for ($j = 0; $j < $this->n; $j++)
+ $X->A[$i][$j] = $A[$i][$j];
+ }
+ return $X;
+ }
+
+ /**
+ * getColumnPacked
+ * Get a column-packed array
+ * @return array Column-packed matrix array
+ */
+ function getColumnPackedCopy() {
+ $P = array();
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ array_push($P, $this->A[$j][$i]);
+ }
+ }
+ return $P;
+ }
+
+ /**
+ * getRowPacked
+ * Get a row-packed array
+ * @return array Row-packed matrix array
+ */
+ function getRowPackedCopy() {
+ $P = array();
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ array_push($P, $this->A[$i][$j]);
+ }
+ }
+ return $P;
+ }
+
+ /**
+ * getRowDimension
+ * @return int Row dimension
+ */
+ function getRowDimension() {
+ return $this->m;
+ }
+
+ /**
+ * getColumnDimension
+ * @return int Column dimension
+ */
+ function getColumnDimension() {
+ return $this->n;
+ }
+
+ /**
+ * get
+ * Get the i,j-th element of the matrix.
+ * @param int $i Row position
+ * @param int $j Column position
+ * @return mixed Element (int/float/double)
+ */
+ function get( $i = null, $j = null ) {
+ return $this->A[$i][$j];
+ }
+
+ /**
+ * getMatrix
+ * Get a submatrix
+ * @param int $i0 Initial row index
+ * @param int $iF Final row index
+ * @param int $j0 Initial column index
+ * @param int $jF Final column index
+ * @return Matrix Submatrix
+ */
+ function getMatrix() {
+ if( func_num_args() > 0 ) {
+ $args = func_get_args();
+ $match = implode(",", array_map('gettype', $args));
+ switch( $match ) {
+
+ //A($i0...; $j0...)
+ case 'integer,integer':
+ list($i0, $j0) = $args;
+ $m = $i0 >= 0 ? $this->m - $i0 : trigger_error(ArgumentBoundsException, ERROR);
+ $n = $j0 >= 0 ? $this->n - $j0 : trigger_error(ArgumentBoundsException, ERROR);
+ $R = new Matrix($m, $n);
+
+ for($i = $i0; $i < $this->m; $i++)
+ for($j = $j0; $j < $this->n; $j++)
+ $R->set($i, $j, $this->A[$i][$j]);
+
+ return $R;
+ break;
+
+ //A($i0...$iF; $j0...$jF)
+ case 'integer,integer,integer,integer':
+ list($i0, $iF, $j0, $jF) = $args;
+ $m = ( ($iF > $i0) && ($this->m >= $iF) && ($i0 >= 0) ) ? $iF - $i0 : trigger_error(ArgumentBoundsException, ERROR);
+ $n = ( ($jF > $j0) && ($this->n >= $jF) && ($j0 >= 0) ) ? $jF - $j0 : trigger_error(ArgumentBoundsException, ERROR);
+ $R = new Matrix($m+1, $n+1);
+
+ for($i = $i0; $i <= $iF; $i++)
+ for($j = $j0; $j <= $jF; $j++)
+ $R->set($i - $i0, $j - $j0, $this->A[$i][$j]);
+
+ return $R;
+ break;
+
+ //$R = array of row indices; $C = array of column indices
+ case 'array,array':
+ list($RL, $CL) = $args;
+ $m = count($RL) > 0 ? count($RL) : trigger_error(ArgumentBoundsException, ERROR);
+ $n = count($CL) > 0 ? count($CL) : trigger_error(ArgumentBoundsException, ERROR);
+ $R = new Matrix($m, $n);
+
+ for($i = 0; $i < $m; $i++)
+ for($j = 0; $j < $n; $j++)
+ $R->set($i - $i0, $j - $j0, $this->A[$RL[$i]][$CL[$j]]);
+
+ return $R;
+ break;
+
+ //$RL = array of row indices; $CL = array of column indices
+ case 'array,array':
+ list($RL, $CL) = $args;
+ $m = count($RL) > 0 ? count($RL) : trigger_error(ArgumentBoundsException, ERROR);
+ $n = count($CL) > 0 ? count($CL) : trigger_error(ArgumentBoundsException, ERROR);
+ $R = new Matrix($m, $n);
+
+ for($i = 0; $i < $m; $i++)
+ for($j = 0; $j < $n; $j++)
+ $R->set($i, $j, $this->A[$RL[$i]][$CL[$j]]);
+
+ return $R;
+ break;
+
+ //A($i0...$iF); $CL = array of column indices
+ case 'integer,integer,array':
+ list($i0, $iF, $CL) = $args;
+ $m = ( ($iF > $i0) && ($this->m >= $iF) && ($i0 >= 0) ) ? $iF - $i0 : trigger_error(ArgumentBoundsException, ERROR);
+ $n = count($CL) > 0 ? count($CL) : trigger_error(ArgumentBoundsException, ERROR);
+ $R = new Matrix($m, $n);
+
+ for($i = $i0; $i < $iF; $i++)
+ for($j = 0; $j < $n; $j++)
+ $R->set($i - $i0, $j, $this->A[$RL[$i]][$j]);
+
+ return $R;
+ break;
+
+ //$RL = array of row indices
+ case 'array,integer,integer':
+ list($RL, $j0, $jF) = $args;
+ $m = count($RL) > 0 ? count($RL) : trigger_error(ArgumentBoundsException, ERROR);
+ $n = ( ($jF >= $j0) && ($this->n >= $jF) && ($j0 >= 0) ) ? $jF - $j0 : trigger_error(ArgumentBoundsException, ERROR);
+ $R = new Matrix($m, $n+1);
+
+ for($i = 0; $i < $m; $i++)
+ for($j = $j0; $j <= $jF; $j++)
+ $R->set($i, $j - $j0, $this->A[$RL[$i]][$j]);
+
+ return $R;
+ break;
+ default:
+ trigger_error(PolymorphicArgumentException, ERROR);
+ break;
+ }
+ } else {
+ trigger_error(PolymorphicArgumentException, ERROR);
+ }
+ }
+
+ /**
+ * setMatrix
+ * Set a submatrix
+ * @param int $i0 Initial row index
+ * @param int $j0 Initial column index
+ * @param mixed $S Matrix/Array submatrix
+ * ($i0, $j0, $S) $S = Matrix
+ * ($i0, $j0, $S) $S = Array
+ */
+ function setMatrix( ) {
+ if( func_num_args() > 0 ) {
+ $args = func_get_args();
+ $match = implode(",", array_map('gettype', $args));
+
+ switch( $match ) {
+ case 'integer,integer,object':
+ $M = is_a($args[2], 'Matrix') ? $args[2] : trigger_error(ArgumentTypeException, ERROR);
+ $i0 = ( ($args[0] + $M->m) <= $this->m ) ? $args[0] : trigger_error(ArgumentBoundsException, ERROR);
+ $j0 = ( ($args[1] + $M->n) <= $this->n ) ? $args[1] : trigger_error(ArgumentBoundsException, ERROR);
+
+ for($i = $i0; $i < $i0 + $M->m; $i++) {
+ for($j = $j0; $j < $j0 + $M->n; $j++) {
+ $this->A[$i][$j] = $M->get($i - $i0, $j - $j0);
+ }
+ }
+
+ break;
+
+ case 'integer,integer,array':
+ $M = new Matrix($args[2]);
+ $i0 = ( ($args[0] + $M->m) <= $this->m ) ? $args[0] : trigger_error(ArgumentBoundsException, ERROR);
+ $j0 = ( ($args[1] + $M->n) <= $this->n ) ? $args[1] : trigger_error(ArgumentBoundsException, ERROR);
+
+ for($i = $i0; $i < $i0 + $M->m; $i++) {
+ for($j = $j0; $j < $j0 + $M->n; $j++) {
+ $this->A[$i][$j] = $M->get($i - $i0, $j - $j0);
+ }
+ }
+
+ break;
+
+ default:
+ trigger_error(PolymorphicArgumentException, ERROR);
+ break;
+ }
+ } else {
+ trigger_error(PolymorphicArgumentException, ERROR);
+ }
+ }
+
+ /**
+ * checkMatrixDimensions
+ * Is matrix B the same size?
+ * @param Matrix $B Matrix B
+ * @return boolean
+ */
+ function checkMatrixDimensions( $B = null ) {
+ if( is_a($B, 'Matrix') )
+ if( ($this->m == $B->m) && ($this->n == $B->n) )
+ return true;
+ else
+ trigger_error(MatrixDimensionException, ERROR);
+
+ else
+ trigger_error(ArgumentTypeException, ERROR);
+ }
+
+
+
+ /**
+ * set
+ * Set the i,j-th element of the matrix.
+ * @param int $i Row position
+ * @param int $j Column position
+ * @param mixed $c Int/float/double value
+ * @return mixed Element (int/float/double)
+ */
+ function set( $i = null, $j = null, $c = null ) {
+ // Optimized set version just has this
+ $this->A[$i][$j] = $c;
+ /*
+ if( is_int($i) && is_int($j) && is_numeric($c) ) {
+ if( ( $i < $this->m ) && ( $j < $this->n ) ) {
+ $this->A[$i][$j] = $c;
+ } else {
+ echo "A[$i][$j] = $c ";
+ trigger_error(ArgumentBoundsException, WARNING);
+ }
+ } else {
+ trigger_error(ArgumentTypeException, WARNING);
+ }
+ */
+ }
+
+ /**
+ * identity
+ * Generate an identity matrix.
+ * @param int $m Row dimension
+ * @param int $n Column dimension
+ * @return Matrix Identity matrix
+ */
+ function &identity( $m = null, $n = null ) {
+ return Matrix::diagonal($m, $n, 1);
+ }
+
+ /**
+ * diagonal
+ * Generate a diagonal matrix
+ * @param int $m Row dimension
+ * @param int $n Column dimension
+ * @param mixed $c Diagonal value
+ * @return Matrix Diagonal matrix
+ */
+ function &diagonal( $m = null, $n = null, $c = 1 ) {
+ $R = new Matrix($m, $n);
+ for($i = 0; $i < $m; $i++)
+ $R->set($i, $i, $c);
+ return $R;
+ }
+
+ /**
+ * filled
+ * Generate a filled matrix
+ * @param int $m Row dimension
+ * @param int $n Column dimension
+ * @param int $c Fill constant
+ * @return Matrix Filled matrix
+ */
+ function &filled( $m = null, $n = null, $c = 0 ) {
+ if( is_int($m) && is_int($n) && is_numeric($c) ) {
+ $R = new Matrix($m, $n, $c);
+ return $R;
+ } else {
+ trigger_error(ArgumentTypeException, ERROR);
+ }
+ }
+
+ /**
+ * random
+ * Generate a random matrix
+ * @param int $m Row dimension
+ * @param int $n Column dimension
+ * @return Matrix Random matrix
+ */
+ function &random( $m = null, $n = null, $a = RAND_MIN, $b = RAND_MAX ) {
+ if( is_int($m) && is_int($n) && is_numeric($a) && is_numeric($b) ) {
+ $R = new Matrix($m, $n);
+
+ for($i = 0; $i < $m; $i++)
+ for($j = 0; $j < $n; $j++)
+ $R->set($i, $j, mt_rand($a, $b));
+
+ return $R;
+ } else {
+ trigger_error(ArgumentTypeException, ERROR);
+ }
+ }
+
+ /**
+ * packed
+ * Alias for getRowPacked
+ * @return array Packed array
+ */
+ function &packed() {
+ return $this->getRowPacked();
+ }
+
+
+ /**
+ * getMatrixByRow
+ * Get a submatrix by row index/range
+ * @param int $i0 Initial row index
+ * @param int $iF Final row index
+ * @return Matrix Submatrix
+ */
+ function getMatrixByRow( $i0 = null, $iF = null ) {
+ if( is_int($i0) ) {
+ if( is_int($iF) )
+ return $this->getMatrix($i0, 0, $iF + 1, $this->n);
+ else
+ return $this->getMatrix($i0, 0, $i0 + 1, $this->n);
+ } else
+ trigger_error(ArgumentTypeException, ERROR);
+ }
+
+ /**
+ * getMatrixByCol
+ * Get a submatrix by column index/range
+ * @param int $i0 Initial column index
+ * @param int $iF Final column index
+ * @return Matrix Submatrix
+ */
+ function getMatrixByCol( $j0 = null, $jF = null ) {
+ if( is_int($j0) ) {
+ if( is_int($jF) )
+ return $this->getMatrix(0, $j0, $this->m, $jF + 1);
+ else
+ return $this->getMatrix(0, $j0, $this->m, $j0 + 1);
+ } else
+ trigger_error(ArgumentTypeException, ERROR);
+ }
+
+ /**
+ * transpose
+ * Tranpose matrix
+ * @return Matrix Transposed matrix
+ */
+ function transpose() {
+ $R = new Matrix($this->n, $this->m);
+
+ for($i = 0; $i < $this->m; $i++)
+ for($j = 0; $j < $this->n; $j++)
+ $R->set($j, $i, $this->A[$i][$j]);
+
+ return $R;
+ }
+
+/*
+ public Matrix transpose () {
+ Matrix X = new Matrix(n,m);
+ double[][] C = X.getArray();
+ for (int i = 0; i < m; i++) {
+ for (int j = 0; j < n; j++) {
+ C[j][i] = A[i][j];
+ }
+ }
+ return X;
+ }
+*/
+
+ /**
+ * norm1
+ * One norm
+ * @return float Maximum column sum
+ */
+ function norm1() {
+ $r = 0;
+
+ for($j = 0; $j < $this->n; $j++) {
+ $s = 0;
+
+ for($i = 0; $i < $this->m; $i++) {
+ $s += abs($this->A[$i][$j]);
+ }
+
+ $r = ( $r > $s ) ? $r : $s;
+ }
+
+ return $r;
+ }
+
+
+ /**
+ * norm2
+ * Maximum singular value
+ * @return float Maximum singular value
+ */
+ function norm2() {
+
+ }
+
+ /**
+ * normInf
+ * Infinite norm
+ * @return float Maximum row sum
+ */
+ function normInf() {
+ $r = 0;
+
+ for($i = 0; $i < $this->m; $i++) {
+ $s = 0;
+
+ for($j = 0; $j < $this->n; $j++) {
+ $s += abs($this->A[$i][$j]);
+ }
+
+ $r = ( $r > $s ) ? $r : $s;
+ }
+
+ return $r;
+ }
+
+ /**
+ * normF
+ * Frobenius norm
+ * @return float Square root of the sum of all elements squared
+ */
+ function normF() {
+ $f = 0;
+ for ($i = 0; $i < $this->m; $i++)
+ for ($j = 0; $j < $this->n; $j++)
+ $f = hypo($f,$this->A[$i][$j]);
+ return $f;
+ }
+
+ /**
+ * Matrix rank
+ * @return effective numerical rank, obtained from SVD.
+ */
+ function rank () {
+ $svd = new SingularValueDecomposition($this);
+ return $svd->rank();
+ }
+
+ /**
+ * Matrix condition (2 norm)
+ * @return ratio of largest to smallest singular value.
+ */
+ function cond () {
+ $svd = new SingularValueDecomposition($this);
+ return $svd->cond();
+ }
+
+ /**
+ * trace
+ * Sum of diagonal elements
+ * @return float Sum of diagonal elements
+ */
+ function trace() {
+ $s = 0;
+ $n = min($this->m, $this->n);
+
+ for($i = 0; $i < $n; $i++)
+ $s += $this->A[$i][$i];
+
+ return $s;
+ }
+
+
+ /**
+ * uminus
+ * Unary minus matrix -A
+ * @return Matrix Unary minus matrix
+ */
+ function uminus() {
+
+ }
+
+ /**
+ * plus
+ * A + B
+ * @param mixed $B Matrix/Array
+ * @return Matrix Sum
+ */
+ function plus() {
+ if( func_num_args() > 0 ) {
+ $args = func_get_args();
+ $match = implode(",", array_map('gettype', $args));
+
+ switch( $match ) {
+ case 'object':
+ $M = is_a($args[0], 'Matrix') ? $args[0] : trigger_error(ArgumentTypeException, ERROR);
+ //$this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $M->set($i, $j, $M->get($i, $j) + $this->A[$i][$j]);
+ }
+ }
+
+ return $M;
+ break;
+
+ case 'array':
+ $M = new Matrix($args[0]);
+ //$this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $M->set($i, $j, $M->get($i, $j) + $this->A[$i][$j]);
+ }
+ }
+
+ return $M;
+ break;
+
+ default:
+ trigger_error(PolymorphicArgumentException, ERROR);
+ break;
+ }
+ } else {
+ trigger_error(PolymorphicArgumentException, ERROR);
+ }
+ }
+
+ /**
+ * plusEquals
+ * A = A + B
+ * @param mixed $B Matrix/Array
+ * @return Matrix Sum
+ */
+ function &plusEquals() {
+ if( func_num_args() > 0 ) {
+ $args = func_get_args();
+ $match = implode(",", array_map('gettype', $args));
+
+ switch( $match ) {
+ case 'object':
+ $M = is_a($args[0], 'Matrix') ? $args[0] : trigger_error(ArgumentTypeException, ERROR);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $this->A[$i][$j] += $M->get($i, $j);
+ }
+ }
+
+ return $this;
+ break;
+
+ case 'array':
+ $M = new Matrix($args[0]);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $this->A[$i][$j] += $M->get($i, $j);
+ }
+ }
+
+ return $this;
+ break;
+
+ default:
+ trigger_error(PolymorphicArgumentException, ERROR);
+ break;
+ }
+ } else {
+ trigger_error(PolymorphicArgumentException, ERROR);
+ }
+ }
+
+ /**
+ * minus
+ * A - B
+ * @param mixed $B Matrix/Array
+ * @return Matrix Sum
+ */
+ function minus() {
+ if( func_num_args() > 0 ) {
+ $args = func_get_args();
+ $match = implode(",", array_map('gettype', $args));
+
+ switch( $match ) {
+ case 'object':
+ $M = is_a($args[0], 'Matrix') ? $args[0] : trigger_error(ArgumentTypeException, ERROR);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $M->set($i, $j, $M->get($i, $j) - $this->A[$i][$j]);
+ }
+ }
+
+ return $M;
+ break;
+
+ case 'array':
+ $M = new Matrix($args[0]);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $M->set($i, $j, $M->get($i, $j) - $this->A[$i][$j]);
+ }
+ }
+
+ return $M;
+ break;
+
+ default:
+ trigger_error(PolymorphicArgumentException, ERROR);
+ break;
+ }
+ } else {
+ trigger_error(PolymorphicArgumentException, ERROR);
+ }
+ }
+
+ /**
+ * minusEquals
+ * A = A - B
+ * @param mixed $B Matrix/Array
+ * @return Matrix Sum
+ */
+ function &minusEquals() {
+ if( func_num_args() > 0 ) {
+ $args = func_get_args();
+ $match = implode(",", array_map('gettype', $args));
+
+ switch( $match ) {
+ case 'object':
+ $M = is_a($args[0], 'Matrix') ? $args[0] : trigger_error(ArgumentTypeException, ERROR);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $this->A[$i][$j] -= $M->get($i, $j);
+ }
+ }
+
+ return $this;
+ break;
+
+ case 'array':
+ $M = new Matrix($args[0]);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $this->A[$i][$j] -= $M->get($i, $j);
+ }
+ }
+
+ return $this;
+ break;
+
+ default:
+ trigger_error(PolymorphicArgumentException, ERROR);
+ break;
+ }
+ } else {
+ trigger_error(PolymorphicArgumentException, ERROR);
+ }
+ }
+
+ /**
+ * arrayTimes
+ * Element-by-element multiplication
+ * Cij = Aij * Bij
+ * @param mixed $B Matrix/Array
+ * @return Matrix Matrix Cij
+ */
+ function arrayTimes() {
+ if( func_num_args() > 0 ) {
+ $args = func_get_args();
+ $match = implode(",", array_map('gettype', $args));
+
+ switch( $match ) {
+ case 'object':
+ $M = is_a($args[0], 'Matrix') ? $args[0] : trigger_error(ArgumentTypeException, ERROR);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $M->set($i, $j, $M->get($i, $j) * $this->A[$i][$j]);
+ }
+ }
+
+ return $M;
+ break;
+
+ case 'array':
+ $M = new Matrix($args[0]);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $M->set($i, $j, $M->get($i, $j) * $this->A[$i][$j]);
+ }
+ }
+
+ return $M;
+ break;
+
+ default:
+ trigger_error(PolymorphicArgumentException, ERROR);
+ break;
+ }
+ } else {
+ trigger_error(PolymorphicArgumentException, ERROR);
+ }
+ }
+
+
+ /**
+ * arrayTimesEquals
+ * Element-by-element multiplication
+ * Aij = Aij * Bij
+ * @param mixed $B Matrix/Array
+ * @return Matrix Matrix Aij
+ */
+ function &arrayTimesEquals() {
+ if( func_num_args() > 0 ) {
+ $args = func_get_args();
+ $match = implode(",", array_map('gettype', $args));
+
+ switch( $match ) {
+ case 'object':
+ $M = is_a($args[0], 'Matrix') ? $args[0] : trigger_error(ArgumentTypeException, ERROR);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $this->A[$i][$j] *= $M->get($i, $j);
+ }
+ }
+
+ return $this;
+ break;
+
+ case 'array':
+ $M = new Matrix($args[0]);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $this->A[$i][$j] *= $M->get($i, $j);
+ }
+ }
+
+ return $this;
+ break;
+
+ default:
+ trigger_error(PolymorphicArgumentException, ERROR);
+ break;
+ }
+ } else {
+ trigger_error(PolymorphicArgumentException, ERROR);
+ }
+ }
+
+ /**
+ * arrayRightDivide
+ * Element-by-element right division
+ * A / B
+ * @param Matrix $B Matrix B
+ * @return Matrix Division result
+ */
+ function arrayRightDivide() {
+ if( func_num_args() > 0 ) {
+ $args = func_get_args();
+ $match = implode(",", array_map('gettype', $args));
+
+ switch( $match ) {
+ case 'object':
+ $M = is_a($args[0], 'Matrix') ? $args[0] : trigger_error(ArgumentTypeException, ERROR);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $M->set($i, $j, $this->A[$i][$j] / $M->get($i, $j) );
+ }
+ }
+
+ return $M;
+ break;
+
+ case 'array':
+ $M = new Matrix($args[0]);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $M->set($i, $j, $this->A[$i][$j] / $M->get($i, $j));
+ }
+ }
+
+ return $M;
+ break;
+
+ default:
+ trigger_error(PolymorphicArgumentException, ERROR);
+ break;
+ }
+ } else {
+ trigger_error(PolymorphicArgumentException, ERROR);
+ }
+ }
+
+ /**
+ * arrayRightDivideEquals
+ * Element-by-element right division
+ * Aij = Aij / Bij
+ * @param mixed $B Matrix/Array
+ * @return Matrix Matrix Aij
+ */
+ function &arrayRightDivideEquals() {
+ if( func_num_args() > 0 ) {
+ $args = func_get_args();
+ $match = implode(",", array_map('gettype', $args));
+
+ switch( $match ) {
+ case 'object':
+ $M = is_a($args[0], 'Matrix') ? $args[0] : trigger_error(ArgumentTypeException, ERROR);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $this->A[$i][$j] = $this->A[$i][$j] / $M->get($i, $j);
+ }
+ }
+
+ return $M;
+ break;
+
+ case 'array':
+ $M = new Matrix($args[0]);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $this->A[$i][$j] = $this->A[$i][$j] / $M->get($i, $j);
+ }
+ }
+
+ return $M;
+ break;
+
+ default:
+ trigger_error(PolymorphicArgumentException, ERROR);
+ break;
+ }
+ } else {
+ trigger_error(PolymorphicArgumentException, ERROR);
+ }
+ }
+
+ /**
+ * arrayLeftDivide
+ * Element-by-element Left division
+ * A / B
+ * @param Matrix $B Matrix B
+ * @return Matrix Division result
+ */
+ function arrayLeftDivide() {
+ if( func_num_args() > 0 ) {
+ $args = func_get_args();
+ $match = implode(",", array_map('gettype', $args));
+
+ switch( $match ) {
+ case 'object':
+ $M = is_a($args[0], 'Matrix') ? $args[0] : trigger_error(ArgumentTypeException, ERROR);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $M->set($i, $j, $M->get($i, $j) / $this->A[$i][$j] );
+ }
+ }
+
+ return $M;
+ break;
+
+ case 'array':
+ $M = new Matrix($args[0]);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $M->set($i, $j, $M->get($i, $j) / $this->A[$i][$j] );
+ }
+ }
+
+ return $M;
+ break;
+
+ default:
+ trigger_error(PolymorphicArgumentException, ERROR);
+ break;
+ }
+ } else {
+ trigger_error(PolymorphicArgumentException, ERROR);
+ }
+ }
+
+ /**
+ * arrayLeftDivideEquals
+ * Element-by-element Left division
+ * Aij = Aij / Bij
+ * @param mixed $B Matrix/Array
+ * @return Matrix Matrix Aij
+ */
+ function &arrayLeftDivideEquals() {
+ if( func_num_args() > 0 ) {
+ $args = func_get_args();
+ $match = implode(",", array_map('gettype', $args));
+
+ switch( $match ) {
+ case 'object':
+ $M = is_a($args[0], 'Matrix') ? $args[0] : trigger_error(ArgumentTypeException, ERROR);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $this->A[$i][$j] = $M->get($i, $j) / $this->A[$i][$j];
+ }
+ }
+
+ return $M;
+ break;
+
+ case 'array':
+ $M = new Matrix($args[0]);
+ $this->checkMatrixDimensions($M);
+
+ for($i = 0; $i < $this->m; $i++) {
+ for($j = 0; $j < $this->n; $j++) {
+ $this->A[$i][$j] = $M->get($i, $j) / $this->A[$i][$j];
+ }
+ }
+
+ return $M;
+ break;
+
+ default:
+ trigger_error(PolymorphicArgumentException, ERROR);
+ break;
+ }
+ } else {
+ trigger_error(PolymorphicArgumentException, ERROR);
+ }
+ }
+
+ /**
+ * times
+ * Matrix multiplication
+ * @param mixed $n Matrix/Array/Scalar
+ * @return Matrix Product
+ */
+ function times() {
+ if(func_num_args() > 0) {
+ $args = func_get_args();
+ $match = implode(",", array_map('gettype', $args));
+ switch($match) {
+ case 'object':
+ $B = is_a($args[0], 'Matrix') ? $args[0] : trigger_error(ArgumentTypeException, ERROR);
+ if($this->n == $B->m) {
+ $C = new Matrix($this->m, $B->n);
+ for($j = 0; $j < $B->n; $j++ ) {
+ for ($k = 0; $k < $this->n; $k++)
+ $Bcolj[$k] = $B->A[$k][$j];
+ for($i = 0; $i < $this->m; $i++ ) {
+ $Arowi = $this->A[$i];
+ $s = 0;
+ for( $k = 0; $k < $this->n; $k++ )
+ $s += $Arowi[$k] * $Bcolj[$k];
+ $C->A[$i][$j] = $s;
+ }
+ }
+ return $C;
+ } else
+ trigger_error(MatrixDimensionMismatch, FATAL);
+ break;
+
+ case 'array':
+ $B = new Matrix($args[0]);
+ if($this->n == $B->m) {
+ $C = new Matrix($this->m, $B->n);
+ for($i = 0; $i < $C->m; $i++) {
+ for($j = 0; $j < $C->n; $j++) {
+ $s = "0";
+ for($k = 0; $k < $C->n; $k++)
+ $s += $this->A[$i][$k] * $B->A[$k][$j];
+ $C->A[$i][$j] = $s;
+ }
+ }
+ return $C;
+ } else
+ trigger_error(MatrixDimensionMismatch, FATAL);
+ return $M;
+ break;
+ case 'integer':
+ $C = new Matrix($this->A);
+ for($i = 0; $i < $C->m; $i++)
+ for($j = 0; $j < $C->n; $j++)
+ $C->A[$i][$j] *= $args[0];
+ return $C;
+ break;
+ case 'double':
+ $C = new Matrix($this->m, $this->n);
+ for($i = 0; $i < $C->m; $i++)
+ for($j = 0; $j < $C->n; $j++)
+ $C->A[$i][$j] = $args[0] * $this->A[$i][$j];
+ return $C;
+ break;
+ case 'float':
+ $C = new Matrix($this->A);
+ for($i = 0; $i < $C->m; $i++)
+ for($j = 0; $j < $C->n; $j++)
+ $C->A[$i][$j] *= $args[0];
+ return $C;
+ break;
+ default:
+ trigger_error(PolymorphicArgumentException, ERROR);
+ break;
+ }
+ } else
+ trigger_error(PolymorphicArgumentException, ERROR);
+ }
+
+ /**
+ * chol
+ * Cholesky decomposition
+ * @return Matrix Cholesky decomposition
+ */
+ function chol() {
+ return new CholeskyDecomposition($this);
+ }
+
+ /**
+ * lu
+ * LU decomposition
+ * @return Matrix LU decomposition
+ */
+ function lu() {
+ return new LUDecomposition($this);
+ }
+
+ /**
+ * qr
+ * QR decomposition
+ * @return Matrix QR decomposition
+ */
+ function qr() {
+ return new QRDecomposition($this);
+ }
+
+
+ /**
+ * eig
+ * Eigenvalue decomposition
+ * @return Matrix Eigenvalue decomposition
+ */
+ function eig() {
+ return new EigenvalueDecomposition($this);
+ }
+
+ /**
+ * svd
+ * Singular value decomposition
+ * @return Singular value decomposition
+ */
+ function svd() {
+ return new SingularValueDecomposition($this);
+ }
+
+ /**
+ * Solve A*X = B.
+ * @param Matrix $B Right hand side
+ * @return Matrix ... Solution if A is square, least squares solution otherwise
+ */
+ function solve($B) {
+ if ($this->m == $this->n) {
+ $LU = new LUDecomposition($this);
+ return $LU->solve($B);
+ } else {
+ $QR = new QRDecomposition($this);
+ return $QR->solve($B);
+ }
+ }
+
+ /**
+ * Matrix inverse or pseudoinverse.
+ * @return Matrix ... Inverse(A) if A is square, pseudoinverse otherwise.
+ */
+ function inverse() {
+ return $this->solve($this->identity($this->m, $this->m));
+ }
+
+
+ /**
+ * det
+ * Calculate determinant
+ * @return float Determinant
+ */
+ function det() {
+ $L = new LUDecomposition($this);
+ return $L->det();
+ }
+
+ /**
+ * Older debugging utility for backwards compatability.
+ * @return html version of matrix
+ */
+ function mprint($A, $format="%01.2f", $width=2) {
+ $spacing = "";
+ $m = count($A);
+ $n = count($A[0]);
+ for($i = 0; $i < $width; $i++)
+ $spacing .= " ";
+ for ($i = 0; $i < $m; $i++) {
+ for ($j = 0; $j < $n; $j++) {
+ $formatted = sprintf($format, $A[$i][$j]);
+ echo $formatted . $spacing;
+ }
+ echo " ";
+ }
+ }
+
+ /**
+ * Debugging utility.
+ * @return Output HTML representation of matrix
+ */
+ function toHTML($width=2) {
+ print( '
_useInlineCss) {
+ $html .= ' class="' . $cssClass . '"';
+ } else {
+ //** Necessary redundant code for the sake of PHPExcel_Writer_PDF **
+ // We must explicitly write the width of the
element because TCPDF
+ // does not recognize e.g.
+ $width = 0;
+ $columnIndex = PHPExcel_Cell::columnIndexFromString($cell->getColumn()) - 1;
+ for ($i = $columnIndex; $i < $columnIndex + $colSpan; ++$i) {
+ if (isset($this->_columnWidths[$sheetIndex][$i])) {
+ $width += $this->_columnWidths[$sheetIndex][$i];
+ }
+ }
+ $cssClass['width'] = $width . 'pt';
+
+ // We must also explicitly write the height of the
element because TCPDF
+ // does not recognize e.g.