Skip to content

Commit ea9eb59

Browse files
Added Italian translation (#3).
1 parent a7aab9c commit ea9eb59

File tree

2 files changed

+98
-6
lines changed

2 files changed

+98
-6
lines changed
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<!-- Misc used in AndroidManifest.xml -->
4+
<string name="app_name">ExprEval</string>
5+
<string name="actionEvalExpr">Valuta espressione</string> <!-- label for PROCESS_TEXT intent -->
6+
7+
<!-- ExprEval activity -->
8+
<string name="exprInputHint" >Digita espressione o comando</string>
9+
<string name="evalBtn">Valuta</string>
10+
<string name="clearContextPrompt">Eliminare tutte le funzioni e variabili non readonly?</string>
11+
<string name="contextCleared">Tutte le variabili e funzioni non-readonly sono state eliminate.</string>
12+
<string name="helpMessage">
13+
Nella casella di input è possibile digitare expressioni, definizioni di variabili o funzioni (come \"a=5\" o \"log(x,b)=log(x)/log(b)\") e comandi.
14+
I comandi disponibili sono \"help\", \"context\", \"clear\" e \"exit\". Digitare il comando \"help\" per informazioni più dettagliate. Nella casella di output, i risultati sono mostrati in &lt;font color=\"green\"&gt;verde&lt;/font&gt; e gli errori in &lt;font color=\"red\"&gt;rosso&lt;/font&gt;.
15+
I passaggi sono mostrati nel colore di default di sistema, e l\'input è riscritto in &lt;font color=\"yellow\"&gt;giallo&lt;/font&gt; (entrambi possono essere disabilitati dal menu).
16+
</string>
17+
18+
<!-- Menu -->
19+
<string name="context">Contesto</string>
20+
<string name="clearContext">Svuota contesto</string>
21+
<string name="clearOutput">Svuota output</string>
22+
<string name="showSteps">Mostra passaggi</string>
23+
<string name="echoInput">Riscrivi input</string>
24+
<string name="help">Aiuto</string>
25+
26+
<!-- ContextDialogFragment-->
27+
<string name="newContextItem">Nuovo&#8230;</string>
28+
<string-array name="addVariableFunction">
29+
<item>Aggiungi variabile</item>
30+
<item>Aggiungi funzione</item>
31+
</string-array>
32+
<string name="contextItemDeletePrompt">Eliminare \"%s\" ?</string>
33+
<string name="contextItemDeleted">\"%s\" è stata eliminata.</string>
34+
35+
<!-- both EditFunctionDialogFragment and EditVariableDialogFragment -->
36+
<string name="name">Nome</string>
37+
<string name="readonlyCheckbox">Sola lettura/readonly (se selezionato, non si potrà modificare o eliminare questo elemento finchè l\'applicazione non viene riavviata)</string>
38+
39+
<!-- EditVariableDialogFragment -->
40+
<string name="value">Valore</string>
41+
<string name="varNewValue">%1$s vale ora %2$s.</string>
42+
43+
<!-- EditFunctionDialogFragment -->
44+
<string name="expression">Espressione</string>
45+
<string name="arguments">Argomenti (tap per rimuovere)</string>
46+
<string name="argumentHint">Digita nome argomento</string>
47+
<string name="addArgument">Aggiungi argomento</string>
48+
<string name="invalidArgName">Nome di argomento non valido</string>
49+
<string name="functionNewDef">%1$s è ora definita come %2$s.</string>
50+
51+
<!-- ExprEvalDialog activity -->
52+
<string name="expressionColon">Espressione: </string>
53+
<string name="evalLog">Passaggi eseguiti: </string>
54+
<string name="result">Risultato: </string>
55+
<string name="okToReplace">Tocca OK per sostituire l\'espressione con il risultato.</string>
56+
<string name="close">Chiudi</string>
57+
<string name="evalFailed"> impossibile valutare l\'espressione.</string>
58+
59+
<!-- Various messages used by the java-expr-eval library (https://github.com/gianluca-nitti/java-expr-eval) -->
60+
<string name="emptyExpr">Un\'espressione vuota è stata trovata.</string>
61+
<string name="emptySymName">La stringa vuota non è un identificatore valido.</string>
62+
<string name="errorPrefix">Errore: %s</string>
63+
<string name="evalStep">%1$s vale %2$s</string>
64+
<string name="exprEndReached">Una sotto-espressione era attesa, ma è stata raggiunta la fine dell\'espressione.</string>
65+
<string name="failedStoreResult">Attenzione: impossibile memorizzare il risultato. Motivo: %s</string>
66+
<string name="incorrectDelete">Sintassi errata. Per eliminare una funzione, è necessario specificare il numero di argomenti (es. \"fun(2)=\" per eliminare \"fun(x, y)\").</string>
67+
<string name="interactiveHelp">
68+
Le stringhe accettate sono espressioni, assegnamenti e comandi.
69+
Un\'espressione può essere formata da numeri interi o decimali, gli operatori binari +,-,*,/,^, variabili, funzioni e parentesi tonde.
70+
Un nome di variabile è una stringa di una o più lettere e/o underscore. I comandi sono parole riservate e non possono essere usati come nomi di variabili.
71+
Quando un\'espressione viene valutata senza errori, il risultato viene mostrato e memorizzato nella variabile \"ans\".
72+
Un assegnamento di variabile è formato da un nome di variabile seguito dal simbolo = e da un\'espressione il cui risultato verrà assegnato alla variabile.
73+
Un assegnamento vuoto (nella forma \"someVariable=\") elimina la variabile.
74+
Un assegnamento di funzione è formato da un nome di funzione con i relativi parametri, seguito da un = e da un\'espressione, es.\"sum(x,y)=x+y\".
75+
Una funzione può essere eliminata con un assegnamento vuoto; il numero di argomenti deve essere specificato, es. \"sum(2)=\" per eliminare la funzione \"sum\" definita su due argomenti.
76+
Un assegnamento (di variabile o di funzione) può essere preceduto dalla parola \"readonly\" per impedire che venga modificata o eliminata, es. \"readonly x=1\", \"readonly square(a)=a^2\".
77+
I comandi sono: context (stampa tutte le variabili e le funzioni definite), clear (elimina tutte le variabili e le funzioni non-readonly), help (mostra questo messaggio) e exit (chiude l\'applicazione).
78+
</string>
79+
<string name="invalidOperator">Operatore sconosciuto \'%s\'.</string>
80+
<string name="invalidSymName">\"%1$s\" non è un\'identificatore valido perché contiene il carattere \'%2$s\'.</string>
81+
<string name="onlyOneEquality">Un assegnamento può contenere un solo operatore =.</string>
82+
<string name="operatorExpected">Un operatore era atteso, ma è stata trovata un\'espressione.</string>
83+
<string name="operatorFound">Una sotto-espressione era attesa, ma un\'operatore è stato trovato.</string>
84+
<string name="parenthesisMismatch">Le parentesi aperte e chiuse non corrispondono.</string>
85+
<string name="readonlyFunc">La funzione \"%1$s\" è definita come read-only per %2$s argomenti.</string>
86+
<string name="readonlyVar">La variabile \"%s\" è definita come read-only.</string>
87+
<string name="reservedWord">%s è una parola riservata e non può essere usata come identificatore.</string>
88+
<string name="rewriteStep">%1$s può essere riscritto come %2$s</string>
89+
<string name="undefinedFunc">La funzione \"%1$s\" non è definita per %2$s argomenti.</string>
90+
<string name="undefinedVar">La variabile \"%s\" non è definita.</string>
91+
<string name="unknownChar">Carattere non riconosciuto %s.</string>
92+
</resources>

app/src/main/res/values/strings.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<string name="clearContextPrompt">Do you want to delete all non-readonly functions and variables?</string>
1010
<string name="contextCleared">All non-readonly variables and functions have been deleted.</string>
1111
<string name="helpMessage">
12-
In the input box you can type expressions, variable or function assignments (like &quot;a=5&quot; or &quot;log(x,b)=log(x)/log(b)&quot;) and commands.
13-
The available commands are &quot;help&quot;, &quot;context&quot;, &quot;clear&quot; and &quot;exit&quot;. Type &quot;help&quot; in the input box for more detailed instructions. In the output box, results are shown in &lt;font color=&quot;green&quot;&gt;green&lt;/font&gt; and errors in &lt;font color=&quot;red&quot;&gt;red&lt;/font&gt;.
14-
Evaluation steps are shown in default color, and the input is echoed in &lt;font color=&quot;yellow&quot;&gt;yellow&lt;/font&gt; (both can be disabled from the menu).
12+
In the input box you can type expressions, variable or function assignments (like \"a=5\" or \"log(x,b)=log(x)/log(b)\") and commands.
13+
The available commands are \"help\", \"context\", \"clear\" and \"exit\". Type \"help\" in the input box for more detailed instructions. In the output box, results are shown in &lt;font color=\"green\"&gt;green&lt;/font&gt; and errors in &lt;font color=\"red\"&gt;red&lt;/font&gt;.
14+
Evaluation steps are shown in default color, and the input is echoed in &lt;font color=\"yellow\"&gt;yellow&lt;/font&gt; (both can be disabled from the menu).
1515
</string>
1616

1717
<!-- Menu -->
@@ -33,7 +33,7 @@
3333

3434
<!-- both EditFunctionDialogFragment and EditVariableDialogFragment -->
3535
<string name="name">Name</string>
36-
<string name="readonlyCheckbox">Read-only (if checked, you won\'t be able to edit or delete this until the application is restarted.)</string>
36+
<string name="readonlyCheckbox">Read-only (if checked, you won\'t be able to edit or delete this until the application is restarted)</string>
3737

3838
<!-- EditVariableDialogFragment -->
3939
<string name="value">Value</string>
@@ -66,14 +66,14 @@
6666
<string name="interactiveHelp">
6767
Accepted statements are expressions, assignments and commands.
6868
An expression can be formed by integer or decimal numbers, the +,-,*,/,^ binary operators, variables, functions and parenthesis.
69-
A variable is a string of one or more letters and/or underscores. Variables can\'t be named as commands, which are reserved words.
69+
A variable name is a string of one or more letters and/or underscores. Variables can\'t be named as commands, which are reserved words.
7070
When an expression is successfully evaluated, it\'s result is displayed and automatically assigned to the \"ans\" variable, so it can be accessed from the next statement.
7171
A variable assignment is formed by a variable name followed by the = symbol and an expression, which is evaluated and bound to that variable.
7272
An empty assignment (in the form \"someVariable=\") deletes the variable.
7373
A function assignment is formed by a function name and its parameters, followed by the = symbol and an expression, which is bound to that function, e.g.\"sum(x,y)=x+y\".
7474
A function can be deleted with an empty assignment; the number of arguments must be specified, e.g. \"sum(2)=\" to delete the function \"sum\" defined on two arguments.
7575
An assignment (of variable or function) can be prepended with the \"readonly\" word to prevent it to be modified or deleted, e.g. \"readonly x=1\", \"readonly square(a)=a^2\".
76-
The commands are: context (prints all the defined variables and functions), clear (deletes all the non-readonly variables and functions), help (shows this message) and exit (stops reading input).
76+
The commands are: context (prints all the defined variables and functions), clear (deletes all the non-readonly variables and functions), help (shows this message) and exit (closes the application).
7777
</string>
7878
<string name="invalidOperator">Unknown operator \'%s\'.</string>
7979
<string name="invalidSymName">\"%1$s\" isn\'t a valid symbol name because it contains the \'%2$s\' character.</string>

0 commit comments

Comments
 (0)