Revision: 1872
http://mrbs.svn.sourceforge.net/mrbs/?rev=1872&view=rev
Author: cimorrison
Date: 2011-08-18 17:29:40 +0000 (Thu, 18 Aug 2011)
Log Message:
-----------
- Internationalised ColVis text strings
- Added a "Restore" option
Modified Paths:
--------------
mrbs/branches/datatables/web/Themes/default/header.inc
mrbs/branches/datatables/web/lang.en
Modified: mrbs/branches/datatables/web/Themes/default/header.inc
===================================================================
--- mrbs/branches/datatables/web/Themes/default/header.inc 2011-08-18
17:09:04 UTC (rev 1871)
+++ mrbs/branches/datatables/web/Themes/default/header.inc 2011-08-18
17:29:40 UTC (rev 1872)
@@ -160,8 +160,10 @@
?>
dataTablesDefaults.oLanguage = {"sUrl": "<?php echo $lang_file ?>"};
dataTablesDefaults.sDom = 'RClfrtip';
- dataTablesDefaults.oColVis = new Object();
- dataTablesDefaults.oColVis.sSize = "css";
+ dataTablesDefaults.oColVis = {sSize: "css",
+ buttonText: '<?php echo
get_vocab("show_hide_columns") ?>',
+ bRestore: true,
+ sRestore: '<?php echo
get_vocab("restore_original") ?>'};
<?php
}
?>
@@ -962,8 +964,7 @@
// "Action - Name - Rights" and not "Action - Rights - Name"
?>
var nColumns = $('#users_table tr:first th').length;
- dataTablesOptions.oColReorder = new Object();
- dataTablesOptions.oColReorder.aiOrder = [0, 2, 1];
+ dataTablesOptions.oColReorder = {aiOrder: [0, 2, 1]};
for (var i=3; i < nColumns; i++)
{
dataTablesOptions.oColReorder.aiOrder.push(i);
Modified: mrbs/branches/datatables/web/lang.en
===================================================================
--- mrbs/branches/datatables/web/lang.en 2011-08-18 17:09:04 UTC (rev
1871)
+++ mrbs/branches/datatables/web/lang.en 2011-08-18 17:29:40 UTC (rev
1872)
@@ -409,6 +409,10 @@
// Used in mysql.inc AND pgsql.inc
$vocab["failed_connect_db"] = "Fatal error: failed to connect to database";
+// Used in DataTables
+$vocab["show_hide_columns"] = "Show / hide columns";
+$vocab["restore_original"] = "Restore original";
+
// General
$vocab["fatal_db_error"] = "Fatal error: unfortunately the database is not
available at the moment.";
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits