/**
 * Catalonian Translation by halkon_polako 6-12-2007
 * December correction halkon_polako 11-12-2007
 *
 * Synchronized with 2.2 version of ext-lang-en.js (provided by Condor 8 aug 2008)
 *     by halkon_polako 14-aug-2008
 */


Ext.UpdateManager.defaults.indicatorText = '
Carregant...
';

if(Ext.DataView){
 
Ext.DataView.prototype.emptyText = "";
}

if(Ext.grid.GridPanel){
 
Ext.grid.GridPanel.prototype.ddText = "{0} fila(es) seleccionada(es)";
}

if(Ext.LoadMask){
 
Ext.LoadMask.prototype.msg = "Carregant...";
}

Date.monthNames = [
 
"Gener",
 
"Febrer",
 
"Març",
 
"Abril",
 
"Maig",
 
"Juny",
 
"Juliol",
 
"Agost",
 
"Setembre",
 
"Octubre",
 
"Novembre",
 
"Desembre"
];

Date.getShortMonthName = function(month) {
 
return Date.monthNames[month].substring(0, 3);
};

Date.monthNumbers = {
 
Gen : 0,
 
Feb : 1,
 
Mar : 2,
 
Abr : 3,
 
Mai : 4,
 
Jun : 5,
 
Jul : 6,
 
Ago : 7,
 
Set : 8,
 
Oct : 9,
 
Nov : 10,
 
Dec : 11
};

Date.getMonthNumber = function(name) {
 
return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
};

Date.dayNames = [
 
"Diumenge",
 
"Dilluns",
 
"Dimarts",
 
"Dimecres",
 
"Dijous",
 
"Divendres",
 
"Dissabte"
];

Date.getShortDayName = function(day) {
 
return Date.dayNames[day].substring(0, 3);
};

Date.parseCodes.S.s = "(?:st|nd|rd|th)";

if(Ext.MessageBox){
 
Ext.MessageBox.buttonText = {
    ok    
: "Acceptar",
    cancel
: "Cancel·lar",
    yes    
: "Sí",
    no    
: "No"
 
};
}

if(Ext.util.Format){
 
Ext.util.Format.date = function(v, format){
   
if(!v) return "";
   
if(!(v instanceof Date)) v = new Date(Date.parse(v));
   
return v.dateFormat(format || "d/m/Y");
 
};
}

if(Ext.DatePicker){
 
Ext.apply(Ext.DatePicker.prototype, {
    todayText        
: "Avui",
    minText          
: "Aquesta data és anterior a la data mínima",
    maxText          
: "Aquesta data és posterior a la data màxima",
    disabledDaysText  
: "",
    disabledDatesText
: "",
    monthNames        
: Date.monthNames,
    dayNames          
: Date.dayNames,
    nextText          
: 'Mes Següent (Control+Fletxa Dreta)',
    prevText          
: 'Mes Anterior (Control+Fletxa Esquerra)',
    monthYearText    
: 'Seleccioni un mes (Control+Fletxa a Dalt o Abaix per canviar els anys)',
    todayTip          
: "{0} (Barra d'espai)",
    format            
: "d/m/Y",
    okText            
: " Acceptar ",
    cancelText        
: "Cancel·lar",
    startDay          
: 1
 
});
}

if(Ext.PagingToolbar){
 
Ext.apply(Ext.PagingToolbar.prototype, {
    beforePageText
: "Pàgina",
    afterPageText  
: "de {0}",
    firstText      
: "Primera Pàgina",
    prevText      
: "Pàgina Anterior",
    nextText      
: "Pàgina Següent",
    lastText      
: "Darrera Pàgina",
    refreshText    
: "Refrescar",
    displayMsg    
: "Mostrant {0} - {1} de {2}",
    emptyMsg      
: 'Sense dades per mostrar'
 
});
}

if(Ext.form.Field){
 
Ext.form.Field.prototype.invalidText = "El valor d'aquest camp és invàlid";
}

if(Ext.form.TextField){
 
Ext.apply(Ext.form.TextField.prototype, {
    minLengthText
: "El tamany mínim per aquest camp és {0}",
    maxLengthText
: "El tamany màxim per aquest camp és {0}",
    blankText    
: "Aquest camp és obligatori",
    regexText    
: "",
    emptyText    
: null
 
});
}

if(Ext.form.NumberField){
 
Ext.apply(Ext.form.NumberField.prototype, {
    decimalSeparator
: ",",
    decimalPrecision
: 2,
    minText
: "El valor mínim per aquest camp és {0}",
    maxText
: "El valor màxim per aquest camp és {0}",
    nanText
: "{0} no és un nombre vàlid"
 
});
}

if(Ext.form.DateField){
 
Ext.apply(Ext.form.DateField.prototype, {
    disabledDaysText  
: "Deshabilitat",
    disabledDatesText
: "Deshabilitat",
    minText          
: "La data en aquest camp ha de ser posterior a {0}",
    maxText          
: "La data en aquest camp ha de ser inferior a {0}",
    invalidText      
: "{0} no és una data vàlida - ha de tenir el format {1}",
    format            
: "d/m/Y",
    altFormats        
: "d/m/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|Y-m-d"
 
});
}

if(Ext.form.ComboBox){
 
Ext.apply(Ext.form.ComboBox.prototype, {
    loadingText      
: "Carregant...",
    valueNotFoundText
: undefined
 
});
}

if(Ext.form.VTypes){
 
Ext.apply(Ext.form.VTypes, {
    emailText    
: 'Aquest camp ha de ser una adreça de e-mail amb el format "user@example.com"',
    urlText      
: 'Aquest camp ha de ser una URL amb el format "http:/'+'/www.example.com"',
    alphaText    
: 'Aquest camp només pot contenir lletres i _',
    alphanumText
: 'Aquest camp només por contenir lletres, nombres i _'
 
});
}

if(Ext.form.HtmlEditor){
 
Ext.apply(Ext.form.HtmlEditor.prototype, {
    createLinkText
: 'Si us plau, tecleixi la URL per l\'enllaç:',
    buttonTips
: {
      bold
: {
        title
: 'Negreta (Ctrl+B)',
        text
: 'Posa el text seleccionat en negreta.',
        cls
: 'x-html-editor-tip'
     
},
      italic
: {
        title
: 'Itàlica (Ctrl+I)',
        text
: 'Posa el text seleccionat en itàlica.',
        cls
: 'x-html-editor-tip'
     
},
      underline
: {
        title
: 'Subratllat (Ctrl+U)',
        text
: 'Subratlla el text seleccionat.',
        cls
: 'x-html-editor-tip'
     
},
      increasefontsize
: {
        title
: 'Augmentar Text',
        text
: 'Augmenta el tamany de la font de text.',
        cls
: 'x-html-editor-tip'
     
},
      decreasefontsize
: {
        title
: 'Disminuir Text',
        text
: 'Disminueix el tamany de la font de text.',
        cls
: 'x-html-editor-tip'
     
},
      backcolor
: {
        title
: 'Color de fons',
        text
: 'Canvia el color de fons del text seleccionat.',
        cls
: 'x-html-editor-tip'
     
},
      forecolor
: {
        title
: 'Color de la font de text',
        text
: 'Canvia el color del text seleccionat.',
        cls
: 'x-html-editor-tip'
     
},
      justifyleft
: {
        title
: 'Alinear a la esquerra',
        text
: 'Alinea el text a la esquerra.',
        cls
: 'x-html-editor-tip'
     
},
      justifycenter
: {
        title
: 'Centrar el text',
        text
: 'Centra el text a l\'editor',
        cls
: 'x-html-editor-tip'
     
},
      justifyright
: {
        title
: 'Alinear a la dreta',
        text
: 'Alinea el text a la dreta.',
        cls
: 'x-html-editor-tip'
     
},
      insertunorderedlist
: {
        title
: 'Llista amb vinyetes',
        text
: 'Comença una llista amb vinyetes.',
        cls
: 'x-html-editor-tip'
     
},
      insertorderedlist
: {
        title
: 'Llista numerada',
        text
: 'Comença una llista numerada.',
        cls
: 'x-html-editor-tip'
     
},
      createlink
: {
        title
: 'Enllaç',
        text
: 'Transforma el text seleccionat en un enllaç.',
        cls
: 'x-html-editor-tip'
     
},
      sourceedit
: {
        title
: 'Editar Codi',
        text
: 'Canvia al mode d\'edició de codi.',
        cls
: 'x-html-editor-tip'
     
}
   
}
 
});
}

if(Ext.grid.GridView){
 
Ext.apply(Ext.grid.GridView.prototype, {
    sortAscText  
: "Ordenació Ascendent",
    sortDescText
: "Ordenació Descendent",
    columnsText  
: "Columnes"
 
});
}

if(Ext.grid.GroupingView){
 
Ext.apply(Ext.grid.GroupingView.prototype, {
    emptyGroupText
: '(Buit)',
    groupByText    
: 'Agrupar Per Aquest Camp',
    showGroupsText
: 'Mostrar en Grups'
 
});
}

if(Ext.grid.PropertyColumnModel){
 
Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
    nameText  
: "Nom",
    valueText  
: "Valor",
    dateFormat
: "d/m/Y"
 
});
}

if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
 
Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
    splitTip            
: "Cliqueu i arrossegueu per canviar el tamany del panell.",
    collapsibleSplitTip
: "Cliqueu i arrossegueu per canviar el tamany del panell. Doble clic per ocultar-ho."
 
});
}

if(Ext.form.TimeField){
 
Ext.apply(Ext.form.TimeField.prototype, {
    minText
: "L\'hora en aquest camp ha de ser igual o posterior a {0}",
    maxText
: "L\'hora en aquest camp ha de ser igual o anterior {0}",
    invalidText
: "{0} no és un hora vàlida",
    format
: "g:i A",
    altFormats
: "g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H"
 
});
}

if(Ext.form.CheckboxGroup){
 
Ext.apply(Ext.form.CheckboxGroup.prototype, {
    blankText
: "Ha de seleccionar almenys un étem d\'aquest group"
 
});
}

if(Ext.form.RadioGroup){
 
Ext.apply(Ext.form.RadioGroup.prototype, {
    blankText
: "Ha de seleccionar un étem d\'aquest grup"
 
});
}