אני חדש בקהילה הזו ורק התקנתי שרת Discourse.
אני מנסה כרגע לשנות את ההודעה “ברוך שובך, USER!” שרואים כשמגיעים לאתר וכשמחוברים.
אז הלכתי לטקסטים ומצאתי את " js.welcome_banner.header.logged_in_members"
הבעיה שלי היא שמפתח האינטרפולציה “preferred_display_name” נראה כמו המפתח היחיד הזמין לשדה הזה.
לא מצאתי שום התייחסות למפתח הזה בתיעוד של Discourse, ואם אני מנסה לשים משהו אחר, כמו “username” או “name”, בשמירה, אני מקבל הודעה שאומרת שהמפתח לא חוקי.
You cannot use keys in texts that aren’t provided by the code. Sometimes you can see a list of available keys, but usually only the ones the text uses are available.
Why do you want to use username or name instead? The preferred display name will be replaced by one of them depending on your site’s configuration.
If you have enabled display_name_on_posts and disabled prioritize_username_in_ux, the banner will use the name. Otherwise it will use the username.
You could start a topic in Feature about adding name and username keys so the admin has a chance to decide independently from the settings.