Commit 0375ea3c authored by CardBook's avatar CardBook

version 35.1

parent db980db3
......@@ -128,7 +128,7 @@ if ("undefined" == typeof(cardbookAutocomplete)) {
var color = cardbookRepository.cardbookCategoryColors[category];
var oppositeColor = cardbookRepository.getTextColorFromBackgroundColor(color);
for (type of cardbookRepository.getABIconType("ALL")) {
var myStyle = type + "_color_category_" + category.replace(/ /g, "_");
var myStyle = type + "_color_category_" + cardbookUtils.formatCategoryForCss(category);
if (Services.vc.compare(Services.appinfo.version, "60") >= 0) {
if (useColor == "text" && autocompleteWithColor) {
cardbookAutocomplete.createCssMsgAccountRules60(styleSheet, myStyle, color, OSName, "color");
......@@ -142,7 +142,7 @@ if ("undefined" == typeof(cardbookAutocomplete)) {
cardbookAutocomplete.createCssMsgAccountSelectedRules60(styleSheet, myStyle, "HighlightText", OSName, "color");
}
} else {
var myFocusedStyle = type + "_color_category_" + category.replace(/ /g, "_") + ", selected";
var myFocusedStyle = type + "_color_category_" + cardbookUtils.formatCategoryForCss(category) + ", selected";
if (useColor == "text" && autocompleteWithColor) {
cardbookAutocomplete.createCssMsgAccountRules(styleSheet, myStyle, color, OSName, "-moz-tree-cell-text", "color");
cardbookAutocomplete.createCssMsgAccountRules(styleSheet, myStyle, oppositeColor, OSName, "-moz-tree-cell", "background-color");
......
......@@ -381,12 +381,16 @@ if ("undefined" == typeof(wdw_cardEdition)) {
}
}
var useColor = cardbookPreferences.getStringPref("extensions.cardbook.useColor");
for (let cat of categoryList) {
let item = document.createElement("menuitem");
item.setAttribute("class", "menuitem-iconic cardbook-item");
item.setAttribute("class", "menuitem-iconic cardbook-item cardbookCategoryMenuClass");
item.setAttribute("label", cat);
item.setAttribute("value", cat);
item.setAttribute("type", "checkbox");
if (cat in cardbookRepository.cardbookCategoryColors && useColor != "nothing") {
item.setAttribute("colorType", 'category_' + cardbookUtils.formatCategoryForCss(cat));
}
if (aCategoryChecked.includes(cat)) {
item.setAttribute("checked", "true");
}
......@@ -1173,6 +1177,20 @@ if ("undefined" == typeof(wdw_cardEdition)) {
}
},
loadCssRules: function () {
for (var prop in document.styleSheets) {
var styleSheet = document.styleSheets[prop];
if (styleSheet.href == "chrome://cardbook/skin/cardbookEmpty.css") {
cardbookRepository.deleteCssAllRules(styleSheet);
for (category in cardbookRepository.cardbookCategoryColors) {
var color = cardbookRepository.cardbookCategoryColors[category];
cardbookRepository.createCssCategoryRules(styleSheet, 'category_' + cardbookUtils.formatCategoryForCss(category), color);
}
cardbookRepository.reloadCss(styleSheet.href);
}
}
},
load: function () {
cardBookEditionPrefObserver.register();
......@@ -1186,6 +1204,7 @@ if ("undefined" == typeof(wdw_cardEdition)) {
// the dirPrefId may be different from the one loaded in case of a complex search
wdw_cardEdition.workingCard.dirPrefId = document.getElementById('addressbookMenulist').selectedItem.value;
wdw_cardEdition.loadCssRules();
wdw_cardEdition.chooseCalendarPanel();
wdw_cardEdition.loadDefaultVersion();
wdw_cardEdition.showCorrectTabs();
......@@ -1300,7 +1319,11 @@ if ("undefined" == typeof(wdw_cardEdition)) {
aCard.prefixname = document.getElementById('prefixnameTextBox').value.trim();
aCard.nickname = document.getElementById('nicknameTextBox').value.trim();
aCard.bday = document.getElementById('bdayTextBox').value.trim();
aCard.gender = document.getElementById('genderMenulist').selectedItem.value.trim();
if (document.getElementById('genderMenulist') && document.getElementById('genderMenulist').selectedItem && document.getElementById('genderMenulist').selectedItem.value) {
aCard.gender = document.getElementById('genderMenulist').selectedItem.value.trim();
} else {
aCard.gender = "";
}
aCard.birthplace = document.getElementById('birthplaceTextBox').value.trim();
aCard.anniversary = document.getElementById('anniversaryTextBox').value.trim();
aCard.deathdate = document.getElementById('deathdateTextBox').value.trim();
......@@ -1316,8 +1339,8 @@ if ("undefined" == typeof(wdw_cardEdition)) {
aCard.photo.extension = document.getElementById('photoExtensionTextBox').value;
var typesList = [ 'email', 'tel', 'url', 'adr' ];
for (var i in typesList) {
aCard[typesList[i]] = cardbookTypes.getAllTypes(typesList[i], true);
for (var type of typesList) {
aCard[type] = cardbookTypes.getAllTypes(type, true);
}
aCard.impp = cardbookTypes.getIMPPTypes();
......
......@@ -2,6 +2,7 @@
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://cardbook/skin/cardbookMain.css" type="text/css"?>
<?xml-stylesheet href="chrome://cardbook/skin/cardbookAddressBooks.css" type="text/css"?>
<?xml-stylesheet href="chrome://cardbook/skin/cardbookEmpty.css" type="text/css"?>
<!-- for the icons of the CardBook menus -->
<?xml-stylesheet href="chrome://cardbook-os/skin/cardbookMenuIcons.css" type="text/css"?>
<!-- for the small-button class -->
......
......@@ -265,7 +265,7 @@ if ("undefined" == typeof(cardbookActions)) {
}
},
endAction: function (aActionId) {
endAction: function (aActionId, aForceRefresh) {
if (cardbookRepository.currentAction[aActionId]) {
var myAction = cardbookRepository.currentAction[aActionId];
if (myAction.files.length > 0) {
......@@ -279,6 +279,8 @@ if ("undefined" == typeof(cardbookActions)) {
} else {
cardbookUtils.notifyObservers(myAction.actionCode);
}
} else if (aForceRefresh == true) {
cardbookUtils.notifyObservers(myAction.actionCode, "force::" + myAction.refresh);
}
}
}
......
......@@ -38,7 +38,7 @@ if ("undefined" == typeof(cardbookDirTree)) {
getCellProperties: function(idx, column) {
if (column.id == "accountColor" && this.visibleData[idx][6] != "SEARCH") {
if (this.visibleData[idx][6] == "CAT") {
return "color_category_" + this.visibleData[idx][0].replace(/ /g, "_");
return "color_category_" + cardbookUtils.formatCategoryForCss(this.visibleData[idx][0]);
} else {
return "color_" + this.visibleData[idx][4];
}
......
......@@ -37,14 +37,20 @@ if ("undefined" == typeof(cardbookElementTools)) {
var aParent = document.getElementById('categories' + panesView + 'Row');
for (category of aCategories) {
var aBox = document.createElement('box');
aParent.appendChild(aBox);
aBox.setAttribute('flex', '1');
var aLabel = document.createElement('label');
aParent.appendChild(aLabel);
aBox.appendChild(aLabel);
aLabel.setAttribute('id', category + 'Label');
aLabel.setAttribute('value', category);
if (category in cardbookRepository.cardbookCategoryColors && useColor != "nothing") {
aLabel.setAttribute('class', 'tagvalue cardbookCategoryClass');
}
aLabel.setAttribute('type', 'category_' + category.replace(/ /g, "_"));
aLabel.setAttribute('type', 'category_' + cardbookUtils.formatCategoryForCss(category));
var aSpacer = document.createElement('spacer');
aBox.appendChild(aSpacer);
aSpacer.setAttribute('flex', '1');
}
},
......
......@@ -1723,8 +1723,12 @@ var cardbookRepository = {
var oppositeColor = cardbookRepository.getTextColorFromBackgroundColor(aColor);
var ruleString1 = ".cardbookCategoryClass[type=\"" + aDirPrefId + "\"] {background-color: " + aColor + ";}";
var ruleIndex1 = aStyleSheet.insertRule(ruleString1, aStyleSheet.cssRules.length);
var ruleString2 = ".cardbookCategoryClass[type=\"" + aDirPrefId + "\"] {color: " + oppositeColor + ";}";
var ruleString2 = ".cardbookCategoryClass[type=\"" + aDirPrefId + "\"] {border-color: " + aColor + ";}";
var ruleIndex2 = aStyleSheet.insertRule(ruleString2, aStyleSheet.cssRules.length);
var ruleString3 = ".cardbookCategoryClass[type=\"" + aDirPrefId + "\"] {color: " + oppositeColor + ";}";
var ruleIndex3 = aStyleSheet.insertRule(ruleString3, aStyleSheet.cssRules.length);
var ruleString4 = ".cardbookCategoryMenuClass[colorType=\"" + aDirPrefId + "\"] {color: " + aColor + ";}";
var ruleIndex4 = aStyleSheet.insertRule(ruleString4, aStyleSheet.cssRules.length);
},
createCssCardRules: function (aStyleSheet, aDirPrefId, aColor) {
......
......@@ -77,7 +77,7 @@ if ("undefined" == typeof(cardbookTypes)) {
}
}
}
return {result: aSourceArray[0], isAPg: true, isAlreadyThere: false};
return {result: aSourceArray[0], isAPg: true, isAlreadyThere: true};
}
},
......
......@@ -57,6 +57,10 @@ if ("undefined" == typeof(cardbookUtils)) {
return cardbookUtils.sortArrayByString(aCategoryList,1).join("\n");
},
formatCategoryForCss: function (aCategory) {
return aCategory.replace(/[!\"#$%&'\(\)\*\+,\.\/:;<=>\?\@\[\\\]\^`\{\|\}~ ]/g, '_');
},
formatTypesForDisplay: function (aTypeList) {
aTypeList = cardbookUtils.cleanArray(aTypeList);
return cardbookUtils.sortArrayByString(aTypeList,1).join(" ");
......@@ -2964,16 +2968,19 @@ if ("undefined" == typeof(cardbookUtils)) {
var listOfDirPrefId = cardbookUtils.getSelectedCardsDirPrefId();
var selectedUid = cardbookUtils.getSelectedCardsId();
var useColor = cardbookPreferences.getStringPref("extensions.cardbook.useColor");
if (selectedUid.length > 0 && listOfDirPrefId.length == 1) {
var myDirPrefId = listOfDirPrefId[0];
var myCategoryList = cardbookUtils.cleanCategories(cardbookRepository.cardbookAccountsCategories[myDirPrefId]);
for (var i = 0; i < myCategoryList.length; i++) {
var myCategory = myCategoryList[i];
var myMenuItem = document.createElement("menuitem");
myMenuItem.setAttribute("id", myCategory);
myMenuItem.setAttribute("type", "checkbox");
myMenuItem.setAttribute("class", "menuitem-iconic");
myMenuItem.addEventListener("command", function(aEvent) {
for (category of myCategoryList) {
var item = document.createElement("menuitem");
item.setAttribute("id", category);
item.setAttribute("type", "checkbox");
item.setAttribute("class", "menuitem-iconic cardbookCategoryMenuClass");
if (category in cardbookRepository.cardbookCategoryColors && useColor != "nothing") {
item.setAttribute("colorType", 'category_' + cardbookUtils.formatCategoryForCss(category));
}
item.addEventListener("command", function(aEvent) {
if (this.getAttribute("checked") == "true") {
wdw_cardbook.addCategoryToSelectedCards(this.id, false);
} else {
......@@ -2981,9 +2988,9 @@ if ("undefined" == typeof(cardbookUtils)) {
}
aEvent.stopPropagation();
}, false);
myMenuItem.setAttribute("label", myCategory);
myMenuItem.setAttribute("checked", "false");
myPopup.appendChild(myMenuItem);
item.setAttribute("label", category);
item.setAttribute("checked", "false");
myPopup.appendChild(item);
}
if (selectedUid.length == 1) {
var myCard = cardbookRepository.cardbookCards[selectedUid[0]];
......
......@@ -351,10 +351,10 @@
<caption label="&typesGroupboxLabel;"/>
<hbox align="center">
<radiogroup id="typesCategoryRadiogroup" orient="horizontal" onselect="wdw_cardbookConfiguration.sortTrees(null, 'typesTree');">
<radio value="adr" label="&typesCategoryAdrLabel;" accesskey="&typesCategoryAdrAccesskey;" selected="true"/>
<radio value="email" label="&typesCategoryEmailLabel;" accesskey="&typesCategoryEmailAccesskey;"/>
<radio value="impp" label="&typesCategoryImppLabel;" accesskey="&typesCategoryImppAccesskey;"/>
<radio value="email" label="&typesCategoryEmailLabel;" accesskey="&typesCategoryEmailAccesskey;" selected="true"/>
<radio value="tel" label="&typesCategoryTelLabel;" accesskey="&typesCategoryTelAccesskey;"/>
<radio value="adr" label="&typesCategoryAdrLabel;" accesskey="&typesCategoryAdrAccesskey;"/>
<radio value="impp" label="&typesCategoryImppLabel;" accesskey="&typesCategoryImppAccesskey;"/>
<radio value="url" label="&typesCategoryUrlLabel;" accesskey="&typesCategoryUrlAccesskey;"/>
</radiogroup>
</hbox>
......
......@@ -3,6 +3,7 @@
<?xml-stylesheet href="chrome://cardbook/skin/cardbookMain.css" type="text/css"?>
<?xml-stylesheet href="chrome://cardbook/skin/cardbookCheckboxes.css" type="text/css"?>
<?xml-stylesheet href="chrome://cardbook/skin/cardbookTreeChildrens.css" type="text/css"?>
<?xml-stylesheet href="chrome://cardbook/skin/cardbookEmpty.css" type="text/css"?>
<!-- for the preference star -->
<?xml-stylesheet href="chrome://cardbook-pref/skin/cardbookPrefStar.css" type="text/css"?>
<!-- for MailList icon -->
......
......@@ -3,6 +3,7 @@
<?xml-stylesheet href="chrome://cardbook/skin/cardbookMain.css" type="text/css"?>
<?xml-stylesheet href="chrome://cardbook/skin/cardbookCheckboxes.css" type="text/css"?>
<?xml-stylesheet href="chrome://cardbook/skin/cardbookTreeChildrens.css" type="text/css"?>
<?xml-stylesheet href="chrome://cardbook/skin/cardbookEmpty.css" type="text/css"?>
<!-- for the preference star -->
<?xml-stylesheet href="chrome://cardbook-pref/skin/cardbookPrefStar.css" type="text/css"?>
<!-- for MailList icon -->
......@@ -200,7 +201,7 @@
<caption label="&categoriesGroupboxLabel;" class="header"/>
<hbox flex="1">
<image id="dummyCatclassicalPrefBox" class="cardbookNoPrefStarClass"/>
<vbox id="categoriesclassicalRow"/>
<vbox id="categoriesclassicalRow" flex="1"/>
</hbox>
</groupbox>
</hbox>
......
......@@ -102,7 +102,7 @@ if ("undefined" == typeof(ovl_synchro)) {
prefs.setCharPref("accountShown", "");
prefs.setCharPref("uncategorizedCards", "");
prefs.setCharPref("categoryColors", "");
prefs.setCharPref("addonVersion", "34.9");
prefs.setCharPref("addonVersion", "35.1");
prefs.setCharPref("defaultRegion", "NOTSET");
prefs.setBoolPref("localDataEncryption", false);
......
......@@ -3,6 +3,7 @@
<?xml-stylesheet href="chrome://cardbook/skin/cardbookMain.css" type="text/css"?>
<?xml-stylesheet href="chrome://cardbook/skin/cardbookCheckboxes.css" type="text/css"?>
<?xml-stylesheet href="chrome://cardbook/skin/cardbookTreeChildrens.css" type="text/css"?>
<?xml-stylesheet href="chrome://cardbook/skin/cardbookEmpty.css" type="text/css"?>
<!-- for the mail-toolbox class -->
<!-- for the toolbarbutton-icon-fill-attention var -->
<?xml-stylesheet href="chrome://messenger/skin/messenger.css" type="text/css"?>
......
......@@ -202,13 +202,13 @@ if ("undefined" == typeof(wdw_cardbook)) {
myStyle = "color_" + aCardList[row].dirPrefId;
for (var category in cardbookRepository.cardbookCategoryColors) {
if (aCardList[row].categories.includes(category)) {
myStyle = "color_category_" + category.replace(/ /g, "_");
myStyle = "color_category_" + cardbookUtils.formatCategoryForCss(category);
break;
}
}
} else {
if (cardbookRepository.cardbookCategoryColors[cardbookRepository.cardbookUncategorizedCards]) {
myStyle = "color_category_" + cardbookRepository.cardbookUncategorizedCards.replace(/ /g, "_");
myStyle = "color_category_" + cardbookUtils.formatCategoryForCss(cardbookRepository.cardbookUncategorizedCards);
} else {
myStyle = "color_" + aCardList[row].dirPrefId;
}
......@@ -2105,7 +2105,7 @@ if ("undefined" == typeof(wdw_cardbook)) {
loadCssRules: function () {
for (var prop in document.styleSheets) {
var styleSheet = document.styleSheets[prop];
if (styleSheet.href == "chrome://cardbook/skin/cardbookTreeChildrens.css") {
if (styleSheet.href == "chrome://cardbook/skin/cardbookEmpty.css") {
cardbookRepository.deleteCssAllRules(styleSheet);
for (var i = 0; i < cardbookRepository.cardbookAccounts.length; i++) {
if (cardbookRepository.cardbookAccounts[i][1]) {
......@@ -2119,9 +2119,10 @@ if ("undefined" == typeof(wdw_cardbook)) {
}
for (category in cardbookRepository.cardbookCategoryColors) {
var color = cardbookRepository.cardbookCategoryColors[category];
cardbookRepository.createCssAccountRules(styleSheet, 'category_' + category.replace(/ /g, "_"), color);
cardbookRepository.createCssCategoryRules(styleSheet, 'category_' + category.replace(/ /g, "_"), color);
cardbookRepository.createCssCardRules(styleSheet, 'category_' + category.replace(/ /g, "_"), color);
var categoryCleanName = cardbookUtils.formatCategoryForCss(category);
cardbookRepository.createCssAccountRules(styleSheet, 'category_' + categoryCleanName, color);
cardbookRepository.createCssCategoryRules(styleSheet, 'category_' + categoryCleanName, color);
cardbookRepository.createCssCardRules(styleSheet, 'category_' + categoryCleanName, color);
}
cardbookRepository.reloadCss(styleSheet.href);
}
......@@ -2210,10 +2211,10 @@ if ("undefined" == typeof(wdw_cardbook)) {
return;
}
var myTopic = "categoryRenamed";
var myNewCategoryName = myArgs.type;
var myActionId = cardbookActions.startAction(myTopic, [aCategoryName], aDirPrefId+"::"+myNewCategoryName);
if (nameChanged) {
var myTopic = "categoryRenamed";
var myNewCategoryName = myArgs.type;
var myActionId = cardbookActions.startAction(myTopic, [aCategoryName], aDirPrefId+"::"+myNewCategoryName);
if (uncategorized) {
cardbookPreferences.setStringPref("extensions.cardbook.uncategorizedCards", myNewCategoryName);
cardbookRepository.renameUncategorized(aCategoryName, myNewCategoryName);
......@@ -2234,7 +2235,6 @@ if ("undefined" == typeof(wdw_cardbook)) {
cardbookRepository.renameCategoryFromCard(myOutCard, aCategoryName, myNewCategoryName);
cardbookRepository.saveCard(myCard, myOutCard, myActionId, false);
}
cardbookActions.endAction(myActionId);
}
if (aCategoryName in cardbookRepository.cardbookCategoryColors) {
cardbookRepository.cardbookCategoryColors[myNewCategoryName] = cardbookRepository.cardbookCategoryColors[aCategoryName];
......@@ -2255,6 +2255,7 @@ if ("undefined" == typeof(wdw_cardbook)) {
cardbookRepository.saveCategoryColors();
wdw_cardbook.loadCssRules();
}
cardbookActions.endAction(myActionId, true);
};
var myArgs = {type: aCategoryName, context: "EditCat", typeAction: "", validationList: myValidationList,
color: cardbookRepository.cardbookCategoryColors[aCategoryName], oldColor: cardbookRepository.cardbookCategoryColors[aCategoryName],
......
......@@ -447,7 +447,7 @@ toLowerCase=Převést na malá
wdw_cardbookRenameFieldEditTypeTitle=Přejmenovat typ
wdw_cardbookRenameFieldAddTypeTitle=Přidat nový typ
wdw_cardbookRenameFieldOrgTitle=Editor organizace
wdw_cardbookRenameFieldEditCatTitle=Editor kategorií
wdw_cardbookRenameFieldEditCatTitle=Upravit kategorii
wdw_cardbookRenameFieldAddCatTitle=Přidat novou kategorii
EditTypeLabel=Typ
AddTypeLabel=Typ
......
<!ENTITY categoriesListboxLabel "Existující kategorie">
<!ENTITY categoryMenuLabel "Nová kategorie">
<!ENTITY categoryMenuLabel "Nová kategorie">
......@@ -447,7 +447,7 @@ toLowerCase=Sæt i små bogstaver
wdw_cardbookRenameFieldEditTypeTitle=Omdøb en type
wdw_cardbookRenameFieldAddTypeTitle=Tilføj en ny type
wdw_cardbookRenameFieldOrgTitle=Organisationsredigering
wdw_cardbookRenameFieldEditCatTitle=Kategoriredigering
wdw_cardbookRenameFieldEditCatTitle=Rediger kategori
wdw_cardbookRenameFieldAddCatTitle=Tilføj en ny kategori
EditTypeLabel=Type
AddTypeLabel=Type
......
<!ENTITY categoriesListboxLabel "Eksisterende kategorier">
<!ENTITY categoryMenuLabel "Ny kategori">
<!ENTITY categoryMenuLabel "Ny kategori">
<!ENTITY categoriesListboxLabel "Bestehende Kategorien">
<!ENTITY categoryMenuLabel "Neue Kategorie">
<!ENTITY categoryMenuLabel "Neue Kategorie">
......@@ -447,7 +447,7 @@ toLowerCase=Μετατροπή σε πεζά
wdw_cardbookRenameFieldEditTypeTitle=Μετονομασία ενός τύπου
wdw_cardbookRenameFieldAddTypeTitle=Προσθήκη νέας τύπο
wdw_cardbookRenameFieldOrgTitle=Συντάκτης οργανισμός
wdw_cardbookRenameFieldEditCatTitle=Συντάκτης κατηγοριών
wdw_cardbookRenameFieldEditCatTitle=Επεξεργασία κατηγορίας
wdw_cardbookRenameFieldAddCatTitle=Προσθέστε μια νέα κατηγορία
EditTypeLabel=Τύπος
AddTypeLabel=Τύπος
......
<!ENTITY categoriesListboxLabel "Υφιστάμενες κατηγορίες">
<!ENTITY categoryMenuLabel "Νέα κατηγορία">
<!ENTITY categoryMenuLabel "Νέα κατηγορία">
......@@ -444,11 +444,11 @@ missingColumnsConfirmMessage=The number of columns selected is different to the
toUpperCase=Convert to uppercase
toLowerCase=Convert to lowercase
wdw_cardbookRenameFieldEditTypeTitle=Rename a type
wdw_cardbookRenameFieldAddTypeTitle=Add a new type
wdw_cardbookRenameFieldOrgTitle=Organization editor
wdw_cardbookRenameFieldEditCatTitle=Rename a category
wdw_cardbookRenameFieldAddCatTitle=Add a new category
wdw_cardbookRenameFieldEditTypeTitle=Rename Type
wdw_cardbookRenameFieldAddTypeTitle=New Type
wdw_cardbookRenameFieldOrgTitle=Organization Editor
wdw_cardbookRenameFieldEditCatTitle=Edit Category
wdw_cardbookRenameFieldAddCatTitle=New Category
EditTypeLabel=Type
AddTypeLabel=Type
OrgLabel=Type
......
<!ENTITY categoriesListboxLabel "Existing categories">
<!ENTITY categoryMenuLabel "New category">
<!ENTITY categoryMenuLabel "New Category…">
<!ENTITY categoriesListboxLabel "Categorías existentes">
<!ENTITY categoryMenuLabel "Nueva categoría">
<!ENTITY categoryMenuLabel "Nueva categoría">
......@@ -447,7 +447,7 @@ toLowerCase=Mettre en minuscule
wdw_cardbookRenameFieldEditTypeTitle=Renommer un type
wdw_cardbookRenameFieldAddTypeTitle=Ajouter un nouveau type
wdw_cardbookRenameFieldOrgTitle=Modification des informations professionnelles
wdw_cardbookRenameFieldEditCatTitle=Renommer une catégorie
wdw_cardbookRenameFieldEditCatTitle=Modifier une catégorie
wdw_cardbookRenameFieldAddCatTitle=Ajouter une nouvelle catégorie
EditTypeLabel=Type
AddTypeLabel=Type
......
<!ENTITY categoriesListboxLabel "Catégories existantes">
<!ENTITY categoryMenuLabel "Nouvelle catégorie">
<!ENTITY categoryMenuLabel "Nouvelle catégorie">
......@@ -447,7 +447,7 @@ toLowerCase=Pretvoriti u mala slova
wdw_cardbookRenameFieldEditTypeTitle=Preimenuj vrsta
wdw_cardbookRenameFieldAddTypeTitle=Dodaj novu tipa
wdw_cardbookRenameFieldOrgTitle=Uređivač organizacije
wdw_cardbookRenameFieldEditCatTitle=Uređivač kategorija
wdw_cardbookRenameFieldEditCatTitle=Uredi kategoriju
wdw_cardbookRenameFieldAddCatTitle=Dodajte novu kategoriju
EditTypeLabel=Tip
AddTypeLabel=Tip
......
<!ENTITY categoriesListboxLabel "Postojeće kategorije">
<!ENTITY categoryMenuLabel "Nova kategorija">
<!ENTITY categoryMenuLabel "Nova kategorija">
......@@ -447,7 +447,7 @@ toLowerCase=Kisbetűs átalakítása
wdw_cardbookRenameFieldEditTypeTitle=Típus átnevezése
wdw_cardbookRenameFieldAddTypeTitle=Új típus hozzáadása
wdw_cardbookRenameFieldOrgTitle=Szervezet szerkesztő
wdw_cardbookRenameFieldEditCatTitle=Kategória átnevezése
wdw_cardbookRenameFieldEditCatTitle=Kategória szerkesztése
wdw_cardbookRenameFieldAddCatTitle=Új kategória hozzáadása
EditTypeLabel=Típus
AddTypeLabel=Típus
......
<!ENTITY categoriesListboxLabel "Jelenlegi kategóriák">
<!ENTITY categoryMenuLabel "Új kategória">
<!ENTITY categoryMenuLabel "Új kategória">
......@@ -447,7 +447,7 @@ toLowerCase=Konversikan ke huruf kecil
wdw_cardbookRenameFieldEditTypeTitle=Ganti nama Jenis
wdw_cardbookRenameFieldAddTypeTitle=Tambah tipe baru
wdw_cardbookRenameFieldOrgTitle=Editor Organisasi
wdw_cardbookRenameFieldEditCatTitle=Editor Kategori
wdw_cardbookRenameFieldEditCatTitle=Editor kategori
wdw_cardbookRenameFieldAddCatTitle=Tambahkan kategori baru
EditTypeLabel=Jenis
AddTypeLabel=Jenis
......
......@@ -132,7 +132,7 @@
<!ENTITY exportCardToDirLabel "Ekspor ke direktori">
<!ENTITY importCardFromFileLabel "mpor kontak dari sebuah file">
<!ENTITY importCardFromDirLabel "Impor kontak dari sebuah direktori">
<!ENTITY editCatFromAccountsOrCatsLabel "Edit Kategori">
<!ENTITY editCatFromAccountsOrCatsLabel "Edit kategori">
<!ENTITY convertCatFromAccountsOrCatsLabel "Ubah kategori ke daftar">
<!ENTITY removeCatFromAccountsOrCatsLabel "Hapus kategori">
<!ENTITY findDuplicatesFromAccountsOrCatsLabel "Temukan duplikat kontak di buku alamat saat ini">
......
<!ENTITY categoriesListboxLabel "Kategori yang ada">
<!ENTITY categoryMenuLabel "Kategori baru">
<!ENTITY categoryMenuLabel "Kategori baru">
<!ENTITY categoriesListboxLabel "Categorie esistenti">
<!ENTITY categoryMenuLabel "Nuova categoria">
<!ENTITY categoryMenuLabel "Nuova categoria">
......@@ -447,7 +447,7 @@ toLowerCase=小文字に変換
wdw_cardbookRenameFieldEditTypeTitle=タイプの名前を変更
wdw_cardbookRenameFieldAddTypeTitle=新しいタイプを追加
wdw_cardbookRenameFieldOrgTitle=組織エディタ
wdw_cardbookRenameFieldEditCatTitle=カテゴリー名を変更
wdw_cardbookRenameFieldEditCatTitle=カテゴリーの編集
wdw_cardbookRenameFieldAddCatTitle=新しいカテゴリーを追加する
EditTypeLabel=タイプ
AddTypeLabel=タイプ
......
<!ENTITY categoriesListboxLabel "既存のカテゴリー">
<!ENTITY categoryMenuLabel "新たなカテゴリー">
<!ENTITY categoryMenuLabel "新たなカテゴリー">
<!ENTITY categoriesListboxLabel "기존 카테고리">
<!ENTITY categoryMenuLabel "새 카테고리">
<!ENTITY categoryMenuLabel "새 카테고리">
<!ENTITY categoriesListboxLabel "Esamos kategorijos">
<!ENTITY categoryMenuLabel "Nauja kategorija">
<!ENTITY categoryMenuLabel "Nauja kategorija">
......@@ -447,7 +447,7 @@ toLowerCase=Zet in kleine letters
wdw_cardbookRenameFieldEditTypeTitle=Type hernoemen
wdw_cardbookRenameFieldAddTypeTitle=Nieuw type toevoegen
wdw_cardbookRenameFieldOrgTitle=Organisatie bewerken
wdw_cardbookRenameFieldEditCatTitle=Categorieën bewerken
wdw_cardbookRenameFieldEditCatTitle=Categorie bewerken
wdw_cardbookRenameFieldAddCatTitle=Nieuwe categorie toevoegen
EditTypeLabel=Type
AddTypeLabel=Type
......
<!ENTITY categoriesListboxLabel "Huidige categorieën">
<!ENTITY categoryMenuLabel "Nieuwe categorie">
<!ENTITY categoryMenuLabel "Nieuwe categorie">
<!ENTITY categoriesListboxLabel "Istniejące kategorie">
<!ENTITY categoryMenuLabel "Nowa kategoria">
<!ENTITY categoryMenuLabel "Nowa kategoria">
......@@ -447,7 +447,7 @@ toLowerCase=Colocar em minúsculas
wdw_cardbookRenameFieldEditTypeTitle=Renomear um tipo
wdw_cardbookRenameFieldAddTypeTitle=Adicionar novo tipo
wdw_cardbookRenameFieldOrgTitle=Editor da organização
wdw_cardbookRenameFieldEditCatTitle=Categorias do editor
wdw_cardbookRenameFieldEditCatTitle=Editor de categoria
wdw_cardbookRenameFieldAddCatTitle=Adicionar nova categoria
EditTypeLabel=Tipo
AddTypeLabel=Tipo
......
<!ENTITY categoriesListboxLabel "Categorias existentes">
<!ENTITY categoryMenuLabel "Nova categoria">
<!ENTITY categoryMenuLabel "Nova categoria">
......@@ -448,7 +448,7 @@ wdw_cardbookRenameFieldEditTypeTitle=Renomear tipo
wdw_cardbookRenameFieldAddTypeTitle=Adicionar novo tipo
wdw_cardbookRenameFieldOrgTitle=Editor de Organização
wdw_cardbookRenameFieldEditCatTitle=Editor de Categorias
wdw_cardbookRenameFieldAddCatTitle=Adicionar nova categoria
wdw_cardbookRenameFieldAddCatTitle=Adicionar nova Categoria
EditTypeLabel=Tipo
AddTypeLabel=Tipo
OrgLabel=Tipo
......
<!ENTITY categoriesListboxLabel "Categorias existentes">
<!ENTITY categoryMenuLabel "Nova categoria">
<!ENTITY categoryMenuLabel "Nova categoria">
<!ENTITY categoriesListboxLabel "Categorii existente">
<!ENTITY categoryMenuLabel "Categorie nouă">
<!ENTITY categoryMenuLabel "Categorie nouă">
<!ENTITY categoriesListboxLabel "Существующие категории">
<!ENTITY categoryMenuLabel "Новая категория">
<!ENTITY categoryMenuLabel "Новая категория">
<!ENTITY categoriesListboxLabel "Obstoječe kategorije">
<!ENTITY categoryMenuLabel "Nova kategorija">
<!ENTITY categoryMenuLabel "Nova kategorija">
<!ENTITY categoriesListboxLabel "Tillgängliga Grupper">
<!ENTITY categoryMenuLabel "Ny Grupp">
<!ENTITY categoryMenuLabel "Ny Grupp">
<!ENTITY categoriesListboxLabel "Існуючі категорії">
<!ENTITY categoryMenuLabel "Нова категорія">
<!ENTITY categoryMenuLabel "Нова категорія">
<!ENTITY categoriesListboxLabel "Danh mục hiện có">
<!ENTITY categoryMenuLabel "Danh mục mới">
<!ENTITY categoryMenuLabel "Danh mục mới">
......@@ -447,7 +447,7 @@ toLowerCase=转换为小写
wdw_cardbookRenameFieldEditTypeTitle=重命名类型
wdw_cardbookRenameFieldAddTypeTitle=添加新类型
wdw_cardbookRenameFieldOrgTitle=组织编辑
wdw_cardbookRenameFieldEditCatTitle=重命名类别
wdw_cardbookRenameFieldEditCatTitle=编辑类别
wdw_cardbookRenameFieldAddCatTitle=添加新类别
EditTypeLabel=类型
AddTypeLabel=类型
......
<!ENTITY categoriesListboxLabel "已存在的类别">
<!ENTITY categoryMenuLabel "新建类别">
<!ENTITY categoryMenuLabel "新建类别">
......@@ -386,13 +386,13 @@ cardbookAutocompleteSearch.prototype = {
myStyle = myType + "_color_" + myDirPrefId;
for (var category in cardbookRepository.cardbookCategoryColors) {
if (myCard.categories.includes(category)) {
myStyle = myType + "_color_category_" + category.replace(/ /g, "_");
myStyle = myType + "_color_category_" + cardbookUtils.formatCategoryForCss(category);
break;
}
}
} else {
if (cardbookRepository.cardbookCategoryColors[cardbookRepository.cardbookUncategorizedCards]) {
myStyle = myType + "_color_category_" + cardbookRepository.cardbookUncategorizedCards.replace(/ /g, "_");
myStyle = myType + "_color_category_" + cardbookUtils.formatCategoryForCss(cardbookRepository.cardbookUncategorizedCards);
} else {
myStyle = myType + "_color_" + myDirPrefId;
}
......@@ -472,7 +472,7 @@ cardbookAutocompleteSearch.prototype = {
}
}
if (cardbookRepository.cardbookCategoryColors[myCategory]) {
var myStyle = myType + "_color_category_" + myCategory.replace(/ /g, "_");
var myStyle = myType + "_color_category_" + cardbookUtils.formatCategoryForCss(myCategory);
} else {
var myStyle = myType + "_color_" + myDirPrefId;
}
......
......@@ -6,7 +6,7 @@
<Description about="urn:mozilla:install-manifest">
<em:id>cardbook@vigneau.philippe</em:id>
<em:name>CardBook</em:name>
<em:version>34.9</em:version>
<em:version>35.1</em:version>
<em:type>2</em:type>
<em:description>vCard Address Book</em:description>
<em:creator>Philippe Vigneau</em:creator>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment