Home Download News FAQ / Knowledge Base Screenshots Documentation Support
philosophical imaginary

Differences

This shows you the differences between two versions of the page.

documentation:customize_webcit [2010/10/24 09:52]
dothebart rewrote translation page to incooperate the launchpad process
documentation:customize_webcit [2015/02/01 07:29] (current)
dothebart arangosh & jshint
Line 74: Line 74:
   * edit webcit/gettext.c, search for ''AvailLang'' and add yours, recompile and restart webcit to view your work   * edit webcit/gettext.c, search for ''AvailLang'' and add yours, recompile and restart webcit to view your work
   * upload your po file to [[https://translations.launchpad.net/citadel/trunk|launchpad]] (if they're not already there) and anounce them on [[https://uncensored.citadel.org|Uncensored!]]   * upload your po file to [[https://translations.launchpad.net/citadel/trunk|launchpad]] (if they're not already there) and anounce them on [[https://uncensored.citadel.org|Uncensored!]]
 +
 +====Using jshint for javascript syntax checking====
 +Most of you know, that javascript is very forgiving about syntax errors; This may speed up development, but comes back on you later on if you run on a less forgiving browser. 
 +Here comes [[http://jshint.com]] to the rescue. It proof-reads the js files, and gives you warnings about what should be proofread. Since jshint is written in javascript itself, one needs an environment to run it in. We use [[https://www.arangodb.com/download|arangoDBs arangosh (see the client packages - they include jshint already)]] for that:
 +
 +  dev@box:~/src/citadel/webcit$ arangosh --jslint static/wclib.js
 +  2015-02-01T12:26:06Z [28541] ERROR jslint: static/wclib.js:31, 38 : Missing semicolon.
 +
 +
Copyright © 1987-2019 Uncensored Communications Group. All rights reserved.     Login (site admin)