Skip to content

Commit

Permalink
Added support for the Trentino dialect
Browse files Browse the repository at this point in the history
  • Loading branch information
gekoramy committed Apr 11, 2018
1 parent 2f7be14 commit 8058929
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@
*/
public class LanguageCommand extends DistinguishedUseCaseCommand {
private final static Command COMMAND_ID = new Command("language", "language_description");
private final static Locale[] languages = {Locale.ITALY, Locale.US, Locale.FRANCE, Locale.GERMANY};
private final static Locale[] languages = {
Locale.ITALY,
Locale.US,
Locale.FRANCE,
Locale.GERMANY,
};
private final static Locale trentino = new Locale.Builder().setLanguage("tn").setRegion("IT").build();

public LanguageCommand() {
super(COMMAND_ID);
Expand Down Expand Up @@ -90,8 +96,13 @@ private InlineKeyboardMarkup languagesInlineKeyboard() {
.build()));
}

buttons.add(new AbstractMap.SimpleEntry<>("Trentino", new LanguageQueryBuilder()
.setCommand(getCommand())
.setLanguage(trentino.toLanguageTag())
.build()));

return new InlineKeyboardMarkupBuilder()
.addSeparateRowsKeyboardButtons(2, buttons)
.build();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
delay=*\! L\2019\u00c8 TARDIO*
hours=ORE
refresh=AGIORNA
now=ADESS
no_transit=_Ancoi nol pasa_
no_transit_stop=_Ancoi nol pasa chi_
return=TORNAR
direct=NAR
slots_available={0} / {1} postegi voidi
slots={0} postegi
bikes_available={1} posti / {0} bici no dropade
neighbours=*Chi vizin*
introduction=*Trento Smart City* el ven s\u00f9 ensema al *ViaggiaTrentoBot*, el bot che ghe d\u00e0 na man a quei quatro tram che gira par Trent\n\u2022 El te dis subit a che ora i pasa i treni o autobus\n\u2022 El te varda subit se gh\2019\u00e8 postegi voidi\n\u2022 Vedes subit quante bici gh\2019\u00e8 en tei baic scering
commands_intro=*Par scominziar*\nToca /help
people=`{0}` che i dropa @ViaggiaTrentoBot
credits=*Credits*\nFat su da quel mago de Luca Mosetti\nEn grazie el va anca a [Fondazione Bruno Kessler](www.fbk.eu), [Smart Community Lab](www.smartcommunitylab.it) e il [Comune di Trento](www.comune.tn.it)
type=Scr\u00ecff
tap_inline=Sghicia sto boton par mandar informazion ala chat
inline_help=Serve na man con le inline features?\nSghicia su uno de sti botoni\:
help=*Serve na man*\nQuesti l\2019\u00e8 i comandi del bot\:
help_description=Te serve na man?
start_description=Tacan
bus_description=Informazion sui bus\nSf\u00f2ia le corse coi botoni col numer sota il messages\nManda en do che es par saver le fermade p\u00f9 vezine
train_description=Informazion sui treni\nSf\u00f2ia le corse coi botoni col numer sota il messages\nManda en do che es par saver le fermade p\u00f9 vezine
bike_description=Informazion su le bici\nManda en do che es par saver le bici p\u00f9 vizine
parking_description=Informazion sui postegi\nManda en do che es par saver i postegi p\u00f9 vizini
contribute_description=Come dar na man
language_description=Parla en ten altra maniera
languages=Ciacero en te ste lingue chi
browse=Sf\u00f2ia le corse coi botoni col numer sota il messages
full=VARDA TUT
choose_stop=Dime en do che te fermes
choose_hour=Dime l\u2019ora
filter=SCERNISI
contribute=Vos dar na man a far @ViaggiaTrentoBot? \nDine robe nove o se no va qualcos, dane na man val\u00e0\! E dighe ai to soci de droparlo\!
donates=Ofri na bira a chi che el l\2019ha fat
report=Dame idee / Gh\2019\u00e8 qualcos che no va
update=Avvisi di Trentino Trasporti
translate=Aideme a parlar meio
share=Mandeghelo ai to soci
news=*Robe nove*\nSe vos saver subit se quei dele coriere i cambia su qualcos, daghe n\2019ociada a @ViaggiaTrentoChannel

0 comments on commit 8058929

Please sign in to comment.