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

Merged
merged 13 commits into from
Jun 13, 2024
Merged

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.)

src/headers/desc_sv.html Outdated Show resolved Hide resolved
@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.

@aplaice
Copy link
Collaborator

aplaice commented Jun 13, 2024

I think that we can merge this! (I'll leave this open for a while longer in case somebody catches something, but will otherwise squash/merge this soon.)

Sorry @melissis for the delay and thanks for the translation!

@aplaice aplaice merged commit 9b8b3d2 into anki-geo:master Jun 13, 2024
1 check passed
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

3 participants