David Taylor
5a003715d3
DEV: Apply syntax_tree formatting to `app/*`
2023-01-09 14:14:59 +00:00
Dan Ungureanu
69f0f48dc0
DEV: Fix rubocop issues ( #14715 )
2021-10-27 11:39:28 +03:00
Gerhard Schlager
3b2f6e129a
FEATURE: Add English (UK) as locale ( #11768 )
...
* "English" gets renamed into "English (US)"
* "English (UK)" replaces "English"
@discourse-translator-bot keep_translations_and_approvals
2021-01-20 21:32:22 +01:00
Krzysztof Kotlarek
427d54b2b0
DEV: Upgrading Discourse to Zeitwerk ( #8098 )
...
Zeitwerk simplifies working with dependencies in dev and makes it easier reloading class chains.
We no longer need to use Rails "require_dependency" anywhere and instead can just use standard
Ruby patterns to require files.
This is a far reaching change and we expect some followups here.
2019-10-02 14:01:53 +10:00
Gerhard Schlager
b788948985
FEATURE: English locale with international date formats
...
Makes en_US the new default locale
2019-05-20 13:47:20 +02:00
Sam Saffron
30990006a9
DEV: enable frozen string literal on all files
...
This reduces chances of errors where consumers of strings mutate inputs
and reduces memory usage of the app.
Test suite passes now, but there may be some stuff left, so we will run
a few sites on a branch prior to merging
2019-05-13 09:31:32 +08:00
Gerhard Schlager
eb52c5469e
FEATURE: Allow plugins to register a new locale
2018-01-25 14:57:41 +01:00
Gerhard Schlager
86c86a1ddb
FIX: prevent loading of invalid locales from plugins
2017-12-20 12:14:39 +01:00
Robin Ward
9e03b5c69a
FIX: Don't load other locales in test mode
2017-11-15 12:50:20 -05:00
Robin Ward
fc73de9578
Support for finding new locales in plugins
2017-11-15 11:20:04 -05:00
Guo Xiang Tan
5012d46cbd
Add rubocop to our build. ( #5004 )
2017-07-28 10:20:09 +09:00
Robin Ward
c94e6f1b96
Add locale step
2016-09-22 09:52:19 -04:00
Sam
a5f46c98c1
PERF: only load locale files we are using
...
We used to load up all translations in all languages
2015-02-12 12:08:14 +11:00
Akshay
9524b514c6
Fix access specifiers with private_class_methods instead of removing directly
2014-10-04 09:20:41 +05:30
Akshay
9d11ccc42e
removed usless access modifiers specified in models
2014-08-19 07:28:21 +05:30
Neil Lalonde
6e79197519
Enum site settings can have translatable names in dropdown. Add setting for how often users get digest emails by default: default_digest_email_frequency.
2013-08-23 17:36:25 -04:00
Sam
ea932b74e7
values is a much more consistent name than all_values ... we use {}.values not {}.all_values
...
also fixes random ordering of tests failure in site settings
2013-06-23 15:07:49 +10:00
Neil Lalonde
ef18a3ad5c
Locales should be sorted in dropdown
2013-06-13 12:18:11 -04:00
Neil Lalonde
5ff7e570ac
Add support for enum site settings that render as a dropdown; use a dropdown for default_locale
2013-06-11 11:40:14 -04:00