Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Swedish translation for deck header. #630

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

melissis
Copy link
Contributor

Untested.

This was a bit difficult, in cases where there isn't a well-known Swedish word that means the exact same thing. I hope it turned out well.
I feel like there should be a line break here.
@melissis
Copy link
Contributor Author

I added a bonus pair of line breaks that I don't think was in the English version.

@melissis
Copy link
Contributor Author

I just created a new file on github.com, copied English text and pasted. Is it in UTF-8 now or do I need to do something more?

Copy link
Collaborator

@aplaice aplaice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

The file is indeed UTF-8!


In order for the deck header to be used by CrowdAnki, you also need to change recipes/source_to_anki.yaml, basically copying the Spanish version (or the Chinese version):

https://github.com/anki-geo/ultimate-geography/blob/dc3eed70da1f98735e5c9e266aa77d8f04961714/recipes/source_to_anki.yaml#L34C1-L39C40

(but with a new randomly generated UUID) and then specifying the new header for the two Swedish decks here and here, again similarly to how it's done for Spanish/Chinese.

(Or if you prefer I can do it.)


<b>Ultimate Geography v5.2</b> innehåller:

- världens <a href="https://sv.wikipedia.org/wiki/Lista_%C3%B6ver_sj%C3%A4lvst%C3%A4ndiga_stater"><b>205 självständiga stater</b></a> (820 kort)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that it's best to use the English Wikipedia link here, because that's what we rely on for the listing. For instance, we include (disputed) sovereign states like Taiwan, Palestine or South Ossetia.

@melissis
Copy link
Contributor Author

(but with a new randomly generated UUID)

How do I get a UUID? ; v ;

@aplaice
Copy link
Collaborator

aplaice commented Feb 25, 2024

How do I get a UUID? ; v ;

If you're on a Linux system, then uuidgen will generate one. If you have access to a python runtime, then import uuid; str(uuid.uuid4()) will also do the job. Otherwise, the website https://www.uuidgenerator.net/ seems to do the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants