Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 93 additions & 5 deletions locales/en.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,94 @@
module.exports = {
'Public': 'Public',
'Private': 'Private',
'Profile': 'Profile',
'Mentions': 'Mentions'
}
activeChannels : "Active Channels",
and : "and",
aProfileLink : "a ProfileLink",
as : "as",
assignedBy : "Assigned By",
assignedDescriptionTo : "assigned a description to",
assignedImageTo : "assigned a display image to",
Cancel : "Cancel",
cannotLoadThread : "Cannot load thread",
chooseName : "Choose a name",
chooseProfileImage : "🖼 Choose Profile Image...",
clickInfo : "Click here for more info!",
clickUnfollow : "Click to unfollow",
clickUnsubscribe : "Click to unsubscribe",
Compose : "Compose",
confirm : "Confirm",
connectedPubs : "Connected Pubs",
copyLink : "Copy Link Ref ",
copyMessageId : "Copy Message ID",
copyMessageText : "Copy Message Text",
describeYourself : "Describe yourself (if you want)",
downloadingMessages : "Downloading new messages",
editProfile : "Edit Your Profile",
error : "Error",
errorPublishing : "An error occured while attempting to publish about message.",
errorRedeemInvite : "An error occured while attempting to redeem invite.",
follow : "Follow",
followBack : "Follow Back",
followed : "followed",
followers : "Followers",
following : "Following",
friends : "Friends",
hasBeenReleased : "has been released.",
identified : "identified",
identifies : "identifies",
indexingDatabase : "Indexing database",
inReplyTo : "in reply to",
inspectProcess : "Inspect Server Process",
joinPub: "+ Join Pub",
like : "like",
liked : "liked this message",
likedBy : "Liked by\n",
likeToCall : "What whould you like to call",
Loading : "Loading...",
local : "Local", //pubs
Mentions : "Mentions",
needPub : "In order to share with users on the internet, you need to be invited to a pub server.",
newMessage : "New Message",
noMatches : "No matches",
ok : "Ok",
on : "on",
others : "others",
pasteCode : "paste invite code here",
Private : "Private",
Profile: "Profile",
Public : "Public",
Publish : "Publish",
publishing : "Publishing...",
redeemInvite : "Redeem Invite",
referencedFrom : "Referenced from",
replied : "replied",
repliedTo : "replied to",
Reply : "reply",
scuttling : "Scuttling...",
searched : "Searched:",
searchPlaceholder : "word, @key, #channel",
searchResults : "Search Results:",
seeLocalUsers : "By default, Patchwork will only see other users that are on the same local area network as you.",
selfAssigned : "Self Assigned",
selfAssignedDescription : "self assigned a description",
selfAssignedImage : "self assigned a display image",
selfIdentifiesAs : "self identifies as ",
show : "Show",
subscribe : "Subscribe",
subscribed : "Subscribed",
subscribedTo : "subscribed to",
subscribedTo : "subscribed to",
thread : "Thread",
unsubscribe : "Unsubscribe",
unsubscribedFrom : "unsubscribed from",
update : "update",
updates : "updates",
viewFullThread : "View full thread",
viewFullThread : "View full thread",
whoToFollow : "Who to follow",
writeMessage : "Write a message",
writeMessageChannel : "Write a message in this channel\n\n\n\nPeople who follow you or subscribe to this channel will also see this message in their main feed.\n\nTo create a new channel, type the channel name (preceded by a #) into the search box above. e.g #cat-pics",
writePrivate : "Write a private reply",
writePrivateMessage : "Write a private message \n\n\n\nThis can only be read by yourself and people you have @mentioned.",
writePublic : "Write a public reply",
writePublicMessage : "Write a public message",
yourProfile: "Your profile"
};
93 changes: 93 additions & 0 deletions locales/es.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
module.exports = {
activeChannels : "Canales activos",
and : "y",
aProfileLink : "link del perfil",
as : "como",
assignedBy : "Asignado por",
assignedDescriptionTo : "asignar una descripción",
assignedImageTo : "asignar como imagen de perfil a",
Cancel : "Cancelar",
cannotLoadThead : "No se pudo cargar el hilo completo",
chooseName : "Elije un nombre",
chooseProfileImage : "🖼 Elije una imagen de perfil...",
clickInfo : "Click aquí para mas información!",
clickUnfollow : "Click para dejar de seguir",
clickUnsubscribe : "Click para cancelar la suscripción",
Compose : "Componer",
confirm : "Confirmar",
connectedPubs : "Pubs conectados",
copyLink : "Copiar link ",
copyMessageId : "Copiar ID del mensaje",
copyMessageText : "Copiar texto del mensaje",
describeYourself : "Describete (si lo deseas)",
downloadingMessages : "Descargando mensajes nuevos",
editProfile : "Editar tu perfil",
error : "Error",
errorPublishing : "Ocurrió un error tratando de publicar el mensaje con tu información.",
errorRedeemInvite : "Se ha producido un error al intentar responder la invitación.",
follow : "Seguir",
followBack : "Seguir en respuesta",
followed : "sigue a",
followers : "Seguidores",
following : "Siguiendo",
friends : "Amigos",
hasBeenReleased : "ha sido publicado.",
identified : "reconoce a",
identifies : "identifica",
indexingDatabase : "Indexando la base de datos",
inReplyTo : "en respuesta a",
inspectProcess : "Inspect Server Process",
joinPub: "+ Agregar Pub",
like : "me gusta",
liked : "le gusta",
likedBy : "Le gusta a \n",
likeToCall : "¿Cómo quieres que se llame",
Loading : "Cargando...",
local : "Local", //pubs
Mentions : "Menciones",
needPub : "Necesita ser invitado a un servidor Pub para compartir con usuarios via Internet.",
newMessage : "Nuevo mensaje",
noMatches : "Sin resultados",
ok : "Ok",
on : "en",
others : "más",
pasteCode : "Pegar el código de invitación aquí",
Private : "Privado",
Profile: "Perfil",
Public : "Publico",
Publish : "Publicar",
publishing : "Publicando...",
redeemInvite : "Cargar invitación",
referencedFrom : "Referido desde",
replied : "respondido",
repliedTo : "respondio en",
Reply : "responder",
scuttling : "Scuttling...",
searched : "Buscado:",
searchPlaceholder : "palabra, @key, #canal",
searchResults : "Resultados de:",
seeLocalUsers : "De forma predeterminada Patchwork sólo verá a otros usuarios que estén en la misma red de área local que usted.",
selfAssigned : "Autoasignado",
selfAssignedDescription : "descripción autoasignada",
selfAssignedImage : "imagen de perfil autoasignada",
selfIdentifiesAs : "autoidentificado como ",
show : "Mostrar",
subscribe : "Suscribirse",
subscribed : "Suscrito",
subscribedTo : "se suscribió a",
thread : "Hilo",
unsubscribe : "Desuscribirse",
unsubscribedFrom : "desuscribirse a",
update : "actualización",
updates : "actualizaciones",
viewFullThread : "Ver el hilo completo",
viewFullThread : "Ver todo el hilo",
whoToFollow : "A quien seguir",
writeMessage : "Escribir un mensaje",
writeMessageChannel : "Escribe un mensaje en este canal.\n\n\n\nLas personas que te siguen o estén suscritas a este canal también verán este mensaje en su feed principal.\n\nPara crear un nuevo canal, escriba el nombre del canal (precedido por un #) en el area de búsqueda superior. Por ejemplo, #gatos",
writePrivate : "Escribir una respuesta privada",
writePrivateMessage : "Escribir un mensaje privado \n\n\n\nSolo podrá ser leído por ti mismo y por las personas que @menciones.",
writePublic : "Escribir una respuesta pública",
writePublicMessage : "Escribir un mensaje público",
yourProfile: "Tu perfil",
};
4 changes: 2 additions & 2 deletions main-window.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ require('./lib/context-menu-and-spellcheck.js')
module.exports = function (config) {
var sockets = combine(
overrideConfig(config),
require('patch-intl'),
require('./modules'),
require('./plugs'),
require('patch-intl'),
require('patchcore'),
require('./overrides')
)
Expand Down Expand Up @@ -82,7 +82,7 @@ module.exports = function (config) {
when(latestUpdate,
h('div.info', [
h('a.message -update', { href: 'https://github.com/ssbc/patchwork/releases' }, [
h('strong', ['Patchwork ', latestUpdate, ' has been released.']), ' Click here for more info!'
h('strong', ['Patchwork ', latestUpdate, ' ', format('hasBeenReleased')]), ' ', format('clickInfo')
])
])
),
Expand Down
8 changes: 5 additions & 3 deletions modules/app/html/progress-notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var sustained = require('../../../lib/sustained')
exports.gives = nest('app.html.progressNotifier')

exports.needs = nest({
'intl.sync.format': 'first',
'progress.html.render': 'first',
'progress.obs': {
global: 'first',
Expand All @@ -14,6 +15,7 @@ exports.needs = nest({
})

exports.create = function (api) {
var format = api.intl.sync.format
return nest('app.html.progressNotifier', function (id) {
var progress = api.progress.obs.global()
var indexing = computed([
Expand Down Expand Up @@ -50,10 +52,10 @@ exports.create = function (api) {
h('div.status', [
h('Loading -small', [
when(computed(progress.incompleteFeeds, (v) => v > 5),
['Downloading new messages', h('progress', { style: {'margin-left': '10px'}, min: 0, max: 1, value: downloadProgress })],
[format('downloadingMessages'), h('progress', { style: {'margin-left': '10px'}, min: 0, max: 1, value: downloadProgress })],
when(indexing, [
['Indexing database', h('progress', { style: {'margin-left': '10px'}, min: 0, max: 1, value: indexProgress })]
], 'Scuttling...')
[format('indexingDatabase'), h('progress', { style: {'margin-left': '10px'}, min: 0, max: 1, value: indexProgress })]
], format('scuttling'))
)
])
])
Expand Down
4 changes: 3 additions & 1 deletion modules/app/html/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,22 @@ var nest = require('depnest')
var addSuggest = require('suggest-box')

exports.needs = nest({
'intl.sync.format': 'first',
'profile.async.suggest': 'first',
'channel.async.suggest': 'first'
})

exports.gives = nest('app.html.search')

exports.create = function (api) {
var format = api.intl.sync.format;
return nest('app.html.search', function (setView) {
var getProfileSuggestions = api.profile.async.suggest()
var getChannelSuggestions = api.channel.async.suggest()
var searchTimer = null
var searchBox = h('input.search', {
type: 'search',
placeholder: 'word, @key, #channel',
placeholder: format('searchPlaceholder'),
'ev-suggestselect': (ev) => {
setView(ev.detail.id)
searchBox.value = ev.detail.id
Expand Down
Loading