Commit Graph

136 Commits (da8681c8c4b914f71ac465858aa2ebb103e81d5b)

Author SHA1 Message Date
Hypolite Petovan 023b3a4a76 [langfilter] Replace remove Text_Language_Detect dependency by matriphe/iso-639
- Address https://github.com/friendica/friendica/issues/9250#issuecomment-703153334
2020-10-03 22:01:37 -04:00
Hypolite Petovan 203672cf27 [various] Remove redundant uninstall functions
- All hooks (current and obsolete) are removed automatically during addon uninstall
2020-07-27 08:30:41 -04:00
Michael 3f84caeec5 Unneeded "info" messages removed 2020-07-23 03:48:52 +00:00
Tobias Diekershoff c1dcd905d4 RU translation langfilter addon THX Alexander An 2020-06-15 07:46:14 +02:00
Hypolite Petovan 7df232a28e [langfilter] Add default values to form parameters
- Rename langfilter.disable to langfilter.enable with backward compatibility
2020-02-01 14:14:22 -05:00
nupplaPhil f2fc22227a
cleanup namespace usages for L10n 2020-01-19 16:31:47 +01:00
nupplaPhil 48fecb9a40
Move L10n::t() calls to DI::l10n()->t() calls 2020-01-19 16:31:46 +01:00
nupplaPhil a26bfe79e9
Remove unused `use` statements & remove PConfig class 2020-01-18 17:02:59 +01:00
nupplaPhil febc835a2d
Move PConfig::set() to DI::pConfig()->set() 2020-01-18 16:54:49 +01:00
nupplaPhil ea3a9052d8
Move PConfig::get() to DI::pConfig()->get() 2020-01-18 16:50:56 +01:00
nupplaPhil 335fcf670f
Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-27 21:55:17 +01:00
Tobias Diekershoff a1360930e1 langfilter addon added CA translation THX obiolscat 2019-10-14 07:31:50 +02:00
Tobias Diekershoff 3edbf39b3d langfilter DE translation THX herrthees 2019-06-22 07:31:30 +02:00
Tobias Diekershoff a3b7fda18a added Estonian translation THX Rain Hawk 2019-04-23 18:37:22 +02:00
Tobias Diekershoff 44a966adcf langfilter ZH CN translation update THX asherpen 2019-04-02 10:08:02 +02:00
Tobias Diekershoff af7e7ac511 added SV translation of langfilter 2019-03-22 01:17:40 +01:00
Tobias Diekershoff fdf072e53c ES translation of the langfilter addon THX Abraham Pérez Hernández 2019-01-23 10:02:08 +01:00
Hypolite Petovan c27b1cb66f Replace deprecated Addon::*registerHook by Hook::*register 2018-12-26 10:20:18 -05:00
Hypolite Petovan d836593a3b Replace x() by !empty() or defaults()
- Remove extraneous parentheses around !empty()
2018-11-30 09:11:56 -05:00
Adam Magness 9079480d4a move to Renderer class
update functions calls for new Renderer class.
2018-10-31 10:55:15 -04:00
Philipp Holzer 1454abfdb4
rename App Methods
- rename get_baseurl() to getBaseURL()
2018-10-10 00:04:49 +02:00
Michael c487765860 Where do these notices hide? Now one is removed 2018-08-31 05:10:53 +00:00
Tobias Diekershoff dcbf2f4416 NL translation THX JeroenED 2018-08-25 21:12:02 +02:00
Michael bcc233b4ae Some miswritten variable ... 2018-08-20 21:24:53 +00:00
Michael 7a29893ecb some more notices and some code beautification 2018-08-08 06:24:47 +00:00
Tobias Diekershoff 37952d899d PL translation langfilter THX waldis 2018-08-06 14:04:55 +02:00
Michael aae9da33dc "langfilter" uses the new "language" field as well 2018-06-30 05:20:17 +00:00
Tobias Diekershoff ce5b211b9a CS langfilter addon 2018-06-18 10:39:42 +02:00
Tobias Diekershoff d061ab7997 added CS translation of the langfilter addon THX Aditoo 2018-06-10 08:32:38 +02:00
Tobias Diekershoff 8957f3083d langfilter added PT BR translation THX Beatriz Vital 2018-06-04 12:19:05 +02:00
Tobias Diekershoff 745fe99e08 langfilter: dont add languages when none are set to the settings 2018-06-01 18:05:45 +02:00
Tobias Diekershoff 83404d1f63 IT translation update THX Fabio 2018-05-28 13:54:42 +02:00
Tobias Diekershoff 26d8ac9b8e RU translation langfilter addon THX Stanislav N 2018-05-25 11:09:14 +02:00
Tobias Diekershoff b87c6ad970 FR translations THX vindarel 2018-05-20 19:24:57 +02:00
Tobias Diekershoff be02acb8d3 ES translation of the langfilter addon THX Albert 2018-05-20 19:20:27 +02:00
Michael Vogel 9d33ccac28
Merge pull request #591 from MrPetovan/task/4867-guess-language-from-plaintext
Guess language from plaintext
2018-04-23 00:26:30 +02:00
Hypolite Petovan 8e8bb8e918 [langfilter] Fix namespacing to refer to Text\BBCode 2018-04-21 18:47:18 -04:00
Hypolite Petovan eafe9d68b0 [langfilter] Use new Text\BBCode::toPlaintext to calculate minimum body size 2018-04-21 04:28:03 -04:00
Tobias Diekershoff 56850cacbc langfilter updated NL translation THX Jeroen De Meerleer 2018-04-21 07:54:17 +02:00
Tobias Diekershoff 12d3992da9 EN-GB and EN-US localisation updates to blackout, blockem, langfilter, showmore and xmpp addons 2018-04-10 07:37:41 +02:00
Tobias Diekershoff eb5eb5986d update to the FI translations 2018-04-09 15:00:17 +02:00
Tobias Diekershoff 900940aefb adding the en-gb translation of langfilter helps... 2018-04-09 10:34:58 +02:00
Tobias Diekershoff 81943290bc PL translation update THX waldis 2018-04-08 11:11:54 +02:00
Tobias Diekershoff e58c46eafb DE translation update 2018-04-07 08:34:08 +02:00
Tobias Diekershoff 85815a8810 added FI translations to many addons THX Kris 2018-04-06 13:58:38 +02:00
Michael Vogel c4bd245a1a
Merge pull request #566 from MrPetovan/task/add-content_filter-hook
Add content_filter hook
2018-04-06 06:44:00 +02:00
Hypolite Petovan 0c3f747649 Rename "content_filter" hook to "prepare_body_content_filter" 2018-04-04 22:51:44 -04:00
Tobias Diekershoff e44714ac69 langfilter PL translation 2018-04-01 19:55:08 +02:00
Hypolite Petovan 09f1aeaced [langfilter] Regenerate master messages.po file 2018-04-01 11:15:32 -04:00
Tobias Diekershoff 2fe45ed3d3 langfilter DE translation 2018-04-01 11:36:02 +02:00
Hypolite Petovan 05a0e445ab [langfilter] Use content_filter hook 2018-04-01 02:39:28 -04:00
Andy Hee d298f3c19c modified: lang/C/messages.po
modified:   langfilter.php
2018-03-29 22:45:42 +07:00
Andy Hee 51c5650a20 modified: lang/C/messages.po
modified:   langfilter.php
2018-03-29 20:22:05 +07:00
Tobias Diekershoff 63020e48fa langfilter added NL translation THX Karel Vandecandelaere 2018-03-21 07:03:41 +01:00
fabrixxm bfd8e37fb8 Update IT strings 2018-03-19 21:28:00 +01:00
Tobias Diekershoff 80faa02a58 args, wrong file 2018-03-02 11:57:35 +01:00
Tobias Diekershoff 7bd10aedcc added ZH CN translation for langfilter addon THX ZhuChentan 2018-03-02 11:38:46 +01:00
Adam Magness f8c162cbfb Update t() calls
Update all t() calls.
2018-01-22 18:09:05 -05:00
Adam Magness 96c41e5623 Update strings
update strings to contain addon
2018-01-20 11:01:59 -05:00
Adam Magness c71f7b0e1a Update function names
update function names and hook calls
2018-01-20 08:57:41 -05:00
Adam Magness 0afd633346 Addon class
plugin moved to Addon src class
2018-01-19 07:20:17 -05:00
Hypolite Petovan 27b60e003f Use short form array syntax everywhere 2018-01-15 08:15:33 -05:00
Hypolite Petovan 4045ae6988 Fix PHP notice about $a->config['system']['url'] in langfilter
- Simplify sprintf(t()) structure
2018-01-01 17:17:15 -05:00
Hypolite Petovan 6516e9a667 Add PConfig class + fix elseif instances 2017-11-05 11:15:34 -05:00
Hypolite Petovan 4c20eec16d Remove reference to library folder 2017-11-05 08:59:59 -05:00
Hypolite Petovan 725534ca6c Fix formatting according to PSR-2
- Add type-hinting to App object
2017-11-05 08:59:45 -05:00
Tobias Diekershoff 03c3ae9bfe Revert "Remove reference to library/langdet folder" 2017-10-05 14:58:44 +02:00
Hypolite Petovan 16f1163cb0 Remove reference to library/langdet folder 2017-09-27 23:18:38 -04:00
Fabio b5701ac885 Update IT strings 2017-01-18 14:04:53 +01:00
Tobias Diekershoff e99e660298 ES translation work - muchas gracias Albert 2016-11-20 06:26:42 +01:00
Sandro Santilli ed1caffe04 Add minimum post body length setting to language filter 2016-10-01 18:15:32 +02:00
Tobias Diekershoff 3f6b454175 update to the translations of some addons 2015-12-14 19:57:45 +01:00
Tobias Diekershoff 9882403714 langfilter update to the DE translation 2015-09-24 07:56:13 +02:00
Sandro Santilli 72cb338fbb Update translation file 2015-09-22 15:18:47 +02:00
Sandro Santilli 6d2af1878a Add min confidence parameter to language filter 2015-09-22 13:07:04 +02:00
Sandro Santilli 05e02aae8b Prepare to filter by min confidence, and fix more typos 2015-09-22 12:40:48 +02:00
Sandro Santilli 2f18407eae Cleanup implementation of langfilter_prepare_body, and fix a typo 2015-09-22 12:29:06 +02:00
Tobias Diekershoff caeb65428a langfilter: added translation for NB-NO 2015-09-17 14:32:09 +02:00
Sandro Santilli aee6db7b0a Use expanded language name, easier to read for humans 2015-09-10 10:00:21 +02:00
Sandro Santilli 2e6abb55ea Use system detected language 2015-09-10 09:54:26 +02:00
Sandro Santilli 931c39f44b Do not filter out own messages 2015-09-09 19:41:38 +02:00
Tobias Diekershoff 797ee03eb8 IT update to the addon translations 2015-08-31 18:52:41 +02:00
Tobias Diekershoff ed699d8ef4 FR translation update for buffer, editplain, gravatar, jappixmini, langfilter, libertree, mailstream, piwik and twitter addons 2015-07-28 07:57:08 +02:00
Tobias Diekershoff a3daf90a26 DE: added translatiosn for the langfilter addon 2015-07-25 10:30:23 +02:00
Tobias Diekershoff 4260b997d4 remove NSFW leftover 2015-07-24 19:11:45 +02:00
Tobias Diekershoff e47f3c5215 langfilter, initial commit
This addon is based on the NSFW filter but collapses postings based on the
detected language instead of a list of words.

rel friendica#1778
2015-07-24 19:02:42 +02:00