Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Italian Translation #61

Merged
merged 36 commits into from May 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
b2506cc
#55 - Initial Italian Translation
llegovich Apr 22, 2019
a8b375a
#55 - Initial Italian translation
llegovich Apr 22, 2019
3794fe4
#55 - Initial Italian translation
llegovich Apr 22, 2019
a02c1f9
dummy file deleted
llegovich Apr 22, 2019
38ff19d
#55 - Initial Italian translation
llegovich Apr 22, 2019
660b3d0
#55 - Initial Italian translation
llegovich Apr 22, 2019
0d89027
#55 - Initial Italian translation
llegovich Apr 22, 2019
46479eb
#55 - Initial Italian translation
llegovich Apr 22, 2019
7776671
removed apostrophes
llegovich Apr 24, 2019
171009a
try fixing IO unexp... in TrainerItTest.java
llegovich Apr 24, 2019
c11c3fd
fix builds
llegovich Apr 24, 2019
73ac605
trying to understand build errors
llegovich Apr 24, 2019
9a1114d
fix builds
llegovich Apr 24, 2019
df4ace3
fixing builds
llegovich Apr 24, 2019
fde14be
fixing builds...
llegovich Apr 24, 2019
abf45c4
fix builds
llegovich Apr 25, 2019
20a2eaa
fixing builds...
llegovich Apr 25, 2019
5cbfb7e
fixing builds...
llegovich Apr 25, 2019
0382172
fixing builds...
llegovich Apr 25, 2019
503b948
fixing builds...
llegovich Apr 25, 2019
bd5ea4b
fixing trainer line 47
llegovich Apr 27, 2019
62579d9
fix nullness constraint violations (#64)
maggu2810 May 2, 2019
858b6a3
fix code for new storage service handling (#63)
maggu2810 May 2, 2019
55c537f
fix build
llegovich May 23, 2019
ad54de4
fix build
llegovich May 23, 2019
ab594b5
fix build
llegovich May 23, 2019
cedaecb
fix build
llegovich May 23, 2019
510014b
fix build
llegovich May 23, 2019
01c3525
fix tests
llegovich May 26, 2019
3975e5f
Fix Travis build (#70)
wborn May 27, 2019
b607852
[paper] Hide command options for read only items (#68)
wborn May 27, 2019
d4f079b
Remove p2 repo (#71)
wborn May 27, 2019
866594f
Ignore Eclipse project specific settings (#50)
wborn May 27, 2019
444fe16
new build after rebase
llegovich May 28, 2019
435352a
fix tests
llegovich May 28, 2019
2d2fad5
fix tests
llegovich May 28, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,6 +4,7 @@ target/
src-gen/
bin/
.metadata/
**/.settings/org.eclipse.*
features/*/src/main/history
npm-debug.log
node_modules/
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -35,7 +35,7 @@ install:
local command=(mvn $@)
exec "${command[@]}" 2>&1 | # execute, redirect stderr to stdout
tee .build.log | # write output to log
stdbuf -oL grep -E '^\[INFO\] Building .+ \[.+\]$' | # filter progress
stdbuf -oL grep -aE '^\[INFO\] Building .+ \[.+\]$' | # filter progress
sed -uE 's/^\[INFO\] Building (.*[^ ])[ ]+\[([0-9]+\/[0-9]+)\]$/\2| \1/' | # prefix project name with progress
sed -e :a -e 's/^.\{1,4\}|/ &/;ta' & # right align progress with padding
local pid=$!
Expand Down
Expand Up @@ -57,7 +57,7 @@ public class CardBuilder {
/**
* Retrieves or build a card for the specified intent and matched items
*
* @param intent the intent including entities
* @param intent the intent including entities
* @param matchedItems the matched items
* @return the card (either retrieved or built)
*/
Expand Down Expand Up @@ -255,9 +255,9 @@ public Card buildCard(Intent intent, Collection<Item> matchedItems) {
/**
* Builds a card with a chart from an intent and matched items
*
* @param intent the intent
* @param intent the intent
* @param matchedItems the matched items
* @param period the chart period
* @param period the chart period
* @return the card
*/
public Card buildChartCard(Intent intent, Collection<Item> matchedItems, String period) {
Expand Down Expand Up @@ -338,19 +338,23 @@ private String formatState(Item item, State state) throws TransformationExceptio
if (item.getStateDescription() != null) {
try {
StateDescription stateDescription = item.getStateDescription();
if (stateDescription != null && stateDescription.getPattern() != null) {
String transformedState = TransformationHelper.transform(
FrameworkUtil.getBundle(CardBuilder.class).getBundleContext(),
stateDescription.getPattern(), state.toString());
if (transformedState == null) {
return state.toString();
}
if (transformedState.equals(state.toString())) {
return state.format(stateDescription.getPattern());
if (stateDescription != null) {
final String pattern = stateDescription.getPattern();
if (pattern != null) {
String transformedState = TransformationHelper.transform(
FrameworkUtil.getBundle(CardBuilder.class).getBundleContext(), pattern,
state.toString());
if (transformedState == null) {
return state.toString();
}
if (transformedState.equals(state.toString())) {
return state.format(pattern);
} else {
return transformedState;
}
} else {
return transformedState;
return state.toString();
}

} else {
return state.toString();
}
Expand Down
Expand Up @@ -17,9 +17,9 @@
import org.eclipse.smarthome.core.common.registry.ManagedProvider;
import org.eclipse.smarthome.core.storage.StorageService;
import org.openhab.ui.habot.card.Card;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.component.annotations.ReferencePolicy;

/**
* The @link {@link ManagedProvider} for {@link Card} elements
Expand All @@ -29,6 +29,11 @@
@Component(service = CardProvider.class, immediate = true)
public class CardProvider extends DefaultAbstractManagedProvider<Card, String> {

@Activate
public CardProvider(final @Reference StorageService storageService) {
super(storageService);
}

@Override
protected String getStorageName() {
return "habot_cards";
Expand All @@ -39,14 +44,4 @@ protected String getStorageName() {
return key;
}

@Reference(policy = ReferencePolicy.DYNAMIC)
@Override
protected void setStorageService(StorageService storageService) {
super.setStorageService(storageService);
}

@Override
protected void unsetStorageService(StorageService storageService) {
super.unsetStorageService(storageService);
}
}
Expand Up @@ -119,19 +119,24 @@ public IntentInterpretation interpret(Intent intent, String language) {
private String formatState(Item item, State state) {
if (item.getStateDescription() != null) {
StateDescription stateDescription = item.getStateDescription();
if (stateDescription != null && stateDescription.getPattern() != null) {
try {
String transformedState = TransformationHelper.transform(
FrameworkUtil.getBundle(HistoryLastChangesSkill.class).getBundleContext(),
stateDescription.getPattern(), state.toString());
if (transformedState != null && transformedState.equals(state.toString())) {
return state.format(stateDescription.getPattern());
} else {
return transformedState;
if (stateDescription != null) {
final String pattern = stateDescription.getPattern();
if (pattern != null) {
try {
String transformedState = TransformationHelper.transform(
FrameworkUtil.getBundle(HistoryLastChangesSkill.class).getBundleContext(), pattern,
state.toString());
if (transformedState != null && transformedState.equals(state.toString())) {
return state.format(pattern);
} else {
return transformedState;
}
} catch (NoClassDefFoundError | TransformationException ex) {
// TransformationHelper is optional dependency, so ignore if class not found
// return state as it is without transformation
return state.toString();
}
} catch (NoClassDefFoundError | TransformationException ex) {
// TransformationHelper is optional dependency, so ignore if class not found
// return state as it is without transformation
} else {
return state.toString();
}
} else {
Expand Down
Expand Up @@ -18,9 +18,9 @@
import org.eclipse.smarthome.core.storage.StorageService;
import org.openhab.ui.habot.notification.internal.webpush.Subscription;
import org.openhab.ui.habot.notification.internal.webpush.Subscription.Keys;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.component.annotations.ReferencePolicy;

/**
* The @link {@link ManagedProvider} for {@link Subscription} elements
Expand All @@ -30,6 +30,11 @@
@Component(service = SubscriptionProvider.class, immediate = true)
public class SubscriptionProvider extends DefaultAbstractManagedProvider<Subscription, Keys> {

@Activate
public SubscriptionProvider(final @Reference StorageService storageService) {
super(storageService);
}

@Override
protected String getStorageName() {
return "habot_webpush_subscriptions";
Expand All @@ -41,15 +46,4 @@ protected String getStorageName() {
return String.format("%s.%s", key.p256dh, key.auth);
}

@Reference(policy = ReferencePolicy.DYNAMIC)
@Override
protected void setStorageService(StorageService storageService) {
super.setStorageService(storageService);
}

@Override
protected void unsetStorageService(StorageService storageService) {
super.unsetStorageService(storageService);
}

}
@@ -0,0 +1,80 @@
greeting = Ciao! Come posso aiutart? |\
Ciao! Cosa posso fare per te? |\
Ciao, dimmi come posso aiutarti!

general_failure = Scusa, non ho capito. |\
Mi spiace, temo di non aver capito.

answer_nothing_found = Scusa, non ho trovato alcuna informazione. |\
Scusa, non so nulla di ciò. |\
Mi spiace, non ne ho idea. |\
Non ho trovato risposte alla tua domanda.

standard_hint = Per favore, verifica che ci siano oggetti di tipo {attributes}! |\
Ho cercato oggetti con attributi {attributes} ma non ne ho trovati. |\
Non ho trovato alcuna corrispondenza con oggetti di tipo {attributes}.

skill_not_implemented = Mi spiace, non lo posso fare al momento. |\
Scusa, non sono ancora capace di farlo. |\
Questa abilità non è ancora stata sviluppata.

info_found_simple = Questo è quello che ho trovato: |\
Spero di aver capito, ecco: |\
è questo quello che volevi?
switch_activated = Bene, ho attivato: |\
Okay, ho acceso: |\
Accendo l'interruttore:
switch_already_on = Questo dispositivo era già acceso: |\
Questo interruttore era già acceso:
switches_activated = Ho trovato {count} interruttori e li ho accesi! |\
Ho acceso {count} dispositivi: |\
Accendo {count} dispositivi!
nothing_activated = Non ho trovato nulla da attivare.

switch_deactivated = Bene, Ho disattivato: |\
Okay, ho spento: |\
Ho appena spento questo interruttore:

switch_already_off = Questo dispositivo era già spento: |\
Questo interruttore era già spento:

nothing_deactivated = Non ho trovato nulla da disattivare.

switches_deactivated = Ho trovato {count} interruttori e li ho spenti! |\
Ho spento {count} dispositivi: |\
Spengo {count} dispositivi!

multiple_items_error = Scusa, ho trovato molti dispositivi corrispondenti alla richiesta, non so come comportarmi.

no_historical_data = Non ho trovato dati storici, per favore controlla la configurazione del persistence.

set_value_single = Certo, lo imposto a {value}! |\
Certamente, ora è impostato a {value}. |\
Molto bene, {value}.

set_value_multiple = Ho trovato {count} dispositivi, li imposterò tutti a {value} - spero di aver capito correttamente! |\
{count} dispositivi impostati a {value}, come mi hai chiesto! |\
Ho impostato tutti gli {count} dispositivi che ho trovato a {value}, controlla per favore:

value_misunderstood = Hmm, non ho capito che valore mi hai chiesto di impostare. |\
Hmm... mi aspettavo un valore numerico ma non ho capito.

nothing_set_no_item = Hmm, non ho trovato dispositivi da impostare a {value}. |\
Hmm... devo aver capiro male. Non ho dispositivi da impostare a {value}.

set_color_single = Adesso è {color}! |\
Certo, l'ho impostato {color}. |\
Lo vuoi {color}? Fatto!

set_color_multiple = Ho impostato {count} dispositivi al colore {color}! |\
Cambio {count} dispositivi in {color}. |\
Fatto - {count} dispositivi sono ora {color}!

set_color_no_item = Ho bisogno che specifichi un dispositivo che supporti il colore per impostarlo a {color}... |\
Non posso impostarlo a {color}, non ho trovato dispositivi che supportano l'impostazione del colore.

set_color_unknown = Scusa, non conosco questo colore: {color}. |\
Conosco alcuni colori, ma non il {color} :)

answer_create_rule = Certamente, per favore configura la tua nuova regola come segue: |\
Certo, per favore usa quanto segue per configurare la tua nuova regola:
@@ -0,0 +1,8 @@
color_rosso = 0,100,100
color_arancione = 30,100,100
color_giallo = 60,100,100
color_verde = 120,100,100
color_ciano = 180,100,100
color_blu = 240,100,100
color_viola = 300,100,100
color_bianco = 0,0,100
@@ -0,0 +1,115 @@
# Objects
battery=Batteria,Batterie
blinds=Tapparelle,Tapparella,Avvolgibili,Avvolgibile
camera=Telecamera,Telecamere,Videocamera,Videocamere
car=Macchina,Macchine,Auto,Automobile,Automobili
cleaningrobot=Robot aspirapolvere,Robot pulizia,Roomba
door=Porta,Porte
fan=Ventilatore,Ventilatori
frontdoor=Porta anteriore,Porta di fronte,Porta di ingresso
garagedoor=Porta del garage
hvac=Riscaldamento,Aria condizionata,Climatizzatore
inverter=Inverter,Inverters,Solare
lawnmower=Robot tagliaerba,Tagliaerba,Rasaerba
lock=Chiusura,Lucchetto,Lucchetti
lightbulb=Lampadina,Lampadine,Luce,Luci,Illuminazione
motiondetector=Movimento,Sensore di movimento,Motion detector
networkappliance=Rete,Network,Server,Servers,Gateway,Gateways,Bridge,Bridges,Router,Routers
poweroutlet=Presa,Prese,Presa comndata,Presa di corrente
projector=Proiettore,Proiettori,Beamer,Beamers
radiatorcontrol=Radiatore,Radiatori
receiver=Ricevitore,Ricevitori,Ricevitore audio,Ricevitori audio,Ricevitore audio-video,Ricevitori audio-video
remotecontrol=Telecomando,Telecomandi,Controllo remoto
screen=Televisione,Televisioni,TV
sensor=Sensore,Sensori
siren=Sirena,Sirene
smokedetector=Sensore di fumo,Sensori di fumo,Sensore antincendio,Sensori antincendio
speaker=Speaker,Speakers,Altoparlante,Altoparlanti,Casse
valve=Valvola,Valvole
wallswitch=Interruttore,Interruttori
webservice=Web service,Web Services
whitegood=Lavatrice,Lavatrici,Lavastoviglie,Asciugatrice,Asciugatrici,Frigo,Frigorifero,Frigoriferi,Forno,Forni,Microonde
window=Finestra,Finestre

# Locations
cellar=Cantina
livingroom=Soggiorno,Sala
kitchen=Cucina
bedroom=Camera,Camere,Camera da letto,Camere da letto,Cameretta,Camerette
bath=Bagno
toilet=WC,WCs,water
closet=Closet,Closets
dressing=Camerino,Camerini
office=Ufficio,Uffici,Studio
groundfloor=Piano terra
firstfloor=Primo piano,Piano di sopra
attic=Attico,Mansarda
corridor=Corridoio,Corridoi,Disimpegno,Disimpegni
garage=Garage
garden=Giardino,Esterno
terrace=Terrazzo,Terrazza,Terrazzi,Terrazze,Balcone,Balconi

# Properties
temperature=Temperatura,Temperature
light=Luce,Luci,Illuminazione
luminance=Luminosità
humidity=Umidità
presence=Presenza
pressure=Pressione
smoke=Fumo
noise=Rumore
rain=Pioggia
wind=Vento
water=Acqua
co2=CO2,anidride carbonica
co=CO,monossido di carbonio
energy=Energia
power=Potenza
voltage=Tensione,Voltaggio
current=Corrente
frequency=Frequenza
gas=Gas
oil=Benzina

# Purposes
alarm=Allarme,Allarmi
firealarm=Allarme incendio,Allarmi incendio
leakage=Allarme perdita,Allarmi perdita
intrusion=Allarme intrusione,Allarmi intrusione
coalarm=Allarme CO,Allarmi CO,Allarme monossido di carbonio,Allarmi monossido di carbonio
heating=Riscaldamento,Radiatore,Radiatori,Clima,Termostato,Termostati
cooling=Raffreddamento,Rinfresco,Climatizzazione,aria condizionata,Termostato,Termostati
presence=Presenza

# Capability
color=Colore
colortemperature=Temperature di colore
volume=Volume

# Additional categories from https://www.eclipse.org/smarthome/documentation/concepts/categories.html
carbondioxyde=CO2,Anidride carbonica
soundvolume=Volume,Volume della musica
fire=Fuoco
motion=Movimento
qualityofservice=Copertura Wifi,Qualità del segnale WiFi,QoS
moisture=Umidità
mediacontrol=Multimedia,Musica
colorlight=Luce,Luci,Lampadina,Lampadine,Illuminazione
dimmablelight=Luce,Luci,Lampadina,Lampadine,Illuminazione

# Additional icons acting as categories from https://www.eclipse.org/smarthome/documentation/features/ui/iconset/classic/readme.html
cinemascreen=Schermo
cistern=Cisterna
climate=Climatizzazione,Aria condizionata
colorwheel=Colore
dryer=Asciugacapelli
faucet=Rubinetto
greenhouse=Serra
outdoorlight=Luce esterna,Luci esterne
pantry=Dispensa
pump=Pompa
rgb=Colore
sewerage=Fognatura
solarplant=Pannelli solari
wardrobe=Guardaroba
washingmachine=Lavatrice