1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-02 07:47:32 +00:00
Mirror
Go to file
2013-04-05 14:50:09 +08:00
api Changed rpc name 2012-12-24 16:53:32 +08:00
api2 [api] seperate UpdatelinkView from UploadLinkView 2013-04-03 17:05:34 +08:00
avatar Remove user from check_group_staff 2013-03-30 11:39:43 +08:00
base rm unused code & file for 'file comment' 2013-04-05 14:50:09 +08:00
contacts Urlencode email 2013-04-02 21:31:01 +08:00
fts Added several functional tests, and fixed a few bugs 2012-12-05 11:44:21 +08:00
group Modified wiki, slugified page link, ignored case when parsing page link. 2013-04-05 14:19:19 +08:00
locale Merge pull request #27 from Pi3R1k/master 2013-04-04 23:23:17 -07:00
logs Added logging 2012-12-27 20:49:50 +08:00
media [discuss to grp] improved form ui & error tip, mv 'list' html to 'group' 2013-04-05 11:52:37 +08:00
notifications [i18n] modified addConfirmTo & updated translation 2013-03-01 17:31:08 +08:00
organizations [repo share popup] added 'groups' & 'contacts' tabs 2013-03-06 14:37:16 +08:00
profile Improve group discuss, change email to nickname or id 2013-03-30 16:20:27 +08:00
share Urlencode email 2013-04-02 21:31:01 +08:00
subdomain Don't use sub domain in default. 2012-06-21 13:19:38 +08:00
templates rm unused code & file for 'file comment' 2013-04-05 14:50:09 +08:00
thirdpart Merge branch 'develop' 2013-03-16 19:40:41 +08:00
tools include latest commit info in source tarball 2013-03-04 13:38:08 +08:00
utils Modified wiki, slugified page link, ignored case when parsing page link. 2013-04-05 14:19:19 +08:00
views rm unused code & file for 'file comment' 2013-04-05 14:50:09 +08:00
__init__.py add user events 2012-09-28 17:04:38 +08:00
.gitignore remove .mo from git; rewrite i18n.sh script 2012-11-06 11:59:37 +08:00
cconvert.py Fix file path bug in cconvert 2012-08-20 17:09:01 +08:00
CONTRIBUTORS Added france support 2013-03-29 19:24:47 +08:00
convert-utf-8.txt Add pinyin autocomplete in group message 2012-08-20 16:51:23 +08:00
forms.py [seahub] translation 2013-02-28 17:42:41 +08:00
HACKING Update registration process 2012-03-13 11:36:56 +08:00
handlers.py improved events for encrypted repo;added events for org[by ls & lj] 2012-10-15 21:03:42 +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
manage.py [Mac] run seahub in mac 2012-07-07 23:11:06 +08:00
po.py add link to commit details 2012-09-25 20:07:46 +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
settings.py Removed org 2013-04-02 19:56:44 +08:00
shortcuts.py Add message reply notification 2012-08-09 16:50:39 +08:00
signals.py improved events for encrypted repo;added events for org[by ls & lj] 2012-10-15 21:03:42 +08:00
test-seahub.sh.template Add notification unit tests 2012-08-19 17:32:44 +08:00
urls.py rm unused code & file for 'file comment' 2013-04-05 14:50:09 +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.