Permalink
Browse files

Adds `default-locale` to a number of styles that could have one.

  • Loading branch information...
1 parent b3be59f commit 58bf05953a62688ded19599330a6e08c15603b3d @cparnot cparnot committed Jul 6, 2012
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="pt-BR">
<info>
<title>Associação Brasileira de Normas Técnicas (ABNT) - Universidade Federal do Paraná (UFPR)</title>
<id>http://www.zotero.org/styles/associacao-brasileira-de-normas-tecnicas-ufpr</id>
View
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-AU">
@rmzelle

rmzelle Jul 6, 2012

Owner

We typically use "en-GB" for Australian styles, since we don't have a "en-AU" locale file (and I'm not sure such a file would differ in any way from "en-GB".

@cparnot

cparnot Jul 6, 2012

Contributor

OK for the en-GB instead of en-AU. In fact, that's what I was doing initially, but then noticed a few styles that were using en-AU, so decided to use it as well. Should we then correct all the styles that have such a locale?

@rmzelle

rmzelle Jul 6, 2012

Owner

Yes, please :). I guess that's another thing to check for during QC (whether the locale codes in styles match at least one locale file).

@cparnot

cparnot via email Jul 6, 2012

Contributor
@adam3smith

adam3smith via email Jul 6, 2012

Owner
@fbennett

fbennett Jul 6, 2012

Member

@rintze: Checking default-locale against available style files might make sense, but the check should probably be limited to that attribute. A generic style might define locales internally that are not available as a boxed set.

@rmzelle

rmzelle Jul 6, 2012

Owner

@fbennett, agreed. It would also help with spotting plain errors (like users submitting styles with "en-UK", which happened recently).

<info>
<title>Australian Legal Citation</title>
<id>http://www.zotero.org/styles/australian-legal</id>
View
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="zh-CN">
<info>
<title>Building Structure</title>
<id>http://www.zotero.org/styles/building-structure</id>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
<info>
<title>Catholic Biblical Association (Full Note)</title>
<id>http://www.zotero.org/styles/catholic-biblical-association</id>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="zh-CN">
<info>
<title>Chinese Std GB/T 7714-1987 (numeric)</title>
<id>http://www.zotero.org/styles/chinese-gb7714-1987-numeric</id>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="zh-CN">
<info>
<title>Chinese Std GB/T 7714-2005 (numeric)</title>
<id>http://www.zotero.org/styles/chinese-gb7714-2005-numeric</id>
View
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
<info>
<title>Climatic Change</title>
<id>http://www.zotero.org/styles/climatic-change</id>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" default-locale="ru-RU">
<info>
<title>Russian GOST R 7.0.5-2008 CSL 1.0</title>
<id>http://www.zotero.org/styles/gost-r-7-0-5-2008-csl-1-0</id>
View
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only" default-locale="ro-RO">
@rmzelle

rmzelle Jul 6, 2012

Owner

I'm not sure about this one either. The instructions to authors list both an English and Romanian style: http://www.inter-review.ro/index.php/en/authors-guidelines/editorial-policies

@cparnot

cparnot Jul 6, 2012

Contributor

OK, maybe better to leave the default-locale empty for now for the inter-ro.csl. Now, could you clarify one thing: in theory, couldn't one let the user overwrite the default locale for a style? That would be up to the client to expose that functionality, but not sure how Zotero handles it.

@rmzelle

rmzelle Jul 6, 2012

Owner

Yes, there isn't a reason why overriding default-locale wouldn't be possible. But to my knowledge neither Zotero or Mendeley allows for it, so I rather leave the default-locale out if there is any chance a style is used in more than one locale.

<info>
<title>INTER: Romanian Review for Theological and Religious Studies</title>
<id>http://www.zotero.org/styles/inter-ro</id>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" page-range-format="minimal">
@rmzelle

rmzelle Jul 6, 2012

Owner

Are you sure about this? The Instructions to authors include a few English examples: http://www.vs.mahidol.ac.th/jaas/Files/jaas%202551.pdf , last page

@cparnot

cparnot Jul 6, 2012

Contributor

I am not sure how to best handle it, actually

Here is for example some of the formatting examples:
(ลัดดา 2532)
(ชิตและคณะ 2542)
(Calder and Newsholme 1992)

That Google translates as:

(Cuts in 2532).
(Chittenden et al 2542).
(Calder and Newsholme 1992).

So it looks like one is supposed to use either language depending on the ref. How should we handle this?

@rmzelle

rmzelle Jul 6, 2012

Owner

Frank's Multilingual Zotero supports this, but it will be a while before we can support multiple locales within a single style. I'd just leave out the default-locale for now.

@ldusit

ldusit Sep 25, 2012

I do not come here for a long time since I'm busy with my doctoral dissertation. Now, I'm back.

As you mention in the style of JAAS, I agree with you about default-locale. I deleted and also corrected the locale in the CSL file. Because it doesn't fit to my need. You are right that I have to use Multilingual Zotero but it is not also yet fit to my need after I tried it for a while.

For the instruction to authors, the journal added English version. However, the journal still accept any manuscript in both Thai and English. In Thai article, there may be some Thai citation and we list Thai references before English references. I thought that default-locale in Zotero will fit to my need but I know that it doesn't. So, I will wait for Multilingual Zotero. Maybe, I will not need it anymore if my journal change to English only. ;) However, it will be useful for other Thai journals if Multilingual Zotero is finished.

@fbennett

fbennett Sep 25, 2012

Member

@ldusit In what ways have you found Multilingual Zotero lacking? The system is feature complete and stable as far as I know. If the only problem is building the style, I can help with style validation, but someone who is a Thai speaker will need to build the actual code for the style.

@ldusit

ldusit Sep 25, 2012

@fbennett Thank you very much for your message. One thing that I can remember is the style. In Thailand, we will list Thai articles before English articles. However, Zotero uses alphabet sort. I understand this point and I can solve it after unlink. I will try again and contact you directly. How can I contact you? I may be able to help you to build the style. Because I like Zotero and I always introduce my friends to use it.

@ldusit

ldusit Sep 25, 2012

@fbennett I got the point that I stop using MLZ. I try to do CSL to support Thai citation words but I cannot do. I use xml:locale to define some words but it doesn't work. I watch the video and follow as describe in the website. It is not work well. Some keywords, e.g. et al., did not translate to Thai when I cite Thai article. Do you have any suggestion?

+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" page-range-format="minimal" default-locale="th-TH">
<info>
<title>Journal of Applied Animal Science</title>
<id>http://www.zotero.org/styles/journal-of-applied-animal-science</id>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" default-locale="en-US">
<info>
<title>Journal of Bacteriology</title>
<id>http://www.zotero.org/styles/journal-of-bacteriology</id>
View
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" page-range-format="chicago">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" page-range-format="chicago" default-locale="en-GB">
<info>
<title>Language in Society</title>
<id>http://www.zotero.org/styles/language-in-society</id>
View
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB">
<info>
<title>The Lichenologist</title>
<id>http://www.zotero.org/styles/lichenologist</id>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
<info>
<title>Limnology and Oceanography</title>
<id>http://www.zotero.org/styles/limnology-and-oceanography</id>
View
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" default-locale="en-US">
<info>
<title>Pediatric Nephrology</title>
<id>http://www.zotero.org/styles/pediatric-nephrology</id>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
<info>
<title>Resources, Conservation and Recycling</title>
<id>http://www.zotero.org/styles/resources-conservation-and-recycling</id>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="fr-FR">
<info>
<title>Societe Nationale des Groupements Techniques Veterinaires</title>
<id>http://www.zotero.org/styles/societe-nationale-des-groupements-techniques-veterinaires</id>
View
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
@rmzelle

rmzelle Jul 6, 2012

Owner

This style is used either with Spanish or Catalan, so it shouldn't have a default-locale. See http://forums.zotero.org/discussion/23798/created-new-style-teologia-catalunya/?Focus=128763#Comment_128763

@cparnot

cparnot Jul 6, 2012

Contributor

OK I am removing the default-locale for teologia-catalunya.

<info>
<title>Teologia Catalunya</title>
<id>http://www.zotero.org/styles/teologia-catalunya</id>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
<info>
<title>The Academy of Management Review (AMR)</title>
<id>http://www.zotero.org/styles/the-academy-of-management-review</id>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only">
+<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
<info>
<title>Turabian Style (Full Note with Bibliography)</title>
<id>http://www.zotero.org/styles/turabian-fullnote-bibliography</id>

0 comments on commit 58bf059

Please sign in to comment.