Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi there!
Here is the Danish translation. I decided to follow as closely as possible the Swedish and Norwegian translations (but actually copied the EN file for this translation).
I hope you can use it 👍
Check list for a new dictionary file:
Find the pluralization rule for your language
en.rb
it is::RailsI18n::Pluralization::OneOther.with_locale(:en)
. Note the rule part i.e.OneOther
. In pagy that translates to the symbol:one_other
.add/edit the first line comment in the language rule in your dictionary file (e.g.
# :one_other pluralization ...
The mandatory pluralized entry in the dictionary file is the
item_name
. Please, provide all the plurals needed by your language. E.g. if your language uses the:east_slavic
you should provide the plurals forone
,few
,many
andother
, if it uses:one_other
, you should provideone
andother
plurals. If it uses:other
you should only provide a single value. Look into other dictionary files to get some example. Ask if in doubt.The other entries in the dictionary file don't need any plural variant in most languages since the pluralization of the
item_name
in the sentence is enough. However, in some language, the whole sentence needs to be written in a different way for different plurals. In that case you should add the different plurals for the sentence and they will get triggered by thecount
.Useful Links