Skip to content
Browse files

The end of multilingual functionality. Celebration :-)

  • Loading branch information...
1 parent 5150b5c commit b1de7340663647b959e3586f7797aa01a8dd6d04 @scoumbourdis scoumbourdis committed Dec 19, 2011
View
4 application/libraries/grocery_crud.php
@@ -1428,7 +1428,7 @@ protected function get_datetime_input($field_info,$value)
$this->set_js('assets/grocery_crud/js/jquery_plugins/jquery.ui.datetime.js');
$this->set_js('assets/grocery_crud/js/jquery_plugins/config/jquery.datetime.config.js');
$input = "<input name='{$field_info->name}' type='text' value='$value' maxlength='19' class='datetime-input' />
- <button class='datetime-input-clear'>Clear</button>
+ <button class='datetime-input-clear'>".$this->l('form_button_clear')."</button>
(yyyy-mm-dd) hh:mm:ss";
return $input;
}
@@ -1458,7 +1458,7 @@ protected function get_date_input($field_info,$value)
$this->set_js('assets/grocery_crud/js/jquery_plugins/jquery-ui-1.8.10.custom.min.js');
$this->set_js('assets/grocery_crud/js/jquery_plugins/config/jquery.datepicker.config.js');
$input = "<input name='{$field_info->name}' type='text' value='$value' maxlength='10' class='datepicker-input' />
- <button class='datepicker-input-clear'>Clear</button> (yyyy-mm-dd)";
+ <button class='datepicker-input-clear'>".$this->l('form_button_clear')."</button> (yyyy-mm-dd)";
return $input;
}
View
3 assets/grocery_crud/css/other/fileuploader/fileuploader.css
@@ -2,8 +2,7 @@
.qq-upload-button {
display:block; /* or inline-block */
- width: 105px;
- padding: 7px 11px;
+ padding: 7px 15px;
text-align:center;
background:#ddd;
border:1px solid #AAA;
View
2 assets/grocery_crud/js/other/fileuploader.js
@@ -486,7 +486,7 @@ qq.FileUploader = function(o){
template: '<div class="qq-uploader">' +
'<div class="qq-upload-drop-area"><span>Drop files here to upload</span></div>' +
- '<div class="qq-upload-button">Upload a file</div>' +
+ '<div class="qq-upload-button">'+upload_a_file_string+'</div>' +
'<ul class="qq-upload-list"></ul>' +
'</div>',
View
11 assets/grocery_crud/languages/english.php
@@ -4,11 +4,17 @@
$lang['list_page'] = 'Page';
$lang['list_paging_of'] = 'of';
$lang['list_displaying'] = 'Displaying {start} to {end} of {results} items';
- $lang['list_search'] = 'Search';
+ $lang['list_filtered_from'] = '(filtered from {total_results} total entries)';
+ $lang['list_show_entries'] = 'Show {paging} entries';
+ $lang['list_search'] = 'Search:';
$lang['list_search_all'] = 'Search all';
$lang['list_clear_filtering'] = 'Clear filtering';
$lang['list_delete'] = 'Delete';
$lang['list_edit'] = 'Edit';
+ $lang['list_paging_first'] = 'First';
+ $lang['list_paging_previous'] = 'Previous';
+ $lang['list_paging_next'] = 'Next';
+ $lang['list_paging_last'] = 'Last';
$lang['form_edit'] = 'Edit';
$lang['form_back_to_list'] = 'Back to list';
@@ -24,6 +30,9 @@
$lang['form_save'] = 'Save';
$lang['form_insert_loading'] = 'Loading, saving data...';
+ $lang['form_upload_a_file'] = 'Upload a file';
+ $lang['form_button_clear'] = 'Clear';
+
$lang['delete_success_message'] = 'Your data has been successfully deleted from the database.';
$lang['delete_error_message'] = 'Your data was not deleted from the database.';
View
13 assets/grocery_crud/languages/greek.php
@@ -3,12 +3,18 @@
$lang['list_actions'] = 'Εργαλεία';
$lang['list_page'] = 'Σελίδα';
$lang['list_paging_of'] = 'από';
- $lang['list_displaying'] = 'Εμφάνιση {start} μέχρι {end} από {results} αποτελέσματα';
- $lang['list_search'] = 'Αναζήτηση';
+ $lang['list_displaying'] = 'Εμφάνιση {start} έως {end} από {results} εγγραφές';
+ $lang['list_filtered_from'] = '(φιλτραρισμένες από {total_results} συνολικά εγγραφές)';
+ $lang['list_show_entries'] = 'Εμφάνιση {paging} εγγραφών';
+ $lang['list_search'] = 'Αναζήτηση:';
$lang['list_search_all'] = 'Αναζήτηση όλων';
$lang['list_clear_filtering'] = 'Καθαρισμός φίλτρων';
$lang['list_delete'] = 'Διαγραφή';
$lang['list_edit'] = 'Επεξεργασία';
+ $lang['list_paging_first'] = 'Πρώτη';
+ $lang['list_paging_previous'] = 'Προηγούμενη';
+ $lang['list_paging_next'] = 'Επόμενη';
+ $lang['list_paging_last'] = 'Τελευταία';
$lang['form_edit'] = 'Επεξεργασία';
$lang['form_back_to_list'] = 'Επιστροφή στην λίστα';
@@ -24,6 +30,9 @@
$lang['form_save'] = 'Αποθήκευση';
$lang['form_insert_loading'] = 'Αναμονή...';
+ $lang['form_upload_a_file'] = 'Εισαγωγή αρχείου';
+ $lang['form_button_clear'] = 'Καθαρισμός';
+
$lang['delete_success_message'] = 'Τα δεδομένα σας διαγράφτηκαν με επιτυχία απο την βάση δεδομένων.';
$lang['delete_error_message'] = 'Τα δεδομένα σας δεν διαγράφτηκαν απο το σύστημα.';
View
31 assets/grocery_crud/themes/datatables/js/datatables.js
@@ -3,21 +3,22 @@ $(document).ready(function() {
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bStateSave": true,
-/* multilingual functionality */
- "sProcessing": "Processing...",
- "sLengthMenu": "Show _MENU_ entries",
- "sZeroRecords": "No matching records found",
- "sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
- "sInfoEmpty": "Showing 0 to 0 of 0 entries",
- "sInfoFiltered": "(filtered from _MAX_ total entries)",
- "sSearch": "Search:",
- "oPaginate": {
- "sFirst": "First",
- "sPrevious": "Previous",
- "sNext": "Next",
- "sLast": "Last"
- }
-/* -------------------------- */
+ "oLanguage":{
+ "sProcessing": "Processing...",
+ "sLengthMenu": show_entries_string,
+ "sZeroRecords": "No matching records found",
+ "sInfo": displaying_paging_string,
+ "sInfoEmpty": "Showing 0 to 0 of 0 entries",
+ "sInfoFiltered": filtered_from_string,
+ "sSearch": search_string,
+ "oPaginate": {
+ "sFirst": paging_first,
+ "sPrevious": paging_previous,
+ "sNext": paging_next,
+ "sLast": paging_last
+ }
+ }
+
});
$('a[role=button]').live("mouseover mouseout", function(event) {
View
2 assets/grocery_crud/themes/datatables/views/add.php
@@ -9,6 +9,8 @@
?>
<script type='text/javascript'>
var base_url = '<?php echo base_url();?>';
+
+ var upload_a_file_string = '<?php echo $this->l('form_upload_a_file');?>';
</script>
<div class='ui-widget-content ui-corner-all datatables'>
<h3 class="ui-accordion-header ui-helper-reset ui-state-default form-title">
View
2 assets/grocery_crud/themes/datatables/views/edit.php
@@ -9,6 +9,8 @@
?>
<script type='text/javascript'>
var base_url = '<?php echo base_url();?>';
+
+ var upload_a_file_string = '<?php echo $this->l('form_upload_a_file');?>';
</script>
<div class='ui-widget-content ui-corner-all datatables'>
<h3 class="ui-accordion-header ui-helper-reset ui-state-default form-title">
View
14 assets/grocery_crud/themes/datatables/views/list_template.php
@@ -12,6 +12,20 @@
<script type='text/javascript'>
var base_url = '<?php echo base_url();?>';
var subject = '<?php echo $subject?>';
+
+ var displaying_paging_string = "<?php echo str_replace( array('{start}','{end}','{results}'),
+ array('_START_', '_END_', '_TOTAL_'),
+ $this->l('list_displaying')
+ ); ?>";
+ var filtered_from_string = "<?php echo str_replace('{total_results}','_MAX_',$this->l('list_filtered_from') ); ?>";
+ var show_entries_string = "<?php echo str_replace('{paging}','_MENU_',$this->l('list_show_entries') ); ?>";
+ var search_string = "<?php echo $this->l('list_search'); ?>";
+
+ var paging_first = "<?php echo $this->l('list_paging_first'); ?>";
+ var paging_previous = "<?php echo $this->l('list_paging_previous'); ?>";
+ var paging_next = "<?php echo $this->l('list_paging_next'); ?>";
+ var paging_last = "<?php echo $this->l('list_paging_last'); ?>";
+
</script>
<?php
if(!empty($actions)){
View
2 assets/grocery_crud/themes/flexigrid/views/add.php
@@ -7,6 +7,8 @@
?>
<script type='text/javascript'>
var base_url = '<?php echo base_url();?>';
+
+ var upload_a_file_string = '<?php echo $this->l('form_upload_a_file');?>';
</script>
<div class="flexigrid" style='width: 100%;'>
<div class="mDiv">
View
2 assets/grocery_crud/themes/flexigrid/views/edit.php
@@ -7,6 +7,8 @@
?>
<script type='text/javascript'>
var base_url = '<?php echo base_url();?>';
+
+ var upload_a_file_string = '<?php echo $this->l('form_upload_a_file');?>';
</script>
<div class="flexigrid" style='width: 100%;'>
<div class="mDiv">

0 comments on commit b1de734

Please sign in to comment.
Something went wrong with that request. Please try again.