diff --git a/README.md b/README.md index 56a71ef..e147b44 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,19 @@ A suite of tools for Fateforge players and Masters. - water.css - data localize - jquery -- w2ui \ No newline at end of file +- w2ui + +## About books ID +All books have an ID following this template : ```ID3xx``` + +- **ID3** is the english type of book with 3 characters (seet table) +- **xx** is the first release order (pdf) inside the book category + +### ID table +Book type | ID +-- | -- +Adventurer | ADV +Grimoire | GRI +Creatures | CRE +Encyclopedia | ENC +Collection of adventures (also know as "module") | LEG \ No newline at end of file diff --git a/img/books/ADV1_BC_EN.png b/img/books/ADV01_BC_EN.png similarity index 100% rename from img/books/ADV1_BC_EN.png rename to img/books/ADV01_BC_EN.png diff --git a/img/books/ADV1_BC_FR.png b/img/books/ADV01_BC_FR.png similarity index 100% rename from img/books/ADV1_BC_FR.png rename to img/books/ADV01_BC_FR.png diff --git a/img/books/ADV1_BC_Textless.png b/img/books/ADV01_BC_Textless.png similarity index 100% rename from img/books/ADV1_BC_Textless.png rename to img/books/ADV01_BC_Textless.png diff --git a/img/books/ADV01_RD_FR.png b/img/books/ADV01_RD_FR.png new file mode 100644 index 0000000..72109bc Binary files /dev/null and b/img/books/ADV01_RD_FR.png differ diff --git a/img/books/ADV1_RD_Textless.png b/img/books/ADV01_RD_Textless.png similarity index 100% rename from img/books/ADV1_RD_Textless.png rename to img/books/ADV01_RD_Textless.png diff --git a/img/books/CRE1_BC_EN.png b/img/books/CRE01_BC_EN.png similarity index 100% rename from img/books/CRE1_BC_EN.png rename to img/books/CRE01_BC_EN.png diff --git a/img/books/CRE1_BC_FR.png b/img/books/CRE01_BC_FR.png similarity index 100% rename from img/books/CRE1_BC_FR.png rename to img/books/CRE01_BC_FR.png diff --git a/img/books/CRE01_RD_EN.png b/img/books/CRE01_RD_EN.png new file mode 100644 index 0000000..c9f99b7 Binary files /dev/null and b/img/books/CRE01_RD_EN.png differ diff --git a/img/books/CRE01_RD_FR.png b/img/books/CRE01_RD_FR.png new file mode 100644 index 0000000..813c2f3 Binary files /dev/null and b/img/books/CRE01_RD_FR.png differ diff --git a/img/books/CRE1_RD_Textless.png b/img/books/CRE01_RD_Textless.png similarity index 99% rename from img/books/CRE1_RD_Textless.png rename to img/books/CRE01_RD_Textless.png index 6190c4c..01f65fb 100644 Binary files a/img/books/CRE1_RD_Textless.png and b/img/books/CRE01_RD_Textless.png differ diff --git a/img/books/CRE2_BC_EN.png b/img/books/CRE02_BC_EN.png similarity index 100% rename from img/books/CRE2_BC_EN.png rename to img/books/CRE02_BC_EN.png diff --git a/img/books/CRE2_BC_FR.png b/img/books/CRE02_BC_FR.png similarity index 100% rename from img/books/CRE2_BC_FR.png rename to img/books/CRE02_BC_FR.png diff --git a/img/books/CRE02_DR_FR.png b/img/books/CRE02_DR_FR.png new file mode 100644 index 0000000..acd6f4a Binary files /dev/null and b/img/books/CRE02_DR_FR.png differ diff --git a/img/books/CRE1_RD_EN.png b/img/books/CRE1_RD_EN.png deleted file mode 100644 index 7f3a42f..0000000 Binary files a/img/books/CRE1_RD_EN.png and /dev/null differ diff --git a/img/books/CRE2_DR_FR.png b/img/books/CRE2_DR_FR.png deleted file mode 100644 index fabab6e..0000000 Binary files a/img/books/CRE2_DR_FR.png and /dev/null differ diff --git a/img/books/DRA-ECR-CITE-FR_large.png b/img/books/DRA-ECR-CITE-FR_large.png new file mode 100644 index 0000000..d16a1af Binary files /dev/null and b/img/books/DRA-ECR-CITE-FR_large.png differ diff --git a/img/books/DRA-ECR-DR_large.png b/img/books/DRA-ECR-DR_large.png new file mode 100644 index 0000000..9b719b7 Binary files /dev/null and b/img/books/DRA-ECR-DR_large.png differ diff --git a/img/books/DRA_ECR-GV_large.png b/img/books/DRA_ECR-GV_large.png new file mode 100644 index 0000000..6187cca Binary files /dev/null and b/img/books/DRA_ECR-GV_large.png differ diff --git a/img/books/ENC1_BC_EN.png b/img/books/ENC01_BC_EN.png similarity index 100% rename from img/books/ENC1_BC_EN.png rename to img/books/ENC01_BC_EN.png diff --git a/img/books/ENC1_BC_FR.png b/img/books/ENC01_BC_FR.png similarity index 100% rename from img/books/ENC1_BC_FR.png rename to img/books/ENC01_BC_FR.png diff --git a/img/books/ENC01_DR_FR.png b/img/books/ENC01_DR_FR.png new file mode 100644 index 0000000..b807486 Binary files /dev/null and b/img/books/ENC01_DR_FR.png differ diff --git a/img/books/ENC02_BC_FR.png b/img/books/ENC02_BC_FR.png new file mode 100644 index 0000000..4b2bdcb Binary files /dev/null and b/img/books/ENC02_BC_FR.png differ diff --git a/img/books/ENC02_RD_FR.png b/img/books/ENC02_RD_FR.png new file mode 100644 index 0000000..629afbe Binary files /dev/null and b/img/books/ENC02_RD_FR.png differ diff --git a/img/books/GRI1_BC_EN.png b/img/books/GRI01_BC_EN.png similarity index 100% rename from img/books/GRI1_BC_EN.png rename to img/books/GRI01_BC_EN.png diff --git a/img/books/GRI1_BC_FR.png b/img/books/GRI01_BC_FR.png similarity index 100% rename from img/books/GRI1_BC_FR.png rename to img/books/GRI01_BC_FR.png diff --git a/img/books/GRI1_BC_Textless.png b/img/books/GRI01_BC_Textless.png similarity index 100% rename from img/books/GRI1_BC_Textless.png rename to img/books/GRI01_BC_Textless.png diff --git a/img/books/GRI01_RD_FR.png b/img/books/GRI01_RD_FR.png new file mode 100644 index 0000000..2fe1773 Binary files /dev/null and b/img/books/GRI01_RD_FR.png differ diff --git a/img/books/GRI1_RD_Textless.png b/img/books/GRI01_RD_Textless.png similarity index 100% rename from img/books/GRI1_RD_Textless.png rename to img/books/GRI01_RD_Textless.png diff --git a/img/books/GRI02_BC_FR.png b/img/books/GRI02_BC_FR.png new file mode 100644 index 0000000..2890e76 Binary files /dev/null and b/img/books/GRI02_BC_FR.png differ diff --git a/img/books/GRI1_RD_FR.png b/img/books/GRI1_RD_FR.png deleted file mode 100644 index e4717a3..0000000 Binary files a/img/books/GRI1_RD_FR.png and /dev/null differ diff --git a/img/books/GUI1_BC_EN.png b/img/books/GUI01_BC_EN.png similarity index 100% rename from img/books/GUI1_BC_EN.png rename to img/books/GUI01_BC_EN.png diff --git a/img/books/GUI1_BC_FR.png b/img/books/GUI01_BC_FR.png similarity index 100% rename from img/books/GUI1_BC_FR.png rename to img/books/GUI01_BC_FR.png diff --git a/img/books/GUI2_BC_FR.png b/img/books/GUI02_BC_FR.png similarity index 100% rename from img/books/GUI2_BC_FR.png rename to img/books/GUI02_BC_FR.png diff --git a/img/books/LEG1_BC_FR.png b/img/books/LEG01_BC_FR.png similarity index 100% rename from img/books/LEG1_BC_FR.png rename to img/books/LEG01_BC_FR.png diff --git a/img/books/LEG2_BC_EN.png b/img/books/LEG02_BC_EN.png similarity index 100% rename from img/books/LEG2_BC_EN.png rename to img/books/LEG02_BC_EN.png diff --git a/img/books/LEG2_BC_FR.png b/img/books/LEG02_BC_FR.png similarity index 100% rename from img/books/LEG2_BC_FR.png rename to img/books/LEG02_BC_FR.png diff --git a/img/books/LEG2_BC_Textless.png b/img/books/LEG02_BC_Textless.png similarity index 100% rename from img/books/LEG2_BC_Textless.png rename to img/books/LEG02_BC_Textless.png diff --git a/img/books/LEG3_BC_EN.png b/img/books/LEG03_BC_EN.png similarity index 100% rename from img/books/LEG3_BC_EN.png rename to img/books/LEG03_BC_EN.png diff --git a/img/books/LEG3_BC_FR.png b/img/books/LEG03_BC_FR.png similarity index 100% rename from img/books/LEG3_BC_FR.png rename to img/books/LEG03_BC_FR.png diff --git a/img/books/LEG4_BC_EN.png b/img/books/LEG04_BC_EN.png similarity index 100% rename from img/books/LEG4_BC_EN.png rename to img/books/LEG04_BC_EN.png diff --git a/img/books/LEG4_BC_FR.png b/img/books/LEG04_BC_FR.png similarity index 100% rename from img/books/LEG4_BC_FR.png rename to img/books/LEG04_BC_FR.png diff --git a/img/books/LEG05_BC_FR.png b/img/books/LEG05_BC_FR.png new file mode 100644 index 0000000..af12716 Binary files /dev/null and b/img/books/LEG05_BC_FR.png differ diff --git a/img/books/LEG06_BC_FR.png b/img/books/LEG06_BC_FR.png new file mode 100644 index 0000000..cb4f0c8 Binary files /dev/null and b/img/books/LEG06_BC_FR.png differ diff --git a/img/books/LEG07_BC_FR.png b/img/books/LEG07_BC_FR.png new file mode 100644 index 0000000..9c570f5 Binary files /dev/null and b/img/books/LEG07_BC_FR.png differ diff --git a/img/books/LEG08_BC_FR.png b/img/books/LEG08_BC_FR.png new file mode 100644 index 0000000..28019c4 Binary files /dev/null and b/img/books/LEG08_BC_FR.png differ diff --git a/img/books/LEG09_BC_FR.png b/img/books/LEG09_BC_FR.png new file mode 100644 index 0000000..9c6ddd4 Binary files /dev/null and b/img/books/LEG09_BC_FR.png differ diff --git a/img/books/LEG10_BC_FR.png b/img/books/LEG10_BC_FR.png new file mode 100644 index 0000000..5ca28ca Binary files /dev/null and b/img/books/LEG10_BC_FR.png differ diff --git a/img/books/LEG10_BC_FR_OLD.png b/img/books/LEG10_BC_FR_OLD.png new file mode 100644 index 0000000..c2d0614 Binary files /dev/null and b/img/books/LEG10_BC_FR_OLD.png differ diff --git a/img/books/LEG6_BC_FR.png b/img/books/LEG6_BC_FR.png deleted file mode 100644 index b023fec..0000000 Binary files a/img/books/LEG6_BC_FR.png and /dev/null differ diff --git a/js/language.js b/js/language.js index 1f37a19..c98c322 100644 --- a/js/language.js +++ b/js/language.js @@ -32,15 +32,8 @@ function setLocalizeDataAttr(className, dataValue) { } function localize(lang) { - var overrideLang = "language:" + (lang ? lang : ""); - $("[data-localize]") - .localize("main", { - pathPrefix: "lang", - overrideLang, - }) - .localize("books", { - pathPrefix: "lang", - overrideLang, - }); - currentLang = lang; + $("[data-localize]") +.localize("main", { pathPrefix: "lang", language: lang }) +.localize("books", { pathPrefix: "lang", language: lang }); +currentLang=lang; } \ No newline at end of file diff --git a/lang/books-en.json b/lang/books-en.json index 3864a39..d31f823 100644 --- a/lang/books-en.json +++ b/lang/books-en.json @@ -1,6 +1,6 @@ { - "ADV1": { - "code": "ADV1", + "ADV01": { + "code": "ADV01", "title": "Adventurers", "desc": [ "*Découvrez l’univers d’Eana et ses multiples civilisations hautes en couleur, retrouvez les portails perdus des Voyageurs, gravissez les marches de la Forge du destin et mesurez-vous aux Dragons-dieux !* **Aventuriers** est le premier volume de la gamme de jeu de rôle Dragons. Destiné aux joueurs et au meneur, il se compose de trois parties :", @@ -13,18 +13,18 @@ "href":"https://www.philibertnet.com/fr/dragons/62090-dragons-1-aventuriers-livre-de-base-9782919256365.html" }, "pdf-link": "https://www.drivethrurpg.com/product/422886/Dragons--1--Livre-de-base--Aventuriers", - "author": ["Team Agate"], + "author": ["Agate Team"], "published-date": "01/04/2018", "cf-date": "14/03/2016", "cover":{ - "src": "img\\books\\ADV1_BC_EN.png", - "alt": "ADV1_BC_EN", - "title": "ADV1_BC_EN" + "src": "img\\books\\ADV01_BC_EN.png", + "alt": "ADV01_BC_EN", + "title": "ADV01_BC_EN" } }, - "CRE2": { - "book": "
Creature : Netherworld
", - "code": "CRE2", + "CRE02": { + "book": "
Creature : Netherworld
", + "code": "CRE02", "title": "Creatures : Netherworld", "desc": ["*"], "physical-link": "", @@ -33,9 +33,9 @@ "published-date": "", "cf-date": "", "cover": { - "src": "img\\books\\CRE2_BC_EN.png", - "alt": "CRE2_BC_EN", - "title": "CRE2_BC_EN" + "src": "img\\books\\CRE02_BC_EN.png", + "alt": "CRE02_BC_EN", + "title": "CRE02_BC_EN" } } } diff --git a/lang/books-fr.json b/lang/books-fr.json index d02103d..a7a2121 100644 --- a/lang/books-fr.json +++ b/lang/books-fr.json @@ -1,6 +1,6 @@ { - "ADV1": { - "code": "ADV1", + "ADV01": { + "code": "ADV01", "title": "Aventuriers", "desc": [ "*Découvrez l’univers d’Eana et ses multiples civilisations hautes en couleur, retrouvez les portails perdus des Voyageurs, gravissez les marches de la Forge du destin et mesurez-vous aux Dragons-dieux !* **Aventuriers** est le premier volume de la gamme de jeu de rôle Dragons. Destiné aux joueurs et au meneur, il se compose de trois parties :", @@ -24,13 +24,13 @@ "published-date": "01/04/2018", "cf-date": "14/03/2016", "cover":{ - "src": "img\\books\\ADV1_BC_FR.png", - "alt": "ADV1_BC_FR", - "title": "ADV1_BC_FR" + "src": "img\\books\\ADV01_BC_FR.png", + "alt": "ADV01_BC_FR", + "title": "ADV01_BC_FR" } }, - "CRE2": { - "code": "CRE2", + "CRE02": { + "code": "CRE02", "title": "Créatures : Inframonde", "desc": ["*"], "physical-link": { @@ -49,10 +49,9 @@ "published-date": "", "cf-date": "-", "cover": { - "src": "img\\books\\CRE2_BC_FR.png", - "alt": "CRE2_BC_FR", - "title": "CRE2_BC_FR" + "src": "img\\books\\CRE02_BC_FR.png", + "alt": "CRE02_BC_FR", + "title": "CRE02_BC_FR" } - }, - "book-CRE2": "
Créature : Inframonde
" + } }