Commit Graph
606 Commits
Author SHA1 Message Date
Discourse Translator Bot 91486a75fc I18N: Update translations (#37499) 2026-02-03 22:32:01 +01:00
Sam a1c2ac845d DEV: fix a large amount of typos (#37428) 2026-02-02 16:31:58 +11:00
Discourse Translator Bot b53965f3b8 I18N: Update translations (#37210) 2026-01-20 11:58:39 +01:00
Discourse Translator Bot 6195137f5c I18N: Update translations (#37191) 2026-01-19 09:28:46 +01:00
Discourse Translator Bot 9027f71e88 I18N: Update translations (#37167) 2026-01-16 10:37:38 +01:00
Michael Brown e935afbb62 DEV: always load the excon gem
We ran into trouble with MethodProfiler referencing excon without having loaded
it as it was relying on an initialiser to load it and depending on the side
effect.

If the excon gem is going to be loaded anyways, it doesn't make sense to have
it not loaded by default; this will be more robust.
2026-01-15 17:13:11 -05:00
Discourse Translator Bot 30cf75dc17 I18N: Update translations (#37101) 2026-01-14 09:39:58 +01:00
Discourse Translator Bot 0c35fea4dc I18N: Update translations (#37085) 2026-01-13 17:05:45 +01:00
Discourse Translator Bot bb8cfb8a65 I18N: Update translations (#37056) 2026-01-12 15:18:57 +01:00
Discourse Translator Bot 10baf7a53e I18N: Update translations (#36996) 2026-01-08 19:25:17 +01:00
Kris 59d53dc18a UX: add admin sidebar icons for preinstalled plugins (#36764)
Currently all our preinstalled plugins use the default "gear" icon from
fontawesome — this PR adds unique icons for each of them using a new
plugin API method, `setAdminPluginIcon()`. Plugins without an icon
defined will still fall back to the gear icon.


Before:
<img width="250" alt="image"
src="https://github.com/user-attachments/assets/06b5c6e7-0aae-44f8-b8ee-1486b98bfc6b"
/>


After: 
<img width="250" alt="image"
src="https://github.com/user-attachments/assets/46d45d4b-6c75-4473-ae53-1a0e71c4d6fb"
/>
2025-12-18 16:39:00 -05:00
Régis Hanol f453463cfb FIX: Emoji.exists? should be consistent with Emoji[] (#36347)
This ensures that both "Emoji.exists?" and "Emoji[]" use the same lookup
"algorithm" when trying to match an emoji "name" with an emoji in the
database.

This ensures the normalization of the name into a single value handles
both skin tones and aliases.

Closes #33130
2025-12-01 18:58:30 +01:00
Discourse Translator Bot 8b9edc8829 Update translations (#35983) 2025-11-20 14:38:50 +01:00
d10c1e57e8 DEV: Overhaul typechecking configuration (#35794)
- Switches to typescript 'composite project' mode for improved
organization & performance
- Generates declarations from core modules, and outputs to a new
`@discourse/types` package
- Introduces tsconfigs for core plugins, which leans on that new
`@discourse/types` package
- In future, we plan to publish this discourse-types package for other
themes/plugins to use

The motivation at this stage is primarily to improve editor
autocompletion. We provide absolutely no guarantees about the accuracy
or stability of the generated types.

For now, some issues have been resolved by adding manual `@type`
declarations.

In particular, extensionless imports of `.gjs` files are broken when
running in composite-project mode, so in those cases we have to add
manual `@type {import("./the-file.gjs").default}` declarations.
Unfortunately this failure does not show up in IDEs. We hope to get this
resolved soon.

---------

Co-authored-by: David Taylor <david@taylorhq.com>
Co-authored-by: Chris Manson <chris@manson.ie>
2025-11-12 12:54:34 +00:00
Discourse Translator Bot aaadbc0c22 Update translations (#35791) 2025-11-04 20:11:21 +01:00
Jarek Radosz 60dadd2166 DEV: Remove unnecessary freeze calls (#35064)
All those files have `# frozen_string_literal: true`
2025-09-30 15:36:16 +02:00
Jarek RadoszandLoïc Guitaut e372355fd0 DEV: Clean up scope resolution operators in plugins (#34979)
Co-authored-by: Loïc Guitaut <loic@discourse.org>
2025-09-30 14:36:34 +02:00
Discourse Translator Bot e0b849beac Update translations (#34839) 2025-09-24 14:48:18 +02:00
Discourse Translator Bot ccf379900d Update translations (#34804) 2025-09-15 10:47:22 +02:00
Discourse Translator Bot 3a8a9f27ce Update translations (#34745) 2025-09-12 16:17:25 +02:00
Discourse Translator Bot 5a8f5e8f07 Update translations (#34658) 2025-09-01 10:54:32 +02:00
Discourse Translator Bot fbdb1e2070 Update translations (#34537) 2025-08-26 16:12:30 +02:00
Discourse Translator Bot 9c429cd00e Update translations (#34510) 2025-08-25 11:43:23 +02:00
Discourse Translator Bot e44347414a Update translations (#34482) 2025-08-22 17:11:31 +02:00
Discourse Translator Bot 7d3bfe978e Update translations (#34436) 2025-08-21 11:02:39 +02:00
Martin Brennan ad2d3007d5 FEATURE: Disable user tips + narrative bot welcome post for all sites (round 2) (#34373)
We want to temporarily disable user tips and the Discobot welcome PM
on all sites by default until we have time to improve their
functionality, because
right now they create a lot of noise for new members and admins without
providing obvious benefits.

Existing sites which have customized any of these localization strings will have
`disable_discourse_narrative_bot_welcome_post` kept as `false`:

* system_messages.welcome_user.subject_template OR
* system_messages.welcome_user.text_body_template OR
* discourse_narrative_bot.new_user_narrative.hello.message

Followup revert 70859e277f.
2025-08-21 09:17:20 +10:00
Discourse Translator BotandGerhard Schlager ab0b0573a1 Update translations (#34413)
Co-authored-by: Gerhard Schlager <gerhard.schlager@discourse.org>
2025-08-19 16:23:59 +02:00
Discourse Translator Bot 74066bffa2 Update translations (#34116) 2025-08-19 12:14:51 +02:00
Martin Brennan 70859e277f Revert "FEATURE: Disable user tips + narrative bot welcome post for all sites (#34316)" (#34370)
This reverts commit 443caf1bed.

Need to iron out some more issues first.
2025-08-18 15:58:58 +10:00
Martin Brennan 443caf1bed FEATURE: Disable user tips + narrative bot welcome post for all sites (#34316)
We want to temporarily disable user tips and the Discobot welcome PM
on all sites by default until we have time to improve their
functionality, because
right now they create a lot of noise for new members and admins without
providing obvious benefits.
2025-08-18 11:43:39 +10:00
Discourse Translator Bot fa87576fcf Update translations (#33892) 2025-07-28 18:38:22 +02:00
Kris 2d111e2a9a UX: show all preinstalled plugins and label them as such (#33681)
Instead of listing the redundant commit hash, this now shows
"preinstalled" for the relevant components and links to
https://meta.discourse.org/t/bundling-more-popular-plugins-with-discourse-core/373574.
This is accomplished by checking the URL of the plugin for
`"/discourse/discourse/tree/main/plugins/"` which indicates it's part of
the core Discourse repo.

I've also removed the `hide_plugin` flag from existing preinstalled
plugins. Now Discourse admins will have more clarity into what's
included.

I also made some minor layout adjustments: 
* Larger click area for "how to install a plugin" banner
* Moved "Learn more" into a separate line for consistent positioning

Before:
<img width="2182" height="1192" alt="image"
src="https://github.com/user-attachments/assets/b2943a7f-5212-4abd-8b80-d0d071378f06"
/>


After:
<img width="2226" height="1184" alt="image"
src="https://github.com/user-attachments/assets/0846a2c9-fc1b-435c-b51f-b966af5ade09"
/>
2025-07-17 15:11:52 -04:00
Sérgio Saquetim 301f27caaa DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
Discourse Translator Bot 6e7947949f Update translations (#33516) 2025-07-09 15:27:10 +02:00
Discourse Translator Bot 59367ac03f Update translations (#33409) 2025-07-02 22:36:37 +02:00
chapoi 5e8b92b789 UX: Updated gear to plus icon in discobot tutorial (#33343)
Discobot advanced tutorial needed the gear icon replaced by the new plus
icon.
Related to #32918
2025-06-25 12:07:23 +02:00
Discourse Translator Bot b08d5ad7b7 Update translations (#33052) 2025-06-03 17:37:13 +02:00
Discourse Translator Bot f2ed537559 Update translations (#32815) 2025-05-20 17:33:42 +02:00
Discourse Translator Bot e806cfbe1f Update translations (#32703) 2025-05-14 14:34:07 +02:00
Discourse Translator Bot c411f4930d Update translations (#32595) 2025-05-06 11:29:38 -04:00
Discourse Translator Bot 303b4bfbae Update translations (#32216) 2025-04-28 13:41:04 +02:00
Osama Sayegh f7f7642ae0 UX: Improve naming for anonymous mode settings (#31832)
This PR renames a couple of settings related to anonymous mode:

1. `allow_anonymous_posting` → `allow_anonymous_mode`. This setting is
used as a switch for the entire anonymous mode feature, so it makes
sense to give it a generic name that better reflects what the setting
does.
2. `allow_anonymous_likes` → `allow_likes_in_anonymous_mode`. The new
name is clearer and will match a new setting that we'll add to allow
anonymous users to post in chat.

Internal topic: t/148088.
2025-03-21 04:54:06 +03:00
Discourse Translator Bot 464da9a4fb Update translations (#31875) 2025-03-18 15:08:14 +01:00
Discourse Translator Bot d3c68ef1a7 Update translations (#31747) 2025-03-11 17:47:42 +01:00
Alan Guo Xiang Tan 19acb61834 DEV: Remove unnecessary require (#31727)
`DistributedMutex` is eager loaded in production/test and autoloaded in
development.
2025-03-10 16:56:56 +08:00
Discourse Translator Bot b467fe1347 Update translations (#31617) 2025-03-04 16:12:11 +01:00
Discourse Translator Bot 61d8cce569 Update translations (#31501) 2025-02-25 15:11:27 +01:00
Osama Sayegh 3a8e078116 FIX: Use []() Markdown syntax for links instead of <> for narrative bot (#31496)
In one of the discourse narrative bot tutorial steps, we show the user a
few links and ask them to copy one and paste it in a reply to teach them
about oneboxes. In order to prevent the links from getting oneboxed in
the bot's post, we enclose them in `<>` which makes the links render
as-is without oneboxing.

However, if an admin attempts to customize via site texts the tutorial
step about onebox, the links enclosed in `<>` get removed completely
from the step content because they're interpreted as HTML tags when the
text override goes through sanitization (see [relevant
code](https://github.com/discourse/discourse/blob/424da95128bd2e92c4d8e42baf65a947602e9c68/app/models/translation_override.rb#L73-L74)).

To prevent that, this commit changes the default content for the onebox step
to use the `[]()` syntax which doesn't get sanitized and also doesn't
get oneboxed.

Internal topic: t/147912.
2025-02-25 11:51:15 +03:00
Martin Brennan 4eed96f511 FIX: Discobot onebox step sometimes not working (#31472)
This issue was found via Discobot. In part of the tutorial
for Discobot, it asks for a URL on one line so it can demonstrate
how oneboxes work.

The way it does this when the user replies is to cook the
post raw and check if there is a cached onebox for the URL
in the post. However, if you reply really fast to Discobot
with the URL without waiting for the onebox to appear in the
composer preview, it's not cached by the time we do this
check in the Discobot code.

This commit fixes the issue by following a more simplified
approach, where we check for the existence of one of the
following links from the onebox instructions:

```
https://en.wikipedia.org/wiki/Inherently_funny_word
https://en.wikipedia.org/wiki/Death_by_coconut
https://en.wikipedia.org/wiki/Calculator_spelling
```

This will fall down if someone customizes the onebox
step text, or if the user uses a different link instead,
but we are willing to accept that risk at this time to simplify things.
2025-02-25 12:41:37 +10:00
Discourse Translator Bot 122e1384bc Update translations (#31470) 2025-02-24 15:11:55 +11:00