This commit is contained in:
Hannes Mannerheim 2016-01-23 00:31:56 +01:00
parent bd2440cf2d
commit 5efe3e834e
3 changed files with 181 additions and 12 deletions

View File

@ -528,15 +528,17 @@ class QvitterPlugin extends Plugin {
$oembed->title = $twitter_username; $oembed->title = $twitter_username;
} }
$oembed_html = str_replace('…','...',$oembed_html); // ellipsis is sometimes stored as html in db, for some reason $oembed_html = str_replace('…','...',$oembed_html); // ellipsis is sometimes stored as html in db, for some reason
$oembed_html = trim(strip_tags(html_entity_decode($oembed_html))); // sometimes we have html charachters that we want to decode and then strip $oembed_html = substr(trim(strip_tags(html_entity_decode($oembed_html,ENT_QUOTES))),0,250); // sometimes we have html charachters that we want to decode and then strip
$oembed_title = trim(strip_tags(html_entity_decode($oembed->title))); $oembed_title = trim(strip_tags(html_entity_decode($oembed->title,ENT_QUOTES)));
$oembed_provider = trim(strip_tags(html_entity_decode($oembed->provider,ENT_QUOTES)));
$oembed_author_name = trim(strip_tags(html_entity_decode($oembed->author_name,ENT_QUOTES)));
$attachment_url_to_id[$enclosure_o->url]['oembed'] = array( $attachment_url_to_id[$enclosure_o->url]['oembed'] = array(
'type'=> $oembed->type, 'type'=> $oembed->type,
'provider'=> $oembed->provider, 'provider'=> $oembed_provider,
'provider_url'=> $oembed->provider_url, 'provider_url'=> $oembed->provider_url,
'oembedHTML'=> $oembed_html, 'oembedHTML'=> $oembed_html,
'title'=> $oembed_title, 'title'=> $oembed_title,
'author_name'=> $oembed->author_name, 'author_name'=> $oembed_author_name,
'author_url'=> $oembed->author_url 'author_url'=> $oembed->author_url
); );
} else { } else {

View File

@ -31,8 +31,8 @@
"favoritesNoun": "お気に入り", "favoritesNoun": "お気に入り",
"requeetNoun": "リクイート", "requeetNoun": "リクイート",
"requeetsNoun": "リクイート", "requeetsNoun": "リクイート",
"newQueet": "{new-notice-count} 個の新しいクイート", "newQueet": "{new-notice-count} 件の新着クイートを表示",
"newQueets": "{new-notice-count} 個の新しいクイート", "newQueets": "{new-notice-count} 件の新着クイートを表示",
"longmonthsJanuary": "1月", "longmonthsJanuary": "1月",
"longmonthsFebruary": "2月", "longmonthsFebruary": "2月",
"longmonthsMars": "3月", "longmonthsMars": "3月",
@ -84,16 +84,16 @@
"userUnfollow": "アンフォロー", "userUnfollow": "アンフォロー",
"joinGroup": "参加する", "joinGroup": "参加する",
"joinExternalGroup": "リモートで参加する", "joinExternalGroup": "リモートで参加する",
"isMemberOfGroup": "メンバー", "isMemberOfGroup": "参加中",
"leaveGroup": "脱退する", "leaveGroup": "脱退する",
"memberCount": "人のメンバー", "memberCount": "参加者数",
"adminCount": "管理者", "adminCount": "管理者",
"settings": "設定", "settings": "設定",
"saveChanges": "変更を保存", "saveChanges": "変更を保存",
"linkColor": "リンクの色", "linkColor": "リンクの色",
"backgroundColor": "背景の色", "backgroundColor": "背景の色",
"newToQuitter": "{site-title}に参加したばかりですか?", "newToQuitter": "{site-title}は初めてですか?",
"signUp": "サインアップ", "signUp": "サインアップしましょう",
"signUpFullName": "フルネーム", "signUpFullName": "フルネーム",
"signUpEmail": "メールアドレス", "signUpEmail": "メールアドレス",
"signUpButtonText": "{site-title}にサインアップする", "signUpButtonText": "{site-title}にサインアップする",
@ -149,8 +149,8 @@
"timelineOptions":"タイムラインの設定", "timelineOptions":"タイムラインの設定",
"ERRORfailedSavingYourSetting":"設定の保存に失敗しました。", "ERRORfailedSavingYourSetting":"設定の保存に失敗しました。",
"ERRORfailedMarkingAllNotificationsAsRead":"全てのお知らせを既読にすることに失敗しました。", "ERRORfailedMarkingAllNotificationsAsRead":"全てのお知らせを既読にすることに失敗しました。",
"newNotification": "{new-notice-count}の新しいお知らせ", "newNotification": "{new-notice-count}の新しいお知らせ",
"newNotifications": "{new-notice-count}の新しいお知らせ", "newNotifications": "{new-notice-count}の新しいお知らせ",
"thisIsANoticeFromABlockedUser":"警告: これはあなたがブロックしているユーザーからのクイートです。表示するにはクリックしてください。", "thisIsANoticeFromABlockedUser":"警告: これはあなたがブロックしているユーザーからのクイートです。表示するにはクリックしてください。",
"nicknamesListWithListName":"{nickname}のリスト: {list-name}", "nicknamesListWithListName":"{nickname}のリスト: {list-name}",
"myListWithListName":"マイリスト: {list-name}", "myListWithListName":"マイリスト: {list-name}",

167
locale/pt.json Normal file
View File

@ -0,0 +1,167 @@
{
"directionality":"ltr",
"languageName": "Português-Brasil",
"loginUsername": "Nome de usuário ou e-mail",
"loginPassword": "Senha",
"loginSignIn": "Iniciar sessão",
"loginRememberMe": "Lembrar meu login",
"loginForgotPassword": "Esqueceu sua senha?",
"notices": "Queets",
"followers": "Seguidores",
"following": "Seguindo",
"groups": "Grupos",
"compose": "Escrever um novo Queet...",
"queetVerb": "Quittear",
"queetsNounPlural": "Queets",
"logout": "Fechar sessão",
"languageSelected": "Idioma:",
"viewMyProfilePage": "Ver minha página de perfil",
"expand": "Expandir",
"collapse": "Reduzir",
"details": "Detalhes",
"expandFullConversation": "Expandir toda a conversa",
"replyVerb": "Responder",
"requeetVerb": "Requittear",
"favoriteVerb": "Favorito",
"requeetedVerb": "Requitteado",
"favoritedVerb": "Marcado como favorito",
"replyTo": "Responder para",
"requeetedBy": "Requitteado por {requeeted-by}",
"favoriteNoun": "Favorito",
"favoritesNoun": "Favoritos",
"requeetNoun": "Requeet",
"requeetsNoun": "Requeets",
"newQueet": "{new-notice-count} novo Queet",
"newQueets": "{new-notice-count} novos Queets",
"longmonthsJanuary": "janeiro",
"longmonthsFebruary": "fevereiro",
"longmonthsMars": "março",
"longmonthsApril": "abril",
"longmonthsMay": "maio",
"longmonthsJune": "junho",
"longmonthsJuly": "julho",
"longmonthsAugust": "agosto",
"longmonthsSeptember": "setembro",
"longmonthsOctober": "outubro",
"longmonthsNovember": "novembro",
"longmonthsDecember": "dezembro",
"shortmonthsJanuary": "janeiro",
"shortmonthsFebruary": "fev",
"shortmonthsMars": "março",
"shortmonthsApril": "abr",
"shortmonthsMay": "maio",
"shortmonthsJune": "jun",
"shortmonthsJuly": "jul",
"shortmonthsAugust": "agosto",
"shortmonthsSeptember": "set",
"shortmonthsOctober": "out",
"shortmonthsNovember": "nov",
"shortmonthsDecember": "dez",
"time12am": "{time} AM",
"time12pm": "{time} PM",
"longDateFormat": "{time24} - {day} {month} {year}",
"shortDateFormatSeconds": "{seconds}s",
"shortDateFormatMinutes": "{minutes}min",
"shortDateFormatHours": "{hours}h",
"shortDateFormatDate": "{day} {month}",
"shortDateFormatDateAndY": "{day} {month} {year}",
"now": "agora",
"posting": "publicando",
"viewMoreInConvBefore": "← Ver mais na conversa",
"viewMoreInConvAfter": "Ver mais na conversa →",
"mentions": "Menções",
"timeline": "Linha de tempo",
"publicTimeline": "Linha de tempo pública",
"publicAndExtTimeline": "Toda a rede conhecida",
"searchVerb": "Buscar",
"deleteVerb": "Apagar",
"cancelVerb": "Cancelar",
"deleteConfirmation": "Tem certeza que quer apagar este queet?",
"userExternalFollow": "Seguir remotamente",
"userExternalFollowHelp": "Identificador de sua conta (ex.: usuario@rainbowdash.net)",
"userFollow": "Seguir",
"userFollowing": "Seguindo",
"userUnfollow": "Deixar de seguir",
"joinGroup": "Participar",
"joinExternalGroup": "Participar remotamente",
"isMemberOfGroup": "Membro",
"leaveGroup": "Abandonar",
"memberCount": "Membros",
"adminCount": "Administradores",
"settings": "Configurações",
"saveChanges": "Salvar mudanças",
"linkColor": "Cor do link",
"backgroundColor": "Cor de fundo",
"newToQuitter": "Você é novo no {site-title}?",
"signUp": "Registre-se",
"signUpFullName": "Nome completo",
"signUpEmail": "E-mail",
"signUpButtonText": "Registre-se no {site-title}",
"welcomeHeading": "Bem-vindo ao {site-title}.",
"welcomeText": "Somos uma <span id=\"federated-tooltip\"><div id=\"what-is-federation\">« Federação » significa que você não deve ter uma conta do {site-title} para seguir seus usuários, ser seguido por eles ou se comunicar com eles. Você pode se registrar em qualquer servidor StatusNet ou <a href=\"http://www.gnu.org/software/social/\">GNU social</a>, ou em qualquer serviço utilizando o protocolo <a href=\"http://www.w3.org/community/ostatus/wiki/Main_Page\">OStatus</a>! Também não deve se registrar em qualquer serviço para participar - simplesmente instale o software GNU social em seu próprio servidor. (:</div>federação</span> de microblogueiros que, como você, estão motivados pela ética e solidaridade, e querem abandonar os serviços centralizados capitalistas. Estamos aqui desde 2010 e sempre vamos ser non-profit.",
"registerNickname": "Nome de usuário",
"registerHomepage": "Site web",
"registerBio": "Biografia",
"registerLocation": "Localização",
"registerRepeatPassword": "Repetir senha",
"moreSettings": "Mais configurações",
"otherServers": "De manera alternativa, você pode criar uma conta em outro servidor da rede GNU social. <a href=\"http://federation.skilledtests.com/select_your_server.html\">Comparativo</a>",
"editMyProfile": "Editar perfil",
"notifications": "Notificações",
"xFavedYourQueet": "curtiu seu Queet",
"xRepeatedYourQueet": "requeetou você",
"xStartedFollowingYou": "seguiu você",
"followsYou": "segue você",
"FAQ": "FAQ",
"inviteAFriend": "Convide seus amigos!",
"goToExternalProfile": "Ir para o perfil completo",
"cropAndSave": "Crop and save",
"showTerms": "Read our Terms of Use",
"ellipsisMore": "More",
"blockUser": "Block {username}",
"goToOriginalNotice": "Go to original notice",
"goToTheUsersRemoteProfile": "Go to the user's remote profile",
"clickToDrag":"Click to drag",
"keyboardShortcuts":"Keyboard shortcuts",
"classicInterface":"Classic {site-title}",
"accessibilityToggleLink":"For better accessibility, click this link to switch to the classic interface",
"tooltipBookmarkStream":"Add this stream to your bookmarks",
"tooltipTopMenu":"Menu and settings",
"tooltipAttachImage":"Attach an image",
"tooltipShortenUrls":"Shorten all URLs in the Queet",
"tooltipReloadStream":"Refresh this stream",
"tooltipRemoveBookmark":"Remove this bookmark",
"clearHistory":"Clear browsing history",
"ERRORsomethingWentWrong":"Something went wrong.",
"ERRORmustBeLoggedIn":"You must be logged in to view this stream.",
"ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server",
"ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server",
"ERRORcouldNotFindPage":"Could not find that page.",
"ERRORnoticeRemoved": "This notice has been removed.",
"ERRORnoContactWithServer": "Can not establish a connection to the server. The server could be overloaded, or there might be a problem with your internet connecton. Please try again later!",
"ERRORattachmentUploadFailed": "The upload failed. The format might be unsupported or the size too large.",
"hideRepliesToPeopleIDoNotFollow":"Hide replies to people I don't follow",
"markAllNotificationsAsSeen":"Mark all notifications as seen",
"notifyRepliesAndMentions":"Mentions and replies",
"notifyFavs":"Favorites",
"notifyRepeats":"Requeets",
"notifyFollows":"New followers",
"timelineOptions":"Timeline options",
"ERRORfailedSavingYourSetting":"Failed saving your setting",
"ERRORfailedMarkingAllNotificationsAsRead":"Failed marking all notifications as seen.",
"newNotification": "{new-notice-count} new notification",
"newNotifications": "{new-notice-count} new notifications",
"thisIsANoticeFromABlockedUser":"Warning: This is a notice from a user you have blocked. Click to show it.",
"nicknamesListWithListName":"{nickname}s list: {list-name}",
"myListWithListName":"My list: {list-name}",
"listMembers":"Members",
"listSubscribers":"Subscribers",
"ERRORcouldNotFindList":"There is no such list.",
"emailAlreadyInUse":"Already in use",
"addEditLanguageLink":"Help translate {site-title} to another language",
"onlyPartlyTranslated":"{site-title} is only partly translated to <em>{language-name}</em> ({percent}%). You can help complete the translation at <a href=\"https://git.gnu.io/h2p/Qvitter/tree/master/locale\">Qvitter's repository homepage</a>",
"startRant":"Start a rant",
"continueRant":"Continue the rant",
"hideEmbeddedInTimeline":"Hide embedded content in this timeline",
"hideQuotesInTimeline":"Hide quotes in this timeline"
}