gitea/options/locale
Lunny Xiao 32b97b3ce8
Uniform all temporary directories and allow customizing temp path (#32352)
This PR uniform all temporary directory usage so that it will be easier
to manage.

Relate to #31792 

- [x] Added a new setting to allow users to configure the global
temporary directory.
- [x] Move all temporary files and directories to be placed under
os.Temp()/gitea.
- [x] `setting.Repository.Local.LocalCopyPath` now will be
`setting.TempPath/local-repo` and the customized path is removed.
```diff
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;[repository.local]
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;;
-;; Path for local repository copy. Defaults to  TEMP_PATH + `local-repo`, this is deprecated and cannot be changed
-;LOCAL_COPY_PATH = local-repo
```

- [x] `setting.Repository.Upload.TempPath` now will be
`settting.TempPath/uploads` and the customized path is removed.
```diff
;[repository.upload]
-;;
-;; Path for uploads. Defaults to TEMP_PATH + `uploads`
-;TEMP_PATH = uploads
```

- [x] `setting.Packages.ChunkedUploadPath` now will be
`settting.TempPath/package-upload` and the customized path is removed.
```diff
;[packages]
-;;
-;; Path for chunked uploads. Defaults it's `package-upload` under `TEMP_PATH` unless it's an absolute path.
-;CHUNKED_UPLOAD_PATH = package-upload
```

- [x] `setting.SSH.KeyTestPath` now will be
`settting.TempPath/ssh_key_test` and the customized path is removed.
```diff
[server]
-;;
-;; Directory to create temporary files in when testing public keys using ssh-keygen,
-;; default is the system temporary directory.
-;SSH_KEY_TEST_PATH =
```

TODO:
- [ ] setting.PprofDataPath haven't been changed because it may need to
be kept until somebody read it but temp path may be clean up any time.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-04-08 16:15:28 +00:00
..
TRANSLATORS Fix missing left and right carets in TRANSLATORS (#21397) 2022-10-10 10:36:37 -04:00
locale_cs-CZ.ini [skip ci] Updated translations via Crowdin 2025-04-02 00:35:16 +00:00
locale_de-DE.ini [skip ci] Updated translations via Crowdin 2025-04-02 00:35:16 +00:00
locale_el-GR.ini [skip ci] Updated translations via Crowdin 2025-04-01 00:39:56 +00:00
locale_en-US.ini Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
locale_es-ES.ini [skip ci] Updated translations via Crowdin 2025-04-01 00:39:56 +00:00
locale_fa-IR.ini [skip ci] Updated translations via Crowdin 2025-04-01 00:39:56 +00:00
locale_fi-FI.ini [skip ci] Updated translations via Crowdin 2025-03-18 00:33:31 +00:00
locale_fr-FR.ini [skip ci] Updated translations via Crowdin 2025-04-08 00:34:12 +00:00
locale_ga-IE.ini [skip ci] Updated translations via Crowdin 2025-04-02 00:35:16 +00:00
locale_hu-HU.ini [skip ci] Updated translations via Crowdin 2025-03-22 00:33:13 +00:00
locale_id-ID.ini [skip ci] Updated translations via Crowdin 2025-03-22 00:33:13 +00:00
locale_is-IS.ini [skip ci] Updated translations via Crowdin 2025-03-18 00:33:31 +00:00
locale_it-IT.ini [skip ci] Updated translations via Crowdin 2025-04-01 00:39:56 +00:00
locale_ja-JP.ini [skip ci] Updated translations via Crowdin 2025-04-02 00:35:16 +00:00
locale_ko-KR.ini [skip ci] Updated translations via Crowdin 2025-04-01 00:39:56 +00:00
locale_lv-LV.ini [skip ci] Updated translations via Crowdin 2025-04-01 00:39:56 +00:00
locale_nl-NL.ini [skip ci] Updated translations via Crowdin 2025-04-01 00:39:56 +00:00
locale_pl-PL.ini [skip ci] Updated translations via Crowdin 2025-04-01 00:39:56 +00:00
locale_pt-BR.ini [skip ci] Updated translations via Crowdin 2025-03-23 00:37:07 +00:00
locale_pt-PT.ini [skip ci] Updated translations via Crowdin 2025-04-04 00:33:58 +00:00
locale_ru-RU.ini [skip ci] Updated translations via Crowdin 2025-04-01 00:39:56 +00:00
locale_si-LK.ini [skip ci] Updated translations via Crowdin 2025-04-01 00:39:56 +00:00
locale_sk-SK.ini [skip ci] Updated translations via Crowdin 2025-03-23 00:37:07 +00:00
locale_sv-SE.ini [skip ci] Updated translations via Crowdin 2025-04-01 00:39:56 +00:00
locale_tr-TR.ini [skip ci] Updated translations via Crowdin 2025-04-01 00:39:56 +00:00
locale_uk-UA.ini [skip ci] Updated translations via Crowdin 2025-04-01 00:39:56 +00:00
locale_zh-CN.ini [skip ci] Updated translations via Crowdin 2025-04-02 00:35:16 +00:00
locale_zh-HK.ini [skip ci] Updated translations via Crowdin 2025-04-01 00:39:56 +00:00
locale_zh-TW.ini [skip ci] Updated translations via Crowdin 2025-04-02 00:35:16 +00:00