summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--ansible/VERSION2
-rw-r--r--docker/prod/docker-compose.yml6
-rw-r--r--docs/src/contributing_websocket_http_api.md2
-rw-r--r--server/src/version.rs2
-rw-r--r--ui/src/components/sponsors.tsx5
-rw-r--r--ui/src/i18next.ts10
-rw-r--r--ui/src/utils.ts42
-rw-r--r--ui/src/version.ts2
-rw-r--r--ui/translations/gl.json1
-rw-r--r--ui/translations/hu.json1
-rw-r--r--ui/translations/pl.json12
-rw-r--r--ui/translations/tr.json1
-rw-r--r--ui/translations/uk.json1
14 files changed, 65 insertions, 24 deletions
diff --git a/README.md b/README.md
index 9c4f6bfa..09b2540f 100644
--- a/README.md
+++ b/README.md
@@ -44,7 +44,7 @@ The overall goal is to create an easily self-hostable, decentralized alternative
Each lemmy server can set its own moderation policy; appointing site-wide admins, and community moderators to keep out the trolls, and foster a healthy, non-toxic environment where all can feel comfortable contributing.
-*Note: Federation is still in active development*
+*Note: Federation is still in active development and the WebSocket, as well as, HTTP API are currently unstable*
### Why's it called Lemmy?
diff --git a/ansible/VERSION b/ansible/VERSION
index 7696aef2..e31dcbc4 100644
--- a/ansible/VERSION
+++ b/ansible/VERSION
@@ -1 +1 @@
-v0.6.69
+v0.6.71
diff --git a/docker/prod/docker-compose.yml b/docker/prod/docker-compose.yml
index fb829529..db6e4004 100644
--- a/docker/prod/docker-compose.yml
+++ b/docker/prod/docker-compose.yml
@@ -1,4 +1,4 @@
-version: '3.3'
+version: '2.2'
services:
postgres:
@@ -12,7 +12,7 @@ services:
restart: always
lemmy:
- image: dessalines/lemmy:v0.6.69
+ image: dessalines/lemmy:v0.6.71
ports:
- "127.0.0.1:8536:8536"
restart: always
@@ -32,6 +32,7 @@ services:
volumes:
- ./volumes/pictshare:/usr/share/nginx/html/data
restart: always
+ mem_limit: 100m
iframely:
image: dogbin/iframely:latest
@@ -40,3 +41,4 @@ services:
volumes:
- ./iframely.config.local.js:/iframely/config.local.js:ro
restart: always
+ mem_limit: 100m
diff --git a/docs/src/contributing_websocket_http_api.md b/docs/src/contributing_websocket_http_api.md
index f228f94e..567f674c 100644
--- a/docs/src/contributing_websocket_http_api.md
+++ b/docs/src/contributing_websocket_http_api.md
@@ -1,6 +1,6 @@
# Lemmy API
-*Note: this may lag behind the actual API endpoints [here](../server/src/api).*
+*Note: this may lag behind the actual API endpoints [here](../server/src/api). The API should be considered unstable and may change any time.*
<!-- toc -->
diff --git a/server/src/version.rs b/server/src/version.rs
index 9c7b4a0b..354b86b4 100644
--- a/server/src/version.rs
+++ b/server/src/version.rs
@@ -1 +1 @@
-pub const VERSION: &str = "v0.6.69";
+pub const VERSION: &str = "v0.6.71";
diff --git a/ui/src/components/sponsors.tsx b/ui/src/components/sponsors.tsx
index cf2bee82..35ec7635 100644
--- a/ui/src/components/sponsors.tsx
+++ b/ui/src/components/sponsors.tsx
@@ -10,10 +10,9 @@ interface SilverUser {
}
let general = [
+ 'Ernest Wiśniewski',
+ 'HN',
'Forrest Weghorst',
- 'Serge Tarkovski',
- 'alexx henry',
- 'Nathan J. Goode',
'Andre Vallestero',
'NotTooHighToHack',
];
diff --git a/ui/src/i18next.ts b/ui/src/i18next.ts
index f2b8c10e..5fa8f4e8 100644
--- a/ui/src/i18next.ts
+++ b/ui/src/i18next.ts
@@ -16,9 +16,14 @@ import { fi } from './translations/fi';
import { ca } from './translations/ca';
import { fa } from './translations/fa';
import { hi } from './translations/hi';
+import { pl } from './translations/pl';
import { pt_BR } from './translations/pt_BR';
import { ja } from './translations/ja';
import { ka } from './translations/ka';
+import { gl } from './translations/gl';
+import { tr } from './translations/tr';
+import { hu } from './translations/hu';
+import { uk } from './translations/uk';
// https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
const resources = {
@@ -39,8 +44,13 @@ const resources = {
fi,
ca,
fa,
+ pl,
pt_BR,
ja,
+ gl,
+ tr,
+ hu,
+ uk,
};
function format(value: any, format: any, lng: any): any {
diff --git a/ui/src/utils.ts b/ui/src/utils.ts
index 82900cab..81bb0147 100644
--- a/ui/src/utils.ts
+++ b/ui/src/utils.ts
@@ -12,10 +12,15 @@ import 'moment/locale/it';
import 'moment/locale/fi';
import 'moment/locale/ca';
import 'moment/locale/fa';
+import 'moment/locale/pl';
import 'moment/locale/pt-br';
import 'moment/locale/ja';
import 'moment/locale/ka';
import 'moment/locale/hi';
+import 'moment/locale/gl';
+import 'moment/locale/tr';
+import 'moment/locale/hu';
+import 'moment/locale/uk';
import {
UserOperation,
@@ -66,15 +71,20 @@ export const languages = [
{ code: 'eo', name: 'Esperanto' },
{ code: 'es', name: 'Español' },
{ code: 'de', name: 'Deutsch' },
+ { code: 'gl', name: 'Galego' },
+ { code: 'hu', name: 'Magyar Nyelv' },
{ code: 'ka', name: 'ქართული ენა' },
{ code: 'hi', name: 'मानक हिन्दी' },
{ code: 'fa', name: 'فارسی' },
{ code: 'ja', name: '日本語' },
+ { code: 'pl', name: 'Polski' },
{ code: 'pt_BR', name: 'Português Brasileiro' },
{ code: 'zh', name: '中文' },
{ code: 'fi', name: 'Suomi' },
{ code: 'fr', name: 'Français' },
{ code: 'sv', name: 'Svenska' },
+ { code: 'tr', name: 'Türkçe' },
+ { code: 'uk', name: 'українська мова' },
{ code: 'ru', name: 'Русский' },
{ code: 'nl', name: 'Nederlands' },
{ code: 'it', name: 'Italiano' },
@@ -366,6 +376,8 @@ export function getMomentLanguage(): string {
lang = 'ca';
} else if (lang.startsWith('fa')) {
lang = 'fa';
+ } else if (lang.startsWith('pl')) {
+ lang = 'pl';
} else if (lang.startsWith('pt')) {
lang = 'pt-br';
} else if (lang.startsWith('ja')) {
@@ -378,6 +390,14 @@ export function getMomentLanguage(): string {
lang = 'el';
} else if (lang.startsWith('eu')) {
lang = 'eu';
+ } else if (lang.startsWith('gl')) {
+ lang = 'gl';
+ } else if (lang.startsWith('tr')) {
+ lang = 'tr';
+ } else if (lang.startsWith('hu')) {
+ lang = 'hu';
+ } else if (lang.startsWith('uk')) {
+ lang = 'uk';
} else {
lang = 'en';
}
@@ -863,14 +883,18 @@ export function previewLines(text: string, lines: number = 3): string {
}
function canUseWebP() {
- var elem = document.createElement('canvas');
-
- if (!!(elem.getContext && elem.getContext('2d'))) {
- var testString = !(window.mozInnerScreenX == null) ? 'png' : 'webp';
- // was able or not to get WebP representation
- return elem.toDataURL('image/webp').startsWith('data:image/' + testString);
- }
-
- // very old browser like IE 8, canvas not supported
+ // TODO pictshare might have a webp conversion bug, try disabling this
return false;
+
+ // var elem = document.createElement('canvas');
+ // if (!!(elem.getContext && elem.getContext('2d'))) {
+ // var testString = !(window.mozInnerScreenX == null) ? 'png' : 'webp';
+ // // was able or not to get WebP representation
+ // return (
+ // elem.toDataURL('image/webp').startsWith('data:image/' + testString)
+ // );
+ // }
+
+ // // very old browser like IE 8, canvas not supported
+ // return false;
}
diff --git a/ui/src/version.ts b/ui/src/version.ts
index 4448d741..9abc8bce 100644
--- a/ui/src/version.ts
+++ b/ui/src/version.ts
@@ -1 +1 @@
-export const version: string = 'v0.6.69';
+export const version: string = 'v0.6.71';
diff --git a/ui/translations/gl.json b/ui/translations/gl.json
new file mode 100644
index 00000000..0967ef42
--- /dev/null
+++ b/ui/translations/gl.json
@@ -0,0 +1 @@
+{}
diff --git a/ui/translations/hu.json b/ui/translations/hu.json
new file mode 100644
index 00000000..0967ef42
--- /dev/null
+++ b/ui/translations/hu.json
@@ -0,0 +1 @@
+{}
diff --git a/ui/translations/pl.json b/ui/translations/pl.json
index d9bb8b27..ad2e9c1c 100644
--- a/ui/translations/pl.json
+++ b/ui/translations/pl.json
@@ -65,14 +65,14 @@
"remove_as_admin": "wycofaj uprawnienia administratora",
"appoint_as_admin": "przyznaj uprawnienia administratora",
"remove": "usuń",
- "removed": "usunięte",
+ "removed": "usunięte przez moderatora",
"locked": "zablokowane",
"stickied": "przyklejone",
"reason": "Powód",
"mark_as_read": "zaznacz jako przeczytane",
"mark_as_unread": "zaznacz jako nieprzeczytane",
"delete": "usuń",
- "deleted": "usunięte",
+ "deleted": "usunięte przez autora",
"delete_account": "Usuń Konto",
"delete_account_confirm": "Ostrzeżenie: twoje dane zostaną bezpowrotnie usunięte. Wpisz swoje hasło aby potwierdzić.",
"restore": "przywróć",
@@ -189,7 +189,7 @@
"theme": "Motyw",
"sponsors": "Sponsorzy",
"sponsors_of_lemmy": "Sponsorzy projektu Lemmy",
- "sponsor_message": "Lemmy jest wolnym, <1>otwartoźródłowym</1> oprogramowaniem, co oznacza zero reklam, opłat, czy innych form kapitalizacji, od zawsze na zawsze. Twoje darowizny idą bezpośrednio na rozwój projektu w pełno-etatowym wymiarze. Specjalne wyrazy podziękowania dla następujących osób:",
+ "sponsor_message": "Lemmy jest wolnym, <1>otwartoźródłowym</1> oprogramowaniem, bez reklam, opłat, czy innych form kapitalizacji, od zawsze na zawsze. Twoje darowizny idą bezpośrednio na rozwój projektu w pełno-etatowym wymiarze. Specjalne wyrazy podziękowania dla następujących osób:",
"support_on_patreon": "Wspieraj w serwisie Patreon",
"support_on_liberapay": "Wspieraj na Liberapay",
"donate_to_lemmy": "Przekaż datek na Lemmiego",
@@ -209,7 +209,7 @@
"are_you_sure": "na pewno?",
"no": "nie",
"powered_by": "Powered by",
- "landing": "Lemmy jest <1>agregatorem linków</1> / alternatywą dla reddita. Jest przeznaczony do działania w ramach cyfrowej przestrzeni nazywanej <2>fediverse<2>. <3></3>Opiera się na samodzielnym hostingu, posiada aktualizowane na żywo wątki z komentarzami, i zajmuje bardzo mało miejsce (<4>~80kB</4>). Federacja w ramach sieci ActivityPub jest w planach. <5></5>Ta wersja jest <6>bardzo wczesną wersją beta</6>, co oznacza, że wiele funkcji nadal nie działa tak jak powinny. <7></7><8>Pod tym adresem</8> można sugerować nową funkcjonalność i zgłaszać błędy.<9></9>Stworzono z wykorzystaniem <10>Rust</10>, <11>Actix</11>, <12>Inferno</12>, <13>Typescript</13>.",
+ "landing_0": "Lemmy jest <1>agregatorem linków</1> / alternatywą dla reddita. Jest przeznaczony do działania w ramach cyfrowej przestrzeni nazywanej <2>fediverse</2>. <3></3>Opiera się na samodzielnym hostingu, posiada aktualizowane na żywo wątki z komentarzami, i zajmuje bardzo mało miejsce (<4>~80kB</4>). Federacja w ramach sieci ActivityPub jest w planach. <5></5>Ta wersja jest <6>bardzo wczesną wersją beta</6>, co oznacza, że wiele funkcji nadal nie działa tak jak powinny. <7></7><8>Pod tym adresem</8> można sugerować nową funkcjonalność i zgłaszać błędy.<9></9>Stworzono z wykorzystaniem <10>Rust</10>, <11>Actix</11>, <12>Inferno</12>, <13>Typescript</13>.",
"not_logged_in": "Nie jesteś zalogowana/y.",
"logged_in": "Zalogowano.",
"community_ban": "Zostałaś/eś zbanowana/y z tej społeczności.",
@@ -260,5 +260,7 @@
"site_saved": "Witryna Zapisana.",
"admin_settings": "Ustawienia Administratora",
"emoji_picker": "Wybór Emoji",
- "silver_sponsors": "Srebrni Sponsorzy to ci, którzy wpłacili co najmniej $40 na Lemmiego."
+ "silver_sponsors": "Srebrni Sponsorzy to ci, którzy wpłacili co najmniej $40 na Lemmiego.",
+ "select_a_community": "Wybierz społeczność",
+ "invalid_username": "Nieprawidłowa nazwa użytkownika."
}
diff --git a/ui/translations/tr.json b/ui/translations/tr.json
new file mode 100644
index 00000000..0967ef42
--- /dev/null
+++ b/ui/translations/tr.json
@@ -0,0 +1 @@
+{}
diff --git a/ui/translations/uk.json b/ui/translations/uk.json
new file mode 100644
index 00000000..0967ef42
--- /dev/null
+++ b/ui/translations/uk.json
@@ -0,0 +1 @@
+{}