Skip to content

Commit

Permalink
Add Galego support (#17)
Browse files Browse the repository at this point in the history
* Galego localization

* update readme
  • Loading branch information
kx1t authored Jun 25, 2024
1 parent 5ff3ee4 commit dfc6c03
Show file tree
Hide file tree
Showing 5 changed files with 289 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ There are a series of available environment variables:
| `NOTIFICATION_MAPURL` | If set to a URL, a link `$NOTIFICATION_MAPURL/mmsi=$mmsi` will be added to the notification. If the value is non-empty but doesn't start with "http" (e.g., if it's set to `on`, `$AIS-URL/mmsi=$mmsi` will be used. | empty | no |
| `NOTIFY_ONLY_NEW_ON_STARTUP` | If set to any non-empty value, when restarting the container, it will not notify for any vessels in its first run, and consider these vessels "already notified". This is to avoid spamming the notification service at initial startup when many non-notified vessels are discovered | empty | no |
| `NOTIFICATION_THROTTLE` | If set to any non-empty value, notifications will pause for 15 seconds for every 10 notifications in a run | empty | no |
| `LANGUAGE` | Set to make notifications in one of these supported languages: `ca_ES` (Catalan); `de_DE` (German); `en_US` (US English); `es_ES` (Spanish); `fr_FR` (French); `nl_NL` (Dutch). If omitted, it will default to `en_US` | `en_US` | no |
| `LANGUAGE` | Set to make notifications in one of these supported languages: `ca_ES` (Català); `de_DE` (Deutsch); `en_US` (US English); `es_ES` (Español); `fr_FR` (Français); `gl_ES`(Galego) `nl_NL` (Nederlands). If omitted, it will default to `en_US` | `en_US` | no |
| `LAT` | Latitude of receiver station. If Lat/Lon are included, the notification will contain a "Distance to Receiver" field | empty | no |
| `LON` | Longitude of receiver station. If Lat/Lon are included, the notification will contain a "Distance to Receiver" field | empty | no |

Expand Down
96 changes: 96 additions & 0 deletions rootfs/opt/data/discord.template-gl_ES
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"username": "##USER##",
"avatar_url": "##AVATAR##",
"tts": false,
"embeds": [
{
"tts": false,
"type": "rich",
"title": "##TITLE##",
"description": "##DESCRIPTION## ",
"color": "16711680",
"fields": [
{
"name": "Nome da Embarcación",
"value": "##VESSELNAME## ",
"inline": true
},
{
"name": "MMSI",
"value": "##MMSI##",
"inline": true
},
{
"name": "Indicativo",
"value": "##CALLSIGN## ",
"inline": true
},
{
"name": "Tipo",
"value": "##TYPE## ",
"inline": true
},
{
"name": "Destino",
"value": "##DESTINATION## ",
"inline": false
},
{
"name": "Bandeira",
"value": "##FLAG##",
"inline": true
},
{
"name": "Mensaxes recibidas",
"value": "##COUNT##",
"inline": true
},
{
"name": "RSSI",
"value": "##SIGNAL## dBFS",
"inline": true
},
{
"name": "Estado",
"value": "##STATUS## ",
"inline": false
},
{
"name": "Velocidade",
"value": "##SPEED## ",
"inline": true
},
{
"name": "Curso",
"value": "##HEADING## ",
"inline": false
},
##HASDIST--{
"name": "Distancia do receptor",
"value": "##DISTANCE## nm",
"inline": false
},--HASDIST##
{
"name": "Ligazóns Externas",
"value": "##SM--[Station Map](##STNMAP##) | --SM##[AIS-Catcher](https://aiscatcher.org/ship/details/##MMSI##) | [ShipXplorer](https://www.shipxplorer.com/data/vessels/IMO-MMSI-##MMSI##) | [MarineTraffic](https://www.marinetraffic.com/en/ais/details/ships/##MMSI##) | [VesselFinder](https://www.vesselfinder.com/vessels/details/##MMSI##) | [ShipSpotting photo gallery](https://www.shipspotting.com/photos/gallery?mmsi=##MMSI##)",
"inline": false
}
],
"timestamp": "##TIMESTAMP##",
"thumbnail":
{
"url": "https://photos.marinetraffic.com/ais/showphoto.aspx?mmsi=##MMSI##"
},
"footer":
{
"text": "VesselAlert © 2023, 2024 kx1t"
},
"url": "https://www.vesselalert.com"
##SCRSHT--
,
"image":
{
"url":"attachment://##SCREENSHOTFILE##"
}--SCRSHT##
}]
}
40 changes: 40 additions & 0 deletions rootfs/opt/data/masto-l10n-gl_ES.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Format: [#]MASTO_TERM[term]="LOCALIZED TERM"
# If the line starts with "#", it means that there's no description in the notification for this MASTO_TERM
#---------------------------------------------------------------------------------------------
# Copyright (C) 2022-2024, Ramon F. Kolb (kx1t)
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with this program.
# If not, see <https://www.gnu.org/licenses/>.
#---------------------------------------------------------------------------------------------
MASTO_TERM[TROPOMAXDIST]="TropoAlert - Distancia Máxima"
MASTO_TERM[SHIP]="Embarcación"
MASTO_TERM[NEW]="#NOVO #PREIMERA Observación"
MASTO_TERM[ONTHEMOVE]="#EnMovemento"
MASTO_TERM[MOVING]="en movemento"
MASTO_TERM[SHIPNAME]="Nome"
MASTO_TERM[CALLSIGN]="Indicativo"
MASTO_TERM[SHIPTYPE]="Tipo"
MASTO_TERM[FLAG]="Bandeira"
MASTO_TERM[MSGS_RECVD]="Mensaxes recibidas"
MASTO_TERM[SEEN_ON]="Visto últ."
MASTO_TERM[STATUS]="Estado"
MASTO_TERM[SPEED]="Velocidade"
MASTO_TERM[HEADING]="Curso"
MASTO_TERM[DESTINATION]="Destino"
MASTO_TERM[SIGNAL]="Sinal"
MASTO_TERM[LOCATION]="Detalles"
MASTO_TERM[ISMOVING]="está en movemento"
MASTO_TERM[ISSEENON]="foi visto en"
MASTO_TERM[AGAIN]="De Novo:"
MASTO_TERM[NEW2]="Novo:"
MASTO_TERM[DIST_SINCE_LAST]="moveuse %.1f nm desde a última notificación"
MASTO_TERM[DISTANCE]="Distancia"
34 changes: 34 additions & 0 deletions rootfs/opt/data/shipstatus-gl_ES.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Format: [#]SHIPSTATUS[number]="Description with #hashtags"
# If the line starts with "#", it means that there's no description in the notification for this SHIPSTATUS
#---------------------------------------------------------------------------------------------
# Copyright (C) 2022-2023, Ramon F. Kolb (kx1t)
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with this program.
# If not, see <https://www.gnu.org/licenses/>.
#---------------------------------------------------------------------------------------------

SHIPSTATUS[0]="#en_marcha_usando_motor"
SHIPSTATUS[1]="#ancorado"
SHIPSTATUS[2]="#non_baixo_mando"
SHIPSTATUS[3]="#manobrabilidade_restrinxida"
SHIPSTATUS[4]="#profundidade_restrinxida"
SHIPSTATUS[5]="#amarrado"
SHIPSTATUS[6]="#acallado"
SHIPSTATUS[7]="#pesca"
SHIPSTATUS[8]="#en_marcha_usando_vela "
# SHIPSTATUS[9]="reservado para futuras modificacións do estado de navegación dos buques que levan DG, HS ou MP, ou da OMI categoría C de perigo ou contaminante, embarcacións de alta velocidade (HSC)"
# SHIPSTATUS[10]="reservado para futuras modificacións do estado de navegación dos buques que transportan mercadorías perigosas (DG), substancias nocivas (HS) ou contaminantes mariños (MP), ou perigo da OMI ou categoría de contaminantes A, ala no chan (WIG)"
SHIPSTATUS[11]="#remolque_tirando"
SHIPSTATUS[12]="#remolque_empurrando"
# SHIPSTATUS[13]="reservado para uso futuro"
SHIPSTATUS[14]="#AIS-SART #MOB-AIS #EPIRB-AIS"
# SHIPSTATUS[15]="undefined = default (tamén usado por AIS-SART, MOB-AIS e EPIRB-AIS en proba)"
118 changes: 118 additions & 0 deletions rootfs/opt/data/shiptype-gl_ES.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# Format: [#]SHIPTYPE[number]="Description with #hashtags"
# If the line starts with "#", it means that there's no description in the notification for this SHIPTYPE
#---------------------------------------------------------------------------------------------
# Copyright (C) 2022-2023, Ramon F. Kolb (kx1t)
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with this program.
# If not, see <https://www.gnu.org/licenses/>.
#---------------------------------------------------------------------------------------------

# SHIPTYPE[0]="Not Available"
# SHIPTYPE[1]="Reserved for future use"
# SHIPTYPE[2]="Reserved for future use"
# SHIPTYPE[3]="Reserved for future use"
# SHIPTYPE[4]="Reserved for future use"
# SHIPTYPE[5]="Reserved for future use"
# SHIPTYPE[6]="Reserved for future use"
# SHIPTYPE[7]="Reserved for future use"
# SHIPTYPE[8]="Reserved for future use"
# SHIPTYPE[9]="Reserved for future use"
# SHIPTYPE[10]="Reserved for future use"
# SHIPTYPE[11]="Reserved for future use"
# SHIPTYPE[12]="Reserved for future use"
# SHIPTYPE[13]="Reserved for future use"
# SHIPTYPE[14]="Reserved for future use"
# SHIPTYPE[15]="Reserved for future use"
# SHIPTYPE[16]="Reserved for future use"
# SHIPTYPE[17]="Reserved for future use"
# SHIPTYPE[18]="Reserved for future use"
# SHIPTYPE[19]="Reserved for future use"
SHIPTYPE[20]="#WIG (á terrestre)"
SHIPTYPE[21]="#WIG #Perigo cat A"
SHIPTYPE[22]="#WIG #Perigo cat B"
SHIPTYPE[23]="#WIG #Perigo cat B"
SHIPTYPE[24]="#WIG #Perigo cat D"
SHIPTYPE[25]="#WIG"
SHIPTYPE[26]="#WIG"
SHIPTYPE[27]="#WIG"
SHIPTYPE[28]="#WIG"
SHIPTYPE[29]="#WIG"
SHIPTYPE[30]="#Pesca"
SHIPTYPE[31]="#Remolque"
SHIPTYPE[32]="#Remolque (Grande)"
SHIPTYPE[33]="#Dragado"
SHIPTYPE[34]="#Mergullo"
SHIPTYPE[35]="#Militar #Mariña #Mil #Navy"
SHIPTYPE[36]="#Navegando"
SHIPTYPE[37]="#Barco_de_Recreo"
# SHIPTYPE[38]="Reserved"
# SHIPTYPE[39]="Reserved"
SHIPTYPE[40]="#AltaVelocidade"
SHIPTYPE[41]="#AltaVelocidade #Perigo cat A"
SHIPTYPE[42]="#AltaVelocidade #Perigo cat B"
SHIPTYPE[43]="#AltaVelocidade #Perigo cat C"
SHIPTYPE[44]="#AltaVelocidade #Perigo cat D"
# SHIPTYPE[45]="#HiSpeed Reserved"
# SHIPTYPE[46]="#HiSpeed Reserved"
# SHIPTYPE[47]="#HiSpeed Reserved"
# SHIPTYPE[48]="#HiSpeed Reserved"
SHIPTYPE[49]="#AltaVelocidade"
SHIPTYPE[50]="#Buque_Piloto"
SHIPTYPE[51]="#SAR"
SHIPTYPE[52]="#Remolque"
SHIPTYPE[53]="#Barco_Auxiliar"
SHIPTYPE[54]="#Contra_Contaminación"
SHIPTYPE[55]="#Policía"
SHIPTYPE[56]="#Local"
SHIPTYPE[57]="#Local"
SHIPTYPE[58]="#Transporte_Sanitario"
SHIPTYPE[59]="#No_Combatente #Mil #Marina"
SHIPTYPE[60]="#Pasaxeiro"
SHIPTYPE[61]="#Pasaxeiro #Perigo cat A"
SHIPTYPE[62]="#Pasaxeiro #Perigo cat B"
SHIPTYPE[63]="#Pasaxeiro #Perigo cat C"
SHIPTYPE[64]="#Pasaxeiro #Perigo cat D"
# SHIPTYPE[65]="#Passenger Reserved"
# SHIPTYPE[66]="#Passenger Reserved"
# SHIPTYPE[67]="#Passenger Reserved"
# SHIPTYPE[68]="#Passenger Reserved"
SHIPTYPE[69]="#Pasaxeiro"
SHIPTYPE[70]="#Carga"
SHIPTYPE[71]="#Carga #Perigo cat A"
SHIPTYPE[72]="#Carga #Perigo cat B"
SHIPTYPE[73]="#Carga #Perigo cat C"
SHIPTYPE[74]="#Carga #Perigo cat D"
# SHIPTYPE[75]="#Cargo Reserved"
# SHIPTYPE[76]="#Cargo Reserved"
# SHIPTYPE[77]="#Cargo Reserved"
# SHIPTYPE[78]="#Cargo Reserved"
SHIPTYPE[79]="#Carga"
SHIPTYPE[80]="#Cisterna"
SHIPTYPE[81]="#Cisterna #Perigo cat A"
SHIPTYPE[82]="#Cisterna #Perigo cat B"
SHIPTYPE[83]="#Cisterna #Perigo cat C"
SHIPTYPE[84]="#Cisterna #Perigo cat D"
# SHIPTYPE[85]="#Tanker Reserved"
# SHIPTYPE[86]="#Tanker Reserved"
# SHIPTYPE[87]="#Tanker Reserved"
# SHIPTYPE[88]="#Tanker Reserved"
SHIPTYPE[89]="#Cisterna"
SHIPTYPE[90]="#Outro"
SHIPTYPE[91]="#Outro #Perigo cat A"
SHIPTYPE[92]="#Outro #Perigo cat B"
SHIPTYPE[93]="#Outro #Perigo cat C"
SHIPTYPE[94]="#Outro #Perigo cat D"
# SHIPTYPE[95]="#Other Reserved"
# SHIPTYPE[96]="#Other Reserved"
# SHIPTYPE[97]="#Other Reserved"
# SHIPTYPE[98]="#Other Reserved"
SHIPTYPE[99]="#Outro"

0 comments on commit dfc6c03

Please sign in to comment.