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

Fix/german translation #131

Merged
merged 6 commits into from
Nov 7, 2024
Merged

Fix/german translation #131

merged 6 commits into from
Nov 7, 2024

Conversation

bellisk
Copy link
Contributor

@bellisk bellisk commented Nov 4, 2024

No description provided.

@bellisk bellisk changed the base branch from main to migration November 4, 2024 14:36
@bellisk bellisk force-pushed the fix/german-translation branch 2 times, most recently from b1ca9c4 to 1c0adc4 Compare November 5, 2024 15:30
The German translation for this string in CKAN contains an extra variable that is not in the original string. This causes an error on viewing some dataset activities.
@bellisk bellisk force-pushed the fix/german-translation branch from 4d2d7a7 to 6e1aa42 Compare November 7, 2024 07:49
This template is here not to be overriden, but so that when we update our translation files, we keep the translations in the template. This is necessary because one of the translations is wrong in CKAN core and causes an error when the template is used.
Comment on lines -451 to -457
#: ckanext/switzerland/templates/package/snippets/resource_item.html:25
msgid "Preview"
msgstr ""

#: ckanext/switzerland/templates/package/snippets/resource_item.html:28
msgid "More information"
msgstr ""
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these strings were removed from the template because we now just invoke {{ super() }} where they were.

Comment on lines +668 to +675
#: ckanext/switzerland/templates/snippets/changes/resource_extras.html:87
msgid ""
"Changed value of field <q>{key}</q> to <q>{new_val}</q> in resource "
"{resource_link} in {pkg_link}"
msgstr ""
"Wert des Feldes <q>{key}</q> wurde geändert zu <q>{new_val}</q> in der "
"Ressource {resource_link} in {pkg_link}"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the string that is translated wrongly in CKAN and causes errors (the msgstr has an extra variable that is not in the msgid). Double checked that this is our correct translation. ;)

@bellisk bellisk merged commit 5b08ae6 into migration Nov 7, 2024
4 checks passed
@bellisk bellisk deleted the fix/german-translation branch November 7, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants