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
psychobunny
6c44db9a0c
closes #3490
10 years ago
Julian Lam
3b3c383d93
adding a fallback for en_GB and en_US
10 years ago
Julian Lam
3d9415b65e
Fixes #3442
10 years ago
barisusakli
5e3e1f8781
#3430
10 years ago
barisusakli
6e630b3cfd
closes #3434 , thanks to @psychobunny
10 years ago
Julian Lam
1b812068ca
Fix bug where translator would split on all colons, and not just the first
10 years ago
barisusakli
954c25823e
closes #3352
10 years ago
Julian Lam
b2a69758ee
added back multi-line support for translator
10 years ago
Julian Lam
eaa35c8057
making translator regex stricter, so it doesn't match language strings that won't ever exist
10 years ago
psychobunny
5ff9a7f9a9
allow multiline support for translator
...
see: https://github.com/psychobunny/templates.js/issues/36
10 years ago
Barış Soner Uşaklı
b717da0229
Merge pull request #3110 from pitaj/master
...
Fixed translator backwards compatibility issue
10 years ago
Ole R.
22e227a6cd
fixed error-report within translator.js
...
reported by [rex-huang](https://community.nodebb.org/user/rex-huang ), see https://community.nodebb.org/topic/4520/error-handling-is-wrong-in-translator-js
10 years ago
Peter Jaszkowiak
ad7b561dd4
Fixed translator backwards compatibility issue
...
Also removed the _clearMenus global object because populating the global namespace is bad, bad, bad
10 years ago
Julian Lam
47a7ab15be
refactored translator system to be a require.js module, and not a global
10 years ago