citation-style-language/styles — pull request #1206 by javimat (2014-10-22 12:50:20+00:00)
Title: Update styles from Università Pontificia Salesiana

The bug described in #1194 and in https://forums.zotero.org/discussion/36595/defaultlocale-of-dependent-doesnt-override-that-of-its-parent/#Item_10 is affecting this dependent styles.

In my Zotero (4.0.23.1 in ubuntu 14.04) the dependent-styles from universita-pontificia-salesiana are generating outputs in my system locale (Catalan).

The explanation from @rmzelle in #1194 was:
>If I read Zotero.Style.prototype.getCiteProc correctly (https://github.com/zotero/zotero/blob/4.0/chrome/content/zotero/xpcom/style.js), the issue is that Zotero always first resolves a dependent style to its independent parent, and then creates a CSL Engine with the parent. Zotero always provides a locale, but allows the style to override it, since the "forceLang" parameter isn't used (see http://gsl-nagoya-u.net/http/pub/citeproc-doc.html#instantiation-csl-engine ). As a result, the value of "default-locale" on dependent styles is always ignored.
>So, for this to work correctly, Zotero needs to keep track of the default-locale value of the dependent style. If this attribute is set, its value should be fed to the CSL Engine (along with the parent style), with forceLang set to True, so this locale overrides that of the parent style (if present).

If I understand it correctly, it means that the default-locale in the dependent styles never works. It doesn't work neither if the parent style **hasn't a default-locale**. Zotero uses the system locale (extensions.zotero.export.bibliographyLocale preference). I wonder how the dependent styles in the repository are working for other people. Is this only a problem in my computer?

Anyway, I ask you to merge this pull, converting all the styles in parent ones while the problem is resolved. I'm presenting Zotero to PhD students here at the university and would like to use this languages without the [complex] workaround of changing manually the extensions.zotero.export.bibliographyLocale preference described here: https://www.zotero.org/support/supported_languages#citations_and_bibliographies

Thanks again.