Commit cc15a729 authored by CardBook's avatar CardBook

version 19.1

parent bfe5067a
manifest components/cardbookAutocompleteSearch.manifest
resource cardbook-modules modules/
content cardbook chrome/content/
locale cardbook cs chrome/locale/cs/
......
......@@ -454,9 +454,7 @@ if ("undefined" == typeof(wdw_addressbooksAdd)) {
}
var aTextbox = document.getElementById('serverColorInput');
aTextbox.value = cardbookUtils.randomColor(100);
var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
var dateFormatMenu = prefs.getComplexValue("extensions.cardbook.dateFormatMenu", Components.interfaces.nsISupportsString).data;
cardbookElementTools.loadDateFormats("dateFormatMenuPopup", "dateFormatMenuList", dateFormatMenu);
cardbookElementTools.loadDateFormats("dateFormatMenuPopup", "dateFormatMenuList", "YYYY-MM-DD");
}
wdw_addressbooksAdd.checkRequired();
},
......@@ -544,9 +542,7 @@ if ("undefined" == typeof(wdw_addressbooksAdd)) {
var aMenuPopup = document.createElement('menupopup');
aMenuList.appendChild(aMenuPopup);
aMenuPopup.setAttribute('id', 'dateFormatMenuPopup' + aId);
var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
var dateFormatMenu = prefs.getComplexValue("extensions.cardbook.dateFormatMenu", Components.interfaces.nsISupportsString).data;
cardbookElementTools.loadDateFormats(aMenuPopup.id, aMenuList.id, dateFormatMenu);
cardbookElementTools.loadDateFormats(aMenuPopup.id, aMenuList.id, "YYYY-MM-DD");
var aCheckbox1 = document.createElement('checkbox');
aRow.appendChild(aCheckbox1);
......
......@@ -46,25 +46,6 @@ if ("undefined" == typeof(cardbookAutocomplete)) {
margin-inline-end: -1px;\
list-style-image: url('chrome://messenger/skin/addressbook/icons/remote-addrbook.png');\
}";
cardbookAutocomplete.iconRuleStrings["standard-abook"] = {};
cardbookAutocomplete.iconRuleStrings["standard-abook"]["LINUX"] = "treechildren::-moz-tree-image(standard-abook treecolAutoCompleteValue) {\
margin-inline-start: 3px;\
margin-inline-end: 2px;\
list-style-image: url('chrome://messenger/skin/addressbook/icons/addrbook.png');\
}";
cardbookAutocomplete.iconRuleStrings["standard-abook"]["WIN"] = "treechildren::-moz-tree-image(standard-abook treecolAutoCompleteValue) {\
margin-inline-start: 2px;\
margin-inline-end: 5px;\
list-style-image: url('chrome://messenger/skin/addressbook/icons/addrbook.png');\
}";
cardbookAutocomplete.iconRuleStrings["standard-abook"]["OSX"] = "treechildren::-moz-tree-image(standard-abook treecolAutoCompleteValue) {\
margin-top: 2px;\
margin-bottom: 2px;\
margin-inline-start: 4px;\
margin-inline-end: -1px;\
list-style-image: url('chrome://messenger/skin/addressbook/icons/addrbook.png');\
}";
},
createCssMsgIconsRules: function (aStyleSheet, aOSName) {
......@@ -133,7 +114,11 @@ if ("undefined" == typeof(cardbookAutocomplete)) {
try {
var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
if (prefs.getBoolPref("extensions.cardbook.autocompletion")) {
aTextBox.setAttribute('autocompletesearch', 'addrbook-cardbook');
if (prefs.getBoolPref("extensions.cardbook.exclusive")) {
aTextBox.setAttribute('autocompletesearch', 'addrbook-cardbook');
} else {
aTextBox.setAttribute('autocompletesearch', 'addrbook-cardbook addrbook ldap');
}
} else {
aTextBox.setAttribute('autocompletesearch', 'addrbook ldap');
}
......
......@@ -7,8 +7,8 @@
<stringbundleset id="stringbundleset"/>
<script src="chrome://messenger/content/dateFormat.js"/>
<script src="chrome://cardbook/content/cardbookUtils.js"/>
<script src="chrome://cardbook/content/cardbookDates.js"/>
<script src="chrome://cardbook/content/birthdays/cardbookBirthdaysUtils.js"/>
<script src="chrome://cardbook/content/birthdays/ovl_birthdays.js"/>
......
......@@ -18,8 +18,8 @@
<!-- for MailServices -->
<script type="application/javascript" src="chrome://messenger/content/addressbook/abCommon.js"/>
<script src="chrome://messenger/content/dateFormat.js"/>
<script src="chrome://cardbook/content/cardbookUtils.js"/>
<script src="chrome://cardbook/content/cardbookDates.js"/>
<script src="chrome://cardbook/content/preferences/cardbookPreferences.js"/>
<script src="chrome://cardbook/content/birthdays/cardbookBirthdaysUtils.js"/>
<script src="chrome://cardbook/content/birthdays/wdw_birthdayList.js"/>
......
......@@ -16,8 +16,8 @@
<stringbundleset id="stringbundleset"/>
<script src="chrome://messenger/content/dateFormat.js"/>
<script src="chrome://cardbook/content/cardbookUtils.js"/>
<script src="chrome://cardbook/content/cardbookDates.js"/>
<script src="chrome://cardbook/content/preferences/cardbookPreferences.js"/>
<script src="chrome://cardbook/content/birthdays/cardbookBirthdaysUtils.js"/>
<script src="chrome://cardbook/content/birthdays/wdw_birthdaySync.js"/>
......
......@@ -456,25 +456,14 @@ if ("undefined" == typeof(wdw_cardEdition)) {
},
validateCalendarPanel: function (aValue) {
var cardbookPrefService = new cardbookPreferenceService(document.getElementById('dirPrefIdTextBox').value);
var dateFormat = cardbookPrefService.getDateFormat();
if (wdw_cardEdition.panel === 1) {
var lYear = aValue.getFullYear();
var lMonth = aValue.getMonth() + 1;
lMonth += "";
if (lMonth.length == 1) {
lMonth = "0"+lMonth;
}
var lDay = aValue.getDate();
lDay += "";
if (lDay.length == 1) {
lDay = "0" + lDay;
}
document.getElementById('bdayTextBox').value = lYear + lMonth + lDay;
document.getElementById('bdayTextBox').value = cardbookDates.convertDateToDateString(aValue, dateFormat);
document.getElementById('bdayLightningPanel').hidePopup();
} else {
var lYear = aValue.substring(0,4);
var lMonth = aValue.substring(5,7);
var lDay = aValue.substring(8);
document.getElementById('bdayTextBox').value = lYear + lMonth + lDay;
var myDate = cardbookDates.convertDateStringToDate(aValue, 'YYYY-MM-DD');
document.getElementById('bdayTextBox').value = cardbookDates.convertDateToDateString(myDate, dateFormat);
document.getElementById('bdayBasePanel').hidePopup();
}
document.getElementById('bdayTextBox').focus();
......
......@@ -30,13 +30,14 @@
onload="wdw_cardEdition.load();" resizable="true"
onclose="wdw_cardEdition.cancel();"
id="wdw_cardEdition"
persist="screenX screenY width height" class="cardbookBackgroundColorClass"
persist="screenX screenY width height" class="cardbookBackgroundColorClass dialog-content-box"
style="min-width:500px;min-height:600px;">
<stringbundleset id="stringbundleset"/>
<script src="chrome://cardbook/content/preferences/cardbookPreferences.js"/>
<script src="chrome://cardbook/content/cardbookUtils.js"/>
<script src="chrome://cardbook/content/cardbookDates.js"/>
<script src="chrome://cardbook/content/cardbookElementTools.js"/>
<script src="chrome://cardbook/content/cardbookTypes.js"/>
<script src="chrome://cardbook/content/wdw_log.js"/>
......
This diff is collapsed.
......@@ -380,11 +380,15 @@ if ("undefined" == typeof(cardbookElementTools)) {
aPanel.addEventListener("popuphiding", firePopuphiding, false);
},
addMenuCaselist: function (aParent, aType, aIndex, aValue) {
addMenuCaselist: function (aParent, aType, aIndex, aValue, aParameters) {
var strBundle = document.getElementById("cardbook-strings");
var aMenulist = document.createElement('menulist');
aParent.appendChild(aMenulist);
aMenulist.setAttribute('id', aType + '_' + aIndex + '_menulistCase');
for (var prop in aParameters) {
aMenulist.setAttribute(prop, aParameters[prop]);
}
var aMenupopup = document.createElement('menupopup');
aMenulist.appendChild(aMenupopup);
aMenupopup.setAttribute('id', aType + '_' + aIndex + '_menupopupCase');
......@@ -407,10 +411,14 @@ if ("undefined" == typeof(cardbookElementTools)) {
}
},
addMenuObjlist: function (aParent, aType, aIndex, aValue) {
addMenuObjlist: function (aParent, aType, aIndex, aValue, aParameters) {
var aMenulist = document.createElement('menulist');
aParent.appendChild(aMenulist);
aMenulist.setAttribute('id', aType + '_' + aIndex + '_menulistObj');
for (var prop in aParameters) {
aMenulist.setAttribute(prop, aParameters[prop]);
}
var aMenupopup = document.createElement('menupopup');
aMenulist.appendChild(aMenupopup);
aMenupopup.setAttribute('id', aType + '_' + aIndex + '_menupopupObj');
......@@ -433,10 +441,14 @@ if ("undefined" == typeof(cardbookElementTools)) {
}
},
addMenuTermlist: function (aParent, aType, aIndex, aValue) {
addMenuTermlist: function (aParent, aType, aIndex, aValue, aParameters) {
var aMenulist = document.createElement('menulist');
aParent.appendChild(aMenulist);
aMenulist.setAttribute('id', aType + '_' + aIndex + '_menulistTerm');
for (var prop in aParameters) {
aMenulist.setAttribute(prop, aParameters[prop]);
}
var aMenupopup = document.createElement('menupopup');
aMenulist.appendChild(aMenupopup);
aMenupopup.setAttribute('id', aType + '_' + aIndex + '_menupopupTerm');
......
......@@ -2029,7 +2029,9 @@ if ("undefined" == typeof(cardbookSynchronization)) {
cardbookRepository.cardbookSyncMode = "NOSYNC";
cardbookUtils.formatStringForOutput("synchroAllFinished");
if (aMode == "INITIAL") {
cardbookUtils.jsInclude(["chrome://cardbook/content/birthdays/cardbookBirthdaysUtils.js","chrome://cardbook/content/birthdays/ovl_birthdays.js"]);
cardbookUtils.jsInclude(["chrome://cardbook/content/birthdays/cardbookBirthdaysUtils.js",
"chrome://cardbook/content/cardbookDates.js",
"chrome://cardbook/content/birthdays/ovl_birthdays.js"]);
ovl_birthdays.onLoad();
}
}
......@@ -2058,7 +2060,9 @@ if ("undefined" == typeof(cardbookSynchronization)) {
if (total === 0) {
cardbookRepository.cardbookSyncMode = "NOSYNC";
if (aMode == "INITIAL") {
cardbookUtils.jsInclude(["chrome://cardbook/content/birthdays/cardbookBirthdaysUtils.js","chrome://cardbook/content/birthdays/ovl_birthdays.js"]);
cardbookUtils.jsInclude(["chrome://cardbook/content/birthdays/cardbookBirthdaysUtils.js",
"chrome://cardbook/content/cardbookDates.js",
"chrome://cardbook/content/birthdays/ovl_birthdays.js"]);
ovl_birthdays.onLoad();
}
}
......
......@@ -122,7 +122,9 @@ if ("undefined" == typeof(cardbookUtils)) {
if (aType === "category") {
label = strBundle.getString("none");
} else if (aType === "type") {
label = strBundle.getString("noType");
// label = strBundle.getString("noType");
// better empty
label = "";
}
}
myMenulist.setAttribute("label", label);
......
......@@ -171,9 +171,9 @@ if ("undefined" == typeof(cardbookComplexSearch)) {
var aHBox = cardbookElementTools.addHBox(aType, aIndex, aOrigBox);
cardbookElementTools.addMenuCaselist(aHBox, aType, aIndex, aArray[0]);
cardbookElementTools.addMenuObjlist(aHBox, aType, aIndex, aArray[1]);
cardbookElementTools.addMenuTermlist(aHBox, aType, aIndex, aArray[2]);
cardbookElementTools.addMenuCaselist(aHBox, aType, aIndex, aArray[0], {flex: "1"});
cardbookElementTools.addMenuObjlist(aHBox, aType, aIndex, aArray[1], {flex: "1"});
cardbookElementTools.addMenuTermlist(aHBox, aType, aIndex, aArray[2], {flex: "1"});
cardbookElementTools.addKeyTextbox(aHBox, aType + '_' + aIndex + '_valueBox', aArray[3], {flex: "1"}, aVersion, aIndex);
function fireUpButton(event) {
......
......@@ -302,7 +302,7 @@ if ("undefined" == typeof(wdw_cardbookContactsSidebar)) {
for (var l = 0; l < myCard.emails.length; l++) {
myFormattedEmails.push(MailServices.headerParser.makeMimeAddress(myCard.fn, myCard.emails[l]));
}
wdw_cardbookContactsSidebar.searchResults.push([myCard.fn, myDirPrefName, myCard.emails.join(', '), false, "CARDCARDBOOK", myCard, myFormattedEmails.join(', '), myDirPrefId]);
wdw_cardbookContactsSidebar.searchResults.push([myCard.fn, myDirPrefName, myCard.emails.join(', '), false, "CARDCARDBOOK", myCard, myFormattedEmails.join('@@@@@'), myDirPrefId]);
}
}
}
......@@ -329,7 +329,7 @@ if ("undefined" == typeof(wdw_cardbookContactsSidebar)) {
}
}
if (myEmails != "") {
wdw_cardbookContactsSidebar.searchResults.push([myCategory, myDirPrefName, myEmails.join(', '), true, "CATCARDBOOK", myDirPrefId+"::"+myCategory, myFormattedEmails.join(', '), myDirPrefId]);
wdw_cardbookContactsSidebar.searchResults.push([myCategory, myDirPrefName, myEmails.join(', '), true, "CATCARDBOOK", myDirPrefId+"::"+myCategory, myFormattedEmails.join('@@@@@'), myDirPrefId]);
}
}
}
......@@ -367,7 +367,7 @@ if ("undefined" == typeof(wdw_cardbookContactsSidebar)) {
for (var l = 0; l < myCard.emails.length; l++) {
myFormattedEmails.push(MailServices.headerParser.makeMimeAddress(myCard.fn, myCard.emails[l]));
}
wdw_cardbookContactsSidebar.searchResults.push([myCard.fn, myDirPrefName, myCard.emails.join(', '), false, "CARDCARDBOOK", myCard, myFormattedEmails.join(', '), myDirPrefId]);
wdw_cardbookContactsSidebar.searchResults.push([myCard.fn, myDirPrefName, myCard.emails.join(', '), false, "CARDCARDBOOK", myCard, myFormattedEmails.join('@@@@@'), myDirPrefId]);
}
}
}
......@@ -402,7 +402,7 @@ if ("undefined" == typeof(wdw_cardbookContactsSidebar)) {
}
}
if (myEmails != "") {
wdw_cardbookContactsSidebar.searchResults.push([myCategory, myDirPrefName, myEmails.join(', '), true, "CATCARDBOOK", searchCategory, myFormattedEmails.join(', '), myDirPrefId]);
wdw_cardbookContactsSidebar.searchResults.push([myCategory, myDirPrefName, myEmails.join(', '), true, "CATCARDBOOK", searchCategory, myFormattedEmails.join('@@@@@'), myDirPrefId]);
}
}
}
......@@ -562,7 +562,7 @@ if ("undefined" == typeof(wdw_cardbookContactsSidebar)) {
for (var l = 0; l < myCard.emails.length; l++) {
myFormattedEmails.push(MailServices.headerParser.makeMimeAddress(myCard.fn, myCard.emails[l]));
}
wdw_cardbookContactsSidebar.searchResults.push([myCard.fn, myDirPrefName, myCard.emails.join(', '), false, "CARDCARDBOOK", myCard, myFormattedEmails.join(', '), myDirPrefId]);
wdw_cardbookContactsSidebar.searchResults.push([myCard.fn, myDirPrefName, myCard.emails.join(', '), false, "CARDCARDBOOK", myCard, myFormattedEmails.join('@@@@@'), myDirPrefId]);
}
}
}
......@@ -615,7 +615,7 @@ if ("undefined" == typeof(wdw_cardbookContactsSidebar)) {
myTree.view.selection.getRangeAt(i,start,end);
for (var j = start.value; j <= end.value; j++){
var allEmails = [];
allEmails = wdw_cardbookContactsSidebar.searchResults[j][6].split(', ');
allEmails = wdw_cardbookContactsSidebar.searchResults[j][6].split('@@@@@');
for (var k = 0; k < allEmails.length; k++) {
listOfEmails.push(allEmails[k]);
}
......
......@@ -170,7 +170,7 @@ if ("undefined" == typeof(wdw_findDuplicates)) {
aRow.setAttribute('align', 'center');
aRow.setAttribute('flex', '1');
// dirty hack to have the lines not shrinked on Linux only with blue.css
aRow.setAttribute('style', 'min-height:32px;');
aRow.setAttribute('style', 'min-height:36px;');
return aRow
},
......
......@@ -762,12 +762,7 @@ cardbookPreferenceService.prototype = {
if (dateFormat != null && dateFormat !== undefined && dateFormat != "") {
return dateFormat;
} else {
dateFormat = this._getRootPref(this.prefCardBookRoot + "dateFormatMenu");
if (dateFormat != null && dateFormat !== undefined && dateFormat != "") {
return dateFormat;
} else {
return "YYYY-MM-DD";
}
return "YYYY-MM-DD";
}
},
......
......@@ -574,12 +574,6 @@ if ("undefined" == typeof(wdw_cardbookConfiguration)) {
}
},
loadDateFormats: function () {
var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
var dateFormatMenu = prefs.getComplexValue("extensions.cardbook.dateFormatMenu", Components.interfaces.nsISupportsString).data;
cardbookElementTools.loadDateFormats("dateFormatMenuPopup", "dateFormatMenuList", dateFormatMenu);
},
validateEventEntryTitle: function () {
var checkTest = document.getElementById('calendarEntryTitleTextBox').value.split("%S").length - 1;
if (checkTest != 2) {
......@@ -711,6 +705,7 @@ if ("undefined" == typeof(wdw_cardbookConfiguration)) {
loadPref: function () {
if (document.getElementById('preferenceValueTextbox').value == "") {
var cardbookPrefService = new cardbookPreferenceService();
document.getElementById('preferenceValueTextbox').value = cardbookPrefService.getPrefValueLabel();
}
},
......@@ -1430,7 +1425,6 @@ if ("undefined" == typeof(wdw_cardbookConfiguration)) {
wdw_cardbookConfiguration.loadPeriodicSync();
wdw_cardbookConfiguration.loadCustoms();
wdw_cardbookConfiguration.loadAddressBooks("addressBooksNameList", false);
wdw_cardbookConfiguration.loadDateFormats();
wdw_cardbookConfiguration.loadMailAccounts();
wdw_cardbookConfiguration.sortTrees(null, "mailAccountsTree");
wdw_cardbookConfiguration.loadRestrictions();
......
......@@ -2,6 +2,8 @@
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://cardbook/skin/cardbookCheckboxes.css" type="text/css"?>
<?xul-overlay href="chrome://cardbook/content/ovl_cardbookStringBundle.xul"?>
<!-- for the preference star -->
<?xml-stylesheet href="chrome://cardbook-os/skin/cardbookPrefStar.css" type="text/css"?>
<!DOCTYPE window [
<!ENTITY % configurationDTD SYSTEM "chrome://cardbook/locale/wdw_cardbookConfiguration.dtd"> %configurationDTD;
<!ENTITY % namesDTD SYSTEM "chrome://cardbook/locale/wdw_nameEdition.dtd"> %namesDTD;
......@@ -88,8 +90,6 @@
name="extensions.cardbook.calendarsNameList" type="string"/>
<preference id="extensions.cardbook.searchInNote"
name="extensions.cardbook.searchInNote" type="bool"/>
<preference id="extensions.cardbook.dateFormatMenu"
name="extensions.cardbook.dateFormatMenu" type="string"/>
<preference id="extensions.cardbook.numberOfDaysForSearching"
name="extensions.cardbook.numberOfDaysForSearching" type="string"/>
<preference id="extensions.cardbook.showPopupOnStartup"
......@@ -632,10 +632,12 @@
<checkbox id="preferEmailPrefCheckBox" label="&preferEmailPrefLabel;"
accesskey="&preferEmailPrefAccesskey;"
preference="extensions.cardbook.preferEmailPref"/>
<image class="cardbookPrefStarClass" haspref="true"/>
</hbox>
<separator class="thin"/>
<hbox align="center">
<caption label="&preferEmailPrefWarn;"/>
<image class="cardbookPrefStarClass"/>
</hbox>
<separator class="thin"/>
<hbox align="center">
......@@ -707,16 +709,6 @@
tooltiptext = "&searchInNoteTooltip;"
preference="extensions.cardbook.searchInNote"/>
</hbox>
<separator class="thin"/>
<hbox align="center" >
<label value="&dateFormatLabel;"
accesskey="&dateFormatAccesskey;"
control="dateFormatMenuList"
id="dateFormatLabel"/>
<menulist id="dateFormatMenuList" preference="extensions.cardbook.dateFormatMenu">
<menupopup id="dateFormatMenuPopup"/>
</menulist>
</hbox>
</groupbox>
</tabpanel>
......
......@@ -406,8 +406,8 @@ onlyCategories=Pouze kategorie
noCategory=Pouze kontakty
multipleCategories=Více kategorií
none=Žádná
multipleTypes=??Multiple Types??
noType=??No Type??
multipleTypes=Více typů
noType=Žádný typ
eventContactsWindowLabel=Události pro: %S
newCardBookCardMenuLabel=Kontak CardBooku…
......
......@@ -406,8 +406,8 @@ onlyCategories=Nur Kategorien
noCategory=Nur Kontakte
multipleCategories=Mehrere Kategorien
none=Keine
multipleTypes=??Multiple Types??
noType=??No Type??
multipleTypes=Mehrere Typen
noType=Kein Type
eventContactsWindowLabel=Termine für: %S
newCardBookCardMenuLabel=CardBook Kontakt…
......
......@@ -262,7 +262,7 @@ bdayLabel=Születésnap
titleLabel=Beosztás
roleLabel=Állás
orgLabel=Szervezet
categoriesLabel=Kategóriák
categoriesLabel=Kategória
adrLabel=Cím
telLabel=Telefon
emailLabel=Email
......@@ -347,7 +347,7 @@ wdw_cardbookPrintTitle=Nyomtatási kép
displayGroupboxLabel=Megjelenítendő név
personalGroupboxLabel=Személyes adat
orgGroupboxLabel=Szakmai profil
categoriesGroupboxLabel=Kategóriák
categoriesGroupboxLabel=Kategória
adrGroupboxLabel=Címek
telGroupboxLabel=Telefonszámok
emailGroupboxLabel=Email címek
......@@ -406,8 +406,8 @@ onlyCategories=Csak kategóriák
noCategory=Csak kapcsolatok
multipleCategories=Több kategória
none=Nincs
multipleTypes=??Multiple Types??
noType=??No Type??
multipleTypes=Több típus
noType=Nincs típus
eventContactsWindowLabel=Események: %S
newCardBookCardMenuLabel=Névjegy (Névjegyzék)…
......
......@@ -78,7 +78,7 @@
<!ENTITY titleColumnLabel "Title">
<!ENTITY roleColumnLabel "Szerep">
<!ENTITY orgColumnLabel "Szervezet">
<!ENTITY categoriesColumnLabel "Kategóriák">
<!ENTITY categoriesColumnLabel "Kategória">
<!ENTITY noteColumnLabel "Jegyzetek">
<!ENTITY prodidColumnLabel "Prodid">
<!ENTITY sortstringColumnLabel "String rendezése">
......@@ -93,7 +93,7 @@
<!ENTITY revColumnLabel "Felülvizsgálat">
<!ENTITY etagColumnLabel "Elektronikus címke">
<!ENTITY categoriesGroupboxLabel "Kategóriák">
<!ENTITY categoriesGroupboxLabel "Kategória">
<!ENTITY noteTabLabel "Jegyzetek">
<!ENTITY miscGroupboxLabel "Különféle">
......
......@@ -14,7 +14,7 @@
<!ENTITY personalAccesskey "a">
<!ENTITY orgLabel "Szakmai profil">
<!ENTITY orgAccesskey "p">
<!ENTITY categoriesLabel "Kategóriák">
<!ENTITY categoriesLabel "Kategória">
<!ENTITY categoriesAccesskey "K">
<!ENTITY adrLabel "Címek">
<!ENTITY adrAccesskey "k">
......
......@@ -406,8 +406,8 @@ onlyCategories=Alleen categorieën
noCategory=Alleen contactpersonen
multipleCategories=Meerdere categorieën
none=Geen
multipleTypes=??Multiple Types??
noType=??No Type??
multipleTypes=Meerdere types
noType=Geen type
eventContactsWindowLabel=Gebeurtenissen voor: %S
newCardBookCardMenuLabel=CardBook contactpersoon…
......
......@@ -323,8 +323,8 @@ types.tel.work=Służbowy
types.url.home=Domowy
types.url.work=Służbowy
typesTooltip=Możesz zmienić dostępne rodzaje w ustawieniach CardBook.
prefLabel=PREF
prefValueLabel=Wartość ustawień
prefLabel=Podstawowy
prefValueLabel=Podstawowy
prefWeightTooltip=To ustawienie może mieć wartość od 1 do 100. W przypadku normalnego użytkowania, pozostaw to pole puste.
impp.skype=Skype
......@@ -399,15 +399,15 @@ wdw_cardbookConfigurationAddEmailsRestrictionTitle=Zdefiniuj ograniczenie konta
wdw_cardbookConfigurationAddEmailsCollectionTitle=Zdefiniuj zbieranie adresów z poczty wychodzącej
ignoreCaseLabel=Ignoruj wielkość liter
matchCaseLabel=Dopasuj wielkość liter
matchCaseLabel=Rozróżniaj wielkość liter
allCategories=Pokaż wszystkie
onlyCategories=Tylko kategorie
noCategory=Tylko kontakty
multipleCategories=Wiele kategorii
none=Brak
multipleTypes=??Multiple Types??
noType=??No Type??
multipleTypes=Wiele typów
noType=Brak typu
eventContactsWindowLabel=Wydarzenia dla: %S
newCardBookCardMenuLabel=Wizytówka CardBook…
......
......@@ -104,9 +104,9 @@
<!ENTITY deleteTypeAccesskey "U">
<!ENTITY resetTypeLabel "Przywróć domyślne">
<!ENTITY resetTypeAccesskey "P">
<!ENTITY preferenceGroupboxLabel "Pole PREF">
<!ENTITY preferenceValueLabel "Etykieta pola wartości PREF (tylko vCard 4.0)">
<!ENTITY preferenceValueAccesskey "w">
<!ENTITY preferenceGroupboxLabel "Oznaczenie Podstawowy">
<!ENTITY preferenceValueLabel "Etykieta oznaczenia Podstawowy (tylko vCard 4.0)">
<!ENTITY preferenceValueAccesskey "o">
<!ENTITY IMPPGroupboxWarn "Te ustawienia pozwalają na korzystanie z komunikatorów internetowych przy pomocy odpowiedniego protokołu.">
<!ENTITY IMPPGroupboxLabel "Komunikatory internetowe">
......@@ -159,9 +159,9 @@
<!ENTITY decodeReportAccesskey "U">
<!ENTITY miscEmailGroupboxLabel "Wysyłanie e-maili">
<!ENTITY preferEmailPrefLabel "Preferuj adresy e-mail oznaczone jako PREFerowane">
<!ENTITY preferEmailPrefLabel "Używaj adresów e-mail oznaczonych jako Podstawowy">
<!ENTITY preferEmailPrefAccesskey "P">
<!ENTITY preferEmailPrefWarn "Jeśli żaden z adresów nie jest oznaczony jako PREFerowany, wiadomość zostanie wysłana na wszystkie adresy z wizytówki.">
<!ENTITY preferEmailPrefWarn "Jeśli żaden z adresów nie jest oznaczony jako Podstawowy, wiadomość zostanie wysłana na wszystkie adresy z wizytówki.">
<!ENTITY warnEmptyEmailsLabel "Ostrzegaj, jeśli próbuję wysłać e-mail do wizytówki bez adresu e-mail">
<!ENTITY warnEmptyEmailsAccesskey "O">
<!ENTITY attachvCardWarn "Aby automatycznie dodawać vCard do Twoich e-maili, wybierz vCard dla każdego konta pocztowego. Gdy ta opcja jest włączona, CardBook załączy wybrany vCard do każdego e-maila wychodzącego z tego konta.">
......
......@@ -11,9 +11,8 @@
border: 0px !important;
}
/* for Linux Mint otherwise gmail is not entirely seen in mail edition */
.cardbookBackgroundColorClass textbox {
-moz-appearance: none !important;
border: 1px solid ThreeDShadow !important;
min-height:16px !important;
}
.cardbookBackgroundColorClass textbox[readonly="true"] {
......
This diff is collapsed.
......@@ -41,7 +41,6 @@ pref("extensions.cardbook.fnFormula", "({{1}} |)({{2}} |)({{3}} |)({{4}} |)({{5}
pref("extensions.cardbook.addressBooksNameList", "allAddressBooks");
pref("extensions.cardbook.calendarsNameList", "");
pref("extensions.cardbook.searchInNote", true);
pref("extensions.cardbook.dateFormatMenu", "YYYY-MM-DD");
pref("extensions.cardbook.numberOfDaysForSearching", "30");
pref("extensions.cardbook.showPopupOnStartup", false);
pref("extensions.cardbook.showPeriodicPopup", false);
......
This diff is collapsed.
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var EXPORTED_SYMBOLS = ["LDAPAbCardFormatter"];
Components.utils.import("resource:///modules/mailServices.js");
Components.utils.import("resource://gre/modules/Services.jsm");
var parser = MailServices.headerParser;
var LDAPAbCardFormatter = {
nameFormatFromBook: function nameFormatFromBook(aBook) {
return this._getStringValueFromBook("autoComplete.nameFormat",
aBook,
"[cn]");
},
addressFormatFromBook: function addressFormatFromBook(aBook) {
return this._getStringValueFromBook("autoComplete.addressFormat",
aBook,
"{mail}");
},
commentFormatFromBook: function commentFormatFromBook(aBook) {
return this._getStringValueFromBook("autoComplete.commentFormat",
aBook,
"[o]");
},
requiredPropertiesFromBook: function requiredAttributesFromBook(aBook) {
var nameFormat = this.nameFormatFromBook(aBook);
var addressFormat = this.addressFormatFromBook(aBook);
var commentFormat = this.commentFormatFromBook(aBook);
var attrNames = this._LDAPAttrNamesFromFormat(nameFormat)
.concat(this._LDAPAttrNamesFromFormat(addressFormat))
.concat(this._LDAPAttrNamesFromFormat(commentFormat));
var properties = [];
attrNames.forEach(function(aAttrName) {
let property = this._propertyNameFromLDAPAttrName(aAttrName, aBook);
if (property) {
properties.push(property);
}
}, this);
return properties;
},
_LDAPAttrNamesFromFormat: function LDAPAttrNamesFromFormat(aFormat) {
var placeHolders = aFormat.match(/\[[^\]]+\]|\{[^\}]+\}/g);
var attributes = Array.map(placeHolders, function(aPlaceHolder) {
return aPlaceHolder.slice(1, -1);
});
return attributes;
},
_propertyNameFromLDAPAttrName: function propertyNameFromLDAPAttrName(aAttrName, aBook) {
var base = "ldap_2.servers.default.attrmap.";
var foundChildren = {};
var possibleChildren = [];
var actualChildren = [];
Services.prefs.getChildList(base, {}).sort().forEach(function(aPrefstring) {
var name = aPrefstring.replace(base, '');
if (name.charAt(0) == '.') {
name = name.substring(1);
}
if (name.indexOf('.') < 0) {
if (!(aPrefstring in foundChildren)) {
actualChildren.push(aPrefstring);
foundChildren[aPrefstring] = true;
}
} else {
let possibleChildKey = base + name.split('.')[0];
if (possibleChildKey && !(possibleChildKey in foundChildren)) {
possibleChildren.push(possibleChildKey);
foundChildren[possibleChildKey] = true;
}
}
});
var keys = possibleChildren.concat(actualChildren).sort();
for (let i = 0, maxi = keys.length; i < maxi; i++) {
let key = keys[i];
let property = key.replace(base, "");
let ldapAttrNames = this._getStringValueFromBook("attrmap." + property, aBook).trim().split(/\s*,\s*/);
if (ldapAttrNames.indexOf(aAttrName) > -1) {
return property;
}
}
return null;
},
valueFromCard: function labelFromCard(aCard, aBook, aDefaultValue) {
try {
var nameFormat = this.nameFormatFromBook(aBook);
var name = this._resolveFormat(nameFormat, aCard, aBook);
var addressFormat = this.addressFormatFromBook(aBook);
var address = this._resolveFormat(addressFormat, aCard, aBook);
if (address) {
return parser.makeMailboxObject(name, address).toString();
}
} catch(error) {
Components.utils.reportError(error);
}
return aDefaultValue;
},
commentFromCard: function commentFromCard(aCard, aBook, aDefaultValue) {
try {
var format = this.commentFormatFromBook(aBook);
return this._resolveFormat(format, aCard, aBook, aDefaultValue);
} catch(error) {
Components.utils.reportError(error);
}
return aDefaultValue;
},
_resolveFormat: function resolveFormat(aFormat, aCard, aBook, aDefaultValue) {
try {
var formatted = aFormat;
formatted = formatted.replace(/\{mail\}/g, aCard.primaryEmail);
var placeHolders = aFormat.match(/\[[^\]]+\]/g);
if (placeHolders) {
Array.forEach(placeHolders, function(aPlaceHolder) {
var matcher = new RegExp(aPlaceHolder.replace(/([\[\]])/g, '\\$1'));
var attrName = aPlaceHolder.slice(1, -1);