1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/conf/locale
Sandro Santilli 90dd0657b5 Add support for federated avatars (#3320)
* Add support for federated avatars

Fixes #3105

Removes avatar fetching duplication code
Adds an "Enable Federated Avatar" checkbox in user settings
(defaults to unchecked)

Moves avatar settings all in the same form, making
local and remote avatars mutually exclusive

Renames UploadAvatarForm to AvatarForm
as it's not anymore only for uploading

* Run gofmt on all modified files

* Move Avatar form in its own page

* Add go-libravatar dependency to vendor/ dir

Hopefully helps with accepting the contribution.
See also #3214

* Revert "Add go-libravatar dependency to vendor/ dir"

This reverts commit a8cb93ae640bbb90f7d25012fc257bda9fae9b82.

* Make federated avatar setting a global configuration

Removes the per-user setting

* Move avatar handling back to base tool, disable federated avatar in offline mode

* Format, handle error

* Properly set fallback host

* Use unsupported github.com mirror for importing go-libravatar

* Remove comment showing life exists outside of github.com

... pity, but contribution would not be accepted otherwise

* Use Combo for Get and Post methods over /avatar

* FEDERATED_AVATAR -> ENABLE_FEDERATED_AVATAR

* Fix persistance of federated avatar lookup checkbox at install time

* Federated Avatars -> Enable Federated Avatars

* Use len(string) == 0 instead of string == ""

* Move import line where it belong

See
https://github.com/Unknwon/go-code-convention/blob/master/en-US/import_packages.md

Pity the import url is still the unofficial one, but oh well...

* Save a line (and waste much more expensive time)

* Remove redundant parens

* Remove an empty line

* Remove empty lines

* Reorder lines to make diff smaller

* Remove another newline

Unknwon review got me start a fight against newlines

* Move DISABLE_GRAVATAR and ENABLE_FEDERATED_AVATAR after OFFLINE_MODE

On re-reading the diff I figured what Unknwon meant here:
https://github.com/gogits/gogs/pull/3320/files#r73741106

* Remove newlines that weren't there before my intervention
2016-08-07 10:27:38 -07:00
..
locale_bg-BG.ini Update locales 2016-07-30 22:28:23 +08:00
locale_cs-CZ.ini Update locales 2016-07-30 22:28:23 +08:00
locale_de-DE.ini Update locales 2016-07-30 22:28:23 +08:00
locale_en-US.ini Add support for federated avatars (#3320) 2016-08-07 10:27:38 -07:00
locale_es-ES.ini Update locales [CI SKIP] 2016-08-03 12:24:53 -07:00
locale_fi-FI.ini Update locales 2016-07-30 22:28:23 +08:00
locale_fr-FR.ini Update locales [CI SKIP] 2016-08-03 12:24:53 -07:00
locale_it-IT.ini Update locales 2016-07-30 22:28:23 +08:00
locale_ja-JP.ini Update locales [CI SKIP] 2016-08-03 12:24:53 -07:00
locale_lv-LV.ini Update locales 2016-07-30 22:28:23 +08:00
locale_nl-NL.ini Update locales 2016-07-30 22:28:23 +08:00
locale_pl-PL.ini Update locales 2016-07-30 22:28:23 +08:00
locale_pt-BR.ini Update locales 2016-07-30 22:28:23 +08:00
locale_ru-RU.ini Update locales 2016-07-30 22:28:23 +08:00
locale_tr-TR.ini Update locales 2016-07-30 22:28:23 +08:00
locale_zh-CN.ini Update locales 2016-07-30 22:28:23 +08:00
locale_zh-HK.ini Update locales 2016-07-30 22:28:23 +08:00
locale_zh-TW.ini Update locales 2016-07-30 22:28:23 +08:00
TRANSLATORS #3348 always use relative avatar link in the template 2016-08-05 12:12:54 -07:00