Compare commits
119 Commits
f922d69310
...
f2cc0312ca
Author | SHA1 | Date | |
---|---|---|---|
|
f2cc0312ca | ||
|
e3ca7c73ce | ||
|
654a9da297 | ||
|
7a1af5fb5b | ||
|
a4b91826ba | ||
|
a7ea815642 | ||
|
ea6e79448d | ||
|
77813a2acd | ||
|
dff48c3295 | ||
|
e91962b0b6 | ||
|
e0778d2bdd | ||
|
631bfd83e9 | ||
|
4b31588484 | ||
|
8886c90d1e | ||
|
f5d8604e59 | ||
|
a0574ab045 | ||
|
e1de842ffb | ||
|
ca134e9ed3 | ||
|
1a2554fe95 | ||
|
13da605435 | ||
|
df2e9863ed | ||
|
199205a07c | ||
|
94eb2ec197 | ||
|
58fce248c1 | ||
|
dcd097b5b0 | ||
|
040c735243 | ||
|
4eedc9423a | ||
|
c4876d46b4 | ||
|
8400258f07 | ||
|
8f29a51277 | ||
|
b34c9131ca | ||
|
a733e82c21 | ||
|
5d8a53b8ec | ||
|
dac297b942 | ||
|
dc02e16575 | ||
|
d8af084933 | ||
|
477e646fba | ||
|
5307ef3a58 | ||
|
4c3b4dea96 | ||
|
c811f54958 | ||
|
becf10cee6 | ||
|
bb72210fc1 | ||
|
da65314df5 | ||
|
fbf3653831 | ||
|
9e7f06ed44 | ||
|
c137fc5e79 | ||
|
9c8e7a23a6 | ||
|
71eb147c13 | ||
|
5cae2bffb2 | ||
|
972c2da98e | ||
|
8a83cc2886 | ||
|
c94778dbc1 | ||
|
9f0b5829c0 | ||
|
7bc98f0dd9 | ||
|
1c677722b3 | ||
|
99639632dd | ||
|
91bb323a16 | ||
|
852ddb8acc | ||
|
9732ad543b | ||
|
37cdd74d73 | ||
|
c1830d8fd1 | ||
|
7dc1b44d1e | ||
|
3f2cc73936 | ||
|
94129d3aa5 | ||
|
5ea5930d82 | ||
|
efdc4fa3c0 | ||
|
888dec1593 | ||
|
82376e4f17 | ||
|
2805395f77 | ||
|
f5d1316212 | ||
|
b46e8ec4b2 | ||
|
878538c151 | ||
|
a959a90582 | ||
|
c8b6e7661b | ||
|
9183371062 | ||
|
8641c30530 | ||
|
388f6e94f0 | ||
|
2dd57a2f40 | ||
|
92c3d0cf6c | ||
|
c5d402ad62 | ||
|
ecdd62eb3c | ||
|
4a57f968f8 | ||
|
30af3b93ed | ||
|
6a5103964f | ||
|
6b3dc35f35 | ||
|
648fadedd3 | ||
|
75df306424 | ||
|
ace982f5e6 | ||
|
b7614c9164 | ||
|
85275d4473 | ||
|
17df97fccd | ||
|
49e5234872 | ||
|
39c654da00 | ||
|
b53914ee11 | ||
|
ad04f1b631 | ||
|
2724d6f5d9 | ||
|
d116d79182 | ||
|
9763635e5b | ||
|
5a9b63ff3b | ||
|
2cc326ccf5 | ||
|
a41ebccba8 | ||
|
d06ced7272 | ||
|
cf29d2d495 | ||
|
4352a358a7 | ||
|
7827be89c8 | ||
|
818d21ba57 | ||
|
ab5aea8328 | ||
|
5e2ebd13b9 | ||
|
76233e7646 | ||
|
be80e77e93 | ||
|
005f9af69b | ||
|
14dfd24d11 | ||
|
c7c8934e2c | ||
|
5af972bb22 | ||
|
73189581b0 | ||
|
84fd663a56 | ||
|
35e431c5a4 | ||
|
4988d9c49a | ||
|
d0c44aeaaf |
@ -6,5 +6,24 @@ root = true
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
trim_trailing_whitespaces = true
|
||||
indent_style = tab
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
quote_type = single
|
||||
max_line_length = off
|
||||
|
||||
[*.js]
|
||||
quote_type = double
|
||||
ij_javascript_use_double_quotes = true
|
||||
|
||||
[*.yml]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.xml]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.json]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
266
.tx/config
266
.tx/config
@ -1,399 +1,399 @@
|
||||
[main]
|
||||
host = https://www.transifex.com
|
||||
host = https://api.transifex.com
|
||||
|
||||
[friendica.addon_advancedcontentfilter_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_advancedcontentfilter_messagespo]
|
||||
file_filter = advancedcontentfilter/lang/<lang>/messages.po
|
||||
source_file = advancedcontentfilter/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_blackout_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_blackout_messagespo]
|
||||
file_filter = blackout/lang/<lang>/messages.po
|
||||
source_file = blackout/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_blockem_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_blockem_messagespo]
|
||||
file_filter = blockem/lang/<lang>/messages.po
|
||||
source_file = blockem/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_blogger_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_blogger_messagespo]
|
||||
file_filter = blogger/lang/<lang>/messages.po
|
||||
source_file = blogger/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_buffer_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_buffer_messagespo]
|
||||
file_filter = buffer/lang/<lang>/messages.po
|
||||
source_file = buffer/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_buglink_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_buglink_messagespo]
|
||||
file_filter = buglink/lang/<lang>/messages.po
|
||||
source_file = buglink/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_catavatar_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_catavatar_messagespo]
|
||||
file_filter = catavatar/lang/<lang>/messages.po
|
||||
source_file = catavatar/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_cookienotice_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_cookienotice_messagespo]
|
||||
file_filter = cookienotice/lang/<lang>/messages.po
|
||||
source_file = cookienotice/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_curweather_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_curweather_messagespo]
|
||||
file_filter = curweather/lang/<lang>/messages.po
|
||||
source_file = curweather/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_diaspora_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_diaspora_messagespo]
|
||||
file_filter = diaspora/lang/<lang>/messages.po
|
||||
source_file = diaspora/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_dwpost_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_dwpost_messagespo]
|
||||
file_filter = dwpost/lang/<lang>/messages.po
|
||||
source_file = dwpost/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_forumdirectory_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_forumdirectory_messagespo]
|
||||
file_filter = forumdirectory/lang/<lang>/messages.po
|
||||
source_file = forumdirectory/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_fromapp_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_fromapp_messagespo]
|
||||
file_filter = fromapp/lang/<lang>/messages.po
|
||||
source_file = fromapp/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_fromgplus_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_fromgplus_messagespo]
|
||||
file_filter = fromgplus/lang/<lang>/messages.po
|
||||
source_file = fromgplus/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_geonames_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_geonames_messagespo]
|
||||
file_filter = geonames/lang/<lang>/messages.po
|
||||
source_file = geonames/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_gnot_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_gnot_messagespo]
|
||||
file_filter = gnot/lang/<lang>/messages.po
|
||||
source_file = gnot/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_gravatar_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_gravatar_messagespo]
|
||||
file_filter = gravatar/lang/<lang>/messages.po
|
||||
source_file = gravatar/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_group_text_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_group_text_messagespo]
|
||||
file_filter = group_text/lang/<lang>/messages.po
|
||||
source_file = group_text/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_ifttt_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_ifttt_messagespo]
|
||||
file_filter = ifttt/lang/<lang>/messages.po
|
||||
source_file = ifttt/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_ijpost_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_ijpost_messagespo]
|
||||
file_filter = ijpost/lang/<lang>/messages.po
|
||||
source_file = ijpost/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_impressum_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_impressum_messagespo]
|
||||
file_filter = impressum/lang/<lang>/messages.po
|
||||
source_file = impressum/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_infiniteimprobabilitydrive_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_infiniteimprobabilitydrive_messagespo]
|
||||
file_filter = infiniteimprobabilitydrive/lang/<lang>/messages.po
|
||||
source_file = infiniteimprobabilitydrive/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_irc_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_irc_messagespo]
|
||||
file_filter = irc/lang/<lang>/messages.po
|
||||
source_file = irc/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_jappixmini_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_jappixmini_messagespo]
|
||||
file_filter = jappixmini/lang/<lang>/messages.po
|
||||
source_file = jappixmini/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_js_upload_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_js_upload_messagespo]
|
||||
file_filter = js_upload/lang/<lang>/messages.po
|
||||
source_file = js_upload/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_krynn_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_krynn_messagespo]
|
||||
file_filter = krynn/lang/<lang>/messages.po
|
||||
source_file = krynn/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_langfilter_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_langfilter_messagespo]
|
||||
file_filter = langfilter/lang/<lang>/messages.po
|
||||
source_file = langfilter/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_libertree_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_libertree_messagespo]
|
||||
file_filter = libertree/lang/<lang>/messages.po
|
||||
source_file = libertree/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_libravatar_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_libravatar_messagespo]
|
||||
file_filter = libravatar/lang/<lang>/messages.po
|
||||
source_file = libravatar/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_ljpost_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_ljpost_messagespo]
|
||||
file_filter = ljpost/lang/<lang>/messages.po
|
||||
source_file = ljpost/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_mailstream_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_mailstream_messagespo]
|
||||
file_filter = mailstream/lang/<lang>/messages.po
|
||||
source_file = mailstream/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_mathjax_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_mathjax_messagespo]
|
||||
file_filter = mathjax/lang/<lang>/messages.po
|
||||
source_file = mathjax/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_membersince_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_membersince_messagespo]
|
||||
file_filter = membersince/lang/<lang>/messages.po
|
||||
source_file = membersince/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_morechoice_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_morechoice_messagespo]
|
||||
file_filter = morechoice/lang/<lang>/messages.po
|
||||
source_file = morechoice/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_morepokes_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_morepokes_messagespo]
|
||||
file_filter = morepokes/lang/<lang>/messages.po
|
||||
source_file = morepokes/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_newmemberwidget_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_newmemberwidget_messagespo]
|
||||
file_filter = newmemberwidget/lang/<lang>/messages.po
|
||||
source_file = newmemberwidget/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_notifyall_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_notifyall_messagespo]
|
||||
file_filter = notifyall/lang/<lang>/messages.po
|
||||
source_file = notifyall/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_notimeline_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_notimeline_messagespo]
|
||||
file_filter = notimeline/lang/<lang>/messages.po
|
||||
source_file = notimeline/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_nsfw_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_nsfw_messagespo]
|
||||
file_filter = nsfw/lang/<lang>/messages.po
|
||||
source_file = nsfw/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_numfriends_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_numfriends_messagespo]
|
||||
file_filter = numfriends/lang/<lang>/messages.po
|
||||
source_file = numfriends/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_openstreetmap_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_openstreetmap_messagespo]
|
||||
file_filter = openstreetmap/lang/<lang>/messages.po
|
||||
source_file = openstreetmap/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_pageheader_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_pageheader_messagespo]
|
||||
file_filter = pageheader/lang/<lang>/messages.po
|
||||
source_file = pageheader/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_piwik_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_piwik_messagespo]
|
||||
file_filter = piwik/lang/<lang>/messages.po
|
||||
source_file = piwik/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_planets_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_planets_messagespo]
|
||||
file_filter = planets/lang/<lang>/messages.po
|
||||
source_file = planets/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_public_server_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_public_server_messagespo]
|
||||
file_filter = public_server/lang/<lang>/messages.po
|
||||
source_file = public_server/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_pumpio_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_pumpio_messagespo]
|
||||
file_filter = pumpio/lang/<lang>/messages.po
|
||||
source_file = pumpio/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_qcomment_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_qcomment_messagespo]
|
||||
file_filter = qcomment/lang/<lang>/messages.po
|
||||
source_file = qcomment/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_randplace_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_randplace_messagespo]
|
||||
file_filter = randplace/lang/<lang>/messages.po
|
||||
source_file = randplace/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_remote_permissions_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_remote_permissions_messagespo]
|
||||
file_filter = remote_permissions/lang/<lang>/messages.po
|
||||
source_file = remote_permissions/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_rendertime_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_rendertime_messagespo]
|
||||
file_filter = rendertime/lang/<lang>/messages.po
|
||||
source_file = rendertime/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_securemail_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_securemail_messagespo]
|
||||
file_filter = securemail/lang/<lang>/messages.po
|
||||
source_file = securemail/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_showmore_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_showmore_messagespo]
|
||||
file_filter = showmore/lang/<lang>/messages.po
|
||||
source_file = showmore/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_smileybutton_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_smileybutton_messagespo]
|
||||
file_filter = smileybutton/lang/<lang>/messages.po
|
||||
source_file = smileybutton/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_startpage_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_startpage_messagespo]
|
||||
file_filter = startpage/lang/<lang>/messages.po
|
||||
source_file = startpage/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_statusnet_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_statusnet_messagespo]
|
||||
file_filter = statusnet/lang/<lang>/messages.po
|
||||
source_file = statusnet/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_superblock_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_superblock_messagespo]
|
||||
file_filter = superblock/lang/<lang>/messages.po
|
||||
source_file = superblock/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_testdrive_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_testdrive_messagespo]
|
||||
file_filter = testdrive/lang/<lang>/messages.po
|
||||
source_file = testdrive/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_tictac_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_tictac_messagespo]
|
||||
file_filter = tictac/lang/<lang>/messages.po
|
||||
source_file = tictac/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_tumblr_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_tumblr_messagespo]
|
||||
file_filter = tumblr/lang/<lang>/messages.po
|
||||
source_file = tumblr/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_twitter_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_twitter_messagespo]
|
||||
file_filter = twitter/lang/<lang>/messages.po
|
||||
source_file = twitter/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_viewsrc_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_viewsrc_messagespo]
|
||||
file_filter = viewsrc/lang/<lang>/messages.po
|
||||
source_file = viewsrc/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_webrtc_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_webrtc_messagespo]
|
||||
file_filter = webrtc/lang/<lang>/messages.po
|
||||
source_file = webrtc/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_widgets_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_widgets_messagespo]
|
||||
file_filter = widgets/lang/<lang>/messages.po
|
||||
source_file = widgets/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_windowsphonepush_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_windowsphonepush_messagespo]
|
||||
file_filter = windowsphonepush/lang/<lang>/messages.po
|
||||
source_file = windowsphonepush/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_wppost_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_wppost_messagespo]
|
||||
file_filter = wppost/lang/<lang>/messages.po
|
||||
source_file = wppost/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
[friendica.addon_xmpp_messagespo]
|
||||
[o:Friendica:p:friendica:r:addon_xmpp_messagespo]
|
||||
file_filter = xmpp/lang/<lang>/messages.po
|
||||
source_file = xmpp/lang/C/messages.po
|
||||
source_lang = en
|
||||
type = PO
|
||||
type = PO
|
||||
|
||||
|
@ -55,7 +55,7 @@ use Symfony\Component\ExpressionLanguage;
|
||||
|
||||
require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
|
||||
|
||||
function advancedcontentfilter_install(App $a)
|
||||
function advancedcontentfilter_install()
|
||||
{
|
||||
Hook::register('dbstructure_definition' , __FILE__, 'advancedcontentfilter_dbstructure_definition');
|
||||
Hook::register('prepare_body_content_filter', __FILE__, 'advancedcontentfilter_prepare_body_content_filter');
|
||||
@ -71,7 +71,7 @@ function advancedcontentfilter_install(App $a)
|
||||
* Hooks
|
||||
*/
|
||||
|
||||
function advancedcontentfilter_dbstructure_definition(App $a, &$database)
|
||||
function advancedcontentfilter_dbstructure_definition(&$database)
|
||||
{
|
||||
$database['advancedcontentfilter_rules'] = [
|
||||
'comment' => 'Advancedcontentfilter addon rules',
|
||||
@ -115,7 +115,7 @@ function advancedcontentfilter_get_filter_fields(array $item)
|
||||
return $vars;
|
||||
}
|
||||
|
||||
function advancedcontentfilter_prepare_body_content_filter(App $a, &$hook_data)
|
||||
function advancedcontentfilter_prepare_body_content_filter(&$hook_data)
|
||||
{
|
||||
static $expressionLanguage;
|
||||
|
||||
@ -163,7 +163,7 @@ function advancedcontentfilter_prepare_body_content_filter(App $a, &$hook_data)
|
||||
}
|
||||
|
||||
|
||||
function advancedcontentfilter_addon_settings(App $a, array &$data)
|
||||
function advancedcontentfilter_addon_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -187,7 +187,7 @@ function advancedcontentfilter_addon_settings(App $a, array &$data)
|
||||
*/
|
||||
function advancedcontentfilter_module() {}
|
||||
|
||||
function advancedcontentfilter_init(App $a)
|
||||
function advancedcontentfilter_init()
|
||||
{
|
||||
if (DI::args()->getArgc() > 1 && DI::args()->getArgv()[1] == 'api') {
|
||||
$slim = new \Slim\App();
|
||||
@ -201,7 +201,7 @@ function advancedcontentfilter_init(App $a)
|
||||
}
|
||||
}
|
||||
|
||||
function advancedcontentfilter_content(App $a)
|
||||
function advancedcontentfilter_content()
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return Login::form('/' . implode('/', DI::args()->getArgv()));
|
||||
@ -252,7 +252,7 @@ function advancedcontentfilter_content(App $a)
|
||||
'rule_expression' => DI::l10n()->t('Rule Expression'),
|
||||
'cancel' => DI::l10n()->t('Cancel'),
|
||||
],
|
||||
'$current_theme' => $a->getCurrentTheme(),
|
||||
'$current_theme' => DI::app()->getCurrentTheme(),
|
||||
'$rules' => advancedcontentfilter_get_rules(),
|
||||
'$form_security_token' => BaseModule::getFormSecurityToken()
|
||||
]);
|
||||
|
@ -15,7 +15,7 @@ msgstr ""
|
||||
"POT-Creation-Date: 2022-05-11 08:54-0400\n"
|
||||
"PO-Revision-Date: 2018-05-24 06:41+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2022\n"
|
||||
"Language-Team: German (https://www.transifex.com/Friendica/teams/12172/de/)\n"
|
||||
"Language-Team: German (https://app.transifex.com/Friendica/teams/12172/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -3,60 +3,63 @@
|
||||
# This file is distributed under the same license as the Friendica advancedcontentfilter addon package.
|
||||
#
|
||||
#
|
||||
# Translators:
|
||||
# fabrixxm <fabrix.xm@gmail.com>, 2018
|
||||
# Sylke Vicious <silkevicious@gmail.com>, 2021
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-04-17 04:04+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: fabrixxm <fabrix.xm@gmail.com>, 2018\n"
|
||||
"Language-Team: Italian (https://www.transifex.com/Friendica/teams/12172/it/)\n"
|
||||
"POT-Creation-Date: 2022-05-11 08:54-0400\n"
|
||||
"PO-Revision-Date: 2018-05-24 06:41+0000\n"
|
||||
"Last-Translator: Sylke Vicious <silkevicious@gmail.com>, 2021\n"
|
||||
"Language-Team: Italian (https://app.transifex.com/Friendica/teams/12172/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: it\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
||||
|
||||
#: advancedcontentfilter.php:134
|
||||
#: advancedcontentfilter.php:154
|
||||
#, php-format
|
||||
msgid "Filtered by rule: %s"
|
||||
msgstr "Filtrato dalla regola: %s"
|
||||
|
||||
#: advancedcontentfilter.php:147 advancedcontentfilter.php:204
|
||||
#: advancedcontentfilter.php:170 advancedcontentfilter.php:225
|
||||
msgid "Advanced Content Filter"
|
||||
msgstr "Filtro Avanzato Contenuti"
|
||||
|
||||
#: advancedcontentfilter.php:203
|
||||
#: advancedcontentfilter.php:224
|
||||
msgid "Back to Addon Settings"
|
||||
msgstr "Torna alle impostazioni del componente aggiuntivo"
|
||||
|
||||
#: advancedcontentfilter.php:205
|
||||
#: advancedcontentfilter.php:226
|
||||
msgid "Add a Rule"
|
||||
msgstr "Aggiungi una regola"
|
||||
|
||||
#: advancedcontentfilter.php:206
|
||||
#: advancedcontentfilter.php:227
|
||||
msgid "Help"
|
||||
msgstr "Aiuto"
|
||||
|
||||
#: advancedcontentfilter.php:207
|
||||
#: advancedcontentfilter.php:228
|
||||
msgid ""
|
||||
"Add and manage your personal content filter rules in this screen. Rules have"
|
||||
" a name and an arbitrary expression that will be matched against post data. "
|
||||
"For a complete reference of the available operations and variables, check "
|
||||
"the <a href=\"advancedcontentfilter/help\">help page</a>."
|
||||
"the help page."
|
||||
msgstr ""
|
||||
"Aggiungi e gestisci le tue regole personali di filtro contenuti in questa "
|
||||
"schermata. Le regole hanno un nome e un'espressione arbitraria che sarà "
|
||||
"confrontata con i dati del messaggio. Per un elenco completo delle "
|
||||
"operazioni disponibili, controlla la <a "
|
||||
"href=\"advancedcontentfilter/help\">pagina di aiuto</a>."
|
||||
"operazioni e variabili disponibili, controlla la pagina di aiuto."
|
||||
|
||||
#: advancedcontentfilter.php:208
|
||||
#: advancedcontentfilter.php:229
|
||||
msgid "Your rules"
|
||||
msgstr "Le tue regole"
|
||||
|
||||
#: advancedcontentfilter.php:209
|
||||
#: advancedcontentfilter.php:230
|
||||
msgid ""
|
||||
"You have no rules yet! Start adding one by clicking on the button above next"
|
||||
" to the title."
|
||||
@ -64,110 +67,106 @@ msgstr ""
|
||||
"Non hai ancora nessuna regola! Aggiungine una cliccando sul bottone qui "
|
||||
"sopra a fianco al titolo."
|
||||
|
||||
#: advancedcontentfilter.php:210
|
||||
#: advancedcontentfilter.php:231
|
||||
msgid "Disabled"
|
||||
msgstr "Disabilitato"
|
||||
|
||||
#: advancedcontentfilter.php:211
|
||||
#: advancedcontentfilter.php:232
|
||||
msgid "Enabled"
|
||||
msgstr "Abilitato"
|
||||
|
||||
#: advancedcontentfilter.php:212
|
||||
#: advancedcontentfilter.php:233
|
||||
msgid "Disable this rule"
|
||||
msgstr "Diabilita questa regola"
|
||||
|
||||
#: advancedcontentfilter.php:213
|
||||
#: advancedcontentfilter.php:234
|
||||
msgid "Enable this rule"
|
||||
msgstr "Abilita questa regola"
|
||||
|
||||
#: advancedcontentfilter.php:214
|
||||
#: advancedcontentfilter.php:235
|
||||
msgid "Edit this rule"
|
||||
msgstr "Modifica questa regola"
|
||||
|
||||
#: advancedcontentfilter.php:215
|
||||
#: advancedcontentfilter.php:236
|
||||
msgid "Edit the rule"
|
||||
msgstr "Modifica la regola"
|
||||
|
||||
#: advancedcontentfilter.php:216
|
||||
#: advancedcontentfilter.php:237
|
||||
msgid "Save this rule"
|
||||
msgstr "Salva questa regola"
|
||||
|
||||
#: advancedcontentfilter.php:217
|
||||
#: advancedcontentfilter.php:238
|
||||
msgid "Delete this rule"
|
||||
msgstr "Elimina questa regola"
|
||||
|
||||
#: advancedcontentfilter.php:218
|
||||
#: advancedcontentfilter.php:239
|
||||
msgid "Rule"
|
||||
msgstr "Regola"
|
||||
|
||||
#: advancedcontentfilter.php:219
|
||||
#: advancedcontentfilter.php:240
|
||||
msgid "Close"
|
||||
msgstr "Chiudi"
|
||||
|
||||
#: advancedcontentfilter.php:220
|
||||
#: advancedcontentfilter.php:241
|
||||
msgid "Add new rule"
|
||||
msgstr "Aggiungi nuova regola"
|
||||
|
||||
#: advancedcontentfilter.php:221
|
||||
#: advancedcontentfilter.php:242
|
||||
msgid "Rule Name"
|
||||
msgstr "Nome Regola"
|
||||
|
||||
#: advancedcontentfilter.php:222
|
||||
#: advancedcontentfilter.php:243
|
||||
msgid "Rule Expression"
|
||||
msgstr "Espressione Regola"
|
||||
|
||||
#: advancedcontentfilter.php:223
|
||||
msgid ""
|
||||
"<p>Examples:</p><ul><li><pre>author_link == "
|
||||
"'https://friendica.mrpetovan.com/profile/hypolite'</pre></li><li>tags</li></ul>"
|
||||
msgstr ""
|
||||
"<p>Esempi:</p><ul><li><pre>author_link == "
|
||||
"'https://friendica.mrpetovan.com/profile/hypolite'</pre></li><li>tags</li></ul>"
|
||||
|
||||
#: advancedcontentfilter.php:224
|
||||
#: advancedcontentfilter.php:244
|
||||
msgid "Cancel"
|
||||
msgstr "Annulla"
|
||||
|
||||
#: advancedcontentfilter.php:290 advancedcontentfilter.php:301
|
||||
#: advancedcontentfilter.php:312 advancedcontentfilter.php:346
|
||||
#: advancedcontentfilter.php:375 advancedcontentfilter.php:396
|
||||
#: advancedcontentfilter.php:295
|
||||
msgid "This addon requires this node having at least one post"
|
||||
msgstr ""
|
||||
|
||||
#: advancedcontentfilter.php:325 advancedcontentfilter.php:336
|
||||
#: advancedcontentfilter.php:347 advancedcontentfilter.php:383
|
||||
#: advancedcontentfilter.php:414 advancedcontentfilter.php:437
|
||||
msgid "You must be logged in to use this method"
|
||||
msgstr "Devi essere autenticato per usare questo metodo"
|
||||
|
||||
#: advancedcontentfilter.php:316 advancedcontentfilter.php:350
|
||||
#: advancedcontentfilter.php:379
|
||||
#: advancedcontentfilter.php:351 advancedcontentfilter.php:387
|
||||
#: advancedcontentfilter.php:418
|
||||
msgid "Invalid form security token, please refresh the page."
|
||||
msgstr "Token di sicurezza invalido, aggiorna la pagina."
|
||||
|
||||
#: advancedcontentfilter.php:328
|
||||
#: advancedcontentfilter.php:363
|
||||
msgid "The rule name and expression are required."
|
||||
msgstr "Il nome e l'espressione della regola sono richiesti."
|
||||
|
||||
#: advancedcontentfilter.php:340
|
||||
#: advancedcontentfilter.php:377
|
||||
msgid "Rule successfully added"
|
||||
msgstr "Regola aggiunta con successo"
|
||||
|
||||
#: advancedcontentfilter.php:354 advancedcontentfilter.php:383
|
||||
#: advancedcontentfilter.php:391 advancedcontentfilter.php:422
|
||||
msgid "Rule doesn't exist or doesn't belong to you."
|
||||
msgstr "La regola non esiste o non ti appartiene."
|
||||
|
||||
#: advancedcontentfilter.php:369
|
||||
#: advancedcontentfilter.php:408
|
||||
msgid "Rule successfully updated"
|
||||
msgstr "Regola aggiornata con successo"
|
||||
|
||||
#: advancedcontentfilter.php:390
|
||||
#: advancedcontentfilter.php:431
|
||||
msgid "Rule successfully deleted"
|
||||
msgstr "Regola eliminata con successo"
|
||||
|
||||
#: advancedcontentfilter.php:400
|
||||
#: advancedcontentfilter.php:441
|
||||
msgid "Missing argument: guid."
|
||||
msgstr "Argomento mancante: guid."
|
||||
|
||||
#: advancedcontentfilter.php:406
|
||||
#: advancedcontentfilter.php:449
|
||||
#, php-format
|
||||
msgid "Unknown post with guid: %s"
|
||||
msgstr "Messaggio con guid %s sconosciuto"
|
||||
|
||||
#: src/middlewares.php:28
|
||||
#: src/middlewares.php:49
|
||||
msgid "Method not found"
|
||||
msgstr "Metodo non trovato"
|
||||
|
@ -3,14 +3,14 @@
|
||||
if(! function_exists("string_plural_select_it")) {
|
||||
function string_plural_select_it($n){
|
||||
$n = intval($n);
|
||||
return intval($n != 1);
|
||||
if ($n == 1) { return 0; } else if ($n != 0 && $n % 1000000 == 0) { return 1; } else { return 2; }
|
||||
}}
|
||||
$a->strings['Filtered by rule: %s'] = 'Filtrato dalla regola: %s';
|
||||
$a->strings['Advanced Content Filter'] = 'Filtro Avanzato Contenuti';
|
||||
$a->strings['Back to Addon Settings'] = 'Torna alle impostazioni del componente aggiuntivo';
|
||||
$a->strings['Add a Rule'] = 'Aggiungi una regola';
|
||||
$a->strings['Help'] = 'Aiuto';
|
||||
$a->strings['Add and manage your personal content filter rules in this screen. Rules have a name and an arbitrary expression that will be matched against post data. For a complete reference of the available operations and variables, check the <a href="advancedcontentfilter/help">help page</a>.'] = 'Aggiungi e gestisci le tue regole personali di filtro contenuti in questa schermata. Le regole hanno un nome e un\'espressione arbitraria che sarà confrontata con i dati del messaggio. Per un elenco completo delle operazioni disponibili, controlla la <a href="advancedcontentfilter/help">pagina di aiuto</a>.';
|
||||
$a->strings['Add and manage your personal content filter rules in this screen. Rules have a name and an arbitrary expression that will be matched against post data. For a complete reference of the available operations and variables, check the help page.'] = 'Aggiungi e gestisci le tue regole personali di filtro contenuti in questa schermata. Le regole hanno un nome e un\'espressione arbitraria che sarà confrontata con i dati del messaggio. Per un elenco completo delle operazioni e variabili disponibili, controlla la pagina di aiuto.';
|
||||
$a->strings['Your rules'] = 'Le tue regole';
|
||||
$a->strings['You have no rules yet! Start adding one by clicking on the button above next to the title.'] = 'Non hai ancora nessuna regola! Aggiungine una cliccando sul bottone qui sopra a fianco al titolo.';
|
||||
$a->strings['Disabled'] = 'Disabilitato';
|
||||
@ -26,7 +26,6 @@ $a->strings['Close'] = 'Chiudi';
|
||||
$a->strings['Add new rule'] = 'Aggiungi nuova regola';
|
||||
$a->strings['Rule Name'] = 'Nome Regola';
|
||||
$a->strings['Rule Expression'] = 'Espressione Regola';
|
||||
$a->strings['<p>Examples:</p><ul><li><pre>author_link == \'https://friendica.mrpetovan.com/profile/hypolite\'</pre></li><li>tags</li></ul>'] = '<p>Esempi:</p><ul><li><pre>author_link == \'https://friendica.mrpetovan.com/profile/hypolite\'</pre></li><li>tags</li></ul>';
|
||||
$a->strings['Cancel'] = 'Annulla';
|
||||
$a->strings['You must be logged in to use this method'] = 'Devi essere autenticato per usare questo metodo';
|
||||
$a->strings['Invalid form security token, please refresh the page.'] = 'Token di sicurezza invalido, aggiorna la pagina.';
|
||||
|
@ -34,7 +34,7 @@ function birdavatar_install()
|
||||
/**
|
||||
* Bird avatar user settings page
|
||||
*/
|
||||
function birdavatar_addon_settings(App $a, array &$data)
|
||||
function birdavatar_addon_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -62,14 +62,14 @@ function birdavatar_addon_settings(App $a, array &$data)
|
||||
/**
|
||||
* Bird avatar user settings POST handle
|
||||
*/
|
||||
function birdavatar_addon_settings_post(App $a, &$s)
|
||||
function birdavatar_addon_settings_post(&$s)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!empty($_POST['birdavatar-usebird'])) {
|
||||
$url = DI::baseUrl()->get() . '/birdavatar/' . DI::userSession()->getLocalUserId() . '?ts=' . time();
|
||||
$url = DI::baseUrl() . '/birdavatar/' . DI::userSession()->getLocalUserId() . '?ts=' . time();
|
||||
|
||||
$self = DBA::selectFirst('contact', ['id'], ['uid' => DI::userSession()->getLocalUserId(), 'self' => true]);
|
||||
if (!DBA::isResult($self)) {
|
||||
@ -114,16 +114,15 @@ function birdavatar_addon_settings_post(App $a, &$s)
|
||||
/**
|
||||
* Returns the URL to the bird avatar
|
||||
*
|
||||
* @param $a array
|
||||
* @param &$b array
|
||||
*/
|
||||
function birdavatar_lookup(App $a, array &$b)
|
||||
function birdavatar_lookup(array &$b)
|
||||
{
|
||||
$user = DBA::selectFirst('user', ['uid'], ['email' => $b['email']]);
|
||||
if (DBA::isResult($user)) {
|
||||
$url = DI::baseUrl()->get() . '/birdavatar/' . $user['uid'];
|
||||
$url = DI::baseUrl() . '/birdavatar/' . $user['uid'];
|
||||
} else {
|
||||
$url = DI::baseUrl()->get() . '/birdavatar/' . md5(trim(strtolower($b['email'])));
|
||||
$url = DI::baseUrl() . '/birdavatar/' . md5(trim(strtolower($b['email'])));
|
||||
}
|
||||
|
||||
switch ($b['size']) {
|
||||
@ -149,7 +148,7 @@ function birdavatar_module() {}
|
||||
* @throws NotFoundException
|
||||
*
|
||||
*/
|
||||
function birdavatar_content(App $a)
|
||||
function birdavatar_content()
|
||||
{
|
||||
if (DI::args()->getArgc() < 2 || DI::args()->getArgc() > 3) {
|
||||
throw new NotFoundException(); // this should be catched on index and show default "not found" page.
|
||||
|
@ -55,7 +55,7 @@ function blackout_install() {
|
||||
Hook::register('page_header', 'addon/blackout/blackout.php', 'blackout_redirect');
|
||||
}
|
||||
|
||||
function blackout_redirect (App $a, $b)
|
||||
function blackout_redirect ($b)
|
||||
{
|
||||
// if we have a logged in user, don't throw her out
|
||||
if (DI::userSession()->getLocalUserId()) {
|
||||
@ -83,7 +83,7 @@ function blackout_redirect (App $a, $b)
|
||||
}
|
||||
}
|
||||
|
||||
function blackout_addon_admin(App $a, string &$o)
|
||||
function blackout_addon_admin(string &$o)
|
||||
{
|
||||
$mystart = DI::config()->get('blackout','begindate');
|
||||
if (! is_string($mystart)) { $mystart = 'YYYY-MM-DD hh:mm'; }
|
||||
@ -112,7 +112,7 @@ function blackout_addon_admin(App $a, string &$o)
|
||||
]);
|
||||
}
|
||||
|
||||
function blackout_addon_admin_post (App $a)
|
||||
function blackout_addon_admin_post ()
|
||||
{
|
||||
DI::config()->set('blackout', 'begindate', trim($_POST['startdate']));
|
||||
DI::config()->set('blackout', 'enddate', trim($_POST['enddate']));
|
||||
|
@ -12,9 +12,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
|
||||
"PO-Revision-Date: 2021-05-23 19:26+0000\n"
|
||||
"Last-Translator: Till Mohr <tmtrfx@till-mohr.de>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-06-22 11:19+0000\n"
|
||||
"Last-Translator: Till Mohr <tmtrfx@till-mohr.de>, 2021\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -8,9 +8,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\DI;
|
||||
use Jaybizzle\CrawlerDetect\CrawlerDetect;
|
||||
use Friendica\Core\Logger;
|
||||
@ -24,7 +22,7 @@ function blockbot_install()
|
||||
Hook::register('init_1', __FILE__, 'blockbot_init_1');
|
||||
}
|
||||
|
||||
function blockbot_addon_admin(App $a, string &$o)
|
||||
function blockbot_addon_admin(string &$o)
|
||||
{
|
||||
$t = Renderer::getMarkupTemplate('admin.tpl', 'addon/blockbot/');
|
||||
|
||||
@ -36,14 +34,14 @@ function blockbot_addon_admin(App $a, string &$o)
|
||||
]);
|
||||
}
|
||||
|
||||
function blockbot_addon_admin_post(App $a)
|
||||
function blockbot_addon_admin_post()
|
||||
{
|
||||
DI::config()->set('blockbot', 'good_crawlers', $_POST['good_crawlers'] ?? false);
|
||||
DI::config()->set('blockbot', 'block_gab', $_POST['block_gab'] ?? false);
|
||||
DI::config()->set('blockbot', 'training', $_POST['training'] ?? false);
|
||||
}
|
||||
|
||||
function blockbot_init_1(App $a)
|
||||
function blockbot_init_1()
|
||||
{
|
||||
if (empty($_SERVER['HTTP_USER_AGENT'])) {
|
||||
return;
|
||||
@ -52,12 +50,15 @@ function blockbot_init_1(App $a)
|
||||
$logdata = ['agent' => $_SERVER['HTTP_USER_AGENT'], 'uri' => $_SERVER['REQUEST_URI']];
|
||||
|
||||
// List of "good" crawlers
|
||||
$good_agents = ['fediverse.space crawler', 'fediverse.network crawler', 'Active_Pods_CheckBot_3.0',
|
||||
$good_agents = [
|
||||
'fediverse.space crawler', 'fediverse.network crawler', 'Active_Pods_CheckBot_3.0',
|
||||
'Social-Relay/', 'Test Certificate Info', 'Uptimebot/', 'GNUSocialBot', 'UptimeRobot/',
|
||||
'PTST/', 'Zabbix', 'Poduptime/'];
|
||||
'PTST/', 'Zabbix', 'Poduptime/'
|
||||
];
|
||||
|
||||
// List of known crawlers.
|
||||
$agents = ['SemrushBot', 's~feedly-nikon3', 'Qwantify/Bleriot/', 'ltx71', 'Sogou web spider/',
|
||||
$agents = [
|
||||
'SemrushBot', 's~feedly-nikon3', 'Qwantify/Bleriot/', 'ltx71', 'Sogou web spider/',
|
||||
'Diffbot/', 'Twitterbot/', 'YisouSpider', 'evc-batch/', 'LivelapBot/', 'TrendsmapResolver/',
|
||||
'PaperLiBot/', 'Nuzzel', 'um-LN/', 'Google Favicon', 'Datanyze', 'BLEXBot/', '360Spider',
|
||||
'adscanner/', 'HeadlessChrome', 'wpif', 'startmebot/', 'Googlebot/', 'Applebot/',
|
||||
@ -79,7 +80,8 @@ function blockbot_init_1(App $a)
|
||||
'Google-Apps-Script; beanserver;', 'woorankreview/', 'Seekport Crawler;', 'AHC/',
|
||||
'SkypeUriPreview Preview/', 'Semanticbot/', 'Embed PHP library', 'XoviOnpageCrawler;',
|
||||
'GetHPinfo.com-Bot/', 'BoardReader Favicon Fetcher', 'Google-Adwords-Instant', 'newspaper/',
|
||||
'YurichevBot/', 'Crawling at Home Project', 'InfoTigerBot/'];
|
||||
'YurichevBot/', 'Crawling at Home Project', 'InfoTigerBot/'
|
||||
];
|
||||
|
||||
if (!DI::config()->get('blockbot', 'good_crawlers')) {
|
||||
$agents = array_merge($agents, $good_agents);
|
||||
@ -114,7 +116,8 @@ function blockbot_init_1(App $a)
|
||||
}
|
||||
|
||||
// List of false positives' strings of known "good" agents.
|
||||
$agents = ['curl', 'zgrab', 'Go-http-client', 'curb', 'github.com', 'reqwest', 'Feedly/',
|
||||
$agents = [
|
||||
'curl', 'zgrab', 'Go-http-client', 'curb', 'github.com', 'reqwest', 'Feedly/',
|
||||
'Python-urllib/', 'Liferea/', 'aiohttp/', 'WordPress.com Reader', 'hackney/',
|
||||
'Faraday v', 'okhttp', 'UniversalFeedParser', 'PixelFedBot', 'python-requests',
|
||||
'WordPress/', 'http.rb/', 'Apache-HttpClient/', 'WordPress.com;', 'Pleroma',
|
||||
@ -122,7 +125,8 @@ function blockbot_init_1(App $a)
|
||||
'lua-resty-http/', 'Tiny Tiny RSS/', 'Wget/', 'PostmanRuntime/',
|
||||
'W3C_Validator/', 'NetNewsWire', 'FeedValidator/', 'theoldreader.com', 'axios/',
|
||||
'Paw/', 'PeerTube/', 'fedi.inex.dev', 'FediDB/', 'index.community crawler',
|
||||
'Slackbot-LinkExpanding'];
|
||||
'Slackbot-LinkExpanding'
|
||||
];
|
||||
|
||||
if (DI::config()->get('blockbot', 'good_crawlers')) {
|
||||
$agents = array_merge($agents, $good_agents);
|
||||
@ -130,11 +134,11 @@ function blockbot_init_1(App $a)
|
||||
|
||||
foreach ($agents as $agent) {
|
||||
if (stristr($_SERVER['HTTP_USER_AGENT'], $agent)) {
|
||||
logger::notice('False positive', $logdata);
|
||||
logger::info('False positive', $logdata);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
logger::info('Blocked bot', $logdata);
|
||||
logger::notice('Blocked bot', $logdata);
|
||||
throw new ForbiddenException('Bots are not allowed');
|
||||
}
|
||||
|
@ -5,6 +5,7 @@
|
||||
* Version: 1.0
|
||||
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
||||
* Author: Roland Haeder <https://f.haeder.net/roland>
|
||||
* Status: unsupported
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
@ -26,7 +27,7 @@ function blockem_install()
|
||||
Hook::register('enotify_store' , 'addon/blockem/blockem.php', 'blockem_enotify_store');
|
||||
}
|
||||
|
||||
function blockem_addon_settings(App $a, array &$data)
|
||||
function blockem_addon_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -47,7 +48,7 @@ function blockem_addon_settings(App $a, array &$data)
|
||||
];
|
||||
}
|
||||
|
||||
function blockem_addon_settings_post(App $a, array &$b)
|
||||
function blockem_addon_settings_post(array &$b)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -58,7 +59,7 @@ function blockem_addon_settings_post(App $a, array &$b)
|
||||
}
|
||||
}
|
||||
|
||||
function blockem_enotify_store(App $a, array &$b)
|
||||
function blockem_enotify_store(array &$b)
|
||||
{
|
||||
$words = DI::pConfig()->get($b['uid'], 'blockem', 'words');
|
||||
|
||||
@ -89,7 +90,7 @@ function blockem_enotify_store(App $a, array &$b)
|
||||
}
|
||||
}
|
||||
|
||||
function blockem_prepare_body_content_filter(App $a, array &$hook_data)
|
||||
function blockem_prepare_body_content_filter(array &$hook_data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -121,14 +122,14 @@ function blockem_prepare_body_content_filter(App $a, array &$hook_data)
|
||||
}
|
||||
}
|
||||
|
||||
function blockem_display_item(App $a, array &$b = null)
|
||||
function blockem_display_item(array &$b = null)
|
||||
{
|
||||
if (!empty($b['output']['body']) && strstr($b['output']['body'], 'id="blockem-wrap-')) {
|
||||
$b['output']['thumb'] = DI::baseUrl()->get() . "/images/person-80.jpg";
|
||||
$b['output']['thumb'] = DI::baseUrl() . "/images/person-80.jpg";
|
||||
}
|
||||
}
|
||||
|
||||
function blockem_conversation_start(App $a, array &$b)
|
||||
function blockem_conversation_start(array &$b)
|
||||
{
|
||||
global $blockem_words;
|
||||
|
||||
@ -160,7 +161,7 @@ function blockemUnblock(author) {
|
||||
EOT;
|
||||
}
|
||||
|
||||
function blockem_item_photo_menu(App $a, array &$b)
|
||||
function blockem_item_photo_menu(array &$b)
|
||||
{
|
||||
global $blockem_words;
|
||||
|
||||
@ -193,7 +194,7 @@ function blockem_item_photo_menu(App $a, array &$b)
|
||||
*/
|
||||
function blockem_module() {}
|
||||
|
||||
function blockem_init(App $a)
|
||||
function blockem_init()
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
|
10
bluesky/README.md
Normal file
10
bluesky/README.md
Normal file
@ -0,0 +1,10 @@
|
||||
Bluesky Addon
|
||||
==============
|
||||
|
||||
This addon currently supports posting to Bluesky.
|
||||
The import is under development and will hopefully come soon.
|
||||
|
||||
No setup is needed for the admins to make it work for their users.
|
||||
|
||||
Bluesky itself is under development as well. It is planned to make it decentral.
|
||||
The addon is prepared to support different servers. But it isn't enabled yet.
|
387
bluesky/bluesky.php
Normal file
387
bluesky/bluesky.php
Normal file
@ -0,0 +1,387 @@
|
||||
<?php
|
||||
/**
|
||||
* Name: Bluesky Connector
|
||||
* Description: Post to Bluesky
|
||||
* Version: 1.0
|
||||
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
|
||||
*/
|
||||
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Content\Text\Plaintext;
|
||||
use Friendica\Core\Config\Util\ConfigFileManager;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\Photo;
|
||||
use Friendica\Network\HTTPClient\Client\HttpClientAccept;
|
||||
use Friendica\Network\HTTPClient\Client\HttpClientOptions;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
|
||||
function bluesky_install()
|
||||
{
|
||||
Hook::register('load_config', __FILE__, 'bluesky_load_config');
|
||||
Hook::register('hook_fork', __FILE__, 'bluesky_hook_fork');
|
||||
Hook::register('post_local', __FILE__, 'bluesky_post_local');
|
||||
Hook::register('notifier_normal', __FILE__, 'bluesky_send');
|
||||
Hook::register('jot_networks', __FILE__, 'bluesky_jot_nets');
|
||||
Hook::register('connector_settings', __FILE__, 'bluesky_settings');
|
||||
Hook::register('connector_settings_post', __FILE__, 'bluesky_settings_post');
|
||||
}
|
||||
|
||||
function bluesky_load_config(ConfigFileManager $loader)
|
||||
{
|
||||
DI::app()->getConfigCache()->load($loader->loadAddonConfig('bluesky'), \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC);
|
||||
}
|
||||
|
||||
function bluesky_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$enabled = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'bluesky', 'post') ?? false;
|
||||
$def_enabled = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'bluesky', 'post_by_default') ?? false;
|
||||
$host = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'bluesky', 'host') ?: 'https://bsky.social';
|
||||
$handle = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'bluesky', 'handle');
|
||||
$did = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'bluesky', 'did');
|
||||
$token = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'bluesky', 'access_token');
|
||||
|
||||
$status = $token ? DI::l10n()->t("You are authenticated to Bluesky. For security reasons the password isn't stored.") : DI::l10n()->t('You are not authenticated. Please enter the app password.');
|
||||
|
||||
$t = Renderer::getMarkupTemplate('connector_settings.tpl', 'addon/bluesky/');
|
||||
$html = Renderer::replaceMacros($t, [
|
||||
'$enable' => ['bluesky', DI::l10n()->t('Enable Bluesky Post Addon'), $enabled],
|
||||
'$bydefault' => ['bluesky_bydefault', DI::l10n()->t('Post to Bluesky by default'), $def_enabled],
|
||||
'$host' => ['bluesky_host', DI::l10n()->t('Bluesky host'), $host, '', '', 'readonly'],
|
||||
'$handle' => ['bluesky_handle', DI::l10n()->t('Bluesky handle'), $handle],
|
||||
'$did' => ['bluesky_did', DI::l10n()->t('Bluesky DID'), $did, DI::l10n()->t('This is the unique identifier. It will be fetched automatically, when the handle is entered.'), '', 'readonly'],
|
||||
'$password' => ['bluesky_password', DI::l10n()->t('Bluesky app password'), '', DI::l10n()->t("Please don't add your real password here, but instead create a specific app password in the Bluesky settings.")],
|
||||
'$status' => $status
|
||||
]);
|
||||
|
||||
$data = [
|
||||
'connector' => 'bluesky',
|
||||
'title' => DI::l10n()->t('Bluesky Export'),
|
||||
'image' => 'images/bluesky.jpg',
|
||||
'enabled' => $enabled,
|
||||
'html' => $html,
|
||||
];
|
||||
}
|
||||
|
||||
function bluesky_settings_post(array &$b)
|
||||
{
|
||||
if (empty($_POST['bluesky-submit'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
$old_host = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'bluesky', 'host');
|
||||
$old_handle = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'bluesky', 'handle');
|
||||
$old_did = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'bluesky', 'did');
|
||||
|
||||
$host = $_POST['bluesky_host'];
|
||||
$handle = $_POST['bluesky_handle'];
|
||||
|
||||
DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'bluesky', 'post', intval($_POST['bluesky']));
|
||||
DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'bluesky', 'post_by_default', intval($_POST['bluesky_bydefault']));
|
||||
DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'bluesky', 'host', $host);
|
||||
DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'bluesky', 'handle', $handle);
|
||||
|
||||
if (!empty($host) && !empty($handle)) {
|
||||
if (empty($old_did) || $old_host != $host || $old_handle != $handle) {
|
||||
DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'bluesky', 'did', bluesky_get_did(DI::userSession()->getLocalUserId()));
|
||||
}
|
||||
} else {
|
||||
DI::pConfig()->delete(DI::userSession()->getLocalUserId(), 'bluesky', 'did');
|
||||
}
|
||||
|
||||
if (!empty($_POST['bluesky_password'])) {
|
||||
bluesky_create_token(DI::userSession()->getLocalUserId(), $_POST['bluesky_password']);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function bluesky_jot_nets(array &$jotnets_fields)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'bluesky', 'post')) {
|
||||
$jotnets_fields[] = [
|
||||
'type' => 'checkbox',
|
||||
'field' => [
|
||||
'bluesky_enable',
|
||||
DI::l10n()->t('Post to Bluesky'),
|
||||
DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'bluesky', 'post_by_default')
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
function bluesky_hook_fork(array &$b)
|
||||
{
|
||||
if ($b['name'] != 'notifier_normal') {
|
||||
return;
|
||||
}
|
||||
|
||||
$post = $b['data'];
|
||||
|
||||
if (($post['created'] !== $post['edited']) && !$post['deleted']) {
|
||||
DI::logger()->info('Editing is not supported by the addon');
|
||||
$b['execute'] = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!strstr($post['postopts'] ?? '', 'bluesky') || ($post['parent'] != $post['id']) || $post['private']) {
|
||||
$b['execute'] = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
function bluesky_post_local(array &$b)
|
||||
{
|
||||
if ($b['edit']) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!DI::userSession()->getLocalUserId() || (DI::userSession()->getLocalUserId() != $b['uid'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($b['private'] || $b['parent']) {
|
||||
return;
|
||||
}
|
||||
|
||||
$bluesky_post = intval(DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'bluesky', 'post'));
|
||||
$bluesky_enable = (($bluesky_post && !empty($_REQUEST['bluesky_enable'])) ? intval($_REQUEST['bluesky_enable']) : 0);
|
||||
|
||||
// if API is used, default to the chosen settings
|
||||
if ($b['api_source'] && intval(DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'bluesky', 'post_by_default'))) {
|
||||
$bluesky_enable = 1;
|
||||
}
|
||||
|
||||
if (!$bluesky_enable) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (strlen($b['postopts'])) {
|
||||
$b['postopts'] .= ',';
|
||||
}
|
||||
|
||||
$b['postopts'] .= 'bluesky';
|
||||
}
|
||||
|
||||
function bluesky_send(array &$b)
|
||||
{
|
||||
if (($b['created'] !== $b['edited']) && !$b['deleted']) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($b['gravity'] != Item::GRAVITY_PARENT) {
|
||||
return;
|
||||
} elseif ($b['private'] || !strstr($b['postopts'], 'bluesky')) {
|
||||
return;
|
||||
}
|
||||
|
||||
bluesky_create_post($b);
|
||||
}
|
||||
|
||||
function bluesky_create_post(array $item)
|
||||
{
|
||||
$uid = $item['uid'];
|
||||
$token = bluesky_get_token($uid);
|
||||
if (empty($token)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$did = DI::pConfig()->get($uid, 'bluesky', 'did');
|
||||
|
||||
$msg = Plaintext::getPost($item, 300, false, BBCode::CONNECTORS);
|
||||
$parent = $root = [];
|
||||
foreach ($msg['parts'] as $key => $part) {
|
||||
$record = [
|
||||
'text' => $part,
|
||||
'createdAt' => DateTimeFormat::utcNow(DateTimeFormat::ATOM),
|
||||
'$type' => 'app.bsky.feed.post'
|
||||
];
|
||||
|
||||
if (!empty($root)) {
|
||||
$record['reply'] = ['root' => $root, 'parent' => $parent];
|
||||
}
|
||||
|
||||
if ($key == count($msg['parts']) - 1) {
|
||||
$record = bluesky_add_embed($uid, $msg, $record);
|
||||
}
|
||||
|
||||
$post = [
|
||||
'collection' => 'app.bsky.feed.post',
|
||||
'repo' => $did,
|
||||
'record' => $record
|
||||
];
|
||||
|
||||
$parent = bluesky_post($uid, '/xrpc/com.atproto.repo.createRecord', json_encode($post), ['Content-type' => 'application/json', 'Authorization' => ['Bearer ' . $token]]);
|
||||
if (empty($parent)) {
|
||||
return;
|
||||
}
|
||||
Logger::debug('Posting done', ['return' => $parent]);
|
||||
if (empty($root)) {
|
||||
$root = $parent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function bluesky_add_embed(int $uid, array $msg, array $record): array
|
||||
{
|
||||
if (($msg['type'] != 'link') && !empty($msg['images'])) {
|
||||
$images = [];
|
||||
foreach ($msg['images'] as $image) {
|
||||
$photo = Photo::selectFirst(['resource-id'], ['id' => $image['id']]);
|
||||
$photo = Photo::selectFirst([], ["`resource-id` = ? AND `scale` > ?", $photo['resource-id'], 0], ['order' => ['scale']]);
|
||||
$blob = bluesky_upload_blob($uid, $photo);
|
||||
if (!empty($blob) && count($images) < 4) {
|
||||
$images[] = ['alt' => $image['description'], 'image' => $blob];
|
||||
}
|
||||
}
|
||||
if (!empty($images)) {
|
||||
$record['embed'] = ['$type' => 'app.bsky.embed.images', 'images' => $images];
|
||||
}
|
||||
} elseif ($msg['type'] == 'link') {
|
||||
$record['embed'] = [
|
||||
'$type' => 'app.bsky.embed.external',
|
||||
'external' => [
|
||||
'uri' => $msg['url'],
|
||||
'title' => $msg['title'],
|
||||
'description' => $msg['description'],
|
||||
]
|
||||
];
|
||||
if (!empty($msg['image'])) {
|
||||
$photo = Photo::createPhotoForExternalResource($msg['image']);
|
||||
$blob = bluesky_upload_blob($uid, $photo);
|
||||
if (!empty($blob)) {
|
||||
$record['embed']['external']['thumb'] = $blob;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $record;
|
||||
}
|
||||
|
||||
function bluesky_upload_blob(int $uid, array $photo): ?stdClass
|
||||
{
|
||||
$content = Photo::getImageForPhoto($photo);
|
||||
$data = bluesky_post($uid, '/xrpc/com.atproto.repo.uploadBlob', $content, ['Content-type' => $photo['type'], 'Authorization' => ['Bearer ' . bluesky_get_token($uid)]]);
|
||||
if (empty($data)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Logger::debug('Uploaded blob', ['return' => $data]);
|
||||
return $data->blob;
|
||||
}
|
||||
|
||||
function bluesky_get_timeline(int $uid)
|
||||
{
|
||||
$data = bluesky_get($uid, '/xrpc/app.bsky.feed.getTimeline', HttpClientAccept::JSON, [HttpClientOptions::HEADERS => ['Authorization' => ['Bearer ' . bluesky_get_token($uid)]]]);
|
||||
if (empty($data)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (empty($data->feed)) {
|
||||
return;
|
||||
}
|
||||
|
||||
foreach ($data->feed as $entry) {
|
||||
// TODO Add Functionality to read the timeline
|
||||
print_r($entry);
|
||||
}
|
||||
}
|
||||
|
||||
function bluesky_get_did(int $uid): string
|
||||
{
|
||||
$data = bluesky_get($uid, '/xrpc/com.atproto.identity.resolveHandle?handle=' . DI::pConfig()->get($uid, 'bluesky', 'handle'));
|
||||
if (empty($data)) {
|
||||
return '';
|
||||
}
|
||||
Logger::debug('Got DID', ['return' => $data]);
|
||||
return $data->did;
|
||||
}
|
||||
|
||||
function bluesky_get_token(int $uid): string
|
||||
{
|
||||
$token = DI::pConfig()->get($uid, 'bluesky', 'access_token');
|
||||
$created = DI::pConfig()->get($uid, 'bluesky', 'token_created');
|
||||
if (empty($token)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ($created + 300 < time()) {
|
||||
return bluesky_refresh_token($uid);
|
||||
}
|
||||
return $token;
|
||||
}
|
||||
|
||||
function bluesky_refresh_token(int $uid): string
|
||||
{
|
||||
$token = DI::pConfig()->get($uid, 'bluesky', 'refresh_token');
|
||||
|
||||
$data = bluesky_post($uid, '/xrpc/com.atproto.server.refreshSession', '', ['Authorization' => ['Bearer ' . $token]]);
|
||||
if (empty($data)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
Logger::debug('Refreshed token', ['return' => $data]);
|
||||
DI::pConfig()->set($uid, 'bluesky', 'access_token', $data->accessJwt);
|
||||
DI::pConfig()->set($uid, 'bluesky', 'refresh_token', $data->refreshJwt);
|
||||
DI::pConfig()->set($uid, 'bluesky', 'token_created', time());
|
||||
return $data->accessJwt;
|
||||
}
|
||||
|
||||
function bluesky_create_token(int $uid, string $password): string
|
||||
{
|
||||
$did = DI::pConfig()->get($uid, 'bluesky', 'did');
|
||||
|
||||
$data = bluesky_post($uid, '/xrpc/com.atproto.server.createSession', json_encode(['identifier' => $did, 'password' => $password]), ['Content-type' => 'application/json']);
|
||||
if (empty($data)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
Logger::debug('Created token', ['return' => $data]);
|
||||
DI::pConfig()->set($uid, 'bluesky', 'access_token', $data->accessJwt);
|
||||
DI::pConfig()->set($uid, 'bluesky', 'refresh_token', $data->refreshJwt);
|
||||
DI::pConfig()->set($uid, 'bluesky', 'token_created', time());
|
||||
return $data->accessJwt;
|
||||
}
|
||||
|
||||
function bluesky_post(int $uid, string $url, string $params, array $headers): ?stdClass
|
||||
{
|
||||
try {
|
||||
$curlResult = DI::httpClient()->post(DI::pConfig()->get($uid, 'bluesky', 'host') . $url, $params, $headers);
|
||||
} catch (\Exception $e) {
|
||||
Logger::notice('Exception on post', ['exception' => $e]);
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!$curlResult->isSuccess()) {
|
||||
Logger::notice('API Error', ['error' => json_decode($curlResult->getBody()) ?: $curlResult->getBody()]);
|
||||
return null;
|
||||
}
|
||||
|
||||
return json_decode($curlResult->getBody());
|
||||
}
|
||||
|
||||
function bluesky_get(int $uid, string $url, string $accept_content = HttpClientAccept::DEFAULT, array $opts = []): ?stdClass
|
||||
{
|
||||
try {
|
||||
$curlResult = DI::httpClient()->get(DI::pConfig()->get($uid, 'bluesky', 'host') . $url, $accept_content, $opts);
|
||||
} catch (\Exception $e) {
|
||||
Logger::notice('Exception on get', ['exception' => $e]);
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!$curlResult->isSuccess()) {
|
||||
Logger::notice('API Error', ['error' => json_decode($curlResult->getBody()) ?: $curlResult->getBody()]);
|
||||
return null;
|
||||
}
|
||||
|
||||
return json_decode($curlResult->getBody());
|
||||
}
|
72
bluesky/lang/C/messages.po
Normal file
72
bluesky/lang/C/messages.po
Normal file
@ -0,0 +1,72 @@
|
||||
# ADDON bluesky
|
||||
# Copyright (C)
|
||||
# This file is distributed under the same license as the Friendica bluesky addon package.
|
||||
#
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-05-21 19:24+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: bluesky.php:51
|
||||
msgid ""
|
||||
"You are authenticated to Bluesky. For security reasons the password isn't "
|
||||
"stored."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:51
|
||||
msgid "You are not authenticated. Please enter the app password."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:55
|
||||
msgid "Enable Bluesky Post Addon"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:56
|
||||
msgid "Post to Bluesky by default"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:57
|
||||
msgid "Bluesky host"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:58
|
||||
msgid "Bluesky handle"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:59
|
||||
msgid "Bluesky DID"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:59
|
||||
msgid ""
|
||||
"This is the unique identifier. It will be fetched automatically, when the "
|
||||
"handle is entered."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:60
|
||||
msgid "Bluesky app password"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:60
|
||||
msgid ""
|
||||
"Please don't add your real password here, but instead create a specific app "
|
||||
"password in the Bluesky settings."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:66
|
||||
msgid "Bluesky Export"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:116
|
||||
msgid "Post to Bluesky"
|
||||
msgstr ""
|
7
bluesky/templates/connector_settings.tpl
Normal file
7
bluesky/templates/connector_settings.tpl
Normal file
@ -0,0 +1,7 @@
|
||||
<p>{{$status}}</p>
|
||||
{{include file="field_checkbox.tpl" field=$enable}}
|
||||
{{include file="field_checkbox.tpl" field=$bydefault}}
|
||||
{{include file="field_input.tpl" field=$host}}
|
||||
{{include file="field_input.tpl" field=$handle}}
|
||||
{{include file="field_input.tpl" field=$did}}
|
||||
{{include file="field_input.tpl" field=$password}}
|
@ -15,7 +15,7 @@ function buglink_install()
|
||||
Hook::register('page_end', 'addon/buglink/buglink.php', 'buglink_active');
|
||||
}
|
||||
|
||||
function buglink_active(App $a, string &$b)
|
||||
function buglink_active(string &$b)
|
||||
{
|
||||
$b .= '<div id="buglink_wrapper" style="position: fixed; bottom: 5px; left: 5px;"><a href="https://github.com/friendica/friendica/issues" target="_blank" rel="noopener noreferrer" title="' . DI::l10n()->t('Report Bug') . '"><img src="addon/buglink/bug-x.gif" alt="' . DI::l10n()->t('Report Bug') . '" /></a></div>';
|
||||
}
|
||||
|
@ -4,21 +4,21 @@
|
||||
#
|
||||
#
|
||||
# Translators:
|
||||
# Michal Šupler <msupler@gmail.com>, 2014
|
||||
# michal_s <msupler@gmail.com>, 2014
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-06-22 13:18+0200\n"
|
||||
"PO-Revision-Date: 2014-07-07 18:27+0000\n"
|
||||
"Last-Translator: Michal Šupler <msupler@gmail.com>\n"
|
||||
"Language-Team: Czech (http://www.transifex.com/projects/p/friendica/language/cs/)\n"
|
||||
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
|
||||
"PO-Revision-Date: 2014-06-22 11:27+0000\n"
|
||||
"Last-Translator: michal_s <msupler@gmail.com>, 2014\n"
|
||||
"Language-Team: Czech (http://app.transifex.com/Friendica/friendica/language/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
|
||||
|
||||
#: buglink.php:15
|
||||
#: buglink.php:20
|
||||
msgid "Report Bug"
|
||||
msgstr "Nahlásit chybu"
|
||||
|
@ -3,6 +3,6 @@
|
||||
if(! function_exists("string_plural_select_cs")) {
|
||||
function string_plural_select_cs($n){
|
||||
$n = intval($n);
|
||||
if (($n==1)) { return 0; } else if (($n>=2 && $n<=4)) { return 1; } else { return 2; }
|
||||
if (($n == 1 && $n % 1 == 0)) { return 0; } else if (($n >= 2 && $n <= 4 && $n % 1 == 0)) { return 1; } else if (($n % 1 != 0 )) { return 2; } else { return 3; }
|
||||
}}
|
||||
$a->strings['Report Bug'] = 'Nahlásit chybu';
|
||||
|
@ -10,16 +10,16 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-06-22 13:18+0200\n"
|
||||
"PO-Revision-Date: 2019-11-10 20:12+0000\n"
|
||||
"Last-Translator: René Wagner <apollo@rw-net.de>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
|
||||
"PO-Revision-Date: 2014-06-22 11:27+0000\n"
|
||||
"Last-Translator: René Wagner <apollo@rw-net.de>, 2019\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: buglink.php:15
|
||||
#: buglink.php:20
|
||||
msgid "Report Bug"
|
||||
msgstr "Fehler melden"
|
||||
|
@ -14,7 +14,7 @@ function calc_install() {
|
||||
Hook::register('app_menu', 'addon/calc/calc.php', 'calc_app_menu');
|
||||
}
|
||||
|
||||
function calc_app_menu(App $a, array &$b)
|
||||
function calc_app_menu(array &$b)
|
||||
{
|
||||
$b['app_menu'][] = '<div class="app-title"><a href="calc">Calculator</a></div>';
|
||||
}
|
||||
@ -26,7 +26,7 @@ function calc_app_menu(App $a, array &$b)
|
||||
*/
|
||||
function calc_module() {}
|
||||
|
||||
function calc_init(App $a)
|
||||
function calc_init()
|
||||
{
|
||||
$x = <<< EOT
|
||||
|
||||
|
@ -35,7 +35,7 @@ function catavatar_install()
|
||||
/**
|
||||
* Cat avatar user settings page
|
||||
*/
|
||||
function catavatar_addon_settings(App $a, array &$data)
|
||||
function catavatar_addon_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -63,14 +63,14 @@ function catavatar_addon_settings(App $a, array &$data)
|
||||
/**
|
||||
* Cat avatar user settings POST handle
|
||||
*/
|
||||
function catavatar_addon_settings_post(App $a, &$s)
|
||||
function catavatar_addon_settings_post(&$s)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!empty($_POST['catavatar-usecat'])) {
|
||||
$url = DI::baseUrl()->get() . '/catavatar/' . DI::userSession()->getLocalUserId() . '?ts=' . time();
|
||||
$url = DI::baseUrl() . '/catavatar/' . DI::userSession()->getLocalUserId() . '?ts=' . time();
|
||||
|
||||
$self = DBA::selectFirst('contact', ['id'], ['uid' => DI::userSession()->getLocalUserId(), 'self' => true]);
|
||||
if (!DBA::isResult($self)) {
|
||||
@ -115,16 +115,15 @@ function catavatar_addon_settings_post(App $a, &$s)
|
||||
/**
|
||||
* Returns the URL to the cat avatar
|
||||
*
|
||||
* @param $a array
|
||||
* @param &$b array
|
||||
*/
|
||||
function catavatar_lookup(App $a, array &$b)
|
||||
function catavatar_lookup(array &$b)
|
||||
{
|
||||
$user = DBA::selectFirst('user', ['uid'], ['email' => $b['email']]);
|
||||
if (DBA::isResult($user)) {
|
||||
$url = DI::baseUrl()->get() . '/catavatar/' . $user['uid'];
|
||||
$url = DI::baseUrl() . '/catavatar/' . $user['uid'];
|
||||
} else {
|
||||
$url = DI::baseUrl()->get() . '/catavatar/' . md5(trim(strtolower($b['email'])));
|
||||
$url = DI::baseUrl() . '/catavatar/' . md5(trim(strtolower($b['email'])));
|
||||
}
|
||||
|
||||
switch($b['size']) {
|
||||
@ -150,7 +149,7 @@ function catavatar_module() {}
|
||||
* @throws NotFoundException
|
||||
*
|
||||
*/
|
||||
function catavatar_content(App $a)
|
||||
function catavatar_content()
|
||||
{
|
||||
if (DI::args()->getArgc() < 2 || DI::args()->getArgc() > 3) {
|
||||
throw new NotFoundException(); // this should be catched on index and show default "not found" page.
|
||||
|
@ -15,7 +15,7 @@ msgstr ""
|
||||
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
||||
"PO-Revision-Date: 2018-04-07 05:23+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2022\n"
|
||||
"Language-Team: German (https://www.transifex.com/Friendica/teams/12172/de/)\n"
|
||||
"Language-Team: German (https://app.transifex.com/Friendica/teams/12172/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -13,7 +13,7 @@ function convert_install() {
|
||||
Hook::register('app_menu', 'addon/convert/convert.php', 'convert_app_menu');
|
||||
}
|
||||
|
||||
function convert_app_menu(App $a, array &$b)
|
||||
function convert_app_menu(array &$b)
|
||||
{
|
||||
$b['app_menu'][] = '<div class="app-title"><a href="convert">Units Conversion</a></div>';
|
||||
}
|
||||
@ -21,7 +21,7 @@ function convert_app_menu(App $a, array &$b)
|
||||
|
||||
function convert_module() {}
|
||||
|
||||
function convert_content(App $a) {
|
||||
function convert_content() {
|
||||
// @TODO UnitConverter uses a deprecated constructor with the class' name
|
||||
// @TODO Let's one day rewrite this to a modern composer package
|
||||
include 'UnitConvertor.php';
|
||||
|
@ -28,14 +28,13 @@ function cookienotice_install()
|
||||
* cookienotice_addon_admin
|
||||
* creates the admins config panel
|
||||
*
|
||||
* @param App $a
|
||||
* @param string $s The existing config panel html so far
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function cookienotice_addon_admin(App $a, &$s)
|
||||
function cookienotice_addon_admin(&$s)
|
||||
{
|
||||
if (!$a->isSiteAdmin()) {
|
||||
if (!DI::userSession()->isSiteAdmin()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -57,12 +56,11 @@ function cookienotice_addon_admin(App $a, &$s)
|
||||
* cookienotice_addon_admin_post
|
||||
* handles the post request from the admin panel
|
||||
*
|
||||
* @param App $a
|
||||
* @return void
|
||||
*/
|
||||
function cookienotice_addon_admin_post(App $a)
|
||||
function cookienotice_addon_admin_post()
|
||||
{
|
||||
if (!$a->isSiteAdmin()) {
|
||||
if (!DI::userSession()->isSiteAdmin()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -77,12 +75,11 @@ function cookienotice_addon_admin_post(App $a)
|
||||
* page_content_top hook
|
||||
* adds css and scripts to the <head> section of the html
|
||||
*
|
||||
* @param App $a
|
||||
* @param string $b unused - the header html incl. nav
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function cookienotice_page_content_top(App $a, string &$b)
|
||||
function cookienotice_page_content_top(string &$b)
|
||||
{
|
||||
DI::page()->registerStylesheet(__DIR__ . '/cookienotice.css');
|
||||
DI::page()->registerFooterScript(__DIR__ . '/cookienotice.js');
|
||||
@ -93,12 +90,11 @@ function cookienotice_page_content_top(App $a, string &$b)
|
||||
* page_end hook
|
||||
* ads our cookienotice box to the end of the html
|
||||
*
|
||||
* @param App $a
|
||||
* @param string $b the page html
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function cookienotice_page_end(App $a, string &$b)
|
||||
function cookienotice_page_end(string &$b)
|
||||
{
|
||||
$text = (string)DI::config()->get('cookienotice', 'text', DI::l10n()->t('This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website.'));
|
||||
$oktext = (string)DI::config()->get('cookienotice', 'oktext', DI::l10n()->t('OK'));
|
||||
|
@ -6,7 +6,7 @@
|
||||
# Translators:
|
||||
# Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2019
|
||||
# Ulf Rompe <transifex.com@rompe.org>, 2019
|
||||
# foss <foss@openmailbox.org>, 2020
|
||||
# foss <oss@disr.it>, 2020
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
@ -15,8 +15,8 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
|
||||
"PO-Revision-Date: 2019-01-23 16:01+0000\n"
|
||||
"Last-Translator: foss <foss@openmailbox.org>, 2020\n"
|
||||
"Language-Team: German (https://www.transifex.com/Friendica/teams/12172/de/)\n"
|
||||
"Last-Translator: foss <oss@disr.it>, 2020\n"
|
||||
"Language-Team: German (https://app.transifex.com/Friendica/teams/12172/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -86,13 +86,13 @@ function getWeather($loc, $units = 'metric', $lang = 'en', $appid = '', $cacheti
|
||||
return $r;
|
||||
}
|
||||
|
||||
function curweather_network_mod_init(App $a, string &$body)
|
||||
function curweather_network_mod_init(string &$body)
|
||||
{
|
||||
if (!intval(DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'curweather', 'curweather_enable'))) {
|
||||
return;
|
||||
}
|
||||
|
||||
DI::page()['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . DI::baseUrl()->get() . '/addon/curweather/curweather.css' . '" media="all" />' . "\r\n";
|
||||
DI::page()['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . DI::baseUrl() . '/addon/curweather/curweather.css' . '" media="all" />' . "\r\n";
|
||||
|
||||
// $rpt value is needed for location
|
||||
// $lang will be taken from the browser session to honour user settings
|
||||
@ -152,7 +152,7 @@ function curweather_network_mod_init(App $a, string &$body)
|
||||
DI::page()['aside'] = $curweather . DI::page()['aside'];
|
||||
}
|
||||
|
||||
function curweather_addon_settings_post(App $a, $post)
|
||||
function curweather_addon_settings_post($post)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId() || empty($_POST['curweather-settings-submit'])) {
|
||||
return;
|
||||
@ -163,7 +163,7 @@ function curweather_addon_settings_post(App $a, $post)
|
||||
DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'curweather', 'curweather_units' , trim($_POST['curweather_units']));
|
||||
}
|
||||
|
||||
function curweather_addon_settings(App $a, array &$data)
|
||||
function curweather_addon_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -199,9 +199,9 @@ function curweather_addon_settings(App $a, array &$data)
|
||||
|
||||
// Config stuff for the admin panel to let the admin of the node set a APPID
|
||||
// for accessing the API of openweathermap
|
||||
function curweather_addon_admin_post(App $a)
|
||||
function curweather_addon_admin_post()
|
||||
{
|
||||
if (!$a->isSiteAdmin()) {
|
||||
if (!DI::userSession()->isSiteAdmin()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -211,9 +211,9 @@ function curweather_addon_admin_post(App $a)
|
||||
}
|
||||
}
|
||||
|
||||
function curweather_addon_admin(App $a, string &$o)
|
||||
function curweather_addon_admin(string &$o)
|
||||
{
|
||||
if (!$a->isSiteAdmin()) {
|
||||
if (!DI::userSession()->isSiteAdmin()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -11,124 +11,116 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-09-25 17:17+0200\n"
|
||||
"PO-Revision-Date: 2018-07-05 17:03+0000\n"
|
||||
"Last-Translator: Aditoo\n"
|
||||
"Language-Team: Czech (http://www.transifex.com/Friendica/friendica/language/cs/)\n"
|
||||
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
||||
"PO-Revision-Date: 2014-06-22 11:34+0000\n"
|
||||
"Last-Translator: Aditoo, 2018\n"
|
||||
"Language-Team: Czech (http://app.transifex.com/Friendica/friendica/language/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
|
||||
|
||||
#: curweather.php:31
|
||||
msgid "Error fetching weather data.\\nError was: "
|
||||
msgstr "Chyba při získávání dat o počasí.\\nChyba:"
|
||||
#: curweather.php:47
|
||||
msgid "Error fetching weather data. Error was: "
|
||||
msgstr ""
|
||||
|
||||
#: curweather.php:111 curweather.php:172
|
||||
#: curweather.php:130
|
||||
msgid "Current Weather"
|
||||
msgstr "Aktuální počasí"
|
||||
|
||||
#: curweather.php:118
|
||||
#: curweather.php:137
|
||||
msgid "Relative Humidity"
|
||||
msgstr "Relativní vlhkost vzduchu"
|
||||
|
||||
#: curweather.php:119
|
||||
#: curweather.php:138
|
||||
msgid "Pressure"
|
||||
msgstr "Tlak"
|
||||
|
||||
#: curweather.php:120
|
||||
#: curweather.php:139
|
||||
msgid "Wind"
|
||||
msgstr "Vítr"
|
||||
|
||||
#: curweather.php:121
|
||||
#: curweather.php:140
|
||||
msgid "Last Updated"
|
||||
msgstr "Naposledy aktualizováno"
|
||||
|
||||
#: curweather.php:122
|
||||
#: curweather.php:141
|
||||
msgid "Data by"
|
||||
msgstr "Data podle"
|
||||
|
||||
#: curweather.php:123
|
||||
#: curweather.php:142
|
||||
msgid "Show on map"
|
||||
msgstr "Ukázat na mapě"
|
||||
|
||||
#: curweather.php:128
|
||||
#: curweather.php:147
|
||||
msgid "There was a problem accessing the weather data. But have a look"
|
||||
msgstr "Při získávání dat o počasí nastala chyba. Podívejte se ale"
|
||||
|
||||
#: curweather.php:130
|
||||
#: curweather.php:149
|
||||
msgid "at OpenWeatherMap"
|
||||
msgstr "na OpenWeatherMap"
|
||||
|
||||
#: curweather.php:146
|
||||
msgid "Current Weather settings updated."
|
||||
msgstr "Nastavení pro Aktuální počasí aktualizováno."
|
||||
|
||||
#: curweather.php:161
|
||||
#: curweather.php:178
|
||||
msgid "No APPID found, please contact your admin to obtain one."
|
||||
msgstr "Žádné APPID nebylo nalezeno, prosím kontaktujte svého administrátora pro získání APPID."
|
||||
|
||||
#: curweather.php:171 curweather.php:200
|
||||
msgid "Save Settings"
|
||||
msgstr "Uložit nastavení"
|
||||
|
||||
#: curweather.php:172
|
||||
msgid "Settings"
|
||||
msgstr "Nastavení"
|
||||
|
||||
#: curweather.php:174
|
||||
#: curweather.php:188
|
||||
msgid "Enter either the name of your location or the zip code."
|
||||
msgstr "Zadejte buď název místa, kde se nacházíte, nebo PSČ."
|
||||
|
||||
#: curweather.php:175
|
||||
#: curweather.php:189
|
||||
msgid "Your Location"
|
||||
msgstr "Vaše poloha"
|
||||
|
||||
#: curweather.php:175
|
||||
#: curweather.php:189
|
||||
msgid ""
|
||||
"Identifier of your location (name or zip code), e.g. <em>Berlin,DE</em> or "
|
||||
"<em>14476,DE</em>."
|
||||
msgstr "Identifikátor vaší polohy (název nebo PSČ), např. <em>Praha,CZ</em> nebo <em>11000,CZ</em>."
|
||||
|
||||
#: curweather.php:176
|
||||
#: curweather.php:190
|
||||
msgid "Units"
|
||||
msgstr "Jednotky"
|
||||
|
||||
#: curweather.php:176
|
||||
#: curweather.php:190
|
||||
msgid "select if the temperature should be displayed in °C or °F"
|
||||
msgstr "vyberte, jestli by se teplota měla zobrazovat v °C či °F"
|
||||
|
||||
#: curweather.php:177
|
||||
#: curweather.php:191
|
||||
msgid "Show weather data"
|
||||
msgstr "Ukázat data o počasí"
|
||||
|
||||
#: curweather.php:190
|
||||
msgid "Curweather settings saved."
|
||||
msgstr "Nastavení Curwather uložena."
|
||||
#: curweather.php:196
|
||||
msgid "Current Weather Settings"
|
||||
msgstr ""
|
||||
|
||||
#: curweather.php:201
|
||||
#: curweather.php:227
|
||||
msgid "Save Settings"
|
||||
msgstr "Uložit nastavení"
|
||||
|
||||
#: curweather.php:230
|
||||
msgid "Caching Interval"
|
||||
msgstr "Ukládám interval do mezipaměti"
|
||||
msgstr "Interval mezipaměti"
|
||||
|
||||
#: curweather.php:201
|
||||
#: curweather.php:232
|
||||
msgid ""
|
||||
"For how long should the weather data be cached? Choose according your "
|
||||
"OpenWeatherMap account type."
|
||||
msgstr "Na jak dlouho by vaše data o počasí měla být uložena v mezipaměti? Vyberte podle typu vašeho účtu na OpenWeatherMap."
|
||||
|
||||
#: curweather.php:201
|
||||
#: curweather.php:233
|
||||
msgid "no cache"
|
||||
msgstr "žádná mezipaměť"
|
||||
|
||||
#: curweather.php:201
|
||||
#: curweather.php:234 curweather.php:235 curweather.php:236 curweather.php:237
|
||||
msgid "minutes"
|
||||
msgstr "minut"
|
||||
|
||||
#: curweather.php:202
|
||||
#: curweather.php:240
|
||||
msgid "Your APPID"
|
||||
msgstr "Vaše APPID"
|
||||
|
||||
#: curweather.php:202
|
||||
#: curweather.php:240
|
||||
msgid "Your API key provided by OpenWeatherMap"
|
||||
msgstr "Váš API klíč poskytnutý OpenWetherMap"
|
||||
|
@ -5,7 +5,6 @@ function string_plural_select_cs($n){
|
||||
$n = intval($n);
|
||||
if (($n == 1 && $n % 1 == 0)) { return 0; } else if (($n >= 2 && $n <= 4 && $n % 1 == 0)) { return 1; } else if (($n % 1 != 0 )) { return 2; } else { return 3; }
|
||||
}}
|
||||
$a->strings['Error fetching weather data.\nError was: '] = 'Chyba při získávání dat o počasí.\nChyba:';
|
||||
$a->strings['Current Weather'] = 'Aktuální počasí';
|
||||
$a->strings['Relative Humidity'] = 'Relativní vlhkost vzduchu';
|
||||
$a->strings['Pressure'] = 'Tlak';
|
||||
@ -15,18 +14,15 @@ $a->strings['Data by'] = 'Data podle';
|
||||
$a->strings['Show on map'] = 'Ukázat na mapě';
|
||||
$a->strings['There was a problem accessing the weather data. But have a look'] = 'Při získávání dat o počasí nastala chyba. Podívejte se ale';
|
||||
$a->strings['at OpenWeatherMap'] = 'na OpenWeatherMap';
|
||||
$a->strings['Current Weather settings updated.'] = 'Nastavení pro Aktuální počasí aktualizováno.';
|
||||
$a->strings['No APPID found, please contact your admin to obtain one.'] = 'Žádné APPID nebylo nalezeno, prosím kontaktujte svého administrátora pro získání APPID.';
|
||||
$a->strings['Save Settings'] = 'Uložit nastavení';
|
||||
$a->strings['Settings'] = 'Nastavení';
|
||||
$a->strings['Enter either the name of your location or the zip code.'] = 'Zadejte buď název místa, kde se nacházíte, nebo PSČ.';
|
||||
$a->strings['Your Location'] = 'Vaše poloha';
|
||||
$a->strings['Identifier of your location (name or zip code), e.g. <em>Berlin,DE</em> or <em>14476,DE</em>.'] = 'Identifikátor vaší polohy (název nebo PSČ), např. <em>Praha,CZ</em> nebo <em>11000,CZ</em>.';
|
||||
$a->strings['Units'] = 'Jednotky';
|
||||
$a->strings['select if the temperature should be displayed in °C or °F'] = 'vyberte, jestli by se teplota měla zobrazovat v °C či °F';
|
||||
$a->strings['Show weather data'] = 'Ukázat data o počasí';
|
||||
$a->strings['Curweather settings saved.'] = 'Nastavení Curwather uložena.';
|
||||
$a->strings['Caching Interval'] = 'Ukládám interval do mezipaměti';
|
||||
$a->strings['Save Settings'] = 'Uložit nastavení';
|
||||
$a->strings['Caching Interval'] = 'Interval mezipaměti';
|
||||
$a->strings['For how long should the weather data be cached? Choose according your OpenWeatherMap account type.'] = 'Na jak dlouho by vaše data o počasí měla být uložena v mezipaměti? Vyberte podle typu vašeho účtu na OpenWeatherMap.';
|
||||
$a->strings['no cache'] = 'žádná mezipaměť';
|
||||
$a->strings['minutes'] = 'minut';
|
||||
|
@ -15,9 +15,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
||||
"PO-Revision-Date: 2022-01-22 17:28+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-06-22 11:34+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2016,2021-2022\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -29,7 +29,7 @@ function diaspora_install()
|
||||
Hook::register('connector_settings_post', 'addon/diaspora/diaspora.php', 'diaspora_settings_post');
|
||||
}
|
||||
|
||||
function diaspora_jot_nets(App $a, array &$jotnets_fields)
|
||||
function diaspora_jot_nets(array &$jotnets_fields)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -47,7 +47,7 @@ function diaspora_jot_nets(App $a, array &$jotnets_fields)
|
||||
}
|
||||
}
|
||||
|
||||
function diaspora_settings(App $a, array &$data)
|
||||
function diaspora_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -117,7 +117,7 @@ function diaspora_settings(App $a, array &$data)
|
||||
}
|
||||
|
||||
|
||||
function diaspora_settings_post(App $a, array &$b)
|
||||
function diaspora_settings_post(array &$b)
|
||||
{
|
||||
if (!empty($_POST['diaspora-submit'])) {
|
||||
DI::pConfig()->set(DI::userSession()->getLocalUserId(),'diaspora', 'post' , intval($_POST['enabled']));
|
||||
@ -136,7 +136,7 @@ function diaspora_settings_post(App $a, array &$b)
|
||||
}
|
||||
}
|
||||
|
||||
function diaspora_hook_fork(App $a, array &$b)
|
||||
function diaspora_hook_fork(array &$b)
|
||||
{
|
||||
if ($b['name'] != 'notifier_normal') {
|
||||
return;
|
||||
@ -151,7 +151,7 @@ function diaspora_hook_fork(App $a, array &$b)
|
||||
}
|
||||
}
|
||||
|
||||
function diaspora_post_local(App $a, array &$b)
|
||||
function diaspora_post_local(array &$b)
|
||||
{
|
||||
if ($b['edit']) {
|
||||
return;
|
||||
@ -184,9 +184,9 @@ function diaspora_post_local(App $a, array &$b)
|
||||
$b['postopts'] .= 'diaspora';
|
||||
}
|
||||
|
||||
function diaspora_send(App $a, array &$b)
|
||||
function diaspora_send(array &$b)
|
||||
{
|
||||
$hostname = DI::baseUrl()->getHostname();
|
||||
$hostname = DI::baseUrl()->getHost();
|
||||
|
||||
Logger::notice('diaspora_send: invoked');
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
#
|
||||
# Translators:
|
||||
# foss <foss@openmailbox.org>, 2020
|
||||
# foss <oss@disr.it>, 2020
|
||||
# Till Mohr <tmtrfx@till-mohr.de>, 2021
|
||||
# Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2014
|
||||
# Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2018,2020
|
||||
@ -14,9 +14,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-11-21 19:17-0500\n"
|
||||
"PO-Revision-Date: 2021-12-22 15:27+0000\n"
|
||||
"Last-Translator: Transifex Bot <>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-06-22 11:39+0000\n"
|
||||
"Last-Translator: Till Mohr <tmtrfx@till-mohr.de>, 2021\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -36,7 +36,7 @@ function discourse_install()
|
||||
Hook::register('connector_settings_post', __FILE__, 'discourse_settings_post');
|
||||
}
|
||||
|
||||
function discourse_settings(App $a, array &$data)
|
||||
function discourse_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -58,7 +58,7 @@ function discourse_settings(App $a, array &$data)
|
||||
];
|
||||
}
|
||||
|
||||
function discourse_settings_post(App $a)
|
||||
function discourse_settings_post()
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId() || empty($_POST['discourse-submit'])) {
|
||||
return;
|
||||
@ -67,7 +67,7 @@ function discourse_settings_post(App $a)
|
||||
DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'discourse', 'enabled', intval($_POST['enabled']));
|
||||
}
|
||||
|
||||
function discourse_email_getmessage(App $a, &$message)
|
||||
function discourse_email_getmessage(&$message)
|
||||
{
|
||||
if (empty($message['item']['uid'])) {
|
||||
return;
|
||||
|
@ -29,7 +29,7 @@ function dwpost_install()
|
||||
Hook::register('connector_settings_post', 'addon/dwpost/dwpost.php', 'dwpost_settings_post');
|
||||
}
|
||||
|
||||
function dwpost_jot_nets(App $a, array &$jotnets_fields)
|
||||
function dwpost_jot_nets(array &$jotnets_fields)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -48,7 +48,7 @@ function dwpost_jot_nets(App $a, array &$jotnets_fields)
|
||||
}
|
||||
|
||||
|
||||
function dwpost_settings(App $a, array &$data)
|
||||
function dwpost_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -76,7 +76,7 @@ function dwpost_settings(App $a, array &$data)
|
||||
}
|
||||
|
||||
|
||||
function dwpost_settings_post(App $a, array &$b)
|
||||
function dwpost_settings_post(array &$b)
|
||||
{
|
||||
if (!empty($_POST['dwpost-submit'])) {
|
||||
DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'dwpost', 'post', intval($_POST['dwpost']));
|
||||
@ -86,7 +86,7 @@ function dwpost_settings_post(App $a, array &$b)
|
||||
}
|
||||
}
|
||||
|
||||
function dwpost_post_local(App $a, array &$b)
|
||||
function dwpost_post_local(array &$b)
|
||||
{
|
||||
// This can probably be changed to allow editing by pointing to a different API endpoint
|
||||
if ($b['edit']) {
|
||||
@ -120,7 +120,7 @@ function dwpost_post_local(App $a, array &$b)
|
||||
$b['postopts'] .= 'dwpost';
|
||||
}
|
||||
|
||||
function dwpost_send(App $a, array &$b)
|
||||
function dwpost_send(array &$b)
|
||||
{
|
||||
if ($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
|
||||
return;
|
||||
|
@ -10,40 +10,36 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
|
||||
"PO-Revision-Date: 2018-06-14 10:13+0000\n"
|
||||
"Last-Translator: Aditoo\n"
|
||||
"Language-Team: Czech (http://www.transifex.com/Friendica/friendica/language/cs/)\n"
|
||||
"POT-Creation-Date: 2021-11-21 19:17-0500\n"
|
||||
"PO-Revision-Date: 2014-06-22 11:41+0000\n"
|
||||
"Last-Translator: Aditoo, 2018\n"
|
||||
"Language-Team: Czech (http://app.transifex.com/Friendica/friendica/language/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
|
||||
|
||||
#: dwpost.php:39
|
||||
#: dwpost.php:43
|
||||
msgid "Post to Dreamwidth"
|
||||
msgstr "Poslat na Dreamwidth"
|
||||
msgstr "Odeslat na Dreamwidth"
|
||||
|
||||
#: dwpost.php:70
|
||||
msgid "Dreamwidth Post Settings"
|
||||
msgstr "Nastavení Dreamwidth Post"
|
||||
#: dwpost.php:63
|
||||
msgid "Enable Dreamwidth Post Addon"
|
||||
msgstr ""
|
||||
|
||||
#: dwpost.php:72
|
||||
msgid "Enable dreamwidth Post Addon"
|
||||
msgstr "Povolit doplněk Dreamwidth Post"
|
||||
#: dwpost.php:64
|
||||
msgid "Dreamwidth username"
|
||||
msgstr ""
|
||||
|
||||
#: dwpost.php:77
|
||||
msgid "dreamwidth username"
|
||||
msgstr "dreamwidth uživatelské jméno"
|
||||
#: dwpost.php:65
|
||||
msgid "Dreamwidth password"
|
||||
msgstr ""
|
||||
|
||||
#: dwpost.php:82
|
||||
msgid "dreamwidth password"
|
||||
msgstr "dreamwidth heslo"
|
||||
#: dwpost.php:66
|
||||
msgid "Post to Dreamwidth by default"
|
||||
msgstr ""
|
||||
|
||||
#: dwpost.php:87
|
||||
msgid "Post to dreamwidth by default"
|
||||
msgstr "Ve výchozím stavu posílat na dreamwidth"
|
||||
|
||||
#: dwpost.php:93
|
||||
msgid "Submit"
|
||||
msgstr "Odeslat"
|
||||
#: dwpost.php:71
|
||||
msgid "Dreamwidth Export"
|
||||
msgstr ""
|
||||
|
@ -5,10 +5,4 @@ function string_plural_select_cs($n){
|
||||
$n = intval($n);
|
||||
if (($n == 1 && $n % 1 == 0)) { return 0; } else if (($n >= 2 && $n <= 4 && $n % 1 == 0)) { return 1; } else if (($n % 1 != 0 )) { return 2; } else { return 3; }
|
||||
}}
|
||||
$a->strings['Post to Dreamwidth'] = 'Poslat na Dreamwidth';
|
||||
$a->strings['Dreamwidth Post Settings'] = 'Nastavení Dreamwidth Post';
|
||||
$a->strings['Enable dreamwidth Post Addon'] = 'Povolit doplněk Dreamwidth Post';
|
||||
$a->strings['dreamwidth username'] = 'dreamwidth uživatelské jméno';
|
||||
$a->strings['dreamwidth password'] = 'dreamwidth heslo';
|
||||
$a->strings['Post to dreamwidth by default'] = 'Ve výchozím stavu posílat na dreamwidth';
|
||||
$a->strings['Submit'] = 'Odeslat';
|
||||
$a->strings['Post to Dreamwidth'] = 'Odeslat na Dreamwidth';
|
||||
|
@ -13,9 +13,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-11-21 19:17-0500\n"
|
||||
"PO-Revision-Date: 2022-01-22 17:33+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-06-22 11:41+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2018,2021-2022\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -17,18 +17,18 @@ function fancybox_install()
|
||||
Hook::register('prepare_body_final', __FILE__, 'fancybox_render');
|
||||
}
|
||||
|
||||
function fancybox_head(App $a, string &$b)
|
||||
function fancybox_head(string &$b)
|
||||
{
|
||||
DI::page()->registerStylesheet(__DIR__ . '/asset/fancybox/jquery.fancybox.min.css');
|
||||
}
|
||||
|
||||
function fancybox_footer(App $a, string &$str)
|
||||
function fancybox_footer(string &$str)
|
||||
{
|
||||
DI::page()->registerFooterScript(__DIR__ . '/asset/fancybox/jquery.fancybox.min.js');
|
||||
DI::page()->registerFooterScript(__DIR__ . '/asset/fancybox/fancybox.config.js');
|
||||
}
|
||||
|
||||
function fancybox_render(App $a, array &$b){
|
||||
function fancybox_render(array &$b){
|
||||
$gallery = 'gallery-' . $b['item']['uri-id'] ?? random_int(1000000, 10000000);
|
||||
|
||||
// performWithEscapedBlocks escapes block defined with 2nd par pattern that won't be processed.
|
||||
@ -39,7 +39,7 @@ function fancybox_render(App $a, array &$b){
|
||||
function ($text) use ($gallery) {
|
||||
// This processes images inlined in posts
|
||||
// Frio / Vier hooks für lightbox are un-hooked in fancybox-config.js. So this works for them, too!
|
||||
//if (!in_array($a->getCurrentTheme(),['vier','frio']))
|
||||
//if (!in_array(DI::app()->getCurrentTheme(),['vier','frio']))
|
||||
$text = preg_replace(
|
||||
'#<a[^>]*href="([^"]*)"[^>]*>(<img[^>]*src="[^"]*"[^>]*>)</a>#',
|
||||
'<a data-fancybox="' . $gallery . '" href="$1">$2</a>',
|
||||
|
@ -36,19 +36,19 @@ function forumdirectory_install()
|
||||
*/
|
||||
function forumdirectory_module() {}
|
||||
|
||||
function forumdirectory_app_menu(App $a, array &$b)
|
||||
function forumdirectory_app_menu(array &$b)
|
||||
{
|
||||
$b['app_menu'][] = '<div class="app-title"><a href="forumdirectory">' . DI::l10n()->t('Forum Directory') . '</a></div>';
|
||||
}
|
||||
|
||||
function forumdirectory_init(App $a)
|
||||
function forumdirectory_init()
|
||||
{
|
||||
if (DI::userSession()->getLocalUserId()) {
|
||||
DI::page()['aside'] .= Widget::findPeople();
|
||||
}
|
||||
}
|
||||
|
||||
function forumdirectory_post(App $a)
|
||||
function forumdirectory_post()
|
||||
{
|
||||
global $forumdirectory_search;
|
||||
|
||||
@ -57,7 +57,7 @@ function forumdirectory_post(App $a)
|
||||
}
|
||||
}
|
||||
|
||||
function forumdirectory_content(App $a)
|
||||
function forumdirectory_content()
|
||||
{
|
||||
global $forumdirectory_search;
|
||||
|
||||
|
@ -11,9 +11,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
|
||||
"PO-Revision-Date: 2021-02-06 16:55+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-06-22 12:31+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2021\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -21,7 +21,7 @@ function fromapp_install()
|
||||
Logger::notice("installed fromapp");
|
||||
}
|
||||
|
||||
function fromapp_settings_post(App $a, $post)
|
||||
function fromapp_settings_post($post)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId() || empty($_POST['fromapp-submit'])) {
|
||||
return;
|
||||
@ -31,7 +31,7 @@ function fromapp_settings_post(App $a, $post)
|
||||
DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'fromapp', 'force', intval($_POST['fromapp-force']));
|
||||
}
|
||||
|
||||
function fromapp_settings(App &$a, array &$data)
|
||||
function fromapp_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -53,7 +53,7 @@ function fromapp_settings(App &$a, array &$data)
|
||||
];
|
||||
}
|
||||
|
||||
function fromapp_post_hook(App $a, &$item)
|
||||
function fromapp_post_hook(&$item)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
|
@ -13,9 +13,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
||||
"PO-Revision-Date: 2021-12-22 15:15+0000\n"
|
||||
"Last-Translator: Transifex Bot <>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-06-22 12:33+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2019\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -77,12 +77,12 @@ function geocoordinates_resolve_item(array &$item)
|
||||
}
|
||||
}
|
||||
|
||||
function geocoordinates_post_hook(App $a, &$item)
|
||||
function geocoordinates_post_hook(&$item)
|
||||
{
|
||||
geocoordinates_resolve_item($item);
|
||||
}
|
||||
|
||||
function geocoordinates_addon_admin(App $a, string &$o)
|
||||
function geocoordinates_addon_admin(string &$o)
|
||||
{
|
||||
$t = Renderer::getMarkupTemplate('admin.tpl', 'addon/geocoordinates/');
|
||||
|
||||
@ -93,7 +93,7 @@ function geocoordinates_addon_admin(App $a, string &$o)
|
||||
]);
|
||||
}
|
||||
|
||||
function geocoordinates_addon_admin_post(App $a)
|
||||
function geocoordinates_addon_admin_post()
|
||||
{
|
||||
DI::config()->set('geocoordinates', 'api_key', trim($_POST['api_key'] ?? ''));
|
||||
DI::config()->set('geocoordinates', 'language', trim($_POST['language'] ?? ''));
|
||||
|
@ -11,7 +11,7 @@ use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\DI;
|
||||
use Friendica\Core\Config\Util\ConfigFileLoader;
|
||||
use Friendica\Core\Config\Util\ConfigFileManager;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
function geonames_install()
|
||||
@ -33,12 +33,12 @@ function geonames_install()
|
||||
Hook::register('addon_settings_post', __FILE__, 'geonames_addon_settings_post');
|
||||
}
|
||||
|
||||
function geonames_load_config(App $a, ConfigFileLoader $loader)
|
||||
function geonames_load_config(ConfigFileManager $loader)
|
||||
{
|
||||
$a->getConfigCache()->load($loader->loadAddonConfig('geonames'), \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC);
|
||||
DI::app()->getConfigCache()->load($loader->loadAddonConfig('geonames'), \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC);
|
||||
}
|
||||
|
||||
function geonames_post_hook(App $a, array &$item)
|
||||
function geonames_post_hook(array &$item)
|
||||
{
|
||||
/* An item was posted on the local system.
|
||||
* We are going to look for specific items:
|
||||
@ -97,10 +97,9 @@ function geonames_post_hook(App $a, array &$item)
|
||||
* We will make sure we've got a valid user account
|
||||
* and if so set our configuration setting for this person.
|
||||
*
|
||||
* @param App $a
|
||||
* @param array $post The $_POST array
|
||||
*/
|
||||
function geonames_addon_settings_post(App $a, array $post)
|
||||
function geonames_addon_settings_post(array $post)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId() || empty($_POST['geonames-submit'])) {
|
||||
return;
|
||||
@ -113,11 +112,10 @@ function geonames_addon_settings_post(App $a, array $post)
|
||||
* Called from the Addon Setting form.
|
||||
* Add our own settings info to the page.
|
||||
*
|
||||
* @param App $a
|
||||
* @param array $data
|
||||
* @throws Exception
|
||||
*/
|
||||
function geonames_addon_settings(App $a, array &$data)
|
||||
function geonames_addon_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
|
@ -13,9 +13,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
||||
"PO-Revision-Date: 2021-12-22 17:23+0000\n"
|
||||
"Last-Translator: Transifex Bot <>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:27+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2018,2021\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -30,7 +30,7 @@ function gnot_install()
|
||||
* We will make sure we've got a valid user account
|
||||
* and if so set our configuration setting for this person.
|
||||
*/
|
||||
function gnot_settings_post(App $a, $post) {
|
||||
function gnot_settings_post($post) {
|
||||
if(! DI::userSession()->getLocalUserId() || empty($_POST['gnot-submit']))
|
||||
return;
|
||||
|
||||
@ -41,7 +41,7 @@ function gnot_settings_post(App $a, $post) {
|
||||
* Called from the Addon Setting form.
|
||||
* Add our own settings info to the page.
|
||||
*/
|
||||
function gnot_settings(App &$a, array &$data)
|
||||
function gnot_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -62,7 +62,7 @@ function gnot_settings(App &$a, array &$data)
|
||||
];
|
||||
}
|
||||
|
||||
function gnot_enotify_mail(App $a, array &$b)
|
||||
function gnot_enotify_mail(array &$b)
|
||||
{
|
||||
if ((!$b['uid']) || (! intval(DI::pConfig()->get($b['uid'], 'gnot','enable')))) {
|
||||
return;
|
||||
|
@ -13,9 +13,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
||||
"PO-Revision-Date: 2021-12-22 15:27+0000\n"
|
||||
"Last-Translator: Transifex Bot <>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:30+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2018,2021\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -18,7 +18,7 @@ function googlemaps_install()
|
||||
Logger::notice('installed googlemaps');
|
||||
}
|
||||
|
||||
function googlemaps_location(App $a, &$item)
|
||||
function googlemaps_location(&$item)
|
||||
{
|
||||
if (!(strlen($item['location']) || strlen($item['coord']))) {
|
||||
return;
|
||||
|
@ -30,12 +30,13 @@ Gravatar lets users self-rate their images to be used at appropriate audiences.
|
||||
See more information at [Gravatar][1].
|
||||
|
||||
## Alternative Configuration
|
||||
Open the `config/local.config.php` file and add "gravatar" to the list of activated addons:
|
||||
Open the `config/node.config.php` file and add "gravatar" to the list of activated addons:
|
||||
|
||||
'system' => [
|
||||
...
|
||||
'addon' => '...,gravatar'
|
||||
'addons' => [
|
||||
...
|
||||
'gravatar' => [
|
||||
admin => true,
|
||||
],
|
||||
]
|
||||
|
||||
You can add two configuration variables for the addon to the `config/gravatar.config.php` file:
|
||||
|
@ -13,7 +13,7 @@ use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Core\Config\Util\ConfigFileLoader;
|
||||
use Friendica\Core\Config\Util\ConfigFileManager;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
/**
|
||||
@ -26,18 +26,17 @@ function gravatar_install() {
|
||||
Logger::notice("registered gravatar in avatar_lookup hook");
|
||||
}
|
||||
|
||||
function gravatar_load_config(App $a, ConfigFileLoader $loader)
|
||||
function gravatar_load_config(ConfigFileManager $loader)
|
||||
{
|
||||
$a->getConfigCache()->load($loader->loadAddonConfig('gravatar'), \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC);
|
||||
DI::app()->getConfigCache()->load($loader->loadAddonConfig('gravatar'), \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC);
|
||||
}
|
||||
|
||||
/**
|
||||
* Looks up the avatar at gravatar.com and returns the URL.
|
||||
*
|
||||
* @param $a array
|
||||
* @param &$b array
|
||||
*/
|
||||
function gravatar_lookup(App $a, array &$b)
|
||||
function gravatar_lookup(array &$b)
|
||||
{
|
||||
$default_avatar = DI::config()->get('gravatar', 'default_avatar');
|
||||
$rating = DI::config()->get('gravatar', 'rating');
|
||||
@ -62,7 +61,7 @@ function gravatar_lookup(App $a, array &$b)
|
||||
/**
|
||||
* Display admin settings for this addon
|
||||
*/
|
||||
function gravatar_addon_admin (App $a, string &$o)
|
||||
function gravatar_addon_admin (string &$o)
|
||||
{
|
||||
$t = Renderer::getMarkupTemplate( "admin.tpl", "addon/gravatar/" );
|
||||
|
||||
@ -93,7 +92,7 @@ function gravatar_addon_admin (App $a, string &$o)
|
||||
];
|
||||
|
||||
// Check if Libravatar is enabled and show warning
|
||||
if (DBA::exists('addon', ['name' => 'libravatar', 'installed' => true])) {
|
||||
if (!empty(DI::config()->get('addons', 'libravatar'))) {
|
||||
$o = '<h5>' .DI::l10n()->t('Information') .'</h5><p>' .DI::l10n()->t('Libravatar addon is installed, too. Please disable Libravatar addon or this Gravatar addon.<br>The Libravatar addon will fall back to Gravatar if nothing was found at Libravatar.') .'</p><br><br>';
|
||||
}
|
||||
|
||||
@ -109,7 +108,7 @@ function gravatar_addon_admin (App $a, string &$o)
|
||||
/**
|
||||
* Save admin settings
|
||||
*/
|
||||
function gravatar_addon_admin_post (App $a)
|
||||
function gravatar_addon_admin_post ()
|
||||
{
|
||||
BaseModule::checkFormSecurityToken('gravatarsave');
|
||||
|
||||
|
@ -4,72 +4,69 @@
|
||||
#
|
||||
#
|
||||
# Translators:
|
||||
# Michal Šupler <msupler@gmail.com>, 2014-2015
|
||||
# Aditoo, 2018
|
||||
# michal_s <msupler@gmail.com>, 2014-2015
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
|
||||
"PO-Revision-Date: 2015-02-11 19:41+0000\n"
|
||||
"Last-Translator: Michal Šupler <msupler@gmail.com>\n"
|
||||
"Language-Team: Czech (http://www.transifex.com/projects/p/friendica/language/cs/)\n"
|
||||
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:33+0000\n"
|
||||
"Last-Translator: Aditoo, 2018\n"
|
||||
"Language-Team: Czech (http://app.transifex.com/Friendica/friendica/language/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
|
||||
|
||||
#: gravatar.php:71
|
||||
#: gravatar.php:78
|
||||
msgid "generic profile image"
|
||||
msgstr "generický profilový obrázek"
|
||||
|
||||
#: gravatar.php:72
|
||||
#: gravatar.php:79
|
||||
msgid "random geometric pattern"
|
||||
msgstr "náhodný geometrický vzor"
|
||||
|
||||
#: gravatar.php:73
|
||||
#: gravatar.php:80
|
||||
msgid "monster face"
|
||||
msgstr "tvář příšery"
|
||||
|
||||
#: gravatar.php:74
|
||||
#: gravatar.php:81
|
||||
msgid "computer generated face"
|
||||
msgstr "počítačově generovaná tvář"
|
||||
|
||||
#: gravatar.php:75
|
||||
#: gravatar.php:82
|
||||
msgid "retro arcade style face"
|
||||
msgstr "tvář v retro arkádovém stylu"
|
||||
|
||||
#: gravatar.php:89
|
||||
#: gravatar.php:96
|
||||
msgid "Information"
|
||||
msgstr "Informace"
|
||||
|
||||
#: gravatar.php:89
|
||||
#: gravatar.php:96
|
||||
msgid ""
|
||||
"Libravatar addon is installed, too. Please disable Libravatar addon or this "
|
||||
"Gravatar addon.<br>The Libravatar addon will fall back to Gravatar if "
|
||||
"nothing was found at Libravatar."
|
||||
msgstr "Libravatar doplněk je také nainstalován. Prosím zakažte doplněk Libravatar nebo tento doplněk Gravatar.<br>Libravatar doplněk se vrátí k doplňku Gravatar, pokud na Libravataru nebude nic nalezeno."
|
||||
msgstr "Doplněk Libravatar je také nainstalován. Prosím zakažte doplněk Libravatar nebo tento doplněk Gravatar.<br>Doplněk Libravatar se přepne na Gravatar, pokud na Libravataru nebude nic nalezeno."
|
||||
|
||||
#: gravatar.php:95
|
||||
msgid "Submit"
|
||||
msgstr "Odeslat"
|
||||
#: gravatar.php:102
|
||||
msgid "Save Settings"
|
||||
msgstr ""
|
||||
|
||||
#: gravatar.php:96
|
||||
#: gravatar.php:103
|
||||
msgid "Default avatar image"
|
||||
msgstr "Defaultní obrázek avataru"
|
||||
msgstr "Výchozí avatarový obrázek"
|
||||
|
||||
#: gravatar.php:96
|
||||
#: gravatar.php:103
|
||||
msgid "Select default avatar image if none was found at Gravatar. See README"
|
||||
msgstr "Nastavte defaulní obrázek avatara pokud ho již nemáte na Gravatar. Více viz. soubor README."
|
||||
msgstr "Nastavte výchozí avatarový obrázek, pokud ho již nemáte na Gravataru. Více viz. soubor README."
|
||||
|
||||
#: gravatar.php:97
|
||||
#: gravatar.php:104
|
||||
msgid "Rating of images"
|
||||
msgstr "Hodnocení obrázků"
|
||||
|
||||
#: gravatar.php:97
|
||||
#: gravatar.php:104
|
||||
msgid "Select the appropriate avatar rating for your site. See README"
|
||||
msgstr "Zadejte ohodnocení příslušného avatara pro vaši stránku. Viz README."
|
||||
|
||||
#: gravatar.php:111
|
||||
msgid "Gravatar settings updated."
|
||||
msgstr "Nastavení Gravatar aktualizováno."
|
||||
msgstr "Zadejte příslušné ohodnocení avataru pro vaši stránku. Viz README."
|
||||
|
@ -3,7 +3,7 @@
|
||||
if(! function_exists("string_plural_select_cs")) {
|
||||
function string_plural_select_cs($n){
|
||||
$n = intval($n);
|
||||
if (($n==1)) { return 0; } else if (($n>=2 && $n<=4)) { return 1; } else { return 2; }
|
||||
if (($n == 1 && $n % 1 == 0)) { return 0; } else if (($n >= 2 && $n <= 4 && $n % 1 == 0)) { return 1; } else if (($n % 1 != 0 )) { return 2; } else { return 3; }
|
||||
}}
|
||||
$a->strings['generic profile image'] = 'generický profilový obrázek';
|
||||
$a->strings['random geometric pattern'] = 'náhodný geometrický vzor';
|
||||
@ -11,10 +11,8 @@ $a->strings['monster face'] = 'tvář příšery';
|
||||
$a->strings['computer generated face'] = 'počítačově generovaná tvář';
|
||||
$a->strings['retro arcade style face'] = 'tvář v retro arkádovém stylu';
|
||||
$a->strings['Information'] = 'Informace';
|
||||
$a->strings['Libravatar addon is installed, too. Please disable Libravatar addon or this Gravatar addon.<br>The Libravatar addon will fall back to Gravatar if nothing was found at Libravatar.'] = 'Libravatar doplněk je také nainstalován. Prosím zakažte doplněk Libravatar nebo tento doplněk Gravatar.<br>Libravatar doplněk se vrátí k doplňku Gravatar, pokud na Libravataru nebude nic nalezeno.';
|
||||
$a->strings['Submit'] = 'Odeslat';
|
||||
$a->strings['Default avatar image'] = 'Defaultní obrázek avataru';
|
||||
$a->strings['Select default avatar image if none was found at Gravatar. See README'] = 'Nastavte defaulní obrázek avatara pokud ho již nemáte na Gravatar. Více viz. soubor README.';
|
||||
$a->strings['Libravatar addon is installed, too. Please disable Libravatar addon or this Gravatar addon.<br>The Libravatar addon will fall back to Gravatar if nothing was found at Libravatar.'] = 'Doplněk Libravatar je také nainstalován. Prosím zakažte doplněk Libravatar nebo tento doplněk Gravatar.<br>Doplněk Libravatar se přepne na Gravatar, pokud na Libravataru nebude nic nalezeno.';
|
||||
$a->strings['Default avatar image'] = 'Výchozí avatarový obrázek';
|
||||
$a->strings['Select default avatar image if none was found at Gravatar. See README'] = 'Nastavte výchozí avatarový obrázek, pokud ho již nemáte na Gravataru. Více viz. soubor README.';
|
||||
$a->strings['Rating of images'] = 'Hodnocení obrázků';
|
||||
$a->strings['Select the appropriate avatar rating for your site. See README'] = 'Zadejte ohodnocení příslušného avatara pro vaši stránku. Viz README.';
|
||||
$a->strings['Gravatar settings updated.'] = 'Nastavení Gravatar aktualizováno.';
|
||||
$a->strings['Select the appropriate avatar rating for your site. See README'] = 'Zadejte příslušné ohodnocení avataru pro vaši stránku. Viz README.';
|
||||
|
@ -13,9 +13,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
|
||||
"PO-Revision-Date: 2021-02-06 17:01+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:33+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2021\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -27,7 +27,7 @@ function group_text_install()
|
||||
*
|
||||
*/
|
||||
|
||||
function group_text_settings_post(App $a, array $post)
|
||||
function group_text_settings_post(array $post)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId() || empty($post['group_text-submit'])) {
|
||||
return;
|
||||
@ -44,7 +44,7 @@ function group_text_settings_post(App $a, array $post)
|
||||
*
|
||||
*/
|
||||
|
||||
function group_text_settings(App &$a, array &$data)
|
||||
function group_text_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
|
@ -13,9 +13,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
||||
"PO-Revision-Date: 2021-12-22 15:27+0000\n"
|
||||
"Last-Translator: Transifex Bot <>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:35+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2021\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -16,9 +16,9 @@ function highlightjs_install()
|
||||
Hook::register('footer', __FILE__, 'highlightjs_footer');
|
||||
}
|
||||
|
||||
function highlightjs_head(App $a, string &$str)
|
||||
function highlightjs_head(string &$str)
|
||||
{
|
||||
if ($a->getCurrentTheme() == 'frio') {
|
||||
if (DI::app()->getCurrentTheme() == 'frio') {
|
||||
$style = 'bootstrap';
|
||||
} else {
|
||||
$style = 'default';
|
||||
@ -27,7 +27,7 @@ function highlightjs_head(App $a, string &$str)
|
||||
DI::page()->registerStylesheet(__DIR__ . '/asset/styles/' . $style . '.css');
|
||||
}
|
||||
|
||||
function highlightjs_footer(App $a, string &$str)
|
||||
function highlightjs_footer(string &$str)
|
||||
{
|
||||
DI::page()->registerFooterScript(__DIR__ . '/asset/highlight.pack.js');
|
||||
DI::page()->registerFooterScript(__DIR__ . '/highlightjs.js');
|
||||
|
@ -32,7 +32,7 @@ function ifttt_module() {}
|
||||
|
||||
function ifttt_content() {}
|
||||
|
||||
function ifttt_settings(App $a, array &$data)
|
||||
function ifttt_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -55,7 +55,7 @@ function ifttt_settings(App $a, array &$data)
|
||||
'new_photo_upload_body' => DI::l10n()->t('Body for "new photo upload"'),
|
||||
'new_link_post_body' => DI::l10n()->t('Body for "new link post"'),
|
||||
],
|
||||
'$url' => DI::baseUrl()->get() . '/ifttt/' . $a->getLoggedInUserNickname(),
|
||||
'$url' => DI::baseUrl() . '/ifttt/' . DI::userSession()->getLocalUserNickname(),
|
||||
'$new_status_message_body' => 'key=' . $key . '&type=status&msg=<<<{{Message}}>>>&date=<<<{{UpdatedAt}}>>>&url=<<<{{PageUrl}}>>>',
|
||||
'$new_photo_upload_body' => 'key=' . $key . '&type=photo&link=<<<{{Link}}>>>&image=<<<{{ImageSource}}>>>&msg=<<<{{Caption}}>>>&date=<<<{{CreatedAt}}>>>&url=<<<{{PageUrl}}>>>',
|
||||
'$new_link_post_body' => 'key=' . $key . '&type=link&link=<<<{{Link}}>>>&title=<<<{{Title}}>>>&msg=<<<{{Message}}>>>&description=<<<{{Description}}>>>&date=<<<{{CreatedAt}}>>>&url=<<<{{PageUrl}}>>>',
|
||||
@ -77,7 +77,7 @@ function ifttt_settings_post()
|
||||
}
|
||||
}
|
||||
|
||||
function ifttt_post(App $a)
|
||||
function ifttt_post()
|
||||
{
|
||||
if (DI::args()->getArgc() != 2) {
|
||||
return;
|
||||
|
@ -16,7 +16,7 @@ msgstr ""
|
||||
"POT-Creation-Date: 2021-11-21 19:17-0500\n"
|
||||
"PO-Revision-Date: 2017-11-27 10:37+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2022\n"
|
||||
"Language-Team: German (https://www.transifex.com/Friendica/teams/12172/de/)\n"
|
||||
"Language-Team: German (https://app.transifex.com/Friendica/teams/12172/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -28,7 +28,7 @@ function ijpost_install()
|
||||
Hook::register('connector_settings_post', 'addon/ijpost/ijpost.php', 'ijpost_settings_post');
|
||||
}
|
||||
|
||||
function ijpost_jot_nets(App &$a, array &$jotnets_fields)
|
||||
function ijpost_jot_nets(array &$jotnets_fields)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -46,7 +46,7 @@ function ijpost_jot_nets(App &$a, array &$jotnets_fields)
|
||||
}
|
||||
}
|
||||
|
||||
function ijpost_settings(App &$a, array &$data)
|
||||
function ijpost_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -73,7 +73,7 @@ function ijpost_settings(App &$a, array &$data)
|
||||
];
|
||||
}
|
||||
|
||||
function ijpost_settings_post(App $a, array &$b)
|
||||
function ijpost_settings_post(array &$b)
|
||||
{
|
||||
if (!empty($_POST['ijpost-submit'])) {
|
||||
DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'ijpost', 'post', intval($_POST['ijpost']));
|
||||
@ -83,7 +83,7 @@ function ijpost_settings_post(App $a, array &$b)
|
||||
}
|
||||
}
|
||||
|
||||
function ijpost_post_local(App $a, array &$b)
|
||||
function ijpost_post_local(array &$b)
|
||||
{
|
||||
// This can probably be changed to allow editing by pointing to a different API endpoint
|
||||
|
||||
@ -118,7 +118,7 @@ function ijpost_post_local(App $a, array &$b)
|
||||
$b['postopts'] .= 'ijpost';
|
||||
}
|
||||
|
||||
function ijpost_send(App $a, array &$b)
|
||||
function ijpost_send(array &$b)
|
||||
{
|
||||
if ($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
|
||||
return;
|
||||
|
@ -13,9 +13,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-11-21 19:17-0500\n"
|
||||
"PO-Revision-Date: 2021-12-22 16:19+0000\n"
|
||||
"Last-Translator: Transifex Bot <>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:37+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2018,2021\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -13,7 +13,7 @@ use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\DI;
|
||||
use Friendica\Core\Config\Util\ConfigFileLoader;
|
||||
use Friendica\Core\Config\Util\ConfigFileManager;
|
||||
use Friendica\Util\Proxy as ProxyUtils;
|
||||
|
||||
function impressum_install()
|
||||
@ -43,49 +43,48 @@ function obfuscate_email (string $s): string
|
||||
return $s;
|
||||
}
|
||||
|
||||
function impressum_footer(App $a, string &$body)
|
||||
function impressum_footer(string &$body)
|
||||
{
|
||||
$text = ProxyUtils::proxifyHtml(BBCode::convert(DI::config()->get('impressum', 'footer_text')));
|
||||
|
||||
if ($text != '') {
|
||||
DI::page()['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . DI::baseUrl()->get() . '/addon/impressum/impressum.css" media="all" />';
|
||||
DI::page()['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . DI::baseUrl() . '/addon/impressum/impressum.css" media="all" />';
|
||||
$body .= '<div class="clear"></div>';
|
||||
$body .= '<div id="impressum_footer">' . $text . '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
function impressum_load_config(App $a, ConfigFileLoader $loader)
|
||||
function impressum_load_config(ConfigFileManager $loader)
|
||||
{
|
||||
$a->getConfigCache()->load($loader->loadAddonConfig('impressum'), \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC);
|
||||
DI::app()->getConfigCache()->load($loader->loadAddonConfig('impressum'), \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC);
|
||||
}
|
||||
|
||||
function impressum_show(App $a, string &$body)
|
||||
function impressum_show(string &$body)
|
||||
{
|
||||
$body .= '<h3>' . DI::l10n()->t('Impressum') . '</h3>';
|
||||
$owner = DI::config()->get('impressum', 'owner');
|
||||
$body .= '<h3>' . DI::l10n()->t('Impressum') . '</h3>';
|
||||
$owner = DI::config()->get('impressum', 'owner');
|
||||
$owner_profile = DI::config()->get('impressum', 'ownerprofile');
|
||||
$postal = ProxyUtils::proxifyHtml(BBCode::convert(DI::config()->get('impressum', 'postal')));
|
||||
$notes = ProxyUtils::proxifyHtml(BBCode::convert(DI::config()->get('impressum', 'notes')));
|
||||
$email = obfuscate_email( DI::config()->get('impressum', 'email') );
|
||||
$postal = ProxyUtils::proxifyHtml(BBCode::convert(DI::config()->get('impressum', 'postal')));
|
||||
$notes = ProxyUtils::proxifyHtml(BBCode::convert(DI::config()->get('impressum', 'notes')));
|
||||
|
||||
if (strlen($owner)) {
|
||||
if (strlen($owner_profile)) {
|
||||
if ($owner) {
|
||||
if ($owner_profile) {
|
||||
$tmp = '<a href="' . $owner_profile . '">' . $owner . '</a>';
|
||||
} else {
|
||||
$tmp = $owner;
|
||||
}
|
||||
|
||||
if (strlen($email)) {
|
||||
$body .= '<p><strong>' . DI::l10n()->t('Site Owner').'</strong>: ' . $tmp .'<br /><strong>' . DI::l10n()->t('Email Address') . '</strong>: ' . $email . '</p>';
|
||||
if ($email = DI::config()->get('impressum', 'email')) {
|
||||
$body .= '<p><strong>' . DI::l10n()->t('Site Owner').'</strong>: ' . $tmp .'<br /><strong>' . DI::l10n()->t('Email Address') . '</strong>: ' . obfuscate_email($email) . '</p>';
|
||||
} else {
|
||||
$body .= '<p><strong>' . DI::l10n()->t('Site Owner').'</strong>: ' . $tmp .'</p>';
|
||||
}
|
||||
|
||||
if (strlen($postal)) {
|
||||
if ($postal) {
|
||||
$body .= '<p><strong>' . DI::l10n()->t('Postal Address') . '</strong><br />' . $postal . '</p>';
|
||||
}
|
||||
|
||||
if (strlen($notes)) {
|
||||
if ($notes) {
|
||||
$body .= '<p>' . $notes . '</p>';
|
||||
}
|
||||
} else {
|
||||
@ -93,7 +92,7 @@ function impressum_show(App $a, string &$body)
|
||||
}
|
||||
}
|
||||
|
||||
function impressum_addon_admin_post (App $a)
|
||||
function impressum_addon_admin_post ()
|
||||
{
|
||||
DI::config()->set('impressum', 'owner', strip_tags(trim($_POST['owner'] ?? '')));
|
||||
DI::config()->set('impressum', 'ownerprofile', strip_tags(trim($_POST['ownerprofile'] ?? '')));
|
||||
@ -103,7 +102,7 @@ function impressum_addon_admin_post (App $a)
|
||||
DI::config()->set('impressum', 'footer_text', strip_tags(trim($_POST['footer_text'] ?? '')));
|
||||
}
|
||||
|
||||
function impressum_addon_admin (App $a, string &$o)
|
||||
function impressum_addon_admin (string &$o)
|
||||
{
|
||||
$t = Renderer::getMarkupTemplate('admin.tpl', 'addon/impressum/' );
|
||||
$o = Renderer::replaceMacros($t, [
|
||||
|
@ -13,9 +13,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
|
||||
"PO-Revision-Date: 2021-03-29 05:29+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:39+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2021\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -15,7 +15,7 @@ function infiniteimprobabilitydrive_install()
|
||||
Hook::register('app_menu', 'addon/infiniteimprobabilitydrive/infiniteimprobabilitydrive.php', 'infiniteimprobabilitydrive_app_menu');
|
||||
}
|
||||
|
||||
function infiniteimprobabilitydrive_app_menu(App $a, array &$b)
|
||||
function infiniteimprobabilitydrive_app_menu(array &$b)
|
||||
{
|
||||
$b['app_menu'][] = '<div class="app-title"><a href="infiniteimprobabilitydrive">' . DI::l10n()->t('Infinite Improbability Drive') . '</a></div>';
|
||||
}
|
||||
@ -28,15 +28,14 @@ function infiniteimprobabilitydrive_app_menu(App $a, array &$b)
|
||||
function infiniteimprobabilitydrive_module() {}
|
||||
|
||||
|
||||
function infiniteimprobabilitydrive_content(App $a)
|
||||
function infiniteimprobabilitydrive_content()
|
||||
{
|
||||
$baseurl = DI::baseUrl()->get() . '/addon/infiniteimprobabilitydrive';
|
||||
$o = '';
|
||||
|
||||
DI::page()['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="'.DI::baseUrl()->get().'/addon/infiniteimprobabilitydrive/infiniteimprobabilitydrive.css"/>';
|
||||
DI::page()['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="'.DI::baseUrl().'/addon/infiniteimprobabilitydrive/infiniteimprobabilitydrive.css"/>';
|
||||
|
||||
|
||||
$baseurl = DI::baseUrl()->get();
|
||||
$baseurl = (string)DI::baseUrl();
|
||||
|
||||
$o .= <<< EOT
|
||||
|
||||
|
@ -4,21 +4,21 @@
|
||||
#
|
||||
#
|
||||
# Translators:
|
||||
# Michal Šupler <msupler@gmail.com>, 2014
|
||||
# michal_s <msupler@gmail.com>, 2014
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-06-22 13:18+0200\n"
|
||||
"PO-Revision-Date: 2014-07-07 19:12+0000\n"
|
||||
"Last-Translator: Michal Šupler <msupler@gmail.com>\n"
|
||||
"Language-Team: Czech (http://www.transifex.com/projects/p/friendica/language/cs/)\n"
|
||||
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:41+0000\n"
|
||||
"Last-Translator: michal_s <msupler@gmail.com>, 2014\n"
|
||||
"Language-Team: Czech (http://app.transifex.com/Friendica/friendica/language/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
|
||||
|
||||
#: infiniteimprobabilitydrive.php:19
|
||||
#: infiniteimprobabilitydrive.php:18
|
||||
msgid "Infinite Improbability Drive"
|
||||
msgstr "Infinite Improbability Drive"
|
||||
|
@ -3,6 +3,6 @@
|
||||
if(! function_exists("string_plural_select_cs")) {
|
||||
function string_plural_select_cs($n){
|
||||
$n = intval($n);
|
||||
if (($n==1)) { return 0; } else if (($n>=2 && $n<=4)) { return 1; } else { return 2; }
|
||||
if (($n == 1 && $n % 1 == 0)) { return 0; } else if (($n >= 2 && $n <= 4 && $n % 1 == 0)) { return 1; } else if (($n % 1 != 0 )) { return 2; } else { return 3; }
|
||||
}}
|
||||
$a->strings['Infinite Improbability Drive'] = 'Infinite Improbability Drive';
|
||||
|
@ -4,21 +4,21 @@
|
||||
#
|
||||
#
|
||||
# Translators:
|
||||
# bavatar <tobias.diekershoff@gmx.net>, 2014
|
||||
# Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2014
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-06-22 13:18+0200\n"
|
||||
"PO-Revision-Date: 2014-07-06 12:15+0000\n"
|
||||
"Last-Translator: bavatar <tobias.diekershoff@gmx.net>\n"
|
||||
"Language-Team: German (http://www.transifex.com/projects/p/friendica/language/de/)\n"
|
||||
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:41+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2014\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: infiniteimprobabilitydrive.php:19
|
||||
#: infiniteimprobabilitydrive.php:18
|
||||
msgid "Infinite Improbability Drive"
|
||||
msgstr "Infinite Improbability Drive"
|
||||
|
@ -9,16 +9,16 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
|
||||
"PO-Revision-Date: 2017-09-20 06:08+0000\n"
|
||||
"Last-Translator: fabrixxm <fabrix.xm@gmail.com>\n"
|
||||
"Language-Team: Italian (http://www.transifex.com/Friendica/friendica/language/it/)\n"
|
||||
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:41+0000\n"
|
||||
"Last-Translator: fabrixxm <fabrix.xm@gmail.com>, 2014\n"
|
||||
"Language-Team: Italian (http://app.transifex.com/Friendica/friendica/language/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: it\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
||||
|
||||
#: infiniteimprobabilitydrive.php:19
|
||||
#: infiniteimprobabilitydrive.php:18
|
||||
msgid "Infinite Improbability Drive"
|
||||
msgstr "Motore ad Improbabilità Infinita"
|
||||
|
@ -3,6 +3,6 @@
|
||||
if(! function_exists("string_plural_select_it")) {
|
||||
function string_plural_select_it($n){
|
||||
$n = intval($n);
|
||||
return intval($n != 1);
|
||||
if ($n == 1) { return 0; } else if ($n != 0 && $n % 1000000 == 0) { return 1; } else { return 2; }
|
||||
}}
|
||||
$a->strings['Infinite Improbability Drive'] = 'Motore ad Improbabilità Infinita';
|
||||
|
18
irc/irc.php
18
irc/irc.php
@ -19,7 +19,7 @@ function irc_install()
|
||||
Hook::register('addon_settings_post', 'addon/irc/irc.php', 'irc_addon_settings_post');
|
||||
}
|
||||
|
||||
function irc_addon_settings(App &$a, array &$data)
|
||||
function irc_addon_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -42,7 +42,7 @@ function irc_addon_settings(App &$a, array &$data)
|
||||
];
|
||||
}
|
||||
|
||||
function irc_addon_settings_post(App $a, array &$b)
|
||||
function irc_addon_settings_post(array &$b)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -59,7 +59,7 @@ function irc_addon_settings_post(App $a, array &$b)
|
||||
}
|
||||
}
|
||||
|
||||
function irc_app_menu(App $a, array &$b)
|
||||
function irc_app_menu(array &$b)
|
||||
{
|
||||
$b['app_menu'][] = '<div class="app-title"><a href="irc">' . DI::l10n()->t('IRC Chatroom') . '</a></div>';
|
||||
}
|
||||
@ -71,9 +71,9 @@ function irc_app_menu(App $a, array &$b)
|
||||
*/
|
||||
function irc_module() {}
|
||||
|
||||
function irc_content(App $a)
|
||||
function irc_content()
|
||||
{
|
||||
$baseurl = DI::baseUrl()->get() . '/addon/irc';
|
||||
$baseurl = DI::baseUrl() . '/addon/irc';
|
||||
$o = '';
|
||||
|
||||
/* set the list of popular channels */
|
||||
@ -95,7 +95,7 @@ function irc_content(App $a)
|
||||
|
||||
DI::page()['aside'] .= '<div class="widget"><h3>' . DI::l10n()->t('Popular Channels') . '</h3><ul>';
|
||||
foreach ($chats as $chat) {
|
||||
DI::page()['aside'] .= '<li><a href="' . DI::baseUrl()->get() . '/irc?channels=' . $chat . '" >' . '#' . $chat . '</a></li>';
|
||||
DI::page()['aside'] .= '<li><a href="' . DI::baseUrl() . '/irc?channels=' . $chat . '" >' . '#' . $chat . '</a></li>';
|
||||
}
|
||||
DI::page()['aside'] .= '</ul></div>';
|
||||
|
||||
@ -124,9 +124,9 @@ EOT;
|
||||
return $o;
|
||||
}
|
||||
|
||||
function irc_addon_admin_post (App $a)
|
||||
function irc_addon_admin_post ()
|
||||
{
|
||||
if (!$a->isSiteAdmin()) {
|
||||
if (!DI::userSession()->isSiteAdmin()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -135,7 +135,7 @@ function irc_addon_admin_post (App $a)
|
||||
DI::config()->set('irc', 'sitechats', trim($_POST['sitechats']));
|
||||
}
|
||||
}
|
||||
function irc_addon_admin (App $a, string &$o) {
|
||||
function irc_addon_admin (string &$o) {
|
||||
$sitechats = DI::config()->get('irc', 'sitechats'); /* popular channels */
|
||||
$autochans = DI::config()->get('irc', 'autochans'); /* auto connect chans */
|
||||
$t = Renderer::getMarkupTemplate('admin.tpl', 'addon/irc/' );
|
||||
|
@ -11,59 +11,55 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2015-07-08 13:17+0200\n"
|
||||
"PO-Revision-Date: 2018-06-14 14:36+0000\n"
|
||||
"Last-Translator: Aditoo\n"
|
||||
"Language-Team: Czech (http://www.transifex.com/Friendica/friendica/language/cs/)\n"
|
||||
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:41+0000\n"
|
||||
"Last-Translator: Aditoo, 2018\n"
|
||||
"Language-Team: Czech (http://app.transifex.com/Friendica/friendica/language/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
|
||||
|
||||
#: irc.php:37
|
||||
msgid "IRC Settings"
|
||||
msgstr "Nastavení IRC"
|
||||
|
||||
#: irc.php:38
|
||||
#: irc.php:32
|
||||
msgid ""
|
||||
"Here you can change the system wide settings for the channels to "
|
||||
"automatically join and access via the side bar. Note the changes you do "
|
||||
"here, only effect the channel selection if you are logged in."
|
||||
msgstr ""
|
||||
msgstr "Zde můžete změnit systémová nastavení pro kanály pro automatické spojení a přístup přes postranní lištu. Mějte na paměti, že změny, které zde provedete, ovlivní výběr kanálů pouze, pokud jste přihlášen/a."
|
||||
|
||||
#: irc.php:39 irc.php:136
|
||||
msgid "Save Settings"
|
||||
msgstr "Uložit nastavení"
|
||||
|
||||
#: irc.php:40 irc.php:137
|
||||
#: irc.php:33 irc.php:133
|
||||
msgid "Channel(s) to auto connect (comma separated)"
|
||||
msgstr "Kanál(y) pro automatické připojení (oddělené čárkami)"
|
||||
|
||||
#: irc.php:40 irc.php:137
|
||||
#: irc.php:33 irc.php:133
|
||||
msgid ""
|
||||
"List of channels that shall automatically connected to when the app is "
|
||||
"launched."
|
||||
msgstr "Seznam kanálů, které budou při spuštění aplikace automaticky připojeny."
|
||||
|
||||
#: irc.php:41 irc.php:138
|
||||
#: irc.php:34 irc.php:134
|
||||
msgid "Popular Channels (comma separated)"
|
||||
msgstr "Populární kanály (oddělené čárkami)"
|
||||
|
||||
#: irc.php:41 irc.php:138
|
||||
#: irc.php:34 irc.php:134
|
||||
msgid ""
|
||||
"List of popular channels, will be displayed at the side and hotlinked for "
|
||||
"easy joining."
|
||||
msgstr "Seznam populárních kanálů, bude zobrazen na straně a bude obsahovat odkazy pro snadné připojení."
|
||||
|
||||
#: irc.php:57 irc.php:128
|
||||
msgid "IRC settings saved."
|
||||
msgstr "IRC Nastavení uloženo."
|
||||
#: irc.php:39
|
||||
msgid "IRC Settings"
|
||||
msgstr "Nastavení IRC"
|
||||
|
||||
#: irc.php:62
|
||||
#: irc.php:60
|
||||
msgid "IRC Chatroom"
|
||||
msgstr "IRC Místnost"
|
||||
|
||||
#: irc.php:90
|
||||
#: irc.php:88
|
||||
msgid "Popular Channels"
|
||||
msgstr "Populární kanály"
|
||||
|
||||
#: irc.php:132
|
||||
msgid "Save Settings"
|
||||
msgstr "Uložit nastavení"
|
||||
|
@ -5,12 +5,12 @@ function string_plural_select_cs($n){
|
||||
$n = intval($n);
|
||||
if (($n == 1 && $n % 1 == 0)) { return 0; } else if (($n >= 2 && $n <= 4 && $n % 1 == 0)) { return 1; } else if (($n % 1 != 0 )) { return 2; } else { return 3; }
|
||||
}}
|
||||
$a->strings['IRC Settings'] = 'Nastavení IRC';
|
||||
$a->strings['Save Settings'] = 'Uložit nastavení';
|
||||
$a->strings['Here you can change the system wide settings for the channels to automatically join and access via the side bar. Note the changes you do here, only effect the channel selection if you are logged in.'] = 'Zde můžete změnit systémová nastavení pro kanály pro automatické spojení a přístup přes postranní lištu. Mějte na paměti, že změny, které zde provedete, ovlivní výběr kanálů pouze, pokud jste přihlášen/a.';
|
||||
$a->strings['Channel(s) to auto connect (comma separated)'] = 'Kanál(y) pro automatické připojení (oddělené čárkami)';
|
||||
$a->strings['List of channels that shall automatically connected to when the app is launched.'] = 'Seznam kanálů, které budou při spuštění aplikace automaticky připojeny.';
|
||||
$a->strings['Popular Channels (comma separated)'] = 'Populární kanály (oddělené čárkami)';
|
||||
$a->strings['List of popular channels, will be displayed at the side and hotlinked for easy joining.'] = 'Seznam populárních kanálů, bude zobrazen na straně a bude obsahovat odkazy pro snadné připojení.';
|
||||
$a->strings['IRC settings saved.'] = 'IRC Nastavení uloženo.';
|
||||
$a->strings['IRC Settings'] = 'Nastavení IRC';
|
||||
$a->strings['IRC Chatroom'] = 'IRC Místnost';
|
||||
$a->strings['Popular Channels'] = 'Populární kanály';
|
||||
$a->strings['Save Settings'] = 'Uložit nastavení';
|
||||
|
@ -12,9 +12,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
||||
"PO-Revision-Date: 2021-02-01 18:19+0000\n"
|
||||
"Last-Translator: Transifex Bot <>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:41+0000\n"
|
||||
"Last-Translator: Ulf Rompe <transifex.com@rompe.org>, 2019\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -10,59 +10,55 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2015-07-08 13:17+0200\n"
|
||||
"PO-Revision-Date: 2020-09-17 11:40+0000\n"
|
||||
"Last-Translator: Sylke Vicious <silkevicious@gmail.com>\n"
|
||||
"Language-Team: Italian (http://www.transifex.com/Friendica/friendica/language/it/)\n"
|
||||
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:41+0000\n"
|
||||
"Last-Translator: Sylke Vicious <silkevicious@gmail.com>, 2020\n"
|
||||
"Language-Team: Italian (http://app.transifex.com/Friendica/friendica/language/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: it\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
||||
|
||||
#: irc.php:37
|
||||
msgid "IRC Settings"
|
||||
msgstr "Impostazioni IRC"
|
||||
|
||||
#: irc.php:38
|
||||
#: irc.php:32
|
||||
msgid ""
|
||||
"Here you can change the system wide settings for the channels to "
|
||||
"automatically join and access via the side bar. Note the changes you do "
|
||||
"here, only effect the channel selection if you are logged in."
|
||||
msgstr "Qui puoi modificare le impostazioni globali di sistema per i canali a cui accedere automaticamente attraverso la barra laterale. Nota che le modifiche che effetti qui hanno effetto sulla selezione di canali solo se sei loggato."
|
||||
|
||||
#: irc.php:39 irc.php:136
|
||||
msgid "Save Settings"
|
||||
msgstr "Salva Impostazioni"
|
||||
|
||||
#: irc.php:40 irc.php:137
|
||||
#: irc.php:33 irc.php:133
|
||||
msgid "Channel(s) to auto connect (comma separated)"
|
||||
msgstr "Canale(i) a cui autocollegarsi (separati da virgola)"
|
||||
|
||||
#: irc.php:40 irc.php:137
|
||||
#: irc.php:33 irc.php:133
|
||||
msgid ""
|
||||
"List of channels that shall automatically connected to when the app is "
|
||||
"launched."
|
||||
msgstr "Lista di canali che a cui connettersi automaticamente quando l'app è avviata."
|
||||
|
||||
#: irc.php:41 irc.php:138
|
||||
#: irc.php:34 irc.php:134
|
||||
msgid "Popular Channels (comma separated)"
|
||||
msgstr "Canali popolari (separati da virgola)"
|
||||
|
||||
#: irc.php:41 irc.php:138
|
||||
#: irc.php:34 irc.php:134
|
||||
msgid ""
|
||||
"List of popular channels, will be displayed at the side and hotlinked for "
|
||||
"easy joining."
|
||||
msgstr "Lista di canali popolari: sarà visualizzata a lato e provvista di collegamento per facilitare l'adesione."
|
||||
|
||||
#: irc.php:57 irc.php:128
|
||||
msgid "IRC settings saved."
|
||||
msgstr "Impostazioni IRC salvate."
|
||||
#: irc.php:39
|
||||
msgid "IRC Settings"
|
||||
msgstr "Impostazioni IRC"
|
||||
|
||||
#: irc.php:62
|
||||
#: irc.php:60
|
||||
msgid "IRC Chatroom"
|
||||
msgstr "Stanza IRC"
|
||||
|
||||
#: irc.php:90
|
||||
#: irc.php:88
|
||||
msgid "Popular Channels"
|
||||
msgstr "Canali Popolari"
|
||||
|
||||
#: irc.php:132
|
||||
msgid "Save Settings"
|
||||
msgstr "Salva Impostazioni"
|
||||
|
@ -3,15 +3,14 @@
|
||||
if(! function_exists("string_plural_select_it")) {
|
||||
function string_plural_select_it($n){
|
||||
$n = intval($n);
|
||||
return intval($n != 1);
|
||||
if ($n == 1) { return 0; } else if ($n != 0 && $n % 1000000 == 0) { return 1; } else { return 2; }
|
||||
}}
|
||||
$a->strings['IRC Settings'] = 'Impostazioni IRC';
|
||||
$a->strings['Here you can change the system wide settings for the channels to automatically join and access via the side bar. Note the changes you do here, only effect the channel selection if you are logged in.'] = 'Qui puoi modificare le impostazioni globali di sistema per i canali a cui accedere automaticamente attraverso la barra laterale. Nota che le modifiche che effetti qui hanno effetto sulla selezione di canali solo se sei loggato.';
|
||||
$a->strings['Save Settings'] = 'Salva Impostazioni';
|
||||
$a->strings['Channel(s) to auto connect (comma separated)'] = 'Canale(i) a cui autocollegarsi (separati da virgola)';
|
||||
$a->strings['List of channels that shall automatically connected to when the app is launched.'] = 'Lista di canali che a cui connettersi automaticamente quando l\'app è avviata.';
|
||||
$a->strings['Popular Channels (comma separated)'] = 'Canali popolari (separati da virgola)';
|
||||
$a->strings['List of popular channels, will be displayed at the side and hotlinked for easy joining.'] = 'Lista di canali popolari: sarà visualizzata a lato e provvista di collegamento per facilitare l\'adesione.';
|
||||
$a->strings['IRC settings saved.'] = 'Impostazioni IRC salvate.';
|
||||
$a->strings['IRC Settings'] = 'Impostazioni IRC';
|
||||
$a->strings['IRC Chatroom'] = 'Stanza IRC';
|
||||
$a->strings['Popular Channels'] = 'Canali Popolari';
|
||||
$a->strings['Save Settings'] = 'Salva Impostazioni';
|
||||
|
@ -25,7 +25,7 @@ function js_upload_install()
|
||||
Hook::register('photo_post_end', __FILE__, 'js_upload_post_end');
|
||||
}
|
||||
|
||||
function js_upload_form(App $a, array &$b)
|
||||
function js_upload_form(array &$b)
|
||||
{
|
||||
$b['default_upload'] = false;
|
||||
|
||||
@ -43,7 +43,7 @@ function js_upload_form(App $a, array &$b)
|
||||
]);
|
||||
}
|
||||
|
||||
function js_upload_post_init(App $a, array &$b)
|
||||
function js_upload_post_init(array &$b)
|
||||
{
|
||||
global $js_upload_result, $js_upload_jsonresponse;
|
||||
|
||||
@ -69,7 +69,7 @@ function js_upload_post_init(App $a, array &$b)
|
||||
$js_upload_result = $result;
|
||||
}
|
||||
|
||||
function js_upload_post_file(App $a, array &$b)
|
||||
function js_upload_post_file(array &$b)
|
||||
{
|
||||
global $js_upload_result;
|
||||
|
||||
@ -81,7 +81,7 @@ function js_upload_post_file(App $a, array &$b)
|
||||
|
||||
}
|
||||
|
||||
function js_upload_post_end(App $a, int &$b)
|
||||
function js_upload_post_end(int &$b)
|
||||
{
|
||||
global $js_upload_jsonresponse;
|
||||
|
||||
|
@ -4,53 +4,56 @@
|
||||
#
|
||||
#
|
||||
# Translators:
|
||||
# Michal Šupler <msupler@gmail.com>, 2014
|
||||
# Aditoo, 2018
|
||||
# michal_s <msupler@gmail.com>, 2014
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
|
||||
"PO-Revision-Date: 2014-07-07 19:13+0000\n"
|
||||
"Last-Translator: Michal Šupler <msupler@gmail.com>\n"
|
||||
"Language-Team: Czech (http://www.transifex.com/projects/p/friendica/language/cs/)\n"
|
||||
"POT-Creation-Date: 2021-03-23 23:53-0400\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:46+0000\n"
|
||||
"Last-Translator: Aditoo, 2018\n"
|
||||
"Language-Team: Czech (http://app.transifex.com/Friendica/friendica/language/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
|
||||
|
||||
#: js_upload.php:43
|
||||
msgid "Upload a file"
|
||||
msgstr "Nahrát soubor"
|
||||
#: js_upload.php:34
|
||||
msgid "Select files for upload"
|
||||
msgstr ""
|
||||
|
||||
#: js_upload.php:44
|
||||
#: js_upload.php:35
|
||||
msgid "Drop files here to upload"
|
||||
msgstr "Přeneste sem soubory k nahrání"
|
||||
msgstr "Přetáhněte sem soubory k nahrání"
|
||||
|
||||
#: js_upload.php:45
|
||||
#: js_upload.php:36
|
||||
msgid "Cancel"
|
||||
msgstr "Zrušit"
|
||||
|
||||
#: js_upload.php:46
|
||||
#: js_upload.php:37
|
||||
msgid "Failed"
|
||||
msgstr "Neúspěch"
|
||||
|
||||
#: js_upload.php:303
|
||||
#: js_upload.php:215
|
||||
msgid "No files were uploaded."
|
||||
msgstr "Žádné soubory nebyly nahrány."
|
||||
|
||||
#: js_upload.php:309
|
||||
#: js_upload.php:221
|
||||
msgid "Uploaded file is empty"
|
||||
msgstr "Nahraný soubor je prázdný"
|
||||
|
||||
#: js_upload.php:321
|
||||
msgid "Image exceeds size limit of "
|
||||
msgstr "Velikost obrázku překračuje limit velikosti"
|
||||
#: js_upload.php:233
|
||||
#, php-format
|
||||
msgid "Image exceeds size limit of %s"
|
||||
msgstr ""
|
||||
|
||||
#: js_upload.php:332
|
||||
msgid "File has an invalid extension, it should be one of "
|
||||
msgstr "Soubor má neplatnou příponu, ta by měla být jednou z"
|
||||
#: js_upload.php:245
|
||||
#, php-format
|
||||
msgid "File has an invalid extension, it should be one of %s."
|
||||
msgstr ""
|
||||
|
||||
#: js_upload.php:343
|
||||
#: js_upload.php:256
|
||||
msgid "Upload was cancelled, or server error encountered"
|
||||
msgstr "Nahrávání bylo zrušeno nebo došlo k chybě na serveru"
|
||||
|
@ -3,14 +3,11 @@
|
||||
if(! function_exists("string_plural_select_cs")) {
|
||||
function string_plural_select_cs($n){
|
||||
$n = intval($n);
|
||||
if (($n==1)) { return 0; } else if (($n>=2 && $n<=4)) { return 1; } else { return 2; }
|
||||
if (($n == 1 && $n % 1 == 0)) { return 0; } else if (($n >= 2 && $n <= 4 && $n % 1 == 0)) { return 1; } else if (($n % 1 != 0 )) { return 2; } else { return 3; }
|
||||
}}
|
||||
$a->strings['Upload a file'] = 'Nahrát soubor';
|
||||
$a->strings['Drop files here to upload'] = 'Přeneste sem soubory k nahrání';
|
||||
$a->strings['Drop files here to upload'] = 'Přetáhněte sem soubory k nahrání';
|
||||
$a->strings['Cancel'] = 'Zrušit';
|
||||
$a->strings['Failed'] = 'Neúspěch';
|
||||
$a->strings['No files were uploaded.'] = 'Žádné soubory nebyly nahrány.';
|
||||
$a->strings['Uploaded file is empty'] = 'Nahraný soubor je prázdný';
|
||||
$a->strings['Image exceeds size limit of '] = 'Velikost obrázku překračuje limit velikosti';
|
||||
$a->strings['File has an invalid extension, it should be one of '] = 'Soubor má neplatnou příponu, ta by měla být jednou z';
|
||||
$a->strings['Upload was cancelled, or server error encountered'] = 'Nahrávání bylo zrušeno nebo došlo k chybě na serveru';
|
||||
|
@ -12,9 +12,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-03-23 23:53-0400\n"
|
||||
"PO-Revision-Date: 2021-12-05 08:34+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:46+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2021\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -5,52 +5,55 @@
|
||||
#
|
||||
# Translators:
|
||||
# Albert, 2016
|
||||
# Senex Petrovic <javierruizo@hotmail.com>, 2021
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
|
||||
"PO-Revision-Date: 2016-11-17 18:59+0000\n"
|
||||
"Last-Translator: Albert\n"
|
||||
"Language-Team: Spanish (http://www.transifex.com/Friendica/friendica/language/es/)\n"
|
||||
"POT-Creation-Date: 2021-03-23 23:53-0400\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:46+0000\n"
|
||||
"Last-Translator: Senex Petrovic <javierruizo@hotmail.com>, 2021\n"
|
||||
"Language-Team: Spanish (http://app.transifex.com/Friendica/friendica/language/es/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: es\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
||||
|
||||
#: js_upload.php:43
|
||||
msgid "Upload a file"
|
||||
msgstr "Subir un archivo"
|
||||
#: js_upload.php:34
|
||||
msgid "Select files for upload"
|
||||
msgstr "Seleciona archivos a subir"
|
||||
|
||||
#: js_upload.php:44
|
||||
#: js_upload.php:35
|
||||
msgid "Drop files here to upload"
|
||||
msgstr "Soltar archivos aquí para subir"
|
||||
|
||||
#: js_upload.php:45
|
||||
#: js_upload.php:36
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
|
||||
#: js_upload.php:46
|
||||
#: js_upload.php:37
|
||||
msgid "Failed"
|
||||
msgstr "Fallido"
|
||||
|
||||
#: js_upload.php:303
|
||||
#: js_upload.php:215
|
||||
msgid "No files were uploaded."
|
||||
msgstr "No se subió ningún archivo."
|
||||
|
||||
#: js_upload.php:309
|
||||
#: js_upload.php:221
|
||||
msgid "Uploaded file is empty"
|
||||
msgstr "El archivo subido está vacío"
|
||||
|
||||
#: js_upload.php:321
|
||||
msgid "Image exceeds size limit of "
|
||||
msgstr "La imagen excede el tamaño de"
|
||||
#: js_upload.php:233
|
||||
#, php-format
|
||||
msgid "Image exceeds size limit of %s"
|
||||
msgstr ""
|
||||
|
||||
#: js_upload.php:332
|
||||
msgid "File has an invalid extension, it should be one of "
|
||||
msgstr "El archivo tiene una extensión inválida, debería ser una de"
|
||||
#: js_upload.php:245
|
||||
#, php-format
|
||||
msgid "File has an invalid extension, it should be one of %s."
|
||||
msgstr ""
|
||||
|
||||
#: js_upload.php:343
|
||||
#: js_upload.php:256
|
||||
msgid "Upload was cancelled, or server error encountered"
|
||||
msgstr "La subida fue cancelada, o el servidor tuvo un error"
|
||||
|
@ -3,14 +3,12 @@
|
||||
if(! function_exists("string_plural_select_es")) {
|
||||
function string_plural_select_es($n){
|
||||
$n = intval($n);
|
||||
return intval($n != 1);
|
||||
if ($n == 1) { return 0; } else if ($n != 0 && $n % 1000000 == 0) { return 1; } else { return 2; }
|
||||
}}
|
||||
$a->strings['Upload a file'] = 'Subir un archivo';
|
||||
$a->strings['Select files for upload'] = 'Seleciona archivos a subir';
|
||||
$a->strings['Drop files here to upload'] = 'Soltar archivos aquí para subir';
|
||||
$a->strings['Cancel'] = 'Cancelar';
|
||||
$a->strings['Failed'] = 'Fallido';
|
||||
$a->strings['No files were uploaded.'] = 'No se subió ningún archivo.';
|
||||
$a->strings['Uploaded file is empty'] = 'El archivo subido está vacío';
|
||||
$a->strings['Image exceeds size limit of '] = 'La imagen excede el tamaño de';
|
||||
$a->strings['File has an invalid extension, it should be one of '] = 'El archivo tiene una extensión inválida, debería ser una de';
|
||||
$a->strings['Upload was cancelled, or server error encountered'] = 'La subida fue cancelada, o el servidor tuvo un error';
|
||||
|
@ -11,14 +11,14 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-03-23 23:53-0400\n"
|
||||
"PO-Revision-Date: 2021-05-05 10:50+0000\n"
|
||||
"Last-Translator: Sylke Vicious <silkevicious@gmail.com>\n"
|
||||
"Language-Team: Italian (http://www.transifex.com/Friendica/friendica/language/it/)\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:46+0000\n"
|
||||
"Last-Translator: Sylke Vicious <silkevicious@gmail.com>, 2021\n"
|
||||
"Language-Team: Italian (http://app.transifex.com/Friendica/friendica/language/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: it\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
||||
|
||||
#: js_upload.php:34
|
||||
msgid "Select files for upload"
|
||||
|
@ -3,7 +3,7 @@
|
||||
if(! function_exists("string_plural_select_it")) {
|
||||
function string_plural_select_it($n){
|
||||
$n = intval($n);
|
||||
return intval($n != 1);
|
||||
if ($n == 1) { return 0; } else if ($n != 0 && $n % 1000000 == 0) { return 1; } else { return 2; }
|
||||
}}
|
||||
$a->strings['Select files for upload'] = 'Seleziona file per il caricamento';
|
||||
$a->strings['Drop files here to upload'] = 'Trascina un file qui per caricarlo';
|
||||
|
@ -5,52 +5,55 @@
|
||||
#
|
||||
# Translators:
|
||||
# Jeroen De Meerleer <me@jeroened.be>, 2018
|
||||
# Ruud Schilders <ruud@schilders.it>, 2020
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
|
||||
"PO-Revision-Date: 2018-08-24 11:48+0000\n"
|
||||
"Last-Translator: Jeroen De Meerleer <me@jeroened.be>\n"
|
||||
"Language-Team: Dutch (http://www.transifex.com/Friendica/friendica/language/nl/)\n"
|
||||
"POT-Creation-Date: 2021-03-23 23:53-0400\n"
|
||||
"PO-Revision-Date: 2014-06-23 08:46+0000\n"
|
||||
"Last-Translator: Ruud Schilders <ruud@schilders.it>, 2020\n"
|
||||
"Language-Team: Dutch (http://app.transifex.com/Friendica/friendica/language/nl/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: nl\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: js_upload.php:43
|
||||
msgid "Upload a file"
|
||||
msgstr "Upload een bestand"
|
||||
#: js_upload.php:34
|
||||
msgid "Select files for upload"
|
||||
msgstr ""
|
||||
|
||||
#: js_upload.php:44
|
||||
#: js_upload.php:35
|
||||
msgid "Drop files here to upload"
|
||||
msgstr "Sleep uw bestanden hier om ze te uploaden"
|
||||
|
||||
#: js_upload.php:45
|
||||
#: js_upload.php:36
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
msgstr "Afbreken"
|
||||
|
||||
#: js_upload.php:46
|
||||
#: js_upload.php:37
|
||||
msgid "Failed"
|
||||
msgstr ""
|
||||
msgstr "Mislukt"
|
||||
|
||||
#: js_upload.php:303
|
||||
#: js_upload.php:215
|
||||
msgid "No files were uploaded."
|
||||
msgstr ""
|
||||
msgstr "Er waren geen bestanden geüpload."
|
||||
|
||||
#: js_upload.php:309
|
||||
#: js_upload.php:221
|
||||
msgid "Uploaded file is empty"
|
||||
msgstr "Het geüploade bestand is leeg"
|
||||
|
||||
#: js_upload.php:233
|
||||
#, php-format
|
||||
msgid "Image exceeds size limit of %s"
|
||||
msgstr ""
|
||||
|
||||
#: js_upload.php:321
|
||||
msgid "Image exceeds size limit of "
|
||||
#: js_upload.php:245
|
||||
#, php-format
|
||||
msgid "File has an invalid extension, it should be one of %s."
|
||||
msgstr ""
|
||||
|
||||
#: js_upload.php:332
|
||||
msgid "File has an invalid extension, it should be one of "
|
||||
msgstr ""
|
||||
|
||||
#: js_upload.php:343
|
||||
#: js_upload.php:256
|
||||
msgid "Upload was cancelled, or server error encountered"
|
||||
msgstr ""
|
||||
|
@ -5,5 +5,8 @@ function string_plural_select_nl($n){
|
||||
$n = intval($n);
|
||||
return intval($n != 1);
|
||||
}}
|
||||
$a->strings['Upload a file'] = 'Upload een bestand';
|
||||
$a->strings['Drop files here to upload'] = 'Sleep uw bestanden hier om ze te uploaden';
|
||||
$a->strings['Cancel'] = 'Afbreken';
|
||||
$a->strings['Failed'] = 'Mislukt';
|
||||
$a->strings['No files were uploaded.'] = 'Er waren geen bestanden geüpload.';
|
||||
$a->strings['Uploaded file is empty'] = 'Het geüploade bestand is leeg';
|
||||
|
@ -45,7 +45,7 @@ function keycloakpassword_request($client_id, $secret, $url, $params = [])
|
||||
return $res;
|
||||
}
|
||||
|
||||
function keycloakpassword_authenticate(App $a, array &$b)
|
||||
function keycloakpassword_authenticate(array &$b)
|
||||
{
|
||||
if (empty($b['password'])) {
|
||||
return;
|
||||
@ -110,7 +110,7 @@ function keycloakpassword_admin_input($key, $label, $description)
|
||||
];
|
||||
}
|
||||
|
||||
function keycloakpassword_addon_admin(App $a, string &$o)
|
||||
function keycloakpassword_addon_admin(string &$o)
|
||||
{
|
||||
$form =
|
||||
keycloakpassword_admin_input(
|
||||
@ -140,7 +140,7 @@ function keycloakpassword_addon_admin(App $a, string &$o)
|
||||
$o = Renderer::replaceMacros($t, $form);
|
||||
}
|
||||
|
||||
function keycloakpassword_addon_admin_post(App $a)
|
||||
function keycloakpassword_addon_admin_post()
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
|
@ -35,7 +35,7 @@ function krynn_install()
|
||||
Logger::notice("installed krynn");
|
||||
}
|
||||
|
||||
function krynn_post_hook(App $a, &$item)
|
||||
function krynn_post_hook(&$item)
|
||||
{
|
||||
/**
|
||||
* An item was posted on the local system.
|
||||
@ -88,7 +88,7 @@ function krynn_post_hook(App $a, &$item)
|
||||
* We will make sure we've got a valid user account
|
||||
* and if so set our configuration setting for this person.
|
||||
*/
|
||||
function krynn_settings_post(App $a, $post)
|
||||
function krynn_settings_post($post)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -103,7 +103,7 @@ function krynn_settings_post(App $a, $post)
|
||||
* Called from the addon Setting form.
|
||||
* Add our own settings info to the page.
|
||||
*/
|
||||
function krynn_settings(App &$a, array &$data)
|
||||
function krynn_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
|
@ -14,9 +14,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
||||
"PO-Revision-Date: 2021-12-22 16:22+0000\n"
|
||||
"Last-Translator: Transifex Bot <>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2015-07-07 15:14+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2018,2021\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -10,28 +10,20 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
|
||||
"PO-Revision-Date: 2021-04-19 11:11+0000\n"
|
||||
"Last-Translator: Sylke Vicious <silkevicious@gmail.com>\n"
|
||||
"Language-Team: Italian (http://www.transifex.com/Friendica/friendica/language/it/)\n"
|
||||
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
||||
"PO-Revision-Date: 2015-07-07 15:14+0000\n"
|
||||
"Last-Translator: Sylke Vicious <silkevicious@gmail.com>, 2021\n"
|
||||
"Language-Team: Italian (http://app.transifex.com/Friendica/friendica/language/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: it\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
||||
|
||||
#: krynn.php:132 krynn.php:136
|
||||
msgid "Krynn"
|
||||
msgstr "Krynn"
|
||||
|
||||
#: krynn.php:141
|
||||
msgid "Krynn Settings"
|
||||
msgstr "Impostazioni Krynn"
|
||||
|
||||
#: krynn.php:143
|
||||
#: krynn.php:127
|
||||
msgid "Enable Krynn Addon"
|
||||
msgstr "Abilita componente aggiuntivo Krynn"
|
||||
|
||||
#: krynn.php:148
|
||||
msgid "Save Settings"
|
||||
msgstr "Salva Impostazioni"
|
||||
#: krynn.php:132
|
||||
msgid "Krynn Settings"
|
||||
msgstr "Impostazioni Krynn"
|
||||
|
@ -3,9 +3,7 @@
|
||||
if(! function_exists("string_plural_select_it")) {
|
||||
function string_plural_select_it($n){
|
||||
$n = intval($n);
|
||||
return intval($n != 1);
|
||||
if ($n == 1) { return 0; } else if ($n != 0 && $n % 1000000 == 0) { return 1; } else { return 2; }
|
||||
}}
|
||||
$a->strings['Krynn'] = 'Krynn';
|
||||
$a->strings['Krynn Settings'] = 'Impostazioni Krynn';
|
||||
$a->strings['Enable Krynn Addon'] = 'Abilita componente aggiuntivo Krynn';
|
||||
$a->strings['Save Settings'] = 'Salva Impostazioni';
|
||||
$a->strings['Krynn Settings'] = 'Impostazioni Krynn';
|
||||
|
@ -4,73 +4,74 @@
|
||||
#
|
||||
#
|
||||
# Translators:
|
||||
# abidin toumi <abidin24@tutanota.com>, 2021
|
||||
# Farida Khalaf <faridakhalaf@hotmail.com>, 2021
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
|
||||
"PO-Revision-Date: 2021-04-26 09:14+0000\n"
|
||||
"Last-Translator: Transifex Bot <>\n"
|
||||
"Language-Team: Arabic (http://www.transifex.com/Friendica/friendica/language/ar/)\n"
|
||||
"POT-Creation-Date: 2021-11-21 19:15-0500\n"
|
||||
"PO-Revision-Date: 2015-07-25 08:05+0000\n"
|
||||
"Last-Translator: abidin toumi <abidin24@tutanota.com>, 2021\n"
|
||||
"Language-Team: Arabic (http://app.transifex.com/Friendica/friendica/language/ar/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: ar\n"
|
||||
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
|
||||
|
||||
#: langfilter.php:50
|
||||
msgid "Language Filter"
|
||||
msgstr "اللغة"
|
||||
|
||||
#: langfilter.php:51
|
||||
#: langfilter.php:49
|
||||
msgid ""
|
||||
"This addon tries to identify the language posts are written in. If it does "
|
||||
"not match any language specified below, posts will be hidden by collapsing "
|
||||
"them."
|
||||
msgstr ""
|
||||
|
||||
#: langfilter.php:52
|
||||
#: langfilter.php:50
|
||||
msgid "Use the language filter"
|
||||
msgstr "اختيار اللغة"
|
||||
|
||||
#: langfilter.php:53
|
||||
#: langfilter.php:51
|
||||
msgid "Able to read"
|
||||
msgstr " قابل للقراءة"
|
||||
|
||||
#: langfilter.php:53
|
||||
#: langfilter.php:51
|
||||
msgid ""
|
||||
"List of abbreviations (ISO 639-1 codes) for languages you speak, comma "
|
||||
"separated. For example \"de,it\"."
|
||||
msgstr "قائمة الرموز ( ISO 639-1) للغات ، مفصولة بفواصل. على سبيل المثال \"de، it\""
|
||||
|
||||
#: langfilter.php:54
|
||||
#: langfilter.php:52
|
||||
msgid "Minimum confidence in language detection"
|
||||
msgstr "الحد الأدنى من نسبة اكتشاف اللغة"
|
||||
|
||||
#: langfilter.php:54
|
||||
#: langfilter.php:52
|
||||
msgid ""
|
||||
"Minimum confidence in language detection being correct, from 0 to 100. Posts"
|
||||
" will not be filtered when the confidence of language detection is below "
|
||||
"this percent value."
|
||||
msgstr "الحد الأدنى من صحة اكتشاف اللغة ، من 0 إلى 100. لن تتم فلترة المشاركات عندما تكون صحة اكتشاف اللغة أقل من هذه النسبة المئوية."
|
||||
|
||||
#: langfilter.php:55
|
||||
#: langfilter.php:53
|
||||
msgid "Minimum length of message body"
|
||||
msgstr "الحد الأدنى لنص الرسالة"
|
||||
|
||||
#: langfilter.php:55
|
||||
#: langfilter.php:53
|
||||
msgid ""
|
||||
"Minimum number of characters in message body for filter to be used. Posts "
|
||||
"shorter than this will not be filtered. Note: Language detection is "
|
||||
"unreliable for short content (<200 characters)."
|
||||
msgstr "الحد الأدنى لأحرف نص الرسالة لاستخدام الفلتر. لن يتم فلترة المشاركات الأقصر من هذا. ملاحظة: لا يمكن الاعتماد على اكتشاف اللغة للمحتوى القصير (<200 حرف)."
|
||||
|
||||
#: langfilter.php:56
|
||||
#: langfilter.php:58
|
||||
msgid "Language Filter"
|
||||
msgstr "مرشح اللغة"
|
||||
|
||||
#: langfilter.php:60
|
||||
msgid "Save Settings"
|
||||
msgstr "حفظ الإعدادات"
|
||||
|
||||
#: langfilter.php:187
|
||||
#: langfilter.php:193
|
||||
#, php-format
|
||||
msgid "Filtered language: %s"
|
||||
msgstr "اختيار اللغة: %s"
|
||||
|
@ -5,7 +5,6 @@ function string_plural_select_ar($n){
|
||||
$n = intval($n);
|
||||
if ($n==0) { return 0; } else if ($n==1) { return 1; } else if ($n==2) { return 2; } else if ($n%100>=3 && $n%100<=10) { return 3; } else if ($n%100>=11 && $n%100<=99) { return 4; } else { return 5; }
|
||||
}}
|
||||
$a->strings['Language Filter'] = 'اللغة';
|
||||
$a->strings['Use the language filter'] = 'اختيار اللغة';
|
||||
$a->strings['Able to read'] = ' قابل للقراءة';
|
||||
$a->strings['List of abbreviations (ISO 639-1 codes) for languages you speak, comma separated. For example "de,it".'] = 'قائمة الرموز ( ISO 639-1) للغات ، مفصولة بفواصل. على سبيل المثال "de، it"';
|
||||
@ -13,5 +12,6 @@ $a->strings['Minimum confidence in language detection'] = 'الحد الأدنى
|
||||
$a->strings['Minimum confidence in language detection being correct, from 0 to 100. Posts will not be filtered when the confidence of language detection is below this percent value.'] = 'الحد الأدنى من صحة اكتشاف اللغة ، من 0 إلى 100. لن تتم فلترة المشاركات عندما تكون صحة اكتشاف اللغة أقل من هذه النسبة المئوية.';
|
||||
$a->strings['Minimum length of message body'] = 'الحد الأدنى لنص الرسالة';
|
||||
$a->strings['Minimum number of characters in message body for filter to be used. Posts shorter than this will not be filtered. Note: Language detection is unreliable for short content (<200 characters).'] = 'الحد الأدنى لأحرف نص الرسالة لاستخدام الفلتر. لن يتم فلترة المشاركات الأقصر من هذا. ملاحظة: لا يمكن الاعتماد على اكتشاف اللغة للمحتوى القصير (<200 حرف).';
|
||||
$a->strings['Language Filter'] = 'مرشح اللغة';
|
||||
$a->strings['Save Settings'] = 'حفظ الإعدادات';
|
||||
$a->strings['Filtered language: %s'] = 'اختيار اللغة: %s';
|
||||
|
@ -5,7 +5,7 @@
|
||||
#
|
||||
# Translators:
|
||||
# Andreas H., 2018
|
||||
# Copiis Praeesse <richard@zsemberi.de>, 2018
|
||||
# Copiis Praeesse <copiis@vivaldi.net>, 2018
|
||||
# Ralf Thees <ralf@herrthees.de>, 2019
|
||||
# Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2015
|
||||
# Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2020-2021
|
||||
@ -15,9 +15,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-11-21 19:15-0500\n"
|
||||
"PO-Revision-Date: 2021-10-19 18:08+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2015-07-25 08:05+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2020-2021\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -12,68 +12,68 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
|
||||
"PO-Revision-Date: 2021-10-17 21:25+0000\n"
|
||||
"Last-Translator: SickShark X\n"
|
||||
"Language-Team: Italian (http://www.transifex.com/Friendica/friendica/language/it/)\n"
|
||||
"POT-Creation-Date: 2021-11-21 19:15-0500\n"
|
||||
"PO-Revision-Date: 2015-07-25 08:05+0000\n"
|
||||
"Last-Translator: SickShark X, 2021\n"
|
||||
"Language-Team: Italian (http://app.transifex.com/Friendica/friendica/language/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: it\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
||||
|
||||
#: langfilter.php:50
|
||||
msgid "Language Filter"
|
||||
msgstr "Filtro Lingua"
|
||||
|
||||
#: langfilter.php:51
|
||||
#: langfilter.php:49
|
||||
msgid ""
|
||||
"This addon tries to identify the language posts are written in. If it does "
|
||||
"not match any language specified below, posts will be hidden by collapsing "
|
||||
"them."
|
||||
msgstr "Questo plug-in prova a identificare la lingua con cui sono stati scritti i posts. Se non corrisponde a nessuna delle lingue specificate qui sotto, i post verranno nascosti."
|
||||
|
||||
#: langfilter.php:52
|
||||
#: langfilter.php:50
|
||||
msgid "Use the language filter"
|
||||
msgstr "Usa il filtro lingua"
|
||||
|
||||
#: langfilter.php:53
|
||||
#: langfilter.php:51
|
||||
msgid "Able to read"
|
||||
msgstr "In grado di leggere"
|
||||
|
||||
#: langfilter.php:53
|
||||
#: langfilter.php:51
|
||||
msgid ""
|
||||
"List of abbreviations (ISO 639-1 codes) for languages you speak, comma "
|
||||
"separated. For example \"de,it\"."
|
||||
msgstr "Lista di abbreviazioni (codici ISO 639-1) per le lingue che parli, separate da virgola. Per esempio \"it,de\"."
|
||||
|
||||
#: langfilter.php:54
|
||||
#: langfilter.php:52
|
||||
msgid "Minimum confidence in language detection"
|
||||
msgstr "Fiducia minima nel rilevamento della lingua"
|
||||
|
||||
#: langfilter.php:54
|
||||
#: langfilter.php:52
|
||||
msgid ""
|
||||
"Minimum confidence in language detection being correct, from 0 to 100. Posts"
|
||||
" will not be filtered when the confidence of language detection is below "
|
||||
"this percent value."
|
||||
msgstr "Fiducia minima che il rilevamento della lingua sia corretto, da 0 a 100. I messaggi non saranno filtrati quando la fiducia nel rilevamento della lingua è sotto questo valore percentuale."
|
||||
|
||||
#: langfilter.php:55
|
||||
#: langfilter.php:53
|
||||
msgid "Minimum length of message body"
|
||||
msgstr "Lunghezza minima del corpo del messaggio"
|
||||
|
||||
#: langfilter.php:55
|
||||
#: langfilter.php:53
|
||||
msgid ""
|
||||
"Minimum number of characters in message body for filter to be used. Posts "
|
||||
"shorter than this will not be filtered. Note: Language detection is "
|
||||
"unreliable for short content (<200 characters)."
|
||||
msgstr "Numero di caratteri minimo perché il filtro venga usato. I messaggio più corti non saranno filtrati. Nota: la rilevazione della lingua non è affidabile con messaggi brevi (<200 caratteri)"
|
||||
|
||||
#: langfilter.php:56
|
||||
#: langfilter.php:58
|
||||
msgid "Language Filter"
|
||||
msgstr "Filtro Lingua"
|
||||
|
||||
#: langfilter.php:60
|
||||
msgid "Save Settings"
|
||||
msgstr "Salva Impostazioni"
|
||||
|
||||
#: langfilter.php:187
|
||||
#: langfilter.php:193
|
||||
#, php-format
|
||||
msgid "Filtered language: %s"
|
||||
msgstr "Lingua filtrata: %s"
|
||||
|
@ -3,9 +3,8 @@
|
||||
if(! function_exists("string_plural_select_it")) {
|
||||
function string_plural_select_it($n){
|
||||
$n = intval($n);
|
||||
return intval($n != 1);
|
||||
if ($n == 1) { return 0; } else if ($n != 0 && $n % 1000000 == 0) { return 1; } else { return 2; }
|
||||
}}
|
||||
$a->strings['Language Filter'] = 'Filtro Lingua';
|
||||
$a->strings['This addon tries to identify the language posts are written in. If it does not match any language specified below, posts will be hidden by collapsing them.'] = 'Questo plug-in prova a identificare la lingua con cui sono stati scritti i posts. Se non corrisponde a nessuna delle lingue specificate qui sotto, i post verranno nascosti.';
|
||||
$a->strings['Use the language filter'] = 'Usa il filtro lingua';
|
||||
$a->strings['Able to read'] = 'In grado di leggere';
|
||||
@ -14,5 +13,6 @@ $a->strings['Minimum confidence in language detection'] = 'Fiducia minima nel ri
|
||||
$a->strings['Minimum confidence in language detection being correct, from 0 to 100. Posts will not be filtered when the confidence of language detection is below this percent value.'] = 'Fiducia minima che il rilevamento della lingua sia corretto, da 0 a 100. I messaggi non saranno filtrati quando la fiducia nel rilevamento della lingua è sotto questo valore percentuale.';
|
||||
$a->strings['Minimum length of message body'] = 'Lunghezza minima del corpo del messaggio';
|
||||
$a->strings['Minimum number of characters in message body for filter to be used. Posts shorter than this will not be filtered. Note: Language detection is unreliable for short content (<200 characters).'] = 'Numero di caratteri minimo perché il filtro venga usato. I messaggio più corti non saranno filtrati. Nota: la rilevazione della lingua non è affidabile con messaggi brevi (<200 caratteri)';
|
||||
$a->strings['Language Filter'] = 'Filtro Lingua';
|
||||
$a->strings['Save Settings'] = 'Salva Impostazioni';
|
||||
$a->strings['Filtered language: %s'] = 'Lingua filtrata: %s';
|
||||
|
@ -31,7 +31,7 @@ function langfilter_install()
|
||||
* 3rd parse a SMARTY3 template, replacing some translateable strings for the form
|
||||
*/
|
||||
|
||||
function langfilter_addon_settings(App $a, array &$data)
|
||||
function langfilter_addon_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -67,7 +67,7 @@ function langfilter_addon_settings(App $a, array &$data)
|
||||
* 3rd save the settings to the DB for later usage
|
||||
*/
|
||||
|
||||
function langfilter_addon_settings_post(App $a, array &$b)
|
||||
function langfilter_addon_settings_post(array &$b)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -98,7 +98,7 @@ function langfilter_addon_settings_post(App $a, array &$b)
|
||||
* expand it again.
|
||||
*/
|
||||
|
||||
function langfilter_prepare_body_content_filter(App $a, &$hook_data)
|
||||
function langfilter_prepare_body_content_filter(&$hook_data)
|
||||
{
|
||||
$logged_user = DI::userSession()->getLocalUserId();
|
||||
if (!$logged_user) {
|
||||
@ -107,7 +107,7 @@ function langfilter_prepare_body_content_filter(App $a, &$hook_data)
|
||||
|
||||
// Never filter own messages
|
||||
// TODO: find a better way to extract this
|
||||
$logged_user_profile = DI::baseUrl()->get() . '/profile/' . $a->getLoggedInUserNickname();
|
||||
$logged_user_profile = DI::baseUrl() . '/profile/' . DI::userSession()->getLocalUserNickname();
|
||||
if ($logged_user_profile == $hook_data['item']['author-link']) {
|
||||
return;
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ use Friendica\Core\Logger;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Core\Config\Util\ConfigFileLoader;
|
||||
use Friendica\Core\Config\Util\ConfigFileManager;
|
||||
|
||||
function ldapauth_install()
|
||||
{
|
||||
@ -43,12 +43,12 @@ function ldapauth_install()
|
||||
Hook::register('authenticate', 'addon/ldapauth/ldapauth.php', 'ldapauth_hook_authenticate');
|
||||
}
|
||||
|
||||
function ldapauth_load_config(App $a, ConfigFileLoader $loader)
|
||||
function ldapauth_load_config(ConfigFileManager $loader)
|
||||
{
|
||||
$a->getConfigCache()->load($loader->loadAddonConfig('ldapauth'), \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC);
|
||||
DI::app()->getConfigCache()->load($loader->loadAddonConfig('ldapauth'), \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC);
|
||||
}
|
||||
|
||||
function ldapauth_hook_authenticate(App $a, array &$b)
|
||||
function ldapauth_hook_authenticate(array &$b)
|
||||
{
|
||||
$user = ldapauth_authenticate($b['username'], $b['password']);
|
||||
if (!empty($user['uid'])) {
|
||||
|
@ -18,7 +18,7 @@ function leistungsschutzrecht_install()
|
||||
Hook::register('page_info_data', 'addon/leistungsschutzrecht/leistungsschutzrecht.php', 'leistungsschutzrecht_getsiteinfo');
|
||||
}
|
||||
|
||||
function leistungsschutzrecht_getsiteinfo(App $a, array &$siteinfo) {
|
||||
function leistungsschutzrecht_getsiteinfo(array &$siteinfo) {
|
||||
if (!isset($siteinfo['url']) || empty($siteinfo['type'])) {
|
||||
return;
|
||||
}
|
||||
@ -162,9 +162,9 @@ function leistungsschutzrecht_is_member_site(string $url): bool
|
||||
return isset($sites[$site]);
|
||||
}
|
||||
|
||||
function leistungsschutzrecht_cron(App $a, $b)
|
||||
function leistungsschutzrecht_cron($b)
|
||||
{
|
||||
$last = DI::config()->get('leistungsschutzrecht', 'last_poll');
|
||||
$last = DI::keyValue()->get('leistungsschutzrecht_last_poll');
|
||||
|
||||
if ($last) {
|
||||
$next = $last + 86400;
|
||||
@ -174,5 +174,5 @@ function leistungsschutzrecht_cron(App $a, $b)
|
||||
}
|
||||
}
|
||||
leistungsschutzrecht_fetchsites();
|
||||
DI::config()->set('leistungsschutzrecht', 'last_poll', time());
|
||||
DI::keyValue()->set('leistungsschutzrecht_last_poll', time());
|
||||
}
|
||||
|
@ -4,45 +4,42 @@
|
||||
#
|
||||
#
|
||||
# Translators:
|
||||
# Michal Šupler <msupler@gmail.com>, 2014-2015
|
||||
# Aditoo, 2018
|
||||
# michal_s <msupler@gmail.com>, 2014-2015
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
|
||||
"PO-Revision-Date: 2015-02-11 19:39+0000\n"
|
||||
"Last-Translator: Michal Šupler <msupler@gmail.com>\n"
|
||||
"Language-Team: Czech (http://www.transifex.com/projects/p/friendica/language/cs/)\n"
|
||||
"POT-Creation-Date: 2021-11-21 19:17-0500\n"
|
||||
"PO-Revision-Date: 2014-06-23 09:44+0000\n"
|
||||
"Last-Translator: Aditoo, 2018\n"
|
||||
"Language-Team: Czech (http://app.transifex.com/Friendica/friendica/language/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
|
||||
|
||||
#: libertree.php:36
|
||||
#: libertree.php:39
|
||||
msgid "Post to libertree"
|
||||
msgstr "Poslat na libertree"
|
||||
|
||||
#: libertree.php:67
|
||||
msgid "libertree Post Settings"
|
||||
msgstr "libertree nastavení příspěvků"
|
||||
|
||||
#: libertree.php:69
|
||||
#: libertree.php:60
|
||||
msgid "Enable Libertree Post Addon"
|
||||
msgstr "Povolit Libertree Post rozšíření"
|
||||
msgstr "Povolit doplněk Libertree Post"
|
||||
|
||||
#: libertree.php:74
|
||||
msgid "Libertree API token"
|
||||
msgstr "Libertree API token"
|
||||
|
||||
#: libertree.php:79
|
||||
#: libertree.php:61
|
||||
msgid "Libertree site URL"
|
||||
msgstr "URL adresa Libertree "
|
||||
|
||||
#: libertree.php:84
|
||||
msgid "Post to Libertree by default"
|
||||
msgstr "Defaultně poslat na Libertree"
|
||||
#: libertree.php:62
|
||||
msgid "Libertree API token"
|
||||
msgstr "Libertree API token"
|
||||
|
||||
#: libertree.php:90
|
||||
msgid "Submit"
|
||||
msgstr "Odeslat"
|
||||
#: libertree.php:63
|
||||
msgid "Post to Libertree by default"
|
||||
msgstr "Ve výchozím stavu posílat na Libertree"
|
||||
|
||||
#: libertree.php:68
|
||||
msgid "Libertree Export"
|
||||
msgstr ""
|
||||
|
@ -3,12 +3,10 @@
|
||||
if(! function_exists("string_plural_select_cs")) {
|
||||
function string_plural_select_cs($n){
|
||||
$n = intval($n);
|
||||
if (($n==1)) { return 0; } else if (($n>=2 && $n<=4)) { return 1; } else { return 2; }
|
||||
if (($n == 1 && $n % 1 == 0)) { return 0; } else if (($n >= 2 && $n <= 4 && $n % 1 == 0)) { return 1; } else if (($n % 1 != 0 )) { return 2; } else { return 3; }
|
||||
}}
|
||||
$a->strings['Post to libertree'] = 'Poslat na libertree';
|
||||
$a->strings['libertree Post Settings'] = 'libertree nastavení příspěvků';
|
||||
$a->strings['Enable Libertree Post Addon'] = 'Povolit Libertree Post rozšíření';
|
||||
$a->strings['Libertree API token'] = 'Libertree API token';
|
||||
$a->strings['Enable Libertree Post Addon'] = 'Povolit doplněk Libertree Post';
|
||||
$a->strings['Libertree site URL'] = 'URL adresa Libertree ';
|
||||
$a->strings['Post to Libertree by default'] = 'Defaultně poslat na Libertree';
|
||||
$a->strings['Submit'] = 'Odeslat';
|
||||
$a->strings['Libertree API token'] = 'Libertree API token';
|
||||
$a->strings['Post to Libertree by default'] = 'Ve výchozím stavu posílat na Libertree';
|
||||
|
@ -13,9 +13,9 @@ msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-11-21 19:17-0500\n"
|
||||
"PO-Revision-Date: 2022-01-22 17:34+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-06-23 09:44+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2018,2021-2022\n"
|
||||
"Language-Team: German (http://app.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -25,7 +25,7 @@ function libertree_install()
|
||||
Hook::register('connector_settings_post', 'addon/libertree/libertree.php', 'libertree_settings_post');
|
||||
}
|
||||
|
||||
function libertree_jot_nets(App &$a, array &$jotnets_fields)
|
||||
function libertree_jot_nets(array &$jotnets_fields)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -43,7 +43,7 @@ function libertree_jot_nets(App &$a, array &$jotnets_fields)
|
||||
}
|
||||
}
|
||||
|
||||
function libertree_settings(App $a, array &$data)
|
||||
function libertree_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
@ -71,7 +71,7 @@ function libertree_settings(App $a, array &$data)
|
||||
];
|
||||
}
|
||||
|
||||
function libertree_settings_post(App $a, array &$b)
|
||||
function libertree_settings_post(array &$b)
|
||||
{
|
||||
if (!empty($_POST['libertree-submit'])) {
|
||||
DI::pConfig()->set(DI::userSession()->getLocalUserId(),'libertree','post',intval($_POST['libertree']));
|
||||
@ -83,7 +83,7 @@ function libertree_settings_post(App $a, array &$b)
|
||||
|
||||
}
|
||||
|
||||
function libertree_hook_fork(App &$a, array &$b)
|
||||
function libertree_hook_fork(array &$b)
|
||||
{
|
||||
if ($b['name'] != 'notifier_normal') {
|
||||
return;
|
||||
@ -98,7 +98,7 @@ function libertree_hook_fork(App &$a, array &$b)
|
||||
}
|
||||
}
|
||||
|
||||
function libertree_post_local(App $a, array &$b)
|
||||
function libertree_post_local(array &$b)
|
||||
{
|
||||
|
||||
// This can probably be changed to allow editing by pointing to a different API endpoint
|
||||
@ -134,7 +134,7 @@ function libertree_post_local(App $a, array &$b)
|
||||
$b['postopts'] .= 'libertree';
|
||||
}
|
||||
|
||||
function libertree_send(App $a, array &$b)
|
||||
function libertree_send(array &$b)
|
||||
{
|
||||
Logger::notice('libertree_send: invoked');
|
||||
|
||||
@ -162,7 +162,7 @@ function libertree_send(App $a, array &$b)
|
||||
$ltree_api_token = DI::pConfig()->get($b['uid'],'libertree','libertree_api_token');
|
||||
$ltree_url = DI::pConfig()->get($b['uid'],'libertree','libertree_url');
|
||||
$ltree_blog = "$ltree_url/api/v1/posts/create/?token=$ltree_api_token";
|
||||
$ltree_source = DI::baseUrl()->getHostname();
|
||||
$ltree_source = DI::baseUrl()->getHost();
|
||||
|
||||
if ($b['app'] != "")
|
||||
$ltree_source .= " (".$b['app'].")";
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user