How to “Localize” Wikipedia Citation Templates
Hi!
I am a Zotero noob but I use it all the time. Also I work pretty much on Wikipedia. Now I discovered that Zotero provides the Wikipedia Citation Template which is really really great and saves many much time. But...
I work on the german language Wikipedia and we have somewhat different citation templates. All the parameters and so on have different names (german names instead of the english ones). The english templates work on de-WP but it would be nicer to tell Zotero how it should fill the “right“ (german language) templates.
I like to “see“ the english “Wikipedia Citation Templates“ xml files and want to translate them. But I don't find them. Please help me :)
How can I change the existing “Wikipedia Citation Template“ to a localized ”german language Wikipedia Citation Template“?
I am a Zotero noob but I use it all the time. Also I work pretty much on Wikipedia. Now I discovered that Zotero provides the Wikipedia Citation Template which is really really great and saves many much time. But...
I work on the german language Wikipedia and we have somewhat different citation templates. All the parameters and so on have different names (german names instead of the english ones). The english templates work on de-WP but it would be nicer to tell Zotero how it should fill the “right“ (german language) templates.
I like to “see“ the english “Wikipedia Citation Templates“ xml files and want to translate them. But I don't find them. Please help me :)
How can I change the existing “Wikipedia Citation Template“ to a localized ”german language Wikipedia Citation Template“?
https://github.com/zotero/translators/blob/master/Wikipedia%20Citation%20Templates.js
this should be quite easy to translate if you just want to do it for yourself (you will want to change the translator ID, too, as otherwise Zotero will overwrite your changes), the translator is in your Zotero data directory in the folder "translators".
http://www.zotero.org/support/zotero_data
If we want to do this globally this is trickier, as I'm not sure we'd want to add another export translator for the German template, but translators, as opposed to citation styles, don't have a localization option built in.
https://github.com/zotero/translators/blob/master/Wikipedia%20Citation%20Templates.js#L4
so you can distinguish the two in the export menu. ) and they'll both work.
I have now two different styles and if i drag an element from my database into a text-field (e.g. emacs) the template name is „Literatur“ instead of “cite book“.
But how do i change the parameter names “author“ ->“Autor”, “title“->“Titel“, “publisher“ ->“Verlag“ etc. Can't find these strings in the file
https://github.com/zotero/translators/blob/master/Wikipedia%20Citation%20Templates.js#L135
properties.author muss zu properties.Autor werden und genauso fuer all anderen properties.xyz
Bin kein Javascript Experte ;)
Daher habe ich das gar nicht als Möglichkeit in Betracht gezogen.
Danke für die Hilfe
1. There are parameter names which use Umlaute
2. The Literatur-Template is very different to the cite-book templae
3. I am neither a js not a zotero developer, thus i have problems in implementing the stuff.
->I stick to the englisch template