This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Fallbacks
We store static translation data in Rails in en-US. How can we make sure things don’t need to be duplicated for all the en variations like en-GB, en-CA etc.?
One solution could be to define a virtual root locale which would equal to en-US.
Then for en-GB we’d have a fallback route like:
en-GB » en » root (en-US)
This also should work for en-US itself:
en-US » en
… as everything defined in en-US would already be found in the original locale root could be omitted in this case.
So, the algorithm could be:
fallbacks = locale.parents << root
… with locale.parents returning an array of the locale itself and all parents of the locale.






