63 Commits (cf986ad90309d432b193343fe6b06afd625545b2)

Author SHA1 Message Date
Julian Lam 99dc37bd9c removed relativeTime util method, utils.js better be a C now. 10 years ago
psychobunny 52cf224e5a translator.getTranslations & bug fix 10 years ago
psychobunny 3da6466045 I thought I was on holiday (fixes infinite loop on language calls) 10 years ago
barisusakli 7825b8b951 closes #2416 10 years ago
Thomas Lekanger e0975b85df Update translator mapping for norwegian 10 years ago
barisusakli ae6d5e72f4 closes #2015 11 years ago
barisusakli 8146358aac closes #1905
fixed translator.load, it wasn't passing in language and was trying to
load undefined.json
11 years ago
psychobunny df37c1e235 translator.compile 11 years ago
psychobunny b5d3186120 plugins and themes can now define their own custom language strings. closes #1865 11 years ago
Julian Lam be19222817 en_US will no longer throw js error from missing timeago file 11 years ago
Julian Lam b0b28fad8e removing console logs 11 years ago
psychobunny eb69d898ce use cache-buster in translator instead of timestamp 11 years ago
barisusakli ff2bad635c infinite scroll refactor 11 years ago
psychobunny 99b34d5990 allow translator variables to not require a space, see #1512 11 years ago
psychobunny af54d9fa64 if translator.addTranslation is called before translator is done loading, the loading property is never set, which crashes translator 11 years ago
psychobunny 7b453edb2d don't crash if language file not found
@barisusakli seems like something needs footer.json, maybe it's a plugin
if its not crashing for you
11 years ago
Julian Lam 8934ac1a2d added try..catch to server parsing of translations, in case a file has a syntax error -- #1401 11 years ago
psychobunny e5486db1ae Merge branch 'code-quality' of https://github.com/miksago/NodeBB into miksago-code-quality
Conflicts:
	src/database.js
11 years ago
barisusakli 3ea49a8f90 if language or default language is not set use en 11 years ago
barisusakli 3e60451ce4 closes #1013
lets user change languages,
11 years ago
barisusakli 9125292b0e removed get and mget 11 years ago
barisusakli 8aa4f053e8 converted translator.get to translator.translate 11 years ago
barisusakli fb43282a9c removed for in loop 11 years ago
barisusakli 557426c1c9 translator refactor
no longer loads all language files on startup
11 years ago
Micheil Smith 3e82cab398 Add missing new lines at end of files. 11 years ago
Julian Lam 4161f138f3 adding data-dir attribute for languages 11 years ago
Julian Lam 2430b970f3 fixed issue where timeago strings were not rendering in the correct language on cold loads 11 years ago
Julian Lam 4b45a4b168 fixing persian language timeago mapping 11 years ago
psychobunny 6e8c618fb1 prevent translator crash if data is undefined; linted/cleanup 11 years ago
akhoury 1b207d8276 IE8 support, general cleanups, from native to $ objects ... 11 years ago
Julian Lam 5b16223923 proper RTL handling f hebrew and arabic 11 years ago
Julian Lam daa76e821c Merge branch 'master' of github.com:designcreateplay/NodeBB 11 years ago
Julian Lam 2075049ae0 default en_GB 11 years ago
Baris Soner Usakli 042df13611 merged 11 years ago
Baris Soner Usakli 253c19abeb removed unused var added error log 11 years ago
Julian Lam 7d736f9352 fixed hebrew language string and introducing fallback to english if wrong language is set 11 years ago
Julian Lam 0376e3d574 renamed language directories to ICU standard, upgrade script, no longer promoting english at top of list in languages tab, en now en_GB, encompasses Canadian and English English 11 years ago
Julian Lam d924d01677 timeago fix for brasilian portugueso 11 years ago
Julian Lam 7db231ca54 traditional chinese language pack - 很好? 11 years ago
Julian Lam f9e8178d25 fixed timeagago for zh_cn 11 years ago
Julian Lam 95355f9036 added 'dir' value into language.json, added support for translator to add dir attribute to html element if necessary 11 years ago
Julian Lam c1c9438220 patching translator to ignore non-js files 11 years ago
Julian Lam acc390f6ef added timeago locales, fixed timeago template error in ACP. 11 years ago
Julian Lam c2a1cd94d0 addressing issue for #728 where existing NodeBBs don't have a defaultLang set 11 years ago
Julian Lam df4c6ca1c8 integrating client side translator into new languages tab in ACP 11 years ago
Julian Lam cd6af45afb added icons to all h1s in admin panel
languages tab in ACP
each language now also has a "language.json"
11 years ago
psychobunny 7c8c735e05 i8n - if translation not present, use a readable key 11 years ago
psychobunny ea49295774 some translator methods useful for plugins that wish to support i8n 11 years ago
Julian Lam 2c131f172a fixing up some translations - WIP 11 years ago
psychobunny d9e364cd86 fixes #480 11 years ago