Skip to content

Commit

Permalink
-The messages were incompletely displayed
Browse files Browse the repository at this point in the history
-Allow better translations with positional parameters
  • Loading branch information
lem9 committed Apr 27, 2012
1 parent b5ef7cc commit 4943b66
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions libraries/Types.class.php
Expand Up @@ -304,13 +304,13 @@ public function getTypeDescription($type)
case 'SERIAL': case 'SERIAL':
return __('An alias for BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE'); return __('An alias for BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE');
case 'DATE': 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': 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': 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': 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': 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"); 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': case 'CHAR':
Expand Down Expand Up @@ -713,13 +713,13 @@ public function getTypeDescription($type)
case 'UUID': case 'UUID':
return __('Stores a Universally Unique Identifier (UUID)'); return __('Stores a Universally Unique Identifier (UUID)');
case 'DATE': 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': 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': 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"); 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': 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': case 'VARCHAR':
return sprintf(__('A variable-length (%s) string, the effective maximum length is subject to the maximum row size'), '0-16,383'); return sprintf(__('A variable-length (%s) string, the effective maximum length is subject to the maximum row size'), '0-16,383');
case 'TEXT': case 'TEXT':
Expand Down

0 comments on commit 4943b66

Please sign in to comment.