Commit Graph

63 Commits

Author SHA1 Message Date
Julian Lam
99dc37bd9c removed relativeTime util method, utils.js better be a C now. 2015-01-19 15:43:22 -05:00
psychobunny
52cf224e5a translator.getTranslations & bug fix 2015-01-07 18:31:32 -05:00
psychobunny
3da6466045 I thought I was on holiday (fixes infinite loop on language calls) 2015-01-03 03:38:01 -05:00
barisusakli
7825b8b951 closes #2416 2014-11-15 16:12:06 -05:00
Thomas Lekanger
e0975b85df Update translator mapping for norwegian 2014-11-01 18:46:58 +01:00
barisusakli
ae6d5e72f4 closes #2015 2014-09-01 14:09:47 -04:00
barisusakli
8146358aac closes #1905
fixed translator.load, it wasn't passing in language and was trying to
load undefined.json
2014-07-26 23:41:22 -04:00
psychobunny
df37c1e235 translator.compile 2014-07-24 16:04:21 -04:00
psychobunny
b5d3186120 plugins and themes can now define their own custom language strings. closes #1865 2014-07-21 14:37:46 -04:00
Julian Lam
be19222817 en_US will no longer throw js error from missing timeago file 2014-05-30 14:45:55 -04:00
Julian Lam
b0b28fad8e removing console logs 2014-05-25 15:57:00 -04:00
psychobunny
eb69d898ce use cache-buster in translator instead of timestamp 2014-05-24 17:58:49 -04:00
barisusakli
ff2bad635c infinite scroll refactor 2014-05-17 17:55:55 -04:00
psychobunny
99b34d5990 allow translator variables to not require a space, see #1512 2014-05-09 12:47:42 -04:00
psychobunny
af54d9fa64 if translator.addTranslation is called before translator is done loading, the loading property is never set, which crashes translator 2014-04-19 10:52:53 -04:00
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
2014-04-19 10:01:01 -04:00
Julian Lam
8934ac1a2d added try..catch to server parsing of translations, in case a file has a syntax error -- #1401 2014-04-18 12:55:11 -04:00
psychobunny
e5486db1ae Merge branch 'code-quality' of https://github.com/miksago/NodeBB into miksago-code-quality
Conflicts:
	src/database.js
2014-04-14 17:36:10 -04:00
barisusakli
3ea49a8f90 if language or default language is not set use en 2014-04-14 17:17:02 -04:00
barisusakli
3e60451ce4 closes #1013
lets user change languages,
2014-04-14 15:58:19 -04:00
barisusakli
9125292b0e removed get and mget 2014-04-13 22:24:21 -04:00
barisusakli
8aa4f053e8 converted translator.get to translator.translate 2014-04-13 22:16:43 -04:00
barisusakli
fb43282a9c removed for in loop 2014-04-13 22:04:08 -04:00
barisusakli
557426c1c9 translator refactor
no longer loads all language files on startup
2014-04-13 16:24:12 -04:00
Micheil Smith
3e82cab398 Add missing new lines at end of files. 2014-04-10 20:56:53 +01:00
Julian Lam
4161f138f3 adding data-dir attribute for languages 2014-03-29 21:43:33 -04:00
Julian Lam
2430b970f3 fixed issue where timeago strings were not rendering in the correct language on cold loads 2014-03-29 17:44:13 -04:00
Julian Lam
4b45a4b168 fixing persian language timeago mapping 2014-03-29 17:33:20 -04:00
psychobunny
6e8c618fb1 prevent translator crash if data is undefined; linted/cleanup 2014-03-04 15:18:05 -05:00
akhoury
1b207d8276 IE8 support, general cleanups, from native to $ objects ... 2014-02-26 21:55:29 -05:00
Julian Lam
5b16223923 proper RTL handling f hebrew and arabic 2014-02-09 15:52:02 -05:00
Julian Lam
daa76e821c Merge branch 'master' of github.com:designcreateplay/NodeBB 2014-02-09 13:24:51 -05:00
Julian Lam
2075049ae0 default en_GB 2014-02-09 13:24:45 -05:00
Baris Soner Usakli
042df13611 merged 2014-02-09 13:09:36 -05:00
Baris Soner Usakli
253c19abeb removed unused var added error log 2014-02-09 13:08:25 -05:00
Julian Lam
7d736f9352 fixed hebrew language string and introducing fallback to english if wrong language is set 2014-02-09 12:15:47 -05:00
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 2014-01-30 15:39:51 -05:00
Julian Lam
d924d01677 timeago fix for brasilian portugueso 2014-01-27 12:28:36 -05:00
Julian Lam
7db231ca54 traditional chinese language pack - 很好? 2014-01-21 22:30:03 -05:00
Julian Lam
f9e8178d25 fixed timeagago for zh_cn 2014-01-20 13:16:23 -05:00
Julian Lam
95355f9036 added 'dir' value into language.json, added support for translator to add dir attribute to html element if necessary 2014-01-20 11:04:06 -05:00
Julian Lam
c1c9438220 patching translator to ignore non-js files 2014-01-17 08:58:33 -05:00
Julian Lam
acc390f6ef added timeago locales, fixed timeago template error in ACP. 2014-01-14 11:13:58 -05:00
Julian Lam
c2a1cd94d0 addressing issue for #728 where existing NodeBBs don't have a defaultLang set 2014-01-09 13:42:35 -05:00
Julian Lam
df4c6ca1c8 integrating client side translator into new languages tab in ACP 2014-01-09 13:37:25 -05:00
Julian Lam
cd6af45afb added icons to all h1s in admin panel
languages tab in ACP
each language now also has a "language.json"
2014-01-09 13:29:41 -05:00
psychobunny
7c8c735e05 i8n - if translation not present, use a readable key 2014-01-06 02:49:41 -05:00
psychobunny
ea49295774 some translator methods useful for plugins that wish to support i8n 2014-01-04 18:15:10 -05:00
Julian Lam
2c131f172a fixing up some translations - WIP 2013-12-05 18:27:37 -05:00
psychobunny
d9e364cd86 fixes #480 2013-11-04 12:14:36 -05:00