Zum Inhalt springen

locallang im Setup hinzufügen

Erstellt am 6. Juli 2006 · 1 Antwort · letzte Antwort am 7. Juli 2006

Tags: Tipp

zabinetta ·

hallo liste,
hab grade gefunden wie man zu einer Extension im Setup eine neue Übersetzung hinzufügt und möchte teilen.

die Vorgabe aus der Extension (am Beispiel feevcal)
pi1/locallang.php

'default' => Array (
		'all' => 'All',
		'time' => 'Time',
		'return' => 'RETURN',
		'hour' => 'Hour',
		'min' => 'Min',
	
// 		YEAR - MONTH - WEEK - DAY
		'year' => 'Year',
		'month' => 'Month',
		'day' => 'Day',
		'week' => 'Week',
		'month_1' => 'January',
		'month_2' => 'February',
		'month_3' => 'March',
		'month_4' => 'April',
		'month_5' => 'May',
		'month_6' => 'June',
		'month_7' => 'July',
		'month_8' => 'August',
		'month_9' => 'September',
		'month_10' => 'October',
		'month_11' => 'November',
		'month_12' => 'December',
		'week_ab_1' => 'Sun',
		'week_ab_2' => 'Mon',
		'week_ab_3' => 'Tue',
		'week_ab_4' => 'Wed',
		'week_ab_5' => 'Thu',
		'week_ab_6' => 'Fri',
		'week_ab_7' => 'Sat',
		'week_full_1' => 'Sunday',	
		'week_full_2' => 'Monday',
		'week_full_3' => 'Tuesday',
		'week_full_4' => 'Wednesday',
		'week_full_5' => 'Thursday',
		'week_full_6' => 'Friday',
		'week_full_7' => 'Saturday',

//		MINICAL
		'mini_cal_week' => 'W',
		'week_minical_1' => 'Su',
		'week_minical_2' => 'Mo',
		'week_minical_3' => 'Tu',
		'week_minical_4' => 'We',
		'week_minical_5' => 'Th',
		'week_minical_6' => 'Fr',
		'week_minical_7' => 'Sa',

// 		EVENT
		'event.dtbegin' => 'Starting',	
		'event.dtend' => 'Ending',
		'event.title' => 'Title',	
		'event.organizer' => 'Organizer',	
		'event.location' => 'Location',	
		'event.description' => 'Description',	
		'event.comments' => 'Comments',	
		'event.url' => 'URL',	
		'event.email' => 'E_mail',	
		'event.summary' => 'Summary',	
		'event.priority.1' => 'High',	
		'event.priority.2' => 'Medium',	
		'event.priority.3' => 'Low',	
		'event.priority' => 'Priority',	
		'event.category' => 'Category',	
		'event.participants' => 'Participants',

//		LOCATION		
		'loc.title' => 'Title',	
		'loc.address' => 'Address',	
		'loc.telephone' => 'Telephone',	
		'loc.fax' => 'Fax',	
		'loc.email' => 'Email',	
		'loc.zip' => 'Zip',	
		'loc.city' => 'City',	
		'loc.country' => 'Country',	
		'loc.www' => 'www',	
		'loc.notes' => 'Notes',

//		USER
		'user.name' => 'Name',
		'user.address' => 'Address',
		'user.telephone' => 'Telephone',
		'user.fax' => 'Fax',
		'user.email' => 'Email',
		'user.company' => 'Company',
		'user.title' => 'Title',
		'user.zip' => 'Zip',
		'user.city' => 'City',
		'user.country' => 'Country',
		'user.www' => 'www',
		'user.list' => 'List of participated events',
		'user.incoming' => 'List of incoming events',
		

//		JUMP
		'jump' => 'Jump',
		'insert' => 'Insert',
		'dayWithAny' => 'Day with any or no other',
		'none' => 'None',
		'submit' => 'SUBMIT',

//		LIST OF EVENTS
		'incomingEvents' => 'Incoming Events',
		'inProgress' => 'In Progress',
		'allEvents' => 'All events',
		'fullIncomingEvents' => 'Full incoming events',
		'ok' => 'OK',

//		PRINT
		'print.dtbegin' => 'Starting',
		'print.dtend' => 'Ending',
		'print.category' => 'Category',
		'print.title' => 'Events between',
		'print.pageTitle' => 'Exportation form',
		'print.titlePage' => 'Title',
		'print.creatingDate' => 'Creating date',

//		FORM
		'form.name' => 'by',
		'form.noinfo' => '< undefinded >',
		'form.phone' => 'phone',
		'form.email' => 'email',
		'form.beginhour' => 'Begin hour',
		'form.endhour' => 'End hour',
		'form.title' => 'Title',
		'form.description' => 'Description',
		'form.category' => 'Category',
		'form.nocategory' => 'none',
		
		
//		BUTTON
		'button.submit' => 'Submit',
		'button.back' => 'back',
		'button.modify' => 'Modify',
		'button.delete' => 'Delete',
		'button.yes' => 'yes',
		'button.no' => 'no',

		//		MESSAGE
		
		'message.addok' => 'Reservation has been correctly recorded', //'La réservation a bien été effectué ',
		'message.modifydok' => 'Reservation has been correctly updated', //'La réservation a bien été modifié ',
		'message.deleteok' => 'Reservation has been correctly deleted', //'La réservation a bien été supprimé',
		'message.deletecancel' => 'This record has not been deleted', //La suppression a été annulé',
		'message.cancelreservation' => 'Reservation has been canceled', // 'La réservation a été annulé',
		'message.confirmdelete' => 'Are you sure you want to delete this record?', //'Confirmer la suppression de cette réservation?',
		
		'message.hourerror' => 'Reservation must start before its end', //'L\'heure de début doit être antérieure à l\'heure de fin',
		'message.dayinpast' => 'You cannot make a reservation in the past', //'Vous ne pouvez pas effectué un enregistrement dans le passé',
		'message.alreadytaken' => 'There is already a reservation on this hour', //'Il y a déjà une réservation avec cette catégorie sur cette plage horaire',
		
		'message.addreservation' => 'Add a reservation', // Ajouter une réservation
		'contact' => 'If you have any problem, please contact ',

	),

.. und so siehts aus im Typoscript-Setup

plugin.tx_feevcal_pi1._LOCAL_LANG.de {
	all = Alles
	time = Uhrzeit
	return = zurück
	hour = h
	min = min
#YEAR - MONTH - WEEK - DAY
	year = Jahr
	month = Monat
	day = Tag
	week = Woche
	month_1 = Januar
	month_2 = Februar
	month_3 = März
	month_4 = April
	month_5 = Mai
	month_6 = Juni
	month_7 = Juli
	month_8 = August
	month_9 = September
	month_10 = Oktober
	month_11 = November
	week_ab_1 = So
	week_ab_2 = Mo
	week_ab_3 = Di
	week_ab_4 = Mi
	week_ab_5 = Do
	week_ab_6 = Fr
	week_ab_7 = Sa
	week_full_1 = Sonntag	
	week_full_2 = Montag
	week_full_3 = Dienstag
	week_full_4 = Mittwoch
	week_full_5 = Donnerstag
	week_full_6 = Freitag
	week_full_7 = Samstag
#MINICAL
	mini_cal_week = W
	week_minical_1 = So
	week_minical_2 = Mo
	week_minical_3 = Di
	week_minical_4 = Mi
	week_minical_5 = Do
	week_minical_6 = Fr
	week_minical_7 = Sa

#EVENT
	event.dtbegin = Beginn	
	event.dtend = Ende
	event.title = Titel
	event.organizer = Organisator	
	event.location = Veranstaltungsort	
	event.description = Beschreibung	
	event.comments = Kommentare	
	event.url = URL	
	event.email = E-mail	
	event.summary = Zusammenfassung
	event.priority.1 = hoch	
	event.priority.2 = mittel	
	event.priority.3 = niedrig
	event.priority = Priorität
	event.category = Kategorie	
	event.participants = Teilnehmer

#LOCATION		
	loc.title = Name
	loc.address = Adresse	
	loc.telephone = Telefon	
	loc.fax = Fax	
	loc.email = E-Mail	
	loc.zip = Postleitzahl	
	loc.city = Stadt
	loc.country = Land	
	loc.www = www
	loc.notes = Notizen

#USER
	user.name = Name
	user.address = Adresse
	user.telephone = Telefon	
	user.fax = Fax	
	user.email = E-Mail
	user.company = Firma
	user.title = Titel
	user.zip = Postleitzahl	
	user.city = stadt
	user.country = Land	
	user.www = www
	user.list = hat teilgenommen an (Liste)
	user.incoming = wird teilnehmen an (Liste)
		
#JUMP
	jump = Jump
	insert = Einfügen
	dayWithAny = Day with any or no other
	none = kein
	submit = abschicken
#LIST OF EVENTS
	incomingEvents = zukünftige Events
	inProgress =  laufender Event
	allEvents = Alle Events
	fullIncomingEvents = alle zukünftigen Events
	ok = OK

#PRINT
	print.dtbegin = Anfang
	print.dtend = Ende
	print.category = Kategorie
	print.title = Zwischenveranstaltungen
	print.pageTitle = Exportformular
	print.titlePage = Titel
	print.creatingDate = erstellt am

#FORM
	form.name = von
	form.noinfo = < unbekannt >
	form.phone = Telefon
	form.email = E-Mail
	form.beginhour = Anfangszeit
	form.endhour = Ende
	form.title = Titel
	form.description = Beschreibung
	form.category = Kategorie
	form.nocategory = nichts
#BUTTON
	button.submit = buchen
	button.back = zurück
	button.modify = Ändern
	button.delete = Löschen
	button.yes = Ja
	button.no = Nein

#MESSAGE
	message.addok = Ihre Reservierung wurde angenommen
	message.modifydok = Reservierung korrekt verändert
	message.deleteok = Reservierung korrekt gelöscht
	message.deletecancel = Ihre Reservierung wurde nicht gelöscht
	message.cancelreservation = Ihre Reservierung wurde abgesagt
	message.confirmdelete = Wollen Sie diesen Eintrag wirklich löschen?
		
	message.hourerror = eine Reservierung muß anfangen <em>bevor</em> sie endet
	message.dayinpast = Sie können keine Reservierung in der Vergangenheit machen
	message.alreadytaken = Zu dieser Uhrzeit existiert schon eine Reservierung
	message.addreservation = eine Reservierung hinzufügen
	contact = bei Problemen nehmen Sie Kontakt auf mit 
}
zabinetta ·

aua, noch schnell ein bug entdeckt: wenn im php spracharray nit Punkt unterteilt wird, zum Beispiel:

...
'event.dtbegin' => 'Starting',
...

, dann gehts nicht in Typoscript, zuminderst nicht wie in der Anleitung.
wer eine Idee hat kanns ja posten 🙂 (ich hab am Ende doch noch in der extension herumgeschrieben..)