briankavanaugh / APA-7th-Edition

Microsoft Word XSD for generating APA 7th edition references
MIT License
124 stars 25 forks source link

Generation is in the wrong language #19

Open drx999 opened 5 months ago

drx999 commented 5 months ago

citations in the text are like this: (Interview, sd)

When i try to generate the bibliography it generates this: image

The field that it is generated in, is in englis(us) even tho the language of the souce is set to dutch.

even after setting the field to dutch via the three dots it won't change to a correct form.

the parts that should change are:

I had a look through the code but i was unable to spot where it is going wrong.

eztaban commented 5 months ago

I believe this is related to the solved issue #3.

image

As far as i can tell, the text that does not change is hard coded on line 452 and 464.

Workaround, not solution:

One way to "work around" this until or if it is resolved is to make a copy of the XML file and rename the file, add it to the relevant folders. Modify the name of the bibliography style and give it a new version number version 7.1 (may be optional). Bibliography style name: Line 2136 Version number: 2140

image

Remember to change to local of your language, in the case of dutch, LCID 1043 on line 2176, otherwise it may be difficult to differentiate from the other version of the bibliography.

image

I have tested in my case, in Danish and have highlighted the words that i have changed manually in the code: image

This is how it looks in the drop down menu with my initial tests:

image

Please note, this is not a suggestion to solve the issue, but rather a workaround for you to quickly get a working bibliography in your language. Since the text is hardcoded, it will not allow you to mix Dutch and English entries, but it should allow you to have either one or the other.

eztaban commented 5 months ago

Reintroducing the lines, that was previously commented out according to #3 seemed to fix it for me and did not reintroduce the noted issue on the URLs.

image

My test: image And with different variations in terms of combining having a date and a url or one or the other: image

If somebody else can confirm that it does indeed not reintroduce the URL issue, i can modify the code, reintroduce the automatic translations, and make a pull request.