pycontw / pycon.tw

PyCon TW Proposal System & Backend Server
https://tw.pycon.org/prs
MIT License
94 stars 107 forks source link

adjust first_time_speaker selection option description for a better u… #1120

Closed krnick closed 1 year ago

krnick commented 1 year ago

Types of changes

Thanks for sending a pull request! Please fill in the following content to let us know better about this change. Please put an x in the box that applies

Description

Describe what the change is Change the first_time_speaker select option as described below for a better understanding

中文

第一次擔任講者

是,我第一次擔任 PyCon Taiwan 講者 否,我過去曾擔任過 PyCon Taiwan 講者

您過去是否擔任過 PyCon Taiwan 的講者 <- 移除

English

First time speaker

"Yes, it is my first time speaking at PyCon Taiwan." "No, I have given talks at PyCon Taiwan in the past."

Have you ever been a speaker at PyCon Taiwan in the past? <- remove

Ref: https://discord.com/channels/752904426057892052/945359728719069236/1076776787134136350

josix commented 1 year ago

Thanks for bringing this up. For the time constraints, I would need to correct the changed files directly. Sorry about that. FYR, here are the ways to make changes on models and .po files.

To update fields in models:

  1. You can alter fields in your model by making changes to the relevant model file (e.g., models.py).
  2. Create a migration: After making changes to your model, you need to create a new migration file. This can be done using the makemigrations command, like python manage.py makemigrations. This will generate a new migration file based on the changes you made to your model.

To update .po files in Django, you can use the following steps:

  1. Make changes to your source code: This could include adding new text that needs to be translated, or changing existing text that is already being translated.
  2. Run the makemessages command: This command will extract all the translatable strings from your source code and create or update the corresponding .po files for each language that your project supports.
  3. Update the .po files: Open the relevant .po file for the language you want to update and translate the new or modified strings.
mattwang44 commented 1 year ago

a tiny suggestion for @josix

如果方便的話可以直接加 commit 不要 squash,這樣大家要觀摩你多做的修正就會比較方便XD(想保持 commit history 乾淨的話可用 squash merge)

josix commented 1 year ago

喔喔對 忘了還可以 squash

krnick commented 1 year ago

Huge thanks @josix for the timely help and the useful hints for me, I will follow it next time 😃