From 718a353b49d903f3e50c895a29f20f8970db2d06 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Fri, 1 Dec 2017 10:10:06 +0100 Subject: [PATCH] Implement l7n for nomenclature. --- lib/layouts/stdinsets.inc | 16 ++++- lib/layouttranslations | 119 +++++++++++++++++++++++++++++++++- lib/layouttranslations.review | 8 ++- src/insets/InsetNomencl.cpp | 1 + 4 files changed, 139 insertions(+), 5 deletions(-) diff --git a/lib/layouts/stdinsets.inc b/lib/layouts/stdinsets.inc index da91f1c189..a5f60b1cc3 100644 --- a/lib/layouts/stdinsets.inc +++ b/lib/layouts/stdinsets.inc @@ -698,7 +698,21 @@ End InsetLayout PrintNomencl - HTMLTag h2 + BabelPreamble + \addto\captions$$lang{% + \def\eqdeclaration#1{, _(see equation[[nomencl]])\nobreakspace(#1)}% + \def\pagedeclaration#1{, _(page[[nomencl]])\nobreakspace#1}% + \def\nomname{_(Nomenclature[[output]])}% + } + EndBabelPreamble + # The command is defined for several languages in nomencl.sty. However, we need to define + # it anyway for the other, non suppported languages. + LangPreamble + \def\eqdeclaration#1{, _(see equation[[nomencl]])\nobreakspace(#1)} + \def\pagedeclaration#1{, _(page[[nomencl]])\nobreakspace#1} + \def\nomname{_(Nomenclature[[output]])} + EndLangPreamble + HTMLTag h2 End InsetLayout Tabular diff --git a/lib/layouttranslations b/lib/layouttranslations index 8a6c3b99e4..485048e07b 100644 --- a/lib/layouttranslations +++ b/lib/layouttranslations @@ -33,6 +33,7 @@ Translation ar "List of Tableaux" "قائمة الجداول" "Listing" "عمل قوائم" "Listings[[List of Listings]]" "القوائم" + "Nomenclature[[output]]" "المصطلح" "Notation" "تدوين" "Note" "ملاحظة" "Problem" "مشكلة" @@ -46,6 +47,8 @@ Translation ar "Summary" "موجز" "Tableau" "جدول" "Theorem" "نظرية" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation bg @@ -88,6 +91,8 @@ Translation bg "Summary" "Обобщение" "Tableau" "Tableau" "Theorem" "Теорема" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation ca @@ -117,6 +122,7 @@ Translation ca "List of Tableaux" "List of Tableaux" "Listing" "Llistat" "Listings[[List of Listings]]" "Listings" + "Nomenclature[[output]]" "Nomenclature" "Notation" "Notació" "Note" "Nota" "Problem" "Problema" @@ -130,6 +136,8 @@ Translation ca "Summary" "Resum" "Tableau" "Tableau" "Theorem" "Teorema" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation cs @@ -159,6 +167,7 @@ Translation cs "List of Tableaux" "Seznam tabel" "Listing" "Výpis" "Listings[[List of Listings]]" "Seznam výpisů" + "Nomenclature[[output]]" "Nomenklatura" "Notation" "Značení" "Note" "Poznámka" "Problem" "Úloha" @@ -172,6 +181,8 @@ Translation cs "Summary" "Souhrn" "Tableau" "Tablo" "Theorem" "Věta" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation da @@ -201,6 +212,7 @@ Translation da "List of Tableaux" "Tableauliste" "Listing" "Listing" "Listings[[List of Listings]]" "Listings" + "Nomenclature[[output]]" "Symbolliste" "Notation" "Notation" "Note" "Note" "Problem" "Problem" @@ -214,6 +226,8 @@ Translation da "Summary" "Resumé" "Tableau" "Tableau" "Theorem" "Sætning" + "page[[nomencl]]" "side" + "see equation[[nomencl]]" "se ligning" End Translation de @@ -243,6 +257,7 @@ Translation de "List of Tableaux" "Tableaux-Verzeichnis" "Listing" "Listing" "Listings[[List of Listings]]" "Programmlistings" + "Nomenclature[[output]]" "Nomenklatur" "Notation" "Notation" "Note" "Notiz" "Problem" "Problem" @@ -256,6 +271,8 @@ Translation de "Summary" "Zusammenfassung" "Tableau" "Tableau" "Theorem" "Theorem" + "page[[nomencl]]" "Seite" + "see equation[[nomencl]]" "siehe Gleichung" End Translation de_alt @@ -289,6 +306,7 @@ Translation el "List of Tableaux" "Λίστα Ταμπλό" "Listing" "Καταλογοποίηση" "Listings[[List of Listings]]" "Καταλογοποιήσεις" + "Nomenclature[[output]]" "Nomenclature" "Notation" "Σημειογραφία" "Note" "Σημείωση" "Problem" "Πρόβλημα" @@ -302,6 +320,8 @@ Translation el "Summary" "Σύνοψη" "Tableau" "Ταμπλό" "Theorem" "Θεώρημα" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation en @@ -331,6 +351,7 @@ Translation en "List of Tableaux" "List of Tableaux" "Listing" "Listing" "Listings[[List of Listings]]" "Listings" + "Nomenclature[[output]]" "Nomenclature" "Notation" "Notation" "Note" "Note" "Problem" "Problem" @@ -344,6 +365,8 @@ Translation en "Summary" "Summary" "Tableau" "Tableau" "Theorem" "Theorem" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation es @@ -373,6 +396,7 @@ Translation es "List of Tableaux" "Índice de Tableaux" "Listing" "Listado de código" "Listings[[List of Listings]]" "Listados de código" + "Nomenclature[[output]]" "Nomenclatura" "Notation" "Notación" "Note" "Nota" "Problem" "Problema" @@ -386,6 +410,8 @@ Translation es "Summary" "Resumen" "Tableau" "Tableau" "Theorem" "Teorema" + "page[[nomencl]]" "página" + "see equation[[nomencl]]" "véase la ecuación" End Translation eu @@ -415,6 +441,7 @@ Translation eu "List of Tableaux" "Taulen zerrenda" "Listing" "Zerrenda" "Listings[[List of Listings]]" "Listings" + "Nomenclature[[output]]" "Nomenklatura" "Notation" "Notazioa" "Note" "Ohar" "Problem" "Buruketa" @@ -428,6 +455,8 @@ Translation eu "Summary" "Laburpena" "Tableau" "Taula" "Theorem" "Teorema" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation fi @@ -457,6 +486,7 @@ Translation fi "List of Tableaux" "Taulut" "Listing" "Ohjelmalistaus" "Listings[[List of Listings]]" "Ohjelmalistaukset" + "Nomenclature[[output]]" "Termistö" "Notation" "Merkintätapa" "Note" "Muistiinpano" "Problem" "Ongelma" @@ -470,6 +500,8 @@ Translation fi "Summary" "Yhteenveto" "Tableau" "Taulu" "Theorem" "Lause" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation fr @@ -499,6 +531,7 @@ Translation fr "List of Tableaux" "Liste des tableaux" "Listing" "Listing" "Listings[[List of Listings]]" "Liste des listings" + "Nomenclature[[output]]" "Liste des symboles" "Notation" "Notation" "Note" "Note" "Problem" "Problème" @@ -512,6 +545,8 @@ Translation fr "Summary" "Résumé" "Tableau" "Tableau" "Theorem" "Théorème" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "voir équation" End Translation gl @@ -541,6 +576,7 @@ Translation gl "List of Tableaux" "List of Tableaux" "Listing" "Lista" "Listings[[List of Listings]]" "Listings" + "Nomenclature[[output]]" "Nomenclature" "Notation" "Notación" "Note" "Nota" "Problem" "Problema" @@ -554,6 +590,8 @@ Translation gl "Summary" "Resumo" "Tableau" "Tableau" "Theorem" "Teorema" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation he @@ -583,6 +621,7 @@ Translation he "List of Tableaux" "List of Tableaux" "Listing" "רישום קוד" "Listings[[List of Listings]]" "Listings" + "Nomenclature[[output]]" "נומנקלטורה" "Notation" "צורת רישום" "Note" "הערה" "Problem" "בעיה" @@ -596,6 +635,14 @@ Translation he "Summary" "סיכום" "Tableau" "Tableau" "Theorem" "משפט" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" +End + +Translation hr + "Nomenclature[[output]]" "Popis simbola" + "page[[nomencl]]" "stranica" + "see equation[[nomencl]]" "vidi jednadžbu" End Translation hu @@ -625,6 +672,7 @@ Translation hu "List of Tableaux" "Csoportképek listája" "Listing" "Lista" "Listings[[List of Listings]]" "Listings" + "Nomenclature[[output]]" "Szakkifejezés" "Notation" "Jelölés" "Note" "Megjegyzés" "Problem" "Probléma" @@ -638,6 +686,8 @@ Translation hu "Summary" "Összegzés" "Tableau" "Csoportkép" "Theorem" "Tétel" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation ia @@ -667,6 +717,7 @@ Translation ia "List of Tableaux" "Lista de tableau" "Listing" "Listar" "Listings[[List of Listings]]" "Lista de listatos" + "Nomenclature[[output]]" "Nomenclatura" "Notation" "Notation" "Note" "Nota" "Problem" "Problema" @@ -680,6 +731,8 @@ Translation ia "Summary" "Summario" "Tableau" "Tableau" "Theorem" "Theorema" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation id @@ -709,6 +762,7 @@ Translation id "List of Tableaux" "Daftar Tableaux" "Listing" "Listing" "Listings[[List of Listings]]" "Listings" + "Nomenclature[[output]]" "Nomenklatur" "Notation" "Notasi" "Note" "Nota" "Problem" "Masalah" @@ -722,6 +776,8 @@ Translation id "Summary" "Ringkasan" "Tableau" "Tableau" "Theorem" "Teorema" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation it @@ -751,6 +807,7 @@ Translation it "List of Tableaux" "Elenco dei tableau" "Listing" "Listato" "Listings[[List of Listings]]" "Elenco dei listati" + "Nomenclature[[output]]" "Elenco dei simboli" "Notation" "Notazione" "Note" "Nota" "Problem" "Problema" @@ -764,6 +821,8 @@ Translation it "Summary" "Sommario" "Tableau" "Tableau" "Theorem" "Teorema" + "page[[nomencl]]" "pagina" + "see equation[[nomencl]]" "vedi equazione" End Translation ja @@ -793,6 +852,7 @@ Translation ja "List of Tableaux" "絵画一覧" "Listing" "プログラムリスト" "Listings[[List of Listings]]" "プログラムリスト" + "Nomenclature[[output]]" "用語集" "Notation" "記法" "Note" "註釈" "Problem" "問題" @@ -806,6 +866,8 @@ Translation ja "Summary" "要約" "Tableau" "絵画" "Theorem" "定理" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation ko @@ -835,6 +897,7 @@ Translation ko "List of Tableaux" "List of Tableaux" "Listing" "Listing" "Listings[[List of Listings]]" "Listings" + "Nomenclature[[output]]" "Nomenclature" "Notation" "Notation" "Note" "노우트(Note)" "Problem" "Problem" @@ -848,6 +911,8 @@ Translation ko "Summary" "Summary" "Tableau" "Tableau" "Theorem" "Theorem" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation nb @@ -877,6 +942,7 @@ Translation nb "List of Tableaux" "Tablåer" "Listing" "«Listing»" "Listings[[List of Listings]]" "Liste over programlister" + "Nomenclature[[output]]" "Nomenklatur" "Notation" "Notasjon" "Note" "Merknad" "Problem" "Problem" @@ -890,6 +956,8 @@ Translation nb "Summary" "Sammendrag" "Tableau" "Tablå" "Theorem" "Teorem" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation nl @@ -919,6 +987,7 @@ Translation nl "List of Tableaux" "Lijst van Tableaus" "Listing" "Listing" "Listings[[List of Listings]]" "Lijst van Listings" + "Nomenclature[[output]]" "Nomenclature" "Notation" "Notatie" "Note" "Noot" "Problem" "Opgave" @@ -932,6 +1001,8 @@ Translation nl "Summary" "Samenvatting" "Tableau" "Tableau" "Theorem" "Stelling" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation nn @@ -961,6 +1032,7 @@ Translation nn "List of Tableaux" "Liste over tablå" "Listing" "Kodeliste" "Listings[[List of Listings]]" "Liste over kodelister" + "Nomenclature[[output]]" "Nomenklatur" "Notation" "Notasjon" "Note" "Notis" "Problem" "Problem" @@ -974,6 +1046,8 @@ Translation nn "Summary" "Samandrag" "Tableau" "Tablå" "Theorem" "Teorem" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation pl @@ -1003,6 +1077,7 @@ Translation pl "List of Tableaux" "Lista tableaux" "Listing" "Listing" "Listings[[List of Listings]]" "Lista listingi" + "Nomenclature[[output]]" "Lista symboli" "Notation" "Notacja" "Note" "Notka" "Problem" "Problem" @@ -1016,6 +1091,8 @@ Translation pl "Summary" "Podsumowanie" "Tableau" "Tableau" "Theorem" "Twierdzenie" + "page[[nomencl]]" "strona" + "see equation[[nomencl]]" "porownaj rownanie" End Translation pt_BR @@ -1045,6 +1122,7 @@ Translation pt_BR "List of Tableaux" "Lista de Tableaux" "Listing" "Listagem" "Listings[[List of Listings]]" "Listagens" + "Nomenclature[[output]]" "Nomenclatura" "Notation" "Notação" "Note" "Nota" "Problem" "Problema" @@ -1058,6 +1136,8 @@ Translation pt_BR "Summary" "Resumo" "Tableau" "Tableau" "Theorem" "Teorema" + "page[[nomencl]]" "página" + "see equation[[nomencl]]" "veja equação" End Translation pt_PT @@ -1087,6 +1167,7 @@ Translation pt_PT "List of Tableaux" "Lista de Quadros" "Listing" "Listagem" "Listings[[List of Listings]]" "Lista de Listagens" + "Nomenclature[[output]]" "Nomenclatura" "Notation" "Notação" "Note" "Nota" "Problem" "Problema" @@ -1100,6 +1181,8 @@ Translation pt_PT "Summary" "Sumário" "Tableau" "Quadro" "Theorem" "Teorema" + "page[[nomencl]]" "página" + "see equation[[nomencl]]" "veja equação" End Translation ro @@ -1129,6 +1212,7 @@ Translation ro "List of Tableaux" "Listă de Tabele" "Listing" "Listare" "Listings[[List of Listings]]" "Listings" + "Nomenclature[[output]]" "Nomenclature" "Notation" "Notație" "Note" "Notă" "Problem" "Problemă" @@ -1142,6 +1226,8 @@ Translation ro "Summary" "Rezumat" "Tableau" "Tabel" "Theorem" "Teoremă" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation ru @@ -1166,14 +1252,15 @@ Translation ru "List of Algorithms" "Список алгоритмов" "List of Charts" "Список чертежей" "List of Graphs[[mathematical]]" "Список графиков" - "List of Listings" "Список списков" + "List of Listings" "Список листингов" "List of Schemes" "Список схем" "List of Tableaux" "Список таблиц" "Listing" "Листинг" - "Listings[[List of Listings]]" "Listings" + "Listings[[List of Listings]]" "Листинги" + "Nomenclature[[output]]" "Обозначения" "Notation" "Нотация" "Note" "Заметка" - "Problem" "Проблема" + "Problem" "Задача" "Proof" "Доказательство" "Property" "Свойство" "Proposition" "Предложение" @@ -1184,6 +1271,8 @@ Translation ru "Summary" "Сводка" "Tableau" "Таблица" "Theorem" "Теорема" + "page[[nomencl]]" "sстр." + "see equation[[nomencl]]" "sсм." End Translation sk @@ -1213,6 +1302,7 @@ Translation sk "List of Tableaux" "Zoznam Tablov" "Listing" "Výpis" "Listings[[List of Listings]]" "Zoznam Výpisov" + "Nomenclature[[output]]" "Nomenklatúra" "Notation" "Notácia" "Note" "Poznámka" "Problem" "Problém" @@ -1226,6 +1316,8 @@ Translation sk "Summary" "Súhrn" "Tableau" "Tablo" "Theorem" "Teoréma" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation sl @@ -1255,6 +1347,7 @@ Translation sl "List of Tableaux" "List of Tableaux" "Listing" "Listing" "Listings[[List of Listings]]" "Listings" + "Nomenclature[[output]]" "Nomenclature" "Notation" "Zapis" "Note" "Opomba" "Problem" "Problem" @@ -1268,6 +1361,8 @@ Translation sl "Summary" "Povzetek" "Tableau" "Tableau" "Theorem" "Izrek" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation sr @@ -1297,6 +1392,7 @@ Translation sr "List of Tableaux" "Spisak Tabela " "Listing" "Listing" "Listings[[List of Listings]]" "Listings" + "Nomenclature[[output]]" "Nomenclature" "Notation" "Zabeleška" "Note" "Napomena" "Problem" "Problem" @@ -1310,6 +1406,8 @@ Translation sr "Summary" "Rezime" "Tableau" "Tabela" "Theorem" "Teorema" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation sv @@ -1339,6 +1437,7 @@ Translation sv "List of Tableaux" "Lista över tablåer" "Listing" "Listning" "Listings[[List of Listings]]" "Listningar" + "Nomenclature[[output]]" "Nomenklatur" "Notation" "Notation" "Note" "Not" "Problem" "Problem" @@ -1352,6 +1451,8 @@ Translation sv "Summary" "Sammanfattning" "Tableau" "Tablå" "Theorem" "Teorem" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation tr @@ -1381,6 +1482,7 @@ Translation tr "List of Tableaux" "Tablo Listesi" "Listing" "Liste" "Listings[[List of Listings]]" "Listings" + "Nomenclature[[output]]" "Terminoloji" "Notation" "Notasyon" "Note" "Not" "Problem" "Problem" @@ -1394,6 +1496,8 @@ Translation tr "Summary" "Özet" "Tableau" "Tablo" "Theorem" "Teorem" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation uk @@ -1423,6 +1527,7 @@ Translation uk "List of Tableaux" "Список табло" "Listing" "Текст програми" "Listings[[List of Listings]]" "Тексти програм" + "Nomenclature[[output]]" "Позначення" "Notation" "Позначення" "Note" "Примітка" "Problem" "Проблема" @@ -1436,6 +1541,8 @@ Translation uk "Summary" "Зведення" "Tableau" "Табло" "Theorem" "Теорема" + "page[[nomencl]]" "sстор." + "see equation[[nomencl]]" "sдив." End Translation zh_CN @@ -1465,6 +1572,7 @@ Translation zh_CN "List of Tableaux" "场景列表" "Listing" "程序列表" "Listings[[List of Listings]]" "列表列表" + "Nomenclature[[output]]" "术语" "Notation" "记号" "Note" "备忘" "Problem" "问题" @@ -1478,6 +1586,8 @@ Translation zh_CN "Summary" "小结" "Tableau" "场景" "Theorem" "定理" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End Translation zh_TW @@ -1507,6 +1617,7 @@ Translation zh_TW "List of Tableaux" "Tableaux 目錄" "Listing" "程式碼列表" "Listings[[List of Listings]]" "程式碼列表 清單" + "Nomenclature[[output]]" "術語" "Notation" "記號" "Note" "註記" "Problem" "問題" @@ -1520,4 +1631,6 @@ Translation zh_TW "Summary" "摘要" "Tableau" "Tableau" "Theorem" "定理" + "page[[nomencl]]" "page" + "see equation[[nomencl]]" "see equation" End diff --git a/lib/layouttranslations.review b/lib/layouttranslations.review index 97e29ffc54..0f884c365e 100644 --- a/lib/layouttranslations.review +++ b/lib/layouttranslations.review @@ -29,8 +29,14 @@ ro sr ----- -(19.7.2017, LyX 2.3.0 release ) +(30.11.2017, LyX 2.3.0 release ) Additionally to the top ones, these languages should be reviewed for the following strings "List of Listings" ar bg ca da el en es eu fi gl he hu ia id ko nb nl nn pl pt_BR pt_PT ro ru sk sl sr sv tr uk zh_CN zh_TW +"Nomenclature[[output]]" -> The string that is output to PDF for the nomenclature list +ar bg ca cs el eu fi gl he hu ia id ja ko nb nl nn pl ro sk sl sr sv tr wa zh_CN zh_TW +"see equation[[nomencl]]" +ar bg ca cs el eu fi gl he hu ia id ja ko nb nl nn pl ro sk sl sr sv tr wa zh_CN zh_TW +"page[[nomencl]]" +ar bg ca cs el eu fi gl he hu ia id ja ko nb nl nn pl ro sk sl sr sv tr wa zh_CN zh_TW diff --git a/src/insets/InsetNomencl.cpp b/src/insets/InsetNomencl.cpp index 6d234e6ab3..2869722fb8 100644 --- a/src/insets/InsetNomencl.cpp +++ b/src/insets/InsetNomencl.cpp @@ -422,6 +422,7 @@ void InsetPrintNomencl::latex(otexstream & os, OutputParams const & runparams_in void InsetPrintNomencl::validate(LaTeXFeatures & features) const { + features.useInsetLayout(getLayout()); features.require("nomencl"); } -- 2.39.2