1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-27 02:51:00 +00:00
Mirror
Go to file
2013-08-12 15:24:35 +02:00
locale [fr] update translation 2013-08-12 15:23:16 +02:00
media [sub-lib] divided into 'sync' & 'syncable share' 2013-08-12 15:49:51 +08:00
seahub [events] rm unused code & handled 'abort' in ajax error 2013-08-12 18:25:31 +08:00
subdomain Don't use sub domain in default. 2012-06-21 13:19:38 +08:00
thirdpart Move auth from thirdpart to seahub 2013-05-07 15:16:05 +08:00
tools [tools] improve recording latest commit id in gen-tarball.py 2013-07-25 11:05:17 +08:00
.gitignore improve .gitignore 2013-05-18 10:51:24 +08:00
code-check.sh Fixed ajax bugs and pylint checking bug 2013-07-30 11:10:45 +08:00
compilemessages.sh i18n 2013-06-05 14:19:01 +08:00
CONTRIBUTORS remove duplicate name in CONTRIBUTORS file 2013-08-12 15:24:35 +02:00
HACKING Update registration process 2012-03-13 11:36:56 +08:00
i18n.sh fixed a bug in i18n.sh script 2012-12-06 14:49:14 +08:00
LICENSE.txt Fixed unique key length bug in MySQL, and added license file. 2013-01-24 11:44:45 +08:00
makemessages.sh.template Update all po files 2013-06-05 14:19:02 +08:00
manage.py Change code structure to fit django 1.5 2013-05-02 19:27:17 +08:00
pylintrc add code-check.sh to improve code quality 2013-07-29 16:55:49 +08:00
README.markdown Update readme 2013-03-01 13:45:00 +08:00
run-fts.sh Added several functional tests, and fixed a few bugs 2012-12-05 11:44:21 +08:00
run-seahub.sh.template [Mac] run seahub in mac 2012-07-07 23:11:06 +08:00
send_user_notifications.sh.template Rewrite user notificatione sending 2013-01-21 21:36:04 +08:00
setenv.sh.template Improved README 2013-01-08 11:52:54 +08:00
test-seahub.sh.template Add notification unit tests 2012-08-19 17:32:44 +08:00

Introduction

Seahub is the web frontend for Seafle.

Preparation

Getting it

You can grab souce code from GitHub.

$ git clone git://github.com/haiwen/seahub.git

Configuration

Modify CCNET_CONF_DIR, SEAFILE_CONF_DIR and PYTHONPATH in setenv.sh.template to fit your path.

CCNET_CONF_DIR is the directory contains ccnet.conf.

SEAFILE_CONF_DIR is the directory contains seafile.conf.

Run and Verify

Run as:

./run-seahub.sh.template

Then open your browser, and input http://localhost:8000/, there should be a Login page. You can create admin account using seahub-admin.py script under tools/ directory.

Internationalization (I18n)

You are welcome to add translation in your language. For example, if you like to add Russian translation.

First, you need to add your language code to Settings.py. In this case, add ('ru', gettext_noop(u'Русский')), to LANGUAGES tuple.

Then, run this command:

django-admin.py makemessages -l ru -e py,html

There will be a file named django.po under locale/ru/LC_MESSAGES.

NOTE: If you install your Django source under thirdpart, you need to ignore all files under Django directory, otherwise the po file will become large.

django-admin.py makemessages -l ru -e py,html -i "thirdpart/Django-1.3-py2.7-egg/*"

After you modified django.po, you can run ./i18n.sh compile-all, this will create .mo file under same directory with django.po.

That's it. After restart Seahub, you can select popup button at right top, and your translations are ready for use.