From 1b6ab79ff126cfcce678b316aeecdd4f2a34b869 Mon Sep 17 00:00:00 2001 From: Avris Date: Wed, 24 Nov 2021 23:08:14 +0100 Subject: [PATCH] [ja] wip (code adjustments) --- locale/ja/translations.suml | 12 ++++++++++++ server/routes/user.js | 1 - src/classes.js | 3 +++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/locale/ja/translations.suml b/locale/ja/translations.suml index 59045f17..9a3d8a83 100644 --- a/locale/ja/translations.suml +++ b/locale/ja/translations.suml @@ -148,6 +148,18 @@ community: images: 'フラグのカタログの外から追加画像' definition: '意味' +terminology: + header: 'Terminology' + headerLong: 'Dictionary of queer terminology' + info: + - > + A dictionary of terms related to the LGBTQ+ community. + term: 'Term' + original: 'Etymology' + category: 'Category' + images: 'Additional images, from outside the flag catalogue' + definition: 'Definition' + faq: header: 'FAQ' headerLong: 'よくある質問' diff --git a/server/routes/user.js b/server/routes/user.js index 9b867085..f68dfbd6 100644 --- a/server/routes/user.js +++ b/server/routes/user.js @@ -176,7 +176,6 @@ const reloadUser = async (req, res, next) => { return; } - console.log('reloadUser'); await req.db.get(SQL`UPDATE users SET lastActive = ${+new Date} WHERE id = ${req.user.id}`); if (req.user.username !== dbUser.username diff --git a/src/classes.js b/src/classes.js index 6250a0fb..7f64d8f0 100644 --- a/src/classes.js +++ b/src/classes.js @@ -300,6 +300,9 @@ export class Pronoun { nameOptions() { const options = new Set(); const optionsN = (this.morphemes[MORPHEMES[0]] || '').split('&'); + if (MORPHEMES.length === 1) { + return optionsN; + } const optionsG = (this.morphemes[MORPHEMES[1]] || '').split('&'); const optionsGAlt = MORPHEMES.length > 2 ? (this.morphemes[MORPHEMES[2]] || '').split('&') : [];