p:timeline locale problem

Community Driven Extensions Project
Post Reply
rider
Posts: 497
Joined: 05 Mar 2010, 13:17

17 Jul 2013, 23:57

Hello,

I have a problem with the locale from p:timeline:
It doesn´t change the layout.

Here my code backing bean:
private String locale = "de";
// Getter + Setter
<pe:timeline id="timeline"
value="#{editServerTimelineController.model}" var="booking"
timeZone="#{editServerTimelineController.timeZone}"
zoomMax="#{editServerTimelineController.zoomMax}"
start="#{editServerTimelineController.start}"
end="#{editServerTimelineController.end}" editable="true"
showButtonNew="true" minHeight="400" showNavigation="true"
widgetVar="timelineWdgt"
locale="#{editServerTimelineController.locale}">
Where is the error?
Primefaces 12.0, WildFly 21

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

18 Jul 2013, 22:21

I guess you should include i18n JS file as described here in the showcase http://fractalsoft.net/primeext-showcas ... custom.jsf and here in wiki https://github.com/primefaces-extension ... ns-Locales
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

rider
Posts: 497
Joined: 05 Mar 2010, 13:17

18 Jul 2013, 22:29

Hello,

thanks.
But where should be linked the JS-File?
The example is not clear for me?
Primefaces 12.0, WildFly 21

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

18 Jul 2013, 22:36

See for instance PrimeFaces User Guide, Calendar section. I normally include the JS file close at the body tag with h:outputScript.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

serdarayalp
Posts: 2
Joined: 18 Feb 2015, 11:12

12 Aug 2016, 09:13

PrimeFaces.locales['de'] = {
closeText: 'Schließen',
prevText: 'Zurück',
nextText: 'Weiter',
monthNames: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'],
monthNamesShort: ['Jan', 'Feb', 'März', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],
dayNames: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'],
dayNamesShort: ['Son', 'Mon', 'Die', 'Mit', 'Don', 'Fre', 'Sam'],
dayNamesMin: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr ', 'Sa'],
weekHeader: 'Woche',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: '',
timeOnlyTitle: 'Nur Zeit',
timeText: 'Zeit',
hourText: 'Stunde',
minuteText: 'Minute',
secondText: 'Sekunde',
currentText: 'Aktuelles Datum',
ampm: false,
month: 'Monat',
week: 'Woche',
day: 'Tag',
allDayText: 'Ganzer Tag',

//Timeline
'MONTHS': ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
'MONTHS_SHORT': ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
'DAYS': ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
'DAYS_SHORT': ["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam"],
'ZOOM_IN': "Vergrößern",
'ZOOM_OUT': "Verkleinern",
'MOVE_LEFT': "Nach links verschieben",
'MOVE_RIGHT': "Nach rechts verschieben",
'NEW': "Neu",
'CREATE_NEW_EVENT': "Neues Ereignis erzeugen"
};

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests