Skip to content

Commit

Permalink
Merge pull request #3620 from hotosm/translations/4.1.9
Browse files Browse the repository at this point in the history
update translations + intl-libs & remove expertMode requirement to set custom editor
  • Loading branch information
willemarcel committed Sep 22, 2020
2 parents abdcb7c + dd518c2 commit 3d86c0d
Show file tree
Hide file tree
Showing 26 changed files with 46 additions and 26 deletions.
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"license": "BSD-2-Clause",
"private": false,
"dependencies": {
"@formatjs/intl-pluralrules": "^3.4.6",
"@formatjs/intl-relativetimeformat": "^7.2.6",
"@formatjs/intl-pluralrules": "^3.4.7",
"@formatjs/intl-relativetimeformat": "^7.2.7",
"@formatjs/intl-utils": "^3.8.4",
"@formatjs/macro": "^0.2.8",
"@hotosm/id": "^2.18.5",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "",
"notifications.bodytitle.message": "",
"notifications.filter.tasks": "",
"notifications.filter.teams": "",
"notifications.filter.projects": "",
"notifications.filter.clear": "",
"notifications.markAsRead": "",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "Zprávy",
"notifications.bodytitle.message": "Zpráva",
"notifications.filter.tasks": "Úlohy",
"notifications.filter.teams": "Týmy",
"notifications.filter.projects": "Projekty",
"notifications.filter.clear": "Vymazat filtry",
"notifications.markAsRead": "Označit jako přečtené",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "Nachrichten",
"notifications.bodytitle.message": "Nachricht",
"notifications.filter.tasks": "Aufgaben",
"notifications.filter.teams": "Gruppen",
"notifications.filter.projects": "Projekte",
"notifications.filter.clear": "Filter löschen",
"notifications.markAsRead": "Als gelesen markieren",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "Μηνύματα",
"notifications.bodytitle.message": "Μήνυμα",
"notifications.filter.tasks": "Εργασίες",
"notifications.filter.teams": "Ομάδες",
"notifications.filter.projects": "Έργα",
"notifications.filter.clear": "Καθαρισμός φίλτρων",
"notifications.markAsRead": "Σήμανση ως αναγνωσμένο",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "Mensajes",
"notifications.bodytitle.message": "Mensaje",
"notifications.filter.tasks": "Tareas",
"notifications.filter.teams": "Equipos",
"notifications.filter.projects": "Proyectos",
"notifications.filter.clear": "Borrar filtros",
"notifications.markAsRead": "Marcar como leído",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/fa_IR.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "پیام‌ها",
"notifications.bodytitle.message": "پیام",
"notifications.filter.tasks": "وظایف",
"notifications.filter.teams": "تیم ها",
"notifications.filter.projects": "پروژه‌ها",
"notifications.filter.clear": "پاک کردن فیلتر ها",
"notifications.markAsRead": "",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "Messages",
"notifications.bodytitle.message": "Message",
"notifications.filter.tasks": "Tâches",
"notifications.filter.teams": "Équipes",
"notifications.filter.projects": "Projets",
"notifications.filter.clear": "Réinitialiser les filtres",
"notifications.markAsRead": "Marquer comme lu",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "הודעות",
"notifications.bodytitle.message": "הודעה",
"notifications.filter.tasks": "משימות",
"notifications.filter.teams": "צוותים",
"notifications.filter.projects": "מיזמים",
"notifications.filter.clear": "השבתת המסננים",
"notifications.markAsRead": "סימון כנקרא",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "Üzenetek",
"notifications.bodytitle.message": "Üzenet",
"notifications.filter.tasks": "Feladatok",
"notifications.filter.teams": "Csoportok",
"notifications.filter.projects": "Projektek",
"notifications.filter.clear": "Szűrők törlése",
"notifications.markAsRead": "Megjelölés olvasottként",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "Pesan",
"notifications.bodytitle.message": "Pesan",
"notifications.filter.tasks": "Tasks",
"notifications.filter.teams": "Tim",
"notifications.filter.projects": "Proyek",
"notifications.filter.clear": "Hapus filter",
"notifications.markAsRead": "",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "Messaggi",
"notifications.bodytitle.message": "Messaggio",
"notifications.filter.tasks": "Compiti",
"notifications.filter.teams": "Gruppi",
"notifications.filter.projects": "Progetti",
"notifications.filter.clear": "Rimuovi filtri",
"notifications.markAsRead": "Segna come letto",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "メッセージ",
"notifications.bodytitle.message": "メッセージ",
"notifications.filter.tasks": "タスク",
"notifications.filter.teams": "チーム",
"notifications.filter.projects": "プロジェクト",
"notifications.filter.clear": "フィルタを解除",
"notifications.markAsRead": "既読にする",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/mg.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "Hafatra",
"notifications.bodytitle.message": "Hafatra",
"notifications.filter.tasks": "Asa",
"notifications.filter.teams": "",
"notifications.filter.projects": "Tetikasa",
"notifications.filter.clear": "",
"notifications.markAsRead": "",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/ml.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "",
"notifications.bodytitle.message": "",
"notifications.filter.tasks": "",
"notifications.filter.teams": "",
"notifications.filter.projects": "",
"notifications.filter.clear": "",
"notifications.markAsRead": "",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/nl_NL.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "Berichten",
"notifications.bodytitle.message": "Bericht",
"notifications.filter.tasks": "Taken",
"notifications.filter.teams": "Teams",
"notifications.filter.projects": "Projecten",
"notifications.filter.clear": "Filters leegmaken",
"notifications.markAsRead": "Markeren als gelezen",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "Mensagens",
"notifications.bodytitle.message": "Mensagem",
"notifications.filter.tasks": "Tarefas",
"notifications.filter.teams": "Equipas",
"notifications.filter.projects": "Projetos",
"notifications.filter.clear": "Limpar filtros",
"notifications.markAsRead": "Marcar como lida",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "Mensagens",
"notifications.bodytitle.message": "Mensagem",
"notifications.filter.tasks": "Tarefas",
"notifications.filter.teams": "Equipes",
"notifications.filter.projects": "Projetos",
"notifications.filter.clear": "Limpar filtros",
"notifications.markAsRead": "Marcar como lido",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "Meddelanden",
"notifications.bodytitle.message": "Meddelande",
"notifications.filter.tasks": "Uppgifter",
"notifications.filter.teams": "Lag",
"notifications.filter.projects": "Projekt",
"notifications.filter.clear": "Rensa filter",
"notifications.markAsRead": "",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/sw.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "Ujumbe",
"notifications.bodytitle.message": "Ujumbe",
"notifications.filter.tasks": "Kazi",
"notifications.filter.teams": "Timu",
"notifications.filter.projects": "Miradi",
"notifications.filter.clear": "Futa vichujio",
"notifications.markAsRead": "",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/tl.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "",
"notifications.bodytitle.message": "",
"notifications.filter.tasks": "",
"notifications.filter.teams": "",
"notifications.filter.projects": "",
"notifications.filter.clear": "",
"notifications.markAsRead": "",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "Mesajlar",
"notifications.bodytitle.message": "Mesaj",
"notifications.filter.tasks": "Görevler",
"notifications.filter.teams": "Ekipler",
"notifications.filter.projects": "Projeler ",
"notifications.filter.clear": "Filtreleri Temizle",
"notifications.markAsRead": "Okundu olarak işaretle",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "Повідомлення",
"notifications.bodytitle.message": "Повідомлення",
"notifications.filter.tasks": "Завдання",
"notifications.filter.teams": "Команди",
"notifications.filter.projects": "Проєкти",
"notifications.filter.clear": "Скинути фільтри",
"notifications.markAsRead": "Позначити як прочитане",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/zh_TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"notifications.filter.messages": "收件匣",
"notifications.bodytitle.message": "訊息",
"notifications.filter.tasks": "任務",
"notifications.filter.teams": "團隊",
"notifications.filter.projects": "專案",
"notifications.filter.clear": "清除過濾條件",
"notifications.markAsRead": "標示為已讀",
Expand Down
17 changes: 7 additions & 10 deletions frontend/src/views/projectEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export function ProjectEdit({ id }) {
useSetTitleTag(`Edit project #${id}`);
const mandatoryFields = ['name', 'shortDescription', 'description', 'instructions'];
const token = useSelector((state) => state.auth.get('token'));
const user = useSelector((state) => state.auth.get('userDetails'));
const [error, setError] = useState(null);
const [success, setSuccess] = useState(false);
const [languages, setLanguages] = useState(null);
Expand Down Expand Up @@ -133,20 +132,18 @@ export function ProjectEdit({ id }) {
{ value: 'permissions' },
{ value: 'settings' },
{ value: 'actions' },
{ value: 'custom_editor', expert_required: true },
{ value: 'custom_editor' },
];

return (
<div>
<ul className="list pl0 mt0 ttu">
{elements
.filter((elm) => !elm.expert_required || user.isExpert)
.map((elm, n) => (
<li key={n} className={checkSelected(elm.value)} onClick={() => setOption(elm.value)}>
<FormattedMessage {...messages[`projectEditSection_${elm.value}`]} />
{elm.required && ' *'}
</li>
))}
{elements.map((elm, n) => (
<li key={n} className={checkSelected(elm.value)} onClick={() => setOption(elm.value)}>
<FormattedMessage {...messages[`projectEditSection_${elm.value}`]} />
{elm.required && ' *'}
</li>
))}
</ul>
</div>
);
Expand Down
28 changes: 14 additions & 14 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1135,10 +1135,10 @@
resolved "https://registry.yarnpkg.com/@formatjs/ecma402-abstract/-/ecma402-abstract-1.2.0.tgz#5b03ba4931436070ad926d1b2e89bf07edc5ea5b"
integrity sha512-jc1bZHhIE1YI0HnZIZcdlKpF4wle2pkgQpzXHDoyy4bUqzBSvDqktnF26hOkyA04KD4wqd61gkuTvRrHMmroAg==

"@formatjs/ecma402-abstract@^1.2.1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@formatjs/ecma402-abstract/-/ecma402-abstract-1.2.1.tgz#ad966998d7f0e96fca4bdc5de0ca28d02f371279"
integrity sha512-LvbwgHxprafjceDfOC7yMl4sP5al71rAWahXk3qug5bV020aCq64WjqAo+zNnkIJk8hqK2pFKnNdDsT58HZJQw==
"@formatjs/ecma402-abstract@^1.2.2":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@formatjs/ecma402-abstract/-/ecma402-abstract-1.2.2.tgz#4810bdbd696d3805c535fd0620b7c8f45ab3164f"
integrity sha512-mLCoAPGlXCVskb/ojBO6iurGqwo6sZvAl8pRC4N25bz4LPWExAM9LsOo057zN3Br1JxUM3RZHG4YGnVt+nSRYQ==

"@formatjs/intl-displaynames@^3.3.6":
version "3.3.6"
Expand All @@ -1154,12 +1154,12 @@
dependencies:
"@formatjs/ecma402-abstract" "^1.2.0"

"@formatjs/intl-pluralrules@^3.4.6":
version "3.4.6"
resolved "https://registry.yarnpkg.com/@formatjs/intl-pluralrules/-/intl-pluralrules-3.4.6.tgz#3047b1fc5c6f5d097588214a35650b8047d82c2f"
integrity sha512-6/K0Lqlej2bYM1K3HfSNsEURHlsmWJhrE95k/hZdE4wo7k5S7Fc/QUfHlieLQvCXF77n/zVgzp/9bpgxMDxL0A==
"@formatjs/intl-pluralrules@^3.4.7":
version "3.4.7"
resolved "https://registry.yarnpkg.com/@formatjs/intl-pluralrules/-/intl-pluralrules-3.4.7.tgz#5e46383c585f77d96c0e8c845c5579a67c0c1faa"
integrity sha512-CSftdNs8afT1VfB5vQFlSzhEZ+ckbkxzYxNXCeLYt66mXnuCukr7KCsZJHUTMyjlEAnFbfqXnKCtWDs5JMBrog==
dependencies:
"@formatjs/ecma402-abstract" "^1.2.1"
"@formatjs/ecma402-abstract" "^1.2.2"

"@formatjs/intl-relativetimeformat@^7.2.5":
version "7.2.5"
Expand All @@ -1168,12 +1168,12 @@
dependencies:
"@formatjs/ecma402-abstract" "^1.2.0"

"@formatjs/intl-relativetimeformat@^7.2.6":
version "7.2.6"
resolved "https://registry.yarnpkg.com/@formatjs/intl-relativetimeformat/-/intl-relativetimeformat-7.2.6.tgz#7452e0feaa433f341b306e308166058e8126e934"
integrity sha512-SHwrzk9HuAUwl3/qfupU3ZnW4ZgVOpI2+3gwGmvoPOmAlKFlo7liSCszA5hcRpsnhjS66BqUzfx6BWOwzYvmKQ==
"@formatjs/intl-relativetimeformat@^7.2.7":
version "7.2.7"
resolved "https://registry.yarnpkg.com/@formatjs/intl-relativetimeformat/-/intl-relativetimeformat-7.2.7.tgz#dce72ebafb1ca0bf14673fab3b1aad145e1abac6"
integrity sha512-R6rxX4PfPQ/EuDRALLSIEDCDW/FAmmu6xpRXIPdZ33bEP7SXEksJB039Bw//I0VIm2fBeIlxe9oqvRGfuqpwVg==
dependencies:
"@formatjs/ecma402-abstract" "^1.2.1"
"@formatjs/ecma402-abstract" "^1.2.2"

"@formatjs/intl-unified-numberformat@^3.2.0":
version "3.3.2"
Expand Down

0 comments on commit 3d86c0d

Please sign in to comment.