if n < 0, use n chars from the end of the string, eg. for zh-tw

This commit is contained in:
Ralf Becker 2006-03-08 11:39:44 +00:00
parent 23c4f7976f
commit 1186a8e406

View File

@ -258,7 +258,7 @@ foreach($day2int as $name => $n)
substr(lang($name),$chars_shortcut)).'"'.($n < 6 ? ',' : ''); substr(lang($name),$chars_shortcut)).'"'.($n < 6 ? ',' : '');
} }
?>); ?>);
Calendar._SDN_len = <?php echo (int) lang('3 number of chars for day-shortcut'); ?>; Calendar._SDN_len = <?php echo abs((int) lang('3 number of chars for day-shortcut')); ?>;
Calendar._MN = new Array Calendar._MN = new Array
(<?php // full month names (<?php // full month names
@ -283,7 +283,7 @@ foreach($monthnames as $n => $name)
echo "\n \"".$short.'"'.($n < 11 ? ',' : ''); echo "\n \"".$short.'"'.($n < 11 ? ',' : '');
} }
?>); ?>);
Calendar._SMN_len = <?php echo (int) lang('3 number of chars for month-shortcut'); ?>; Calendar._SMN_len = <?php echo abs((int) lang('3 number of chars for month-shortcut')); ?>;
// tooltips // tooltips
Calendar._TT = {}; Calendar._TT = {};