Tom Hughes
466de96a91
Fix new rubocop warnings
2023-06-27 18:13:33 +01:00
Andy Allan
4ab134d869
Use fallbacks for OCI resource names
...
This uses the fallbacks for OCI translations. For example, if a
local chapter doesn't have an explicitly translated name, it will
use a template for osm-lc resources and fill in the appropriate
translated community name.
Fixes #3814
2022-12-14 14:54:01 +00:00
Andy Allan
b755db57a6
Use Pathname.glob to fetch the files
2022-11-02 18:33:32 +00:00
Andy Allan
7e62e2b5ed
Filter out the communities before loading the translations
...
This avoids loading excessive numbers of translations
2022-08-10 17:34:24 +01:00
Andy Allan
bf1f882eb8
Genericese comment
2022-08-10 17:19:46 +01:00
Andy Allan
87bb2a717d
Use each_with_object
2022-08-10 14:01:42 +01:00
Andy Allan
5dcb4aa8fd
Use member syntax for accessing communities
2022-08-10 13:54:14 +01:00
Andy Allan
d20632de9c
Restrict files read from directory
2022-08-10 13:48:27 +01:00
Andy Allan
83a0ea14f1
Refactor i18n so that all community information is available
...
This makes it easier to use non-chapter communities on the site in future.
2022-08-03 10:11:30 +01:00
Andy Allan
bb7f5ac2c8
Switch to using FrozenRecord for loading communities
...
This allows us to query the records to get the local chapters, which
is more flexible and allows us to use other resources too.
2022-07-27 16:19:08 +01:00
Andy Allan
1bcde09125
Unnest OsmCommunityIndex
...
No need for OsmCommunityIndex::OsmCommunityIndex.foo
2022-03-02 16:23:07 +00:00