Commit Graph

59 Commits (e0975b85df5a160d33d8897a489215b7cd91b704)

Author SHA1 Message Date
Thomas Lekanger e0975b85df Update translator mapping for norwegian
barisusakli ae6d5e72f4 closes
barisusakli 8146358aac closes
fixed translator.load, it wasn't passing in language and was trying to
load undefined.json
psychobunny df37c1e235 translator.compile
psychobunny b5d3186120 plugins and themes can now define their own custom language strings. closes
Julian Lam be19222817 en_US will no longer throw js error from missing timeago file
Julian Lam b0b28fad8e removing console logs
psychobunny eb69d898ce use cache-buster in translator instead of timestamp
barisusakli ff2bad635c infinite scroll refactor
psychobunny 99b34d5990 allow translator variables to not require a space, see
psychobunny af54d9fa64 if translator.addTranslation is called before translator is done loading, the loading property is never set, which crashes translator
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
Julian Lam 8934ac1a2d added try..catch to server parsing of translations, in case a file has a syntax error --
psychobunny e5486db1ae Merge branch 'code-quality' of https://github.com/miksago/NodeBB into miksago-code-quality
Conflicts:
	src/database.js
barisusakli 3ea49a8f90 if language or default language is not set use en
barisusakli 3e60451ce4 closes
lets user change languages,
barisusakli 9125292b0e removed get and mget
barisusakli 8aa4f053e8 converted translator.get to translator.translate
barisusakli fb43282a9c removed for in loop
barisusakli 557426c1c9 translator refactor
no longer loads all language files on startup
Micheil Smith 3e82cab398 Add missing new lines at end of files.
Julian Lam 4161f138f3 adding data-dir attribute for languages
Julian Lam 2430b970f3 fixed issue where timeago strings were not rendering in the correct language on cold loads
Julian Lam 4b45a4b168 fixing persian language timeago mapping
psychobunny 6e8c618fb1 prevent translator crash if data is undefined; linted/cleanup
akhoury 1b207d8276 IE8 support, general cleanups, from native to $ objects ...
Julian Lam 5b16223923 proper RTL handling f hebrew and arabic
Julian Lam daa76e821c Merge branch 'master' of github.com:designcreateplay/NodeBB
Julian Lam 2075049ae0 default en_GB
Baris Soner Usakli 042df13611 merged
Baris Soner Usakli 253c19abeb removed unused var added error log
Julian Lam 7d736f9352 fixed hebrew language string and introducing fallback to english if wrong language is set
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
Julian Lam d924d01677 timeago fix for brasilian portugueso
Julian Lam 7db231ca54 traditional chinese language pack - 很好?
Julian Lam f9e8178d25 fixed timeagago for zh_cn
Julian Lam 95355f9036 added 'dir' value into language.json, added support for translator to add dir attribute to html element if necessary
Julian Lam c1c9438220 patching translator to ignore non-js files
Julian Lam acc390f6ef added timeago locales, fixed timeago template error in ACP.
Julian Lam c2a1cd94d0 addressing issue for where existing NodeBBs don't have a defaultLang set
Julian Lam df4c6ca1c8 integrating client side translator into new languages tab in ACP
Julian Lam cd6af45afb added icons to all h1s in admin panel
languages tab in ACP
each language now also has a "language.json"
psychobunny 7c8c735e05 i8n - if translation not present, use a readable key
psychobunny ea49295774 some translator methods useful for plugins that wish to support i8n
Julian Lam 2c131f172a fixing up some translations - WIP
psychobunny d9e364cd86 fixes
Baris Usakli 27f421587e closes
Baris Usakli 45feef5884 closes
psychobunny de1e3230f5 fixed topics and admin views, broken after merge
psychobunny cd63dd429b finalizing todo's before merging