silverstripe-framework/javascript/lang/en_US.js
Ingo Schommer 6bd34d3e53 ENHANCEMENT Using ss.i18n in all sapphire form fields with clientside language strings
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63567 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-03 00:47:08 +00:00

15 lines
829 B
JavaScript

if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
console.error('Class ss.i18n not defined');
} else {
ss.i18n.addDictionary('en_US', {
'VALIDATOR.FIELDREQUIRED': 'Please fill out "%s", it is required.',
'HASMANYFILEFIELD.UPLOADING': 'Uploading... %s',
'TABLEFIELD.DELETECONFIRMMESSAGE': 'Are you sure you want to delete this record?',
'LOADING': 'loading...',
'UNIQUEFIELD.SUGGESTED': '"Changed value to %s %s',
'UNIQUEFIELD.ENTERNEWVALUE': 'You will need to enter a new value for this field',
'UNIQUEFIELD.CANNOTLEAVEEMPTY': 'This field cannot be left empty',
'RESTRICTEDTEXTFIELD.CHARCANTBEUSED': "The character '%s' cannot be used in this field",
'UPDATEURL.CONFIRM': 'Would you like me to change the URL to:\n\n%s/\n\nClick Ok to change the URL, click Cancel to leave it as:\n\n%s'
});
}