Portuguese Brazil (pt_BR) locale file

Plugins and extensions for Extensible components, usage examples, links to applications using Extensible, etc.

Portuguese Brazil (pt_BR) locale file

Postby wemerson.januario » Thu Dec 16, 2010 7:41 pm

Hello people.
I just translate to portuguese Brazil.

extensible-lang-pt-BR.js

just include this js file in head of your html after the main calendar-all.js

Code: Select all

/*!
 * Extensible 1.0-beta1
 * Copyright(c) 2010 Extensible, LLC
 * team@ext.ensible.com
 * http://ext.ensible.com
 */
/*
 * Default Portugues (BR) locale
 * By Wemerson Januario <wemerson.januario@gmail.com> Goiânia GO, Brazil
 */

Ext.ensible.Date.use24HourTime = false;

if(Ext.ensible.cal.CalendarView) {
    Ext.apply(Ext.ensible.cal.CalendarView.prototype, {
        startDay: 0,
        todayText: 'Hoje',
        defaultEventTitleText: '(Sem Titulo)',
        ddCreateEventText: 'Criar Evento para {0}',
        ddMoveEventText: 'Mover Evento para {0}',
        ddResizeEventText: 'Alterar Evento para {0}'
    });
}

if(Ext.ensible.cal.MonthView) {
    Ext.apply(Ext.ensible.cal.MonthView.prototype, {
        moreText: '+{0} mais...',
        detailsTitleDateFormat: 'F j'
    });
}

if(Ext.ensible.cal.CalendarPanel) {
    Ext.apply(Ext.ensible.cal.CalendarPanel.prototype, {
        todayText: 'Hoje',
        dayText: 'Dia',
        weekText: 'Semana',
        monthText: 'Mês',
        jumpToText: 'Ir para:',
        goText: 'Prosseguir',
        multiDayText: '{0} Dias',
        multiWeekText: '{0} Semanas'
    });
}

if(Ext.ensible.cal.EventEditWindow) {
    Ext.apply(Ext.ensible.cal.EventEditWindow.prototype, {
        width: 600,
        labelWidth: 65,
        titleTextAdd: 'Adicionar Evento',
        titleTextEdit: 'Alterar Evento',
        savingMessage: 'Salvando...',
        deletingMessage: 'Excluindo Evento...',
        detailsLinkText: 'Alterar Detalhes...',
        saveButtonText: 'Salvar',
        deleteButtonText: 'Excluir',
        cancelButtonText: 'Cancelar',
        titleLabelText: 'Título',
        datesLabelText: 'Quando',
        calendarLabelText: 'Calendário'
    });
}

if(Ext.ensible.cal.EventEditForm) {
    Ext.apply(Ext.ensible.cal.EventEditForm.prototype, {
        labelWidth: 65,
        labelWidthRightCol: 65,
        title: 'Formulário de Evento',
        titleTextAdd: 'Adicionar Evento',
        titleTextEdit: 'Alterar Evento',
        saveButtonText: 'Salvar',
        deleteButtonText: 'Excluir',
        cancelButtonText: 'Cancelar',
        titleLabelText: 'Título',
        datesLabelText: 'Quando',
        reminderLabelText: 'Lembrete',
        notesLabelText: 'Observação',
        locationLabelText: 'Local',
        webLinkLabelText: 'Site',
        calendarLabelText: 'Calendário',
        recurrenceLabelText: 'Repetiçoes'
    });
}

if(Ext.ensible.cal.DateRangeField) {
    Ext.apply(Ext.ensible.cal.DateRangeField.prototype, {
        toText: 'para',
        allDayText: 'Dia todo'
    });
}

if(Ext.ensible.cal.CalendarCombo) {
    Ext.apply(Ext.ensible.cal.CalendarCombo.prototype, {
        fieldLabel: 'Calendário'
    });
}

if(Ext.ensible.cal.CalendarList) {
    Ext.apply(Ext.ensible.cal.CalendarList.prototype, {
        title: 'Calendários'
    });
}

if(Ext.ensible.cal.CalendarListMenu) {
    Ext.apply(Ext.ensible.cal.CalendarListMenu.prototype, {
        displayOnlyThisCalendarText: 'Mostrar apenas esse Calendário'
    });
}

if(Ext.ensible.cal.RecurrenceCombo) {
    Ext.apply(Ext.ensible.cal.RecurrenceCombo.prototype, {
        fieldLabel: 'Repetiçoes',
        recurrenceText: {
            none: 'Não repetir',
            daily: 'Diariamente',
            weekly: 'Semanalmente',
            monthly: 'Mensalmente',
            yearly: 'Anualmente'
        }
    });
}

if(Ext.ensible.cal.ReminderField) {
    Ext.apply(Ext.ensible.cal.ReminderField.prototype, {
        fieldLabel: 'Lembrete',
        noneText: 'Nenhum',
        atStartTimeText: 'No horário exato',
        minutesText: 'minutos',
        hourText: 'hora',
        hoursText: 'horas',
        dayText: 'dia',
        daysText: 'dias',
        weekText: 'semana',
        weeksText: 'semanadas',
        reminderValueFormat: '{0} {1} antes do programado' // e.g. "2 hours before start"
    });
}

if(Ext.ensible.cal.DateRangeField) {
    Ext.apply(Ext.ensible.cal.DateRangeField.prototype, {
        dateFormat: 'j/n/Y'//Alterado por Wemerson
//        dateFormat: 'n/j/Y'
    });
}

if(Ext.ensible.cal.EventContextMenu) {
    Ext.apply(Ext.ensible.cal.EventContextMenu.prototype, {
        editDetailsText: 'Alterar detalhes',
        deleteText: 'Excluir',
        moveToText: 'Mover para...'
    });
}

if(Ext.ensible.cal.DropZone) {
    Ext.apply(Ext.ensible.cal.DropZone.prototype, {
        dateRangeFormat: '{0}-{1}',
        dateFormat: 'j/n'//Alterado por Wemerson
//        dateFormat: 'n/j'
    });
}

if(Ext.ensible.cal.DayViewDropZone) {
    Ext.apply(Ext.ensible.cal.DayViewDropZone.prototype, {
        dateRangeFormat: '{0}-{1}',
        dateFormat : 'j/n'//Alterado por Wemerson
//        dateFormat : 'n/j'
    });
}

if(Ext.ensible.cal.BoxLayoutTemplate) {
    Ext.apply(Ext.ensible.cal.BoxLayoutTemplate.prototype, {
        firstWeekDateFormat: 'D j',
        otherWeeksDateFormat: 'j',
        singleDayDateFormat: 'l, F j, Y',
        multiDayFirstDayFormat: 'j M , Y',//Alterado por Wemerson
//        multiDayFirstDayFormat: 'M j, Y',
        multiDayMonthStartFormat: 'j M'//Alterado por Wemerson
//        multiDayMonthStartFormat: 'M j'
    });
}

if(Ext.ensible.cal.MonthViewTemplate) {
    Ext.apply(Ext.ensible.cal.MonthViewTemplate.prototype, {
        dayHeaderFormat: 'D',
        dayHeaderTitleFormat: 'l, F j, Y'
    });
}
wemerson.januario
 
Posts: 17
Joined: Thu Dec 16, 2010 7:31 pm

Re: Portuguese Brazil (pt_BR) locale file

Postby brian.moeskau » Thu Dec 16, 2010 8:53 pm

Thanks for the translation. I noticed that there are several lines commented out with this note:

Code: Select all
//Alterado por Wemerson

Is there some reason you left those comments? I assume that the formats you left uncommented are the correct ones for the locale and that the commented lines can simply be removed, correct?
Personal Blog: Extraneous / Twitter: @bmoeskau / Meetup: Austin Bleeding Edge Web
User avatar
brian.moeskau
Site Admin
Site Admin
 
Posts: 1344
Joined: Sat Sep 18, 2010 5:00 pm
Location: Austin, Texas

Re: Portuguese Brazil (pt_BR) locale file

Postby wemerson.januario » Tue Dec 21, 2010 8:57 am

yes, I have commented just to add the Brazilian date format. but you can delete the comment. thanks
wemerson.januario
 
Posts: 17
Joined: Thu Dec 16, 2010 7:31 pm

Re: Portuguese Brazil (pt_BR) locale file

Postby qaadirbaloch » Thu Feb 19, 2015 3:30 am

Thanking you for sharing
Sign up with Pass4sure network+ certification ccna for getting incredible online test king courses 9tut ccnp 300-101 and We also provide best www.tabor.edu and selftestengine with guaranteed success in Florida Institute of Technology
qaadirbaloch
 
Posts: 1
Joined: Thu Feb 19, 2015 3:24 am


Return to Plugins, Examples & Extras

Who is online

Users browsing this forum: No registered users and 1 guest