Peter Jaszkowiak
542ae5e71f
Extract in-place translation from bootbox wrapper for use anywhere
8 years ago
barisusakli
08dd412896
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
...
# Conflicts:
# src/upgrade.js
8 years ago
Peter Jaszkowiak
9d8ff4ea3e
Fix images not displaying in signatures
8 years ago
barisusakli
e3205bcfad
merge
8 years ago
Peter Jaszkowiak
0fe10f5e86
Escape topic titles at the source, deduplicate
8 years ago
Julian Lam
a141835cf8
Merge branch 'master' into develop
8 years ago
Peter Jaszkowiak
1fb48ef7a7
Fix #5592 ( #5593 )
...
* Fix #5592
Escape translation tokens in topic titles, descriptions, profile about, and post contents
* Fix tests
8 years ago
Peter Jaszkowiak
484a800327
Merge branch master into develop
8 years ago
Peter Jaszkowiak
980e9026f3
Fix #5588 , translator ignores unclosed tokens
8 years ago
Julian Lam
72e77772db
Merge branch 'master' into develop
8 years ago
Peter Jaszkowiak
93f38d4f30
ESlint no-multi-assign
...
and max-nested-callbacks, no-mixed-requires, max-statements-per-line
8 years ago
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
Julian Lam
8a0a74d95e
Merge remote-tracking branch 'origin/master' into develop
8 years ago
Julian Lam
bfd16d188e
Merge branch 'master' into develop
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
barisusakli
f1f00b63fb
closes #5400
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