Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/public/img
Ramon Dantas d8e17478f8 Country flags (language) for torrents. (#970)
* Add flags for torrents

Add a new field, .Language, to the Torrent model, and a new package,
torrentLanguages, which maps languages to flags. Added also a flag icon pack
from googlei18n/region-flags, with (mostly) public domain flags from Wikipedia.

* Optimize flags

* Use FlagSprites CSS instead of .png files

* Only use flags for languages we support

* Add test for CSS flags

Ensure that we have all the flags for the languages we support.

* Add AdditionalLanguages field to config

This allows us to support additional languages for new uploaded torrents,
even if we have no translation for it.

* Minor CSS fix

* Add "other" and "multiple" torrent languages

Also removed the TorrentLanguage struct, as it wasn't much useful.

* Fix test

* Add colspan=2 to category when language is empty

Also hide the language column if empty.

* Add lang field to search.

Hopefully it works with Elasticsearch as well, but I haven't tested
(lol Java)

* Add language field to ES index and settings

* Add language column to JS template

* Add keyword type to language ES field

* Remove 'raw' from keyword

* Set "simple" analyzer on language

* Document .Language field on Torrent model
2017-06-12 09:14:26 +10:00
..
torrents recompress PNG files (#574) 2017-05-17 21:16:49 +10:00
404.png Make the 404 page a little less shitty (Fixes issue 893) 2017-06-05 13:52:28 -04:00
blank.gif Country flags (language) for torrents. (#970) 2017-06-12 09:14:26 +10:00
favicon.png recompress PNG files (#574) 2017-05-17 21:16:49 +10:00
grill.svg Frontend rewrite (DONE) (#723) 2017-05-24 14:20:51 +10:00
logo.png Optimized the site (#725) 2017-05-24 16:57:48 +10:00
logo_s.png optipng small logo 2017-05-27 18:14:47 +10:00
mafuyu.svg Clean mafuyu.svg (#913) 2017-06-05 08:43:43 +10:00
megumin.svg Frontend rewrite (DONE) (#723) 2017-05-24 14:20:51 +10:00
renchon.svg Frontend rewrite (DONE) (#723) 2017-05-24 14:20:51 +10:00
sukebei_logo.png sukebei but it isn't tested WOO (#807) 2017-05-29 16:23:46 +10:00