Now let's take how to change the prompt for the priority of bugs as an example.
- Create the directory ext/lang/zh-cn/ under module/bug/. The zh-cn in this directory can be changed to the appropriate language, such as en, zh-tw, depending on the actual situation.
- Create an abc.php under this directory, and note that the name abc is optional.
- Open this file and redefine the priority prompt.
unset($lang->bug->priList); $lang->bug->priList[0] = ''; $lang->bug->priList[3] = '3'; $lang->bug->priList[1] = '1'; $lang->bug->priList[2] = '2'; $lang->bug->priList[4] = '4';
Note:
- If you are defining data in a list format, you need to add the phrase "unset". This will ensure that the list is exactly as you defined it.
- Please be sure to follow our extension mechanism to store the files, so that we can ensure that the code won't be covered when upgrading the application later.
- For editing under windows, it is recommended to use ultraedit. And it's recommended to be saved as utf-8 code and nobom format. Otherwise, system irregularities may heppen.