Merge branch 'master' into patch-1

This commit is contained in:
Shengbin Meng 2017-07-21 11:44:26 +08:00 committed by GitHub
commit 2f7d6aa09b
8 changed files with 65 additions and 26 deletions

View File

@ -1,15 +1,20 @@
language: python language: python
python: 2.7
env:
- TOX_ENV=py26
- TOX_ENV=py27
- TOX_ENV=py33
- TOX_ENV=py34
- TOX_ENV=squeeze
- TOX_ENV=wheezy
matrix: matrix:
allow_failures: allow_failures:
- env: TOX_ENV=squeeze - env: TOX_ENV=squeeze
include:
- python: 2.6
env: TOX_ENV=py26
- python: 2.7
env: TOX_ENV=py27
- python: 3.3
env: TOX_ENV=py33
- python: 3.4
env: TOX_ENV=py34
- python: 2.6
env: TOX_ENV=squeeze
- python: 2.7
env: TOX_ENV=wheezy
install: install:
- pip install -U pip - pip install -U pip
- pip install tox - pip install tox

View File

@ -10,7 +10,8 @@
VERSION: '{{ release|e }}', VERSION: '{{ release|e }}',
COLLAPSE_INDEX: false, COLLAPSE_INDEX: false,
FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}', FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
HAS_SOURCE: {{ has_source|lower }} HAS_SOURCE: {{ has_source|lower }},
SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}'
}; };
</script> </script>
{%- for scriptfile in script_files %} {%- for scriptfile in script_files %}

View File

@ -23,11 +23,11 @@ Isso:
"mode": 1, "mode": 1,
"hash": "4505c1eeda98", "hash": "4505c1eeda98",
"author": null, "author": null,
"website": null "website": null,
"created": 1387321261.572392, "created": 1387321261.572392,
"modified": null, "modified": null,
"likes": 3, "likes": 3,
"dislikes": 0, "dislikes": 0
} }
id : id :
@ -70,7 +70,7 @@ modified :
List comments List comments
------------- -------------
List all publicely visible comments for thread `uri`: List all publicly visible comments for thread `uri`:
.. code-block:: text .. code-block:: text

View File

@ -1,9 +1,9 @@
define(["app/config", "app/i18n/bg", "app/i18n/cs", "app/i18n/de", define(["app/config", "app/i18n/bg", "app/i18n/cs", "app/i18n/da",
"app/i18n/en", "app/i18n/fa", "app/i18n/fi", "app/i18n/fr", "app/i18n/de", "app/i18n/en", "app/i18n/fa", "app/i18n/fi",
"app/i18n/hr", "app/i18n/ru", "app/i18n/it", "app/i18n/eo", "app/i18n/fr", "app/i18n/hr", "app/i18n/ru", "app/i18n/it",
"app/i18n/sv", "app/i18n/nl", "app/i18n/el_GR", "app/i18n/es", "app/i18n/eo", "app/i18n/sv", "app/i18n/nl", "app/i18n/el_GR",
"app/i18n/vi", "app/i18n/zh_CN", "app/i18n/zh_CN", "app/i18n/zh_TW"], "app/i18n/es", "app/i18n/vi", "app/i18n/zh_CN", "app/i18n/zh_CN", "app/i18n/zh_TW"],
function(config, bg, cs, de, en, fa, fi, fr, hr, ru, it, eo, sv, nl, el, es, vi, zh, zh_CN, zh_TW) { function(config, bg, cs, da, de, en, fa, fi, fr, hr, ru, it, eo, sv, nl, el, es, vi, zh, zh_CN, zh_TW) {
"use strict"; "use strict";
@ -11,6 +11,7 @@ define(["app/config", "app/i18n/bg", "app/i18n/cs", "app/i18n/de",
switch (lang) { switch (lang) {
case "bg": case "bg":
case "cs": case "cs":
case "da":
case "de": case "de":
case "el": case "el":
case "en": case "en":
@ -57,7 +58,9 @@ define(["app/config", "app/i18n/bg", "app/i18n/cs", "app/i18n/de",
} }
var catalogue = { var catalogue = {
bg: bg,
cs: cs, cs: cs,
da: da,
de: de, de: de,
el: el, el: el,
en: en, en: en,

30
isso/js/app/i18n/da.js Normal file
View File

@ -0,0 +1,30 @@
define({
"postbox-text": "Type Comment Here (at least 3 chars)",
"postbox-author": "Name (optional)",
"postbox-email": "E-mail (optional)",
"postbox-website": "Website (optional)",
"postbox-submit": "Submit",
"num-comments": "One Comment\n{{ n }} Comments",
"no-comments": "Ingen kommentarer endnu",
"comment-reply": "Svar",
"comment-edit": "Rediger",
"comment-save": "Gem",
"comment-delete": "Fjern",
"comment-confirm": "Bekræft",
"comment-close": "Luk",
"comment-cancel": "Annuller",
"comment-deleted": "Kommentar slettet.",
"comment-queued": "Kommentar i kø for moderation.",
"comment-anonymous": "Anonym",
"comment-hidden": "{{ n }} Skjult",
"date-now": "lige nu",
"date-minute": "et minut siden\n{{ n }} minutter siden",
"date-hour": "en time siden\n{{ n }} timer siden",
"date-day": "Igår\n{{ n }} dage siden",
"date-week": "sidste uge\n{{ n }} uger siden",
"date-month": "sidste måned\n{{ n }} måneder siden",
"date-year": "sidste år\n{{ n }} år siden"
});

View File

@ -41,8 +41,8 @@ define(["app/dom", "app/utils", "app/config", "app/api", "app/jade", "app/i18n",
// email is not optional if this config parameter is set // email is not optional if this config parameter is set
if (config["require-email"]) { if (config["require-email"]) {
$("[name='email']", el).placeholder = $("[name='email']", el).setAttribute("placeholder",
$("[name='email']", el).placeholder.replace(/ \(.*\)/, ""); $("[name='email']", el).getAttribute("placeholder").replace(/ \(.*\)/, ""));
} }
// author is not optional if this config parameter is set // author is not optional if this config parameter is set

View File

@ -20,8 +20,8 @@ define(["app/i18n"], function(i18n) {
secs = 0; secs = 0;
} }
var mins = Math.ceil(secs / 60), hours = Math.ceil(mins / 60), var mins = Math.floor(secs / 60), hours = Math.floor(mins / 60),
days = Math.ceil(hours / 24); days = Math.floor(hours / 24);
return secs <= 45 && i18n.translate("date-now") || return secs <= 45 && i18n.translate("date-now") ||
secs <= 90 && i18n.pluralize("date-minute", 1) || secs <= 90 && i18n.pluralize("date-minute", 1) ||
@ -31,11 +31,11 @@ define(["app/i18n"], function(i18n) {
hours <= 36 && i18n.pluralize("date-day", 1) || hours <= 36 && i18n.pluralize("date-day", 1) ||
days <= 5 && i18n.pluralize("date-day", days) || days <= 5 && i18n.pluralize("date-day", days) ||
days <= 8 && i18n.pluralize("date-week", 1) || days <= 8 && i18n.pluralize("date-week", 1) ||
days <= 21 && i18n.pluralize("date-week", Math.ceil(days / 7)) || days <= 21 && i18n.pluralize("date-week", Math.floor(days / 7)) ||
days <= 45 && i18n.pluralize("date-month", 1) || days <= 45 && i18n.pluralize("date-month", 1) ||
days <= 345 && i18n.pluralize("date-month", Math.ceil(days / 30)) || days <= 345 && i18n.pluralize("date-month", Math.floor(days / 30)) ||
days <= 547 && i18n.pluralize("date-year", 1) || days <= 547 && i18n.pluralize("date-year", 1) ||
i18n.pluralize("date-year", Math.ceil(days / 365.25)); i18n.pluralize("date-year", Math.floor(days / 365.25));
}; };
var HTMLEntity = { var HTMLEntity = {

View File

@ -10,7 +10,7 @@ dbpath = /tmp/comments.db
# required to dispatch multiple websites, not used otherwise. # required to dispatch multiple websites, not used otherwise.
name = name =
# Your website(s). If Isso is unable to connect to at least on site, you'll # Your website(s). If Isso is unable to connect to at least one site, you'll
# get a warning during startup and comments are most likely non-functional. # get a warning during startup and comments are most likely non-functional.
# #
# You'll need at least one host/website to run Isso. This is due to security # You'll need at least one host/website to run Isso. This is due to security