1
0
mirror of https://github.com/flarum/core.git synced 2025-07-25 10:41:24 +02:00
Commit Graph

13 Commits

Author SHA1 Message Date
Toby Zerner
6cce84e8c1 Remove unused translations 2015-09-05 16:05:02 +09:30
Toby Zerner
ce7bb507d8 Remove unused translations 2015-09-04 12:19:09 +09:30
Toby Zerner
455b00e234 Add header comment; PSR-2 fixes; remove seeders 2015-08-26 16:56:32 +09:30
Toby Zerner
e0124e72a9 Remove ability for users to delete themselves 2015-08-04 21:35:41 +09:30
Toby Zerner
2cf3c340bc Change discussion list activity language 2015-07-28 21:13:14 +09:30
Toby Zerner
bc4a000078 Fix sign up modal 2015-07-23 14:30:55 +09:30
Toby Zerner
91010d1607 Move locale files 2015-07-22 16:05:24 +09:30
Toby Zerner
ebf7c78969 Update event post API
- Use more appropriate component class name
- Allow username to be moved in translation
2015-07-20 18:12:08 +09:30
Toby Zerner
3a955187ce Change discussion list sorting labels 2015-07-20 18:11:04 +09:30
Toby Zerner
4b919304d1 Fix HTML entity 2015-07-17 17:52:45 +09:30
Toby Zerner
95fdece370 Remove duplicates; replace missing commas 2015-07-17 17:47:53 +09:30
Toby Zerner
0a1191d56c Make front-end localizable 2015-07-17 17:43:28 +09:30
Toby Zerner
f82aaa82a5 Lay the groundwork for translation & refactor asset compilation
Ditched the idea of having language packs as extensions. Reasoning:

1. Because we use machine keys for translations (rather than English
keys), extensions need to be able to define default translations. If
English translations are to be included in extensions and not in a
language pack extension, then it doesn’t make sense to have other
languages as language pack extensions. Inconsistency → complexity.

2. Translations should maintain version parity with their respective
extensions. There’s no way to do this if extension translations are
external to the extension.

Instead, localisation will be a core effort, as well as a per-extension
effort. Translators will be encouraged to send PRs to core + extensions.

In core, each locale has a directory containing three files:
- translations.yml
- config.js: contains pluralisation logic for the JS app, as well as
moment.js localisation if necessary
- config.php: contains pluralisation logic for the PHP app

Extensions can use the Flarum\Extend\Locale extender to add/override
translations/config to a locale.

Asset compilation has been completely refactored with a better
architecture. Translations + config.js are compiled and cached for the
currently active locale.
2015-06-10 14:23:56 +09:30