Audon audioplayer App #1414
No reviewers
Labels
No labels
2018.09
2019.01
2019.03
2019.06
2019.09
2019.12
2020.03
2020.06
2020.09
2020.12
2021.03
2021.07
2021.09
2022.02
2022.06
2022.09
2022.12
2023.04
2023.05
2023.09
2024.03
2024.06
2024.09
2024.12
dependencies
Hackathon 2021
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: friendica/friendica-addons#1414
Loading…
Reference in a new issue
No description provided.
Delete branch ":develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Audon is an audioplayer that allows different users to meet for a private conversation. The player has been packaged as an app and only embeds the player.
@ -0,0 +1,68 @@
<?php
/*
* Name: audon Application
Please capitalize the Audon name when not used in code context.
@ -0,0 +30,4 @@
'$audonurl' => [
'audonurl',
DI::l10n()->t('audon Base URL'),
DI::config()->get('audon','audonurl'),
Code standards: Please add a space after commas.
@ -0,0 +1,2 @@
{{include file="field_input.tpl" field=$audonurl}}
<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
Please use a
<button>
element instead, since you aren't checking the value ofpage_site
, you can omit thename
andvalue
attribute.Hope it fits
@ -0,0 +1,68 @@
<?php
/*
* Name: AUDON Application
Thanks for the change, however I meant "Audon", not "AUDON". I'll highlight the other instances I noticed.
@ -0,0 +1,68 @@
<?php
/*
* Name: AUDON Application
* Description: add a audon instance for audio. Based on webRTC Addon
Add an Audon instance
@ -0,0 +19,4 @@
function audon_app_menu(array &$b)
{
$b['app_menu'][] = '<div class="app-title"><a href="audon">' . DI::l10n()->t('audon Audiochat') . '</a></div>';
Audon Audiochat
@ -0,0 +29,4 @@
'$submit' => DI::l10n()->t('Save Settings'),
'$audonurl' => [
'audonurl',
DI::l10n()->t('audon Base URL'),
@ -0,0 +30,4 @@
'$audonurl' => [
'audonurl',
DI::l10n()->t('audon Base URL'),
DI::config()->get('audon','audonurl'),
@ -0,0 +31,4 @@
'audonurl',
DI::l10n()->t('audon Base URL'),
DI::config()->get('audon','audonurl'),
DI::l10n()->t('Page your users will create a audon Audio chat room on. For example you could use https://audon.space.'),
Page your users will create an Audon audio chat room on. For example you could use https://audon.space.
@ -0,0 +53,4 @@
$o = '';
/* landingpage to create chatrooms */
$audonurl = DI::config()->get('audon','audonurl');
@ -0,0 +59,4 @@
$o .= '<h2>' . DI::l10n()->t('Audio Chat') . '</h2>';
$o .= '<p>' . DI::l10n()->t('Audon is an audio conferencing tool. Connect your account to Audon and create a room. Share the generated link to talk to other participants.') . '</p>';
if ($audonurl == '') {
$o .= '<p>' . DI::l10n()->t('Please contact your friendica administrator to remind them to configure the Audon addon.') . '</p>';
Please contact your Friendica administrator to remind them to configure the Audon addon.
Thank you for your changes, please regenerate the messages.po file now that you changed the translation strings in the code.
What command did you use to generate the translation file? It should be
bin/run_xgettext.sh -a audon
from the base Friendica folder. The generated file should beaudon/lang/C/messages.po
.When running
bin/run_xgettext.sh -a audon
I get an error message:...:/var/www/html/friendica# bin/run_xgettext.sh -a audon Extract strings to /var/www/html/friendica/bin/../addon/audon/lang/C/messages.po.. Reading file 1/16...bin/run_xgettext.sh: Zeile 89: xgettext: Kommando nicht gefunden.
Can you make sure the
gettext
package is installed on your system? It can be on your development machine, it doesn't have to be on the server you're running Friendica.Can you please rename the
audon/lang/C
file toaudon/lang/C/messages.po
? Otherwise Transifex won't be able to pick up the translation strings.Thank for your Support