Skip to content
Browse files

-The messages were incompletely displayed

-Allow better translations with positional parameters
  • Loading branch information...
1 parent b5ef7cc commit 4943b6640e5770e32ad34a7ab1c1e41ce85d7a91 @lem9 lem9 committed
Showing with 7 additions and 7 deletions.
  1. +7 −7 libraries/Types.class.php
View
14 libraries/Types.class.php
@@ -304,13 +304,13 @@ public function getTypeDescription($type)
case 'SERIAL':
return __('An alias for BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE');
case 'DATE':
- return sprintf(__("A date, supported range is '%s' to '%s'"), '1000-01-01', '9999-12-31');
+ return sprintf(__('A date, supported range is "%1$s" to "%2$s"'), '1000-01-01', '9999-12-31');
case 'DATETIME':
- return sprintf(__("A date and time combination, supported range is '%s' to '%s'"), '1000-01-01 00:00:00', '9999-12-31 23:59:59');
+ return sprintf(__('A date and time combination, supported range is "%1$s" to "%2$s"'), '1000-01-01 00:00:00', '9999-12-31 23:59:59');
case 'TIMESTAMP':
- return __("A timestamp, range is '1970-01-01 00:00:01' UTC to '2038-01-09 03:14:07' UTC, stored as the number of seconds since the epoch ('1970-01-01 00:00:00' UTC)");
+ return __('A timestamp, range is "1970-01-01 00:00:01" UTC to "2038-01-09 03:14:07" UTC, stored as the number of seconds since the epoch ("1970-01-01 00:00:00" UTC)');
case 'TIME':
- return sprintf(__("A time, range is '%s' to '%s'"), '-838:59:59', '838:59:59');
+ return sprintf(__('A time, range is "%1$s" to "%2$s"'), '-838:59:59', '838:59:59');
case 'YEAR':
return __("A year in four-digit (4, default) or two-digit (2) format, the allowable values are 70 (1970) to 69 (2069) or 1901 to 2155 and 0000");
case 'CHAR':
@@ -713,13 +713,13 @@ public function getTypeDescription($type)
case 'UUID':
return __('Stores a Universally Unique Identifier (UUID)');
case 'DATE':
- return sprintf(__("A date, supported range is '%s' to '%s'"), '0001-01-01', '9999-12-31');
+ return sprintf(__('A date, supported range is "%1$s" to "%2$s"'), '0001-01-01', '9999-12-31');
case 'DATETIME':
- return sprintf(__("A date and time combination, supported range is '%s' to '%s'"), '0001-01-01 00:00:0', '9999-12-31 23:59:59');
+ return sprintf(__('A date and time combination, supported range is "%1$s" to "%2$s"'), '0001-01-01 00:00:0', '9999-12-31 23:59:59');
case 'TIMESTAMP':
return __("A timestamp, range is '0001-01-01 00:00:00' UTC to '9999-12-31 23:59:59' UTC; TIMESTAMP(6) can store microseconds");
case 'TIME':
- return sprintf(__("A time, range is '%s' to '%s'"), '00:00:00', '23:59:59');
+ return sprintf(__('A time, range is "%1$s" to "%2$s"'), '00:00:00', '23:59:59');
case 'VARCHAR':
return sprintf(__('A variable-length (%s) string, the effective maximum length is subject to the maximum row size'), '0-16,383');
case 'TEXT':

0 comments on commit 4943b66

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