64 Commits (4bb49a717188e9b318f8dcf453666e606c2a758b)

Author SHA1 Message Date
Peter Jaszkowiak 04bb6513b0 ESlint no-cond-assign, no-void, valid-jsdoc 8 years ago
Peter Jaszkowiak 1493afee2a ESlint indent 8 years ago
Peter Jaszkowiak f3a8256f35 ESlint strict 8 years ago
Peter Jaszkowiak a038c66549 ESlint quotes 8 years ago
Peter Jaszkowiak 277a7fb8b4 ESlint key-spacing, no-trailing-spaces 8 years ago
Peter Jaszkowiak b09b3aef7f ESlint no-undef, remove global comments 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
Peter Jaszkowiak 360a35d0a6 Resolve merge conflicts 8 years ago
Peter Jaszkowiak bb7a35b85c Fix translator catching JS errors in callbacks 8 years ago
Peter Jaszkowiak 05b68391dd Use `/assets` for client assets
- Route `/assets` -> `build/public`, falling back on `public`
- Moved destinations for `nodebb.min.js`, `acp.min.js`, `admin.css`, `stylesheet.css`, `templates`, and `sounds` to `build/public`
- r.js modules previously routed through express are now symlinked into `public/build/src/modules`
- minfiles no longer served from a memory cache
- use config `views_dir` setting everywhere template directory is used
- fix cache buster `v=v=`
8 years ago
Peter Jaszkowiak e1a29f4aa8 Switch to `assets` route 8 years ago
Peter Jaszkowiak b4b3be3d97 Cache bust translations, query param name 8 years ago
Peter Jaszkowiak 2f07c18c5a All hail the glorious translation prebuilding 8 years ago
Peter Jaszkowiak ffa2bd14f8 Fix reverse proxies breaking admin translations 8 years ago
Peter Jaszkowiak bae1daf5dc Bootbox wrapper improvements 8 years ago
Peter Jaszkowiak 0b4c39338e Translation bootbox wrapper
- Replaced minfied bootbox file with unminified one since it's minified at build anyways
- Removed existing override
- Made translator more verbose in dev mode; it now warns about missing translations
8 years ago
Peter Jaszkowiak bb5fe0cc83 Escape arguments in `Translator.compile` 8 years ago
Peter Jaszkowiak a81aad61ab Add tests for translator static methods 8 years ago
Peter Jaszkowiak 7c697759e9 Escape and ignore `%` and `\,` in translator args 8 years ago
Peter Jaszkowiak 5843e8dd77 Fix Translator to work with namespace paths 8 years ago
Peter Jaszkowiak de6ced4e07 Tests for admin search, simplifications 8 years ago
Peter Jaszkowiak c5237443cd Standard language codes (#5218)
* Use standard language codes. Fallback for plugins.

* Fix transifex config

* Tab vs space here for some reason

* Remove redundancies

* config.relative_path instead of allcaps

* added upgrade script for existing users' accounts
8 years ago
Peter Jaszkowiak 2824ce5587 Translator modules (#5135)
* Translator modules

* Fix language not being passed on creation

* fix test failures
8 years ago
Peter Jaszkowiak f519a36560 Fix #5112, translator now accepts keys with `/` (#5114) 8 years ago
HeeL 9a0d764bbd Fix wrap-iife linter rule 8 years ago
Peter Jaszkowiak 2ce33ba2b0 Fix #5102, translator made more safe (#5106) 8 years ago
barisusakli 1866f93e9c closes #5045 9 years ago
barisusakli 33306f6236 show stack on error 9 years ago
barisusakli e69ff93a49 dont translate non strings 9 years ago
barisusakli 9ba3612895 remove winston 9 years ago
Peter Jaszkowiak 59ed13b581 Rewrite translator for efficiency and clarity (#5013)
* Rewrite translator for efficiency and clarity

* Fixed failing tests

* Gorram tabs

* Move cache to Translator class, simplify creation

* Documentation and linting

* Use new translator API where it makes sense

* Revert 499fbe21fdd5b7f2735a27e76a300f69039cfbd3 (except translator.d.ts)

* promise polyfill for node<4

* Set `load` on the prototype

* Comment on Translator#translate

* Delete translator.d.ts

* Support translations added by plugins
9 years ago
Julian Lam 80d89a086e fixed issue where NodeBB was trying to JSON.parse [object Object]
re: #4982
9 years ago
Julian Lam bb80dc360e closes #4982 9 years ago
Julian Lam c9c60ef8ed fixes #4982 9 years ago
Julian Lam 785f4fc5a0 updating to jQuery 3.x on frontend and ACP 9 years ago
Julian Lam b4df9427d5 linting 9 years ago
lex(a) mourek 2a7732789d Fixed czech translation for timeago (#4622)
When czech language is set, browser throws 404 Not Found error on jquery.timeago.cz.js
Thats because translation file were renamed 
81f072ebb2
https://github.com/NodeBB/NodeBB/blob/master/public/vendor/jquery/timeago/locales/jquery.timeago.cs.js

so that cs->cz override is no needed anymore.
9 years ago
Julian Lam 621e0d145e closes #4617
Serving english timeago strings from server instead of round-trip
re-request on failure.
9 years ago
barisusakli e2f78a9585 closes #4432 9 years ago
barisusakli 07c1a822db closes #4318 closes #4309 9 years ago
psychobunny a320ec3efb closes #4178 9 years ago
barisusakli 3567f2ad55 closes #4208 9 years ago
Ole R 91ec4c80c2 Oops, fix call of undefined 9 years ago
Ole R 2bcd4e1e3f Fix undefined S within translator
If you `require(['string'], function (stringLib) { S = stringLib; })` it is an async call and thus you need to ensure any usage of `S` happens when this is resolved.
9 years ago
Julian Lam baaad13286 reverted latest change to translator match regex
- Fixes issue with parentheses in translations (closes #4107)
- No longer marking translation keys invalid if they contain HTML,
  as that was probably not performant. Instead, parameters will
  simply be escaped via the StringJS library.
9 years ago
Julian Lam 99315e1c73 updated translator so that language key parameters cannot contain
html in them (or more specifically, < and >)
9 years ago
Julian Lam 2d48faf5df Fixed #4033
Also related to regression first caused by the fix to #3695 from
fcb381f922

Also, added tests for translator. omg.
9 years ago
Julian Lam fcb381f922 Fixes #3695
Guests now trigger topic notifications, and the translator has
been updated so that translations inside translations are
handled in a way that doesn't cause the translator to explode.
9 years ago
Julian Lam a091067175 closes #3963 9 years ago
barisusakli ca294fc6ec closes #3663 10 years ago