mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
Checked in patch for bug 261329:
"About to import" prompt should show names of file and calendar.
This commit is contained in:
parent
3c336b725d
commit
44a2235eaa
@ -126,6 +126,7 @@ function loadEventsFromFile()
|
||||
var i;
|
||||
var tempEventArray;
|
||||
var date = new Date();
|
||||
var intoCalName = getSelectedCalendarNameOrDefault();
|
||||
|
||||
while (filesToAppend.hasMoreElements())
|
||||
{
|
||||
@ -162,7 +163,8 @@ function loadEventsFromFile()
|
||||
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService();
|
||||
promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService);
|
||||
var result = {value:0};
|
||||
var importText = gCalendarBundle.getFormattedString( "aboutToImport", [calendarEventArray.length]);
|
||||
var fromFileName = currentFile.leafName;
|
||||
var importText = gCalendarBundle.getFormattedString( "aboutToImport", [calendarEventArray.length, fromFileName, intoCalName]);
|
||||
var dupeText = gCalendarBundle.getFormattedString( "aboutToImportDupes", [duplicateEventArray.length]);
|
||||
var importAllStr = gCalendarBundle.getString( "importAll" );
|
||||
var promptStr = gCalendarBundle.getString( "promptForEach" );
|
||||
@ -297,6 +299,31 @@ function getSelectedCalendarPathOrDefault()
|
||||
}
|
||||
|
||||
|
||||
/** Return the calendarPath of the calendar selected in list-calendars-listbox,
|
||||
or the default calendarPath if none selected. **/
|
||||
function getSelectedCalendarNameOrDefault()
|
||||
{
|
||||
var calendarName = null;
|
||||
//see if there's a server selected in the calendar window first
|
||||
//get the selected calendar
|
||||
if( document.getElementById( "list-calendars-listbox" ) )
|
||||
{
|
||||
var selectedCalendarItem = document.getElementById( "list-calendars-listbox" ).selectedItem;
|
||||
if( selectedCalendarItem )
|
||||
{
|
||||
var listCell = selectedCalendarItem.firstChild;
|
||||
if ( listCell )
|
||||
calendarName = listCell.getAttribute( "label" );
|
||||
}
|
||||
}
|
||||
if( ! calendarName ) // null, "", or false
|
||||
{
|
||||
calendarName = gCalendarWindow.calendarManager.getDefaultCalendarName();
|
||||
}
|
||||
return calendarName;
|
||||
}
|
||||
|
||||
|
||||
/** oeDateTime is an oeDateTime object, not a javascript date **/
|
||||
function convertZuluToLocalOEDateTime( oeDateTime )
|
||||
{
|
||||
|
@ -50,7 +50,7 @@ statusCompleted =Ukončena
|
||||
|
||||
noEventsToImport=\u017D\u00E1dn\u00E9 ud\u00E1losti k importu...
|
||||
noEventsToSave=\u017D\u00E1dn\u00E9 vybran\u00E9 ud\u00E1losti k ulo\u017Een\u00ED.
|
||||
aboutToImport=O importu
|
||||
aboutToImport=O importu %1$S event(s)\nfrom file "%2$S"\ninto calendar "%3$S".\nWhat do you want to do?
|
||||
aboutToImportDupes=Celkem %1$S ud\u00E1lost\u00ED je duplicitn\u00EDch.\nCo s nimi chcete ud\u011Blat?
|
||||
discardAll=Zru\u0161it v\u0161echny
|
||||
importAll=Importovat v\u0161echny
|
||||
|
@ -50,7 +50,7 @@ statusCompleted =Wedi Gorffen
|
||||
|
||||
noEventsToImport=Dim digwyddiadau i'w mewnforio...
|
||||
noEventsToSave=Heb ddewis digwyddiadau i'w cadw.
|
||||
aboutToImport=Ar fin mewnforio %1$S digwyddiad(au).\nHoffech chi agor yr holl ddigwyddiadau newydd i'w mewnforio cyn mewnforio?
|
||||
aboutToImport=Ar fin mewnforio %1$S digwyddiad(au)\nfrom file "%2$S"\ninto calendar "%3$S".\nHoffech chi agor yr holl ddigwyddiadau newydd i'w mewnforio cyn mewnforio?
|
||||
aboutToImportDupes=About to import %1$S event(s) that are duplicates of events in your calendar.\nWhat do you want to do?
|
||||
discardAll=Discard all
|
||||
importAll=Import all
|
||||
|
@ -50,7 +50,7 @@ statusCompleted =Abgeschlossen
|
||||
|
||||
noEventsToImport=Keine Ereignisse zum Importieren...
|
||||
noEventsToSave=Keine Ereignisse zum Speichern gew\u00E4hlt.
|
||||
aboutToImport=%1$S Ereignis(se) werden importiert. Was wollen Sie machen?
|
||||
aboutToImport=%1$S Ereignis(se) werden importiert.\nfrom file "%2$S"\ninto calendar "%3$S". Was wollen Sie machen?
|
||||
aboutToImportDupes=%1$S Ereignis(se) sollen importiert werden, die Duplikate von Ereignisse in Ihrem Kalender sind.\nWas wollen Sie machen?
|
||||
discardAll=Alle ablehnen
|
||||
importAll=Alle importieren
|
||||
|
@ -50,7 +50,7 @@ statusCompleted =Completed
|
||||
|
||||
noEventsToImport=No events to import...
|
||||
noEventsToSave=No events selected to save.
|
||||
aboutToImport=About to import %1$S event(s). What do you want to do?
|
||||
aboutToImport=About to import %1$S event(s)\nfrom file "%2$S"\ninto calendar "%3$S".\nWhat do you want to do?
|
||||
aboutToImportDupes=About to import %1$S event(s) that are duplicates of events in your calendar.\nWhat do you want to do?
|
||||
discardAll=Discard all
|
||||
importAll=Import all
|
||||
|
@ -49,7 +49,7 @@ statusCompleted =Completado
|
||||
|
||||
noEventsToImport=No hay eventos que importar...
|
||||
noEventsToSave=No hay eventos seleccionados para guardar.
|
||||
aboutToImport=A punto de importar %1$S evento(s). \u00BFQu\u00E9 desea hacer?
|
||||
aboutToImport=A punto de importar %1$S evento(s). \nfrom file "%2$S"\ninto calendar "%3$S".\u00BFQu\u00E9 desea hacer?
|
||||
aboutToImportDupes=A punto de importar %1$S evento(s) que son duplicados de eventos en su calendaio.\n\u00BFQu\u00E9 desea hacer?
|
||||
discardAll=Descartar todos
|
||||
importAll=Importar todos
|
||||
|
@ -50,7 +50,7 @@ statusCompleted =Achevé
|
||||
|
||||
noEventsToImport=Pas d'\u00e9v\u00e9nement \u00e0 importer\u2026
|
||||
noEventsToSave=Pas d'\u00e9v\u00e9nement s\u00e9lectionn\u00e9 pour une sauvegarde.
|
||||
aboutToImport=Pr\u00eat \u00e0 importer %1$S \u00e9v\u00e9nement(s). Que voulez-vous faire\u00a0?
|
||||
aboutToImport=Pr\u00eat \u00e0 importer %1$S \u00e9v\u00e9nement(s)\nfrom file "%2$S"\ninto calendar "%3$S". Que voulez-vous faire\u00a0?
|
||||
aboutToImportDupes=Pr\u00eat \u00e0 importer %1$S \u00e9v\u00e9nement(s) qui sont des doublons d'\u00e9v\u00e9nements d\u00e9j\u00e0 \u00e0 votre calendrier.\nQue voulez-vous faire\u00a0?
|
||||
discardAll=Les ignorer tous
|
||||
importAll=Les importer tous
|
||||
|
@ -52,7 +52,7 @@ statusCompleted =Kész van
|
||||
|
||||
noEventsToImport=Nincs import\u00e1lhat\u00f3 esem\u00e9ny...
|
||||
noEventsToSave=Nincs esem\u00e9ny kiv\u00e1lasztva a ment\u00e9shez.
|
||||
aboutToImport=%1$S esem\u00e9ny import\u00e1l\u00e1sa k\u00f6vetkezik.\nMit k\u00edv\u00e1n tenni?
|
||||
aboutToImport=%1$S esem\u00e9ny import\u00e1l\u00e1sa k\u00f6vetkezik\nfrom file "%2$S"\ninto calendar "%3$S".\nMit k\u00edv\u00e1n tenni?
|
||||
aboutToImportDupes=%1$S olyan esem\u00e9ny import\u00e1l\u00e1sa k\u00f6vetkezik, amelyek m\u00e1r szerepelnek a napt\u00e1r\u00e1ban.\nMit k\u00edv\u00e1n tenni?
|
||||
discardAll=\u00d6sszes eldob\u00e1sa
|
||||
importAll=\u00d6sszes import\u00e1l\u00e1sa
|
||||
|
@ -50,7 +50,7 @@ statusCompleted =Completato
|
||||
|
||||
noEventsToImport=Nessun evento da importare...
|
||||
noEventsToSave=Nessun evento selezionato da salvare.
|
||||
aboutToImport=Sto per importare %1$S eventi.\nPrima di importarli vuoi aprire tutti i nuovi eventi?
|
||||
aboutToImport=Sto per importare %1$S eventi.\nfrom file "%2$S"\ninto calendar "%3$S".\nPrima di importarli vuoi aprire tutti i nuovi eventi?
|
||||
aboutToImportDupes=Importazione di %1$S event(i) che risultato duplicati di eventi presenti nel tuo calendario.\nCosa desideri fare?
|
||||
discardAll=Elimina tutto
|
||||
importAll=Import all
|
||||
|
@ -53,7 +53,8 @@ statusCompleted =Completed
|
||||
|
||||
noEventsToImport=\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u30a4\u30d9\u30f3\u30c8\u304c\u3042\u308a\u307e\u305b\u3093...
|
||||
noEventsToSave=\u4fdd\u5b58\u3059\u308b\u9078\u629e\u30a4\u30d9\u30f3\u30c8\u304c\u3042\u308a\u307e\u305b\u3093\u3002
|
||||
aboutToImport=%1$S \u306e\u30a4\u30d9\u30f3\u30c8\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u306b\u3064\u3044\u3066\u3002\n\u30a4\u30f3\u30dd\u30fc\u30c8\u524d\u306b\u3059\u3079\u3066\u306e\u65b0\u3057\u3044\u30a4\u30d9\u30f3\u30c8\u3092\u958b\u304d\u307e\u3059\u304b\uff1f
|
||||
aboutToImport=About to import %1$S event(s)\nfrom file "%2$S"\ninto calendar "%3$S".\nWhat do you want to do?
|
||||
# aboutToImport=%1$S \u306e\u30a4\u30d9\u30f3\u30c8\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u306b\u3064\u3044\u3066\u3002\n\u30a4\u30f3\u30dd\u30fc\u30c8\u524d\u306b\u3059\u3079\u3066\u306e\u65b0\u3057\u3044\u30a4\u30d9\u30f3\u30c8\u3092\u958b\u304d\u307e\u3059\u304b\uff1f
|
||||
aboutToImportDupes=\u91cd\u8907\u3059\u308b %1$S \u306e\u30a4\u30d9\u30f3\u30c8\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u3059\u3002\n\u3069\u3046\u6271\u3044\u307e\u3059\u304b\uff1f
|
||||
discardAll=\u3059\u3079\u3066\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u306a\u3044
|
||||
importAll=\u3059\u3079\u3066\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b
|
||||
|
@ -50,7 +50,7 @@ statusCompleted =Baigtas
|
||||
|
||||
noEventsToImport=N\u0117ra \u012fvyki\u0173, kurious b\u016bt\u0173 galima importuoti...
|
||||
noEventsToSave=Pra\u0161om pa\u017eym\u0117ti \u012fvykius, kuriuos norite \u012fra\u0161yti.
|
||||
aboutToImport=Importuojami %1$S \u012fvykis(-iai).\u005cnAr atverti kiekvieno \u012fvykio apra\u0161\u0105 prie\u0161 importuojant?
|
||||
aboutToImport=Importuojami %1$S \u012fvykis(-iai)\nfrom file "%2$S"\ninto calendar "%3$S".\n\u005cnAr atverti kiekvieno \u012fvykio apra\u0161\u0105 prie\u0161 importuojant?
|
||||
aboutToImportDupes=About to import %1$S event(s) that are duplicates of events in your calendar.\nWhat do you want to do?
|
||||
discardAll=Discard all
|
||||
importAll=Import all
|
||||
|
@ -50,7 +50,7 @@ statusCompleted =Voltooid
|
||||
|
||||
noEventsToImport=Geen gebeurtenissen om te importeren...
|
||||
noEventsToSave=Geen gebeurtenissen geselecteerd om op te slaan.
|
||||
aboutToImport=Op het punt importeren te beginnen van %1$S gebeurtenis(sen).\nWilt u alle nieuw te importeren gebeurtenissen openen voor het importeren?
|
||||
aboutToImport=Op het punt importeren te beginnen van %1$S gebeurtenis(sen)\nfrom file "%2$S"\ninto calendar "%3$S".\nWilt u alle nieuw te importeren gebeurtenissen openen voor het importeren?
|
||||
aboutToImportDupes=Op het punt om %1$S gebeurtenis(sen) te importeren die duplikaten zijn van gebeurtenissen in uw kalendar.\nWat wilt u doen?
|
||||
discardAll=Alle verwerpen
|
||||
importAll=Alle importeren
|
||||
|
@ -49,7 +49,7 @@ statusCompleted =Wykonane
|
||||
|
||||
noEventsToImport=Brak wydarzeń do importu...
|
||||
noEventsToSave=Nie zaznaczono wydarzeń do zapisania.
|
||||
aboutToImport=O importowaniu
|
||||
aboutToImport=O importowaniu %1$S event(s)\nfrom file "%2$S"\ninto calendar "%3$S".\nWhat do you want to do?
|
||||
aboutToImportDupes=About to import %1$S event(s) that are duplicates of events in your calendar.\nWhat do you want to do?
|
||||
discardAll=Discard all
|
||||
importAll=Import all
|
||||
|
@ -51,7 +51,7 @@ statusCompleted =Completo
|
||||
|
||||
noEventsToImport=Nenhum evento para importar...
|
||||
noEventsToSave=Nenhum evento selecionado para salvar.
|
||||
aboutToImport=Prestes a importar %1$S evento(s).\nVoce deseja abrir todos os novos eventos antes de serem importados?
|
||||
aboutToImport=Prestes a importar %1$S evento(s)\nfrom file "%2$S"\ninto calendar "%3$S".\nVoce deseja abrir todos os novos eventos antes de serem importados?
|
||||
aboutToImportDupes=About to import %1$S event(s) that are duplicates of events in your calendar.\nWhat do you want to do?
|
||||
discardAll=Discard all
|
||||
importAll=Import all
|
||||
|
@ -50,7 +50,7 @@ statusCompleted =Ukon\u010Den\u00E9
|
||||
|
||||
noEventsToImport=\u017Diadne udalosti k importu...
|
||||
noEventsToSave=\u017Diadne vybran\u00E9 udalosti k ulo\u017Eeniu.
|
||||
aboutToImport=Chyst\u00E1te sa importova\u0165 udalos\u0165(i).\nChcete otvori\u0165 v\u0161etky novo importovan\u00E9 udalosti pred importom?
|
||||
aboutToImport=Chyst\u00E1te sa importova\u0165 udalos\u0165(i).\nfrom file "%2$S"\ninto calendar "%3$S".\nChcete otvori\u0165 v\u0161etky novo importovan\u00E9 udalosti pred importom?
|
||||
aboutToImportDupes=Chyst\u00E1te sa importova\u0165 %1$S udalos\u0165(i), ktor\u00E9 s\u00FA duplik\u00E1tmi udalost\u00ED vo va\u0161om kalend\u00E1ri.\n\u010Co sa m\u00E1 urobi\u0165?
|
||||
discardAll=Zahodi\u0165 v\u0161etky
|
||||
importAll=Importova\u0165 v\u0161etky
|
||||
|
@ -50,7 +50,7 @@ statusCompleted =Končan
|
||||
|
||||
noEventsToImport=Ni dogodkov za uvoz...
|
||||
noEventsToSave=Ni izbranih dogodkov za shranjevanje.
|
||||
aboutToImport=Pri\u010Denjam z uvozom %1$S dogodek(ov).\n\u017Delite odpreti vse nove dogodke pred uvozom?
|
||||
aboutToImport=Pri\u010Denjam z uvozom %1$S dogodek(ov)\nfrom file "%2$S"\ninto calendar "%3$S".\n\u017Delite odpreti vse nove dogodke pred uvozom?
|
||||
aboutToImportDupes=Pri\u010Denjam z uvozom %1$S dogodek(ov), ki so dvojniki dogodkov v va\u0161em koledarju.\nKaj \u017Eelite narediti z njimi?
|
||||
discardAll=Izpusti vse
|
||||
importAll=Uvozi vse
|
||||
|
@ -51,7 +51,7 @@ statusCompleted =Färdig
|
||||
|
||||
noEventsToImport=Inga importerbara händelser...
|
||||
noEventsToSave=Inga händelser valda för att spara.
|
||||
aboutToImport=Kommer att importera %1$S händelse(r).\nVill du öppna alla nya händelser för kontroll innan de läggs till?
|
||||
aboutToImport=Kommer att importera %1$S händelse(r)\nfrom file "%2$S"\ninto calendar "%3$S".\nVill du öppna alla nya händelser för kontroll innan de läggs till?
|
||||
aboutToImportDupes=About to import %1$S event(s) that are duplicates of events in your calendar.\nWhat do you want to do?
|
||||
discardAll=Discard all
|
||||
importAll=Import all
|
||||
|
@ -50,7 +50,7 @@ statusCompleted =Completed
|
||||
|
||||
noEventsToImport=\u017dane podawki za importowanje...
|
||||
noEventsToSave=\u017dane podawki njewubrane za sk\u0142adowanje.
|
||||
aboutToImport=Wo importowanju %1$S podawk(ow).\u005cnChce\u0107e w\u0161\u011b nowe podawki do importowanja wotewr\u011b\u0107?
|
||||
aboutToImport=Wo importowanju %1$S podawk(ow)\nfrom file "%2$S"\ninto calendar "%3$S".\n\u005cnChce\u0107e w\u0161\u011b nowe podawki do importowanja wotewr\u011b\u0107?
|
||||
aboutToImportDupes=About to import %1$S event(s) that are duplicates of events in your calendar.\nWhat do you want to do?
|
||||
discardAll=Discard all
|
||||
importAll=Import all
|
||||
|
Loading…
Reference in New Issue
Block a user