{"action":"created","issue":{"url":"https://api.github.com/repos/zotero/zotero/issues/623","labels_url":"https://api.github.com/repos/zotero/zotero/issues/623/labels{/name}","comments_url":"https://api.github.com/repos/zotero/zotero/issues/623/comments","events_url":"https://api.github.com/repos/zotero/zotero/issues/623/events","html_url":"https://github.com/zotero/zotero/pull/623","id":56326097,"number":623,"title":"Add drop-down menu for bibliographyLocale","user":{"login":"rmzelle","id":77951,"avatar_url":"https://avatars.githubusercontent.com/u/77951?v=3","gravatar_id":"","url":"https://api.github.com/users/rmzelle","html_url":"https://github.com/rmzelle","followers_url":"https://api.github.com/users/rmzelle/followers","following_url":"https://api.github.com/users/rmzelle/following{/other_user}","gists_url":"https://api.github.com/users/rmzelle/gists{/gist_id}","starred_url":"https://api.github.com/users/rmzelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmzelle/subscriptions","organizations_url":"https://api.github.com/users/rmzelle/orgs","repos_url":"https://api.github.com/users/rmzelle/repos","events_url":"https://api.github.com/users/rmzelle/events{/privacy}","received_events_url":"https://api.github.com/users/rmzelle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-02-03T02:42:03Z","updated_at":"2015-02-03T05:03:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zotero/zotero/pulls/623","html_url":"https://github.com/zotero/zotero/pull/623","diff_url":"https://github.com/zotero/zotero/pull/623.diff","patch_url":"https://github.com/zotero/zotero/pull/623.patch"},"body":"Groundwork for adding a drop-down menu to the Styles tab of the Cite tab of the Zotero preferences, for selecting the bibliography locale.\r\n\r\nStill needs some work, but I'd like some guidance on how to implement things:\r\n\r\n * I placed https://github.com/citation-style-language/locales/blob/master/locales.json at https://github.com/zotero/zotero/tree/4.0/resource/schema. Is that okay? How are similar files at this location being kept up to date (like \"renamed-styles.json\")?\r\n * Fresh installs of Zotero have an empty string for \"extensions.zotero.export.bibliographyLocale\". With the current code, an empty string value for bibliographyLocale is replaced by the value of Zotero.locale when the preference tab is loaded, or, if Zotero.locale isn't set, by \"en-US\". Is this behavior problematic if the pref can be set via the UI?\r\n * The drop-down menu options are limited to the locales for which we have CSL locale files. Should there be a way to specify a custom locale code for \"extensions.zotero.export.bibliographyLocale\" via the UI? If so, what should that look like? A \"Custom...\" entry at the bottom of the drop-down list, that, if selected, pops up a dialog box with a text box?\r\n * Should there be a top-five list of most-recently used locales at the top of the drop-down list?\r\n * For some reason the drop-down box stretches across the entire window. Not sure why. XUL beats me.\r\n * I removed `width` on `<label id=\"export-citePaperJournalArticleURL\" width=\"45em\">`, since it didn't do anything on OS X. Is this still necessary? Maybe we can check on other platforms."},"comment":{"url":"https://api.github.com/repos/zotero/zotero/issues/comments/72593454","html_url":"https://github.com/zotero/zotero/pull/623#issuecomment-72593454","issue_url":"https://api.github.com/repos/zotero/zotero/issues/623","id":72593454,"user":{"login":"dstillman","id":783082,"avatar_url":"https://avatars.githubusercontent.com/u/783082?v=3","gravatar_id":"","url":"https://api.github.com/users/dstillman","html_url":"https://github.com/dstillman","followers_url":"https://api.github.com/users/dstillman/followers","following_url":"https://api.github.com/users/dstillman/following{/other_user}","gists_url":"https://api.github.com/users/dstillman/gists{/gist_id}","starred_url":"https://api.github.com/users/dstillman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstillman/subscriptions","organizations_url":"https://api.github.com/users/dstillman/orgs","repos_url":"https://api.github.com/users/dstillman/repos","events_url":"https://api.github.com/users/dstillman/events{/privacy}","received_events_url":"https://api.github.com/users/dstillman/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T05:03:13Z","updated_at":"2015-02-03T05:03:13Z","body":"> This, given the per-document setting, would apply only to export and bibliography.\r\n\r\nThat's a fair point, but I think this setting could reasonably determine the default for new documents, rather than using the last-used locale. Because, for that matter, what does \"last-used\" mean anyway in the context of the Word plugin, when you can have multiple documents open at once?"}}