Should work with polyglossia and babel
authorAndreas Bilke <abilke@cosy.sbg.ac.at>
Tue, 4 Oct 2016 09:43:19 +0000 (11:43 +0200)
committerAndreas Bilke <abilke@cosy.sbg.ac.at>
Tue, 4 Oct 2016 09:43:19 +0000 (11:43 +0200)
Declared a language file mapping from ngerman* to german file.
Polyglossia/babel should now find the correct language file.

Also moved the language string definition to the bbx file, since this
string is used globally and not only in german contexts.

german-sbg-linguistics.lbx [new file with mode: 0644]
ngerman-sbg-linguistics.lbx [deleted file]
sbg-linguistics.bbx

diff --git a/german-sbg-linguistics.lbx b/german-sbg-linguistics.lbx
new file mode 100644 (file)
index 0000000..f1e8ae7
--- /dev/null
@@ -0,0 +1,35 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% ngerman-sbg-linguistics.lbx, v0.1
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+%   http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% A bibliography style for use with biblatex
+% Developed by Andreas Bilke,
+% based on  the guidlines of the linguistics department at the
+% University of Salzburg
+%
+% This work consists of the files sbg-linguistics.bbx,
+% sbg-lingusitics.dbx, sbg-linguistics.ctx and ngerman-sbg-linguistics.lbx
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\ProvidesFile{ngerman-sbg-linguistics.lbx}
+\InheritBibliographyExtras{german}
+\InheritBibliographyStrings{german}
+
+\DeclareBibliographyStrings{%
+    andothers={{et\addabbrvspace al\adddot}{et\addabbrvspace al\adddot}},
+    edition={{Auflage}{Auflage}},
+    volume={{Band}{Band}},
+    onlinestrg={{online}{online}},
+    url={{Verfügbar unter}{Verfügbar unter}},
+    urlseen={{abgerufen am}{abgerufen am}},
+    phdthesis={{Dissertation}{Dissertation}}
+}
+
+\endinput
diff --git a/ngerman-sbg-linguistics.lbx b/ngerman-sbg-linguistics.lbx
deleted file mode 100644 (file)
index 52405d5..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% ngerman-sbg-linguistics.lbx, v0.1
-%
-% This work may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-%   http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2005/12/01 or later.
-%
-% A bibliography style for use with biblatex
-% Developed by Andreas Bilke,
-% based on  the guidlines of the linguistics department at the
-% University of Salzburg
-%
-% This work consists of the files sbg-linguistics.bbx,
-% sbg-lingusitics.dbx, sbg-linguistics.ctx and ngerman-sbg-linguistics.lbx
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\ProvidesFile{ngerman-sbg-linguistics.lbx}
-\InheritBibliographyExtras{ngerman}
-
-\NewBibliographyString{onlinestrg}
-
-\DeclareBibliographyStrings{%
-    inherit = {ngerman},
-    andothers={{et\addabbrvspace al\adddot}{et\addabbrvspace al\adddot}},
-    edition={{Auflage}{Auflage}},
-    volume={{Band}{Band}},
-    onlinestrg={{online}{online}},
-    url={{Verfügbar unter}{Verfügbar unter}},
-    urlseen={{abgerufen am}{abgerufen am}},
-    phdthesis={{Dissertation}{Dissertation}}
-}
-
-\endinput
index e4d5684..0ce03f9 100644 (file)
 \RequireBiber[3]
 
 \RequireBibliographyStyle{authoryear}
+\NewBibliographyString{onlinestrg}
 
-\DeclareLanguageMapping{ngerman}{ngerman-sbg-linguistics}
+\DeclareLanguageMapping{ngerman}{german-sbg-linguistics}
+\DeclareLanguageMapping{german}{german-sbg-linguistics}
 
 \DeclareDataInheritance{book,proceedings,collection}{inbook,inproceedings,incollection}{
     \inherit{year}{bookyear}