more gettext changes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@924 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2000-07-26 10:30:09 +00:00
parent 17836df605
commit 8cac3597a4
5 changed files with 1843 additions and 70 deletions

View File

@ -35,7 +35,11 @@ echo "done."
# Generate the ext_l10n.h
echo -n "Generate the ext_l10n file..."
rm -f src/ext_l10n.h
# first the ui file(s)
grep -i -E "submenu|item|optitem" < lib/ui/default.ui | cut -d '"' -f 2 | awk '{printf "_(\"%s\");\n", $0}' > src/ext_l10n.h
# then the layout files
cat lib/layouts/*.layout lib/layouts/*.inc | grep -i -E "[ ]*style .+$" | cut -d ' ' -f 2 | sort | uniq | awk '{printf "_(\"%s\");\n", $0}' >> src/ext_l10n.h
echo "done."
# Generate the Makefiles and configure files

View File

@ -95,6 +95,7 @@ src/mathed/formula.C
src/mathed/formulamacro.C
src/mathed/math_forms.C
src/mathed/math_panel.C
src/MenuBackend.C
src/menus.C
src/minibuffer.C
src/PaperLayout.C

1550
po/no.po

File diff suppressed because it is too large Load Diff

View File

@ -149,3 +149,356 @@ _("LaTeX Configuration|L");
_("Copyright and Warranty...|o");
_("Credits...|e");
_("Version...|V");
_("");
_("A&A");
_("ACT");
_("AT_RISE:");
_("Abstract");
_("Accepted");
_("Acknowledgement");
_("Acknowledgement(s)");
_("Acknowledgement*");
_("Acknowledgement-numbered");
_("Acknowledgement-unnumbered");
_("Acknowledgements");
_("Acknowledgments");
_("Acnowledgement");
_("Addchap");
_("Addchap*");
_("Addition");
_("Address");
_("Addsec");
_("Addsec*");
_("Adresse");
_("Affil");
_("Affiliation");
_("Algorithm");
_("Algorithm-numbered");
_("Algorithm-plain");
_("And");
_("Anlagen");
_("Anrede");
_("Appendices");
_("Appendix");
_("Author");
_("AuthorRunning");
_("Author_Email");
_("Author_Running");
_("Author_URL");
_("Axiom");
_("Axiom-numbered");
_("Axiom-plain");
_("BLZ");
_("Backaddress");
_("Bank");
_("BankAccount");
_("BankCode");
_("Betreff");
_("Bibliography");
_("Biography");
_("Brieftext");
_("CC");
_("CURTAIN");
_("Caption");
_("Case");
_("Case-numbered");
_("CenteredCaption");
_("Chapter");
_("Chapter*");
_("Chapter_Exercises");
_("Citta");
_("Claim");
_("Claim*");
_("Claim-numbered");
_("Claim-plain");
_("Claim-unnumbered");
_("Closing");
_("Code");
_("Comment");
_("Conclusion");
_("Conclusion*");
_("Conclusion-numbered");
_("Conclusion-unnumbered");
_("Condition");
_("Condition-numbered");
_("Condition-plain");
_("Conjecture");
_("Conjecture*");
_("Conjecture-numbered");
_("Conjecture-plain");
_("Conjecture-unnumbered");
_("CopNum");
_("Copyright");
_("Corollary");
_("Corollary*");
_("Corollary-numbered");
_("Corollary-plain");
_("Corollary-unnumbered");
_("Correspondence");
_("Criterion");
_("Criterion-numbered");
_("Criterion-plain");
_("CrossList");
_("Current");
_("Current_Address");
_("Customer");
_("Data");
_("Date");
_("Datum");
_("Dedication");
_("Dedicatory");
_("Definition");
_("Definition*");
_("Definition-numbered");
_("Definition-plain");
_("Definition-unnumbered");
_("Description");
_("Dialogue");
_("EMail");
_("EXT.");
_("Email");
_("Encl");
_("Encl.");
_("End_All_Slides");
_("Enumerate");
_("Example");
_("Example*");
_("Example-numbered");
_("Example-plain");
_("Example-unnumbered");
_("Exercise");
_("Exercise-numbered");
_("Exercise-plain");
_("Extratitle");
_("FADE_IN:");
_("FADE_OUT:");
_("Fact");
_("Fact*");
_("Fact-numbered");
_("Fact-plain");
_("Fact-unnumbered");
_("FigCaption");
_("FirstAuthor");
_("FirstName");
_("FitBitmap");
_("FitFigure");
_("Foilhead");
_("Footernote");
_("FourAffiliations");
_("FourAuthors");
_("Gruss");
_("HTTP");
_("Headnote");
_("INT.");
_("Idea");
_("IhrSchreiben");
_("IhrZeichen");
_("Institute");
_("Institution");
_("InvisibleText");
_("Invoice");
_("Itemize");
_("Journal");
_("Keywords");
_("Konto");
_("LaTeX");
_("LaTeX_Title");
_("Labeling");
_("Land");
_("LandscapeSlide");
_("Lemma");
_("Lemma*");
_("Lemma-numbered");
_("Lemma-plain");
_("Lemma-unnumbered");
_("Letter");
_("List");
_("ListOfSlides");
_("Literal");
_("Location");
_("Lowertitleback");
_("LyX-Code");
_("Lyx-Code");
_("Mail");
_("MarkBoth");
_("MathLetters");
_("MeinZeichen");
_("Minisec");
_("MyRef");
_("My_Address");
_("Myref");
_("Name");
_("Narrative");
_("Notation");
_("Notation-numbered");
_("Note");
_("Note*");
_("Note-numbered");
_("Note-plain");
_("Note-unnumbered");
_("NoteToEditor");
_("Notetoeditor");
_("Offprint");
_("Offprints");
_("Offsets");
_("Oggetto");
_("Opening");
_("Ort");
_("Overlay");
_("PACS");
_("PS");
_("Paragraph");
_("Paragraph*");
_("Paragraph-numbered");
_("Parenthetical");
_("Part");
_("Part*");
_("Petit");
_("Phone");
_("Place");
_("PlaceFigure");
_("PlaceTable");
_("Placefigure");
_("Placetable");
_("PortraitSlide");
_("PostalCommend");
_("Postvermerk");
_("Preprint");
_("Problem");
_("Problem-numbered");
_("Problem-plain");
_("ProgressContents");
_("Proof");
_("Property");
_("Proposition");
_("Proposition*");
_("Proposition-numbered");
_("Proposition-plain");
_("Proposition-unnumbered");
_("Publishers");
_("Question");
_("Quotation");
_("Quote");
_("REVTEX_Title");
_("Received");
_("Recieved");
_("Recieved/Accepted");
_("Reference");
_("References");
_("Remark");
_("Remark*");
_("Remark-numbered");
_("Remark-plain");
_("Remark-unnumbered");
_("Remarks");
_("RetourAdresse");
_("ReturnAddress");
_("RightHeader");
_("Right_Address");
_("Rotatefoilhead");
_("Running_LaTeX_Title");
_("SCENE");
_("SCENE*");
_("SGML");
_("Scrap");
_("Section");
_("Section*");
_("Section-numbered");
_("Send");
_("Send_To_Address");
_("Seriate");
_("ShortFoilhead");
_("ShortRotatefoilhead");
_("ShortTitle");
_("Shortfoilhead");
_("Signature");
_("Slide");
_("Slide*");
_("SlideContents");
_("SlideHeading");
_("SlideSubHeading");
_("Solution");
_("Speaker");
_("Specialmail");
_("Stadt");
_("Standard");
_("State");
_("Strasse");
_("Street");
_("Style");
_("SubSection");
_("SubTitle");
_("Subitle");
_("Subject");
_("Subjectclass");
_("Subparagraph");
_("Subparagraph*");
_("Subsection");
_("Subsection*");
_("Subsection-numbered");
_("Subsubsection");
_("Subsubsection*");
_("Subsubsection-numbered");
_("Subtitle");
_("Suggested");
_("Summary");
_("Summary-numbered");
_("Surname");
_("TOC_Author");
_("TOC_Title");
_("TableComments");
_("TableRefs");
_("Telefax");
_("Telefon");
_("Telephone");
_("Telex");
_("Thanks");
_("Theorem");
_("Theorem*");
_("Theorem-numbered");
_("Theorem-plain");
_("Theorem-unnumbered");
_("TheoremTemplate");
_("Thesaurus");
_("ThickLine");
_("This");
_("ThreeAffiliations");
_("ThreeAuthors");
_("TickList");
_("Title");
_("Title_Running");
_("Titlehead");
_("Town");
_("Trans_Keywords");
_("Transition");
_("Translated");
_("TranslatedAbstract");
_("Translated_Title");
_("Translator");
_("TwoAffiliations");
_("TwoAuthors");
_("URL");
_("Unterschrift");
_("Uppertitleback");
_("Use");
_("Verbatim");
_("Verse");
_("Verteiler");
_("VisibleText");
_("YourMail");
_("YourRef");
_("Yourmail");
_("Yourref");
_("Zusatz");
_("cc");
_("encl");
_("first");
_("foilhead");
_("journal");
_("landscape");
_("modying");
_("msnumber");
_("offsets");
_("ps");
_("style");
_("surname");

View File

@ -27,6 +27,7 @@
#include "buffer.h"
#include "LyXAction.h"
#include "support/filetools.h"
#include "gettext.h"
using std::endl;
@ -208,9 +209,9 @@ void Toolbar::Pimpl::updateLayoutList(bool force)
for (LyXTextClass::const_iterator cit = tc.begin();
cit != tc.end(); ++cit) {
if ((*cit).obsoleted_by().empty())
combox->addline((*cit).name().c_str());
combox->addline(_((*cit).name().c_str()));
else
combox->addline(("@N" + (*cit).name()).c_str());
combox->addline(("@N" + string(_((*cit).name().c_str()))).c_str());
}
}
// we need to do this.