style localization

Hi !

I tried to localize properly my csl style file, in order to display all the terms in french (month and years, accessed, translator ... in french).

If I understand well, the localisation data have to be embedded in the .csl file. So I imported the locale fr-FR data in my file.

The csl file seems to work fine with the word processor. But I have an issue with the visual csl editor (http://editor.citationstyles.org/).
When I load my style, the editor is crashing:

Uncaught TypeError: Cannot read property 'documentation' of undefined
url: http://editor.citationstyles.org/cslEditorLib/src/VisualEditor.js?bust=e3662bdc4188a6395afa454ac66f0a6a28664bba
line: 14931

Could someone please give a look at my work, something is weird with it.
here is the link to it:
https://www.dropbox.com/s/v7mpu9h6r6csz0t/2014-12-30-FLTE-like-dev-localFR.csl?dl=0

Thanks in advance !
  • How ! And when I install the style, the zotero style manager prompt that my style is not a valid 1.0.1 csl style. :weird:
  • You don't actually need to include the entire locale file -- it's included in Zotero. Just setting the default-locale to fr-FR (as you have) is enough to localize the file to French. If you need to change individual terms, the basic structure of what you need to add is just

    <locale>
    <terms>
    <term></term>
    </terms>
    </locale>

    (that's also why the style is invalid - you can't just copy over the locale file).
  • Thanks adamsmith.
    I tried this way because I had issues with the translation of the date (janvier instead of january, etc). So I tried to override the default locale.
    I have to check that default locale file. Where is the default-locale fr-FR stored ?
    (I'm running with the zotero standalone).
  • I'm not sure I understand - so you want january or you want janvier? I.e. English or French terms?
  • Sorry. My file was localized in english. I had "january", but wanted "janvier".
    I did a batch of tests, it's now working fine, inserting default-locale="fr-FR" is enough (no need to to include the entire locale file !).
    Thank you !
Sign In or Register to comment.