Subversion Repositories wimsdev

Rev

Rev 8204 | Rev 14592 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
!if $wims_read_parm!=slib_header
2
 !goto proc
3
!endif
4158 bpr 4
 
4349 bpr 5
slib_author=Gang, XIAO
4158 bpr 6
 
4507 bpr 7
slib_example=fr\
8
\
4054 guerimand 9
en,girl,3\
11575 czzmrn 10
nl,boy girl,5\
11
it,boy,4
20 reyssat 12
!exit
13
 
8204 bpr 14
!! third parm to get many firstname distinct in one time (FG)
4054 guerimand 15
!! Maj french fname by Jérémy Lebas
16
 
20 reyssat 17
:proc
8204 bpr 18
!!should be calculate from the list ?
19
slib_bound=35
20 reyssat 20
 
4054 guerimand 21
slib_test=!itemcnt $wims_read_parm
22
!if $slib_test=3
23
 !distribute item $wims_read_parm into slib_lang,slib_genre,slib_nb
8204 bpr 24
 slib_genre=!singlespace $slib_genre
25
 !bound slib_genre within boy, girl, boy girl, girl boy default boy
4054 guerimand 26
 slib_langs=!words2items $wims_site_languages
27
 !bound slib_lang within $slib_langs default en
28
!else
29
!! old configuration parameters needed to be saved until modules use this slib has been change
30
 slib_opt=!items2words $wims_read_parm
31
 slib_genre=$empty
32
 !if boy iswordof $slib_opt
33
  slib_genre=boy
20 reyssat 34
 !endif
4054 guerimand 35
 !if girl iswordof $slib_opt
36
  slib_genre=$slib_genre girl
37
 !endif
38
 slib_langs=!words2items $wims_site_languages
39
 slib_lang=$module_language
40
 !for slib_l in $slib_langs
41
  !if $slib_l iswordof $slib_opt
42
   slib_lang=$slib_l
43
  !endif
44
 !next slib_l
45
!endif
8204 bpr 46
!bound slib_nb between 1 and $slib_bound default 1
4508 bpr 47
!default slib_genre=!randitem boy,girl
4507 bpr 48
!if $lang iswordof fr nl
49
 !default slib_lang=$lang
50
!endif
20 reyssat 51
!if $slib_lang=fr
4054 guerimand 52
 slib_boy=Alain, André, Bernard, Bertrand, \
20 reyssat 53
  Carlos, Charles, Christophe, Claude, \
54
  Didier, Fabrice, François, Frédéric, Georges, \
55
  Gérard, Guillaume, Jacques, Jean, Joseph, \
56
  Laurent, Louis, Luc, Marc, \
57
  Matthieu, Michel, Olivier, Patrick, Paul, Philippe, Pierre, \
4054 guerimand 58
  Richard, Robert, Thierry, Xavier, \
59
 Stephan, Jordy, Alexandre, Emrullah, Esteban, Florent, Sacha, Antonin, Nicolas, Dorian, Ryan, Camille, \
60
 Logan, Anthony, Mel, Louis, Jordan, Jean-Christophe, Smaïn, Tristan, Louis, Thomas, Kohai, Thibault, Mouhammad, \
61
 Rudy, Romuald, Clément, Erwan, Hugo, Olivier, Thibault, Nicolas, Medhi, Valentin, Alan, Baptiste, Ambroise, Alexandre, \
62
 Dorian, Axel, Logan, Noam, Adem, Alric, Alexandre, Anthony, Quentin, Alexandre, Laurent, Pierre, Jayson, Remy, Aymen, Cyril, \
63
 Maxime, Magomed, Yannis, Louis, Sébastien, Thibault, Steven, Thomas, Mike, Nathan, Alexis, Quentin, Sébastien, Thomas,\
8204 bpr 64
 Hind, Pablo, Alexy, Rim, Enzo, Pierre, Guillaume, Benjamin, Jérémy, Jimmy, Thomas, Prasanth, Daniel, Théo, Ruben, Matthieu, \
4054 guerimand 65
 Paul, Francis, Florian, Clément, Théo, Nour-El-Houda, Sofiane, Rayane, Kevin, Téo, Yoan, Damien, Kevin, Christian, Kain, Hugo, \
8204 bpr 66
 Anthony, Deniz, Ludovic, Olivier, Romain, Cedric, Thomas, William, Levi, Lorenzo, Jonathan, Joachim, Gaël, Bilal, Jérémy, Raphaël, Florent,\
4054 guerimand 67
 Marvin, Wajdi, Florian, Matteo, Nassim, Hamza, Fabian, Idris, Allan, Marwanne, Abdoulla, Thomas, Lilian, Faycel, Sébastien, Johan, Kevin, Benjamin, Thomas, Akromat, Diye, Majdi, Medhi,\
68
 Christopher, Thomas, Walid
69
 
70
 slib_girl=Alice, Anne, Bernadette, \
20 reyssat 71
  Caroline, Catherine, Céline, Claire, Cloé, Denise, \
72
  Emmanuelle, Frédérique, Jeanne, Jeannine, Joséphine, Julie,\
73
  Laeticia, Laure, Lucie, Marie, Marion, Mireille, \
4054 guerimand 74
  Patricia, Rose, Sophie, Sylvie, \
4509 bpr 75
 Lorna, Leslie, Maëlys, Marie, Malia, Pauline, Lamia, Alexia, Kenssy-Maïlys, Emma, Pauline, Eléonore, Elise, Séréna, Maé, \
4054 guerimand 76
 Manon, Aude, Amélie, Myrina, Eva, Chiara, Caroline, Caroline, Ambre, Oriane, Marie-Anaïs, Clémence, Manon, Floriane, Camille, \
77
 Willow, Sarah, Alicia, Romane, Lucie, Marine, Dorine, Maeva, Manon, Chloe, Laetitia, Lea, Soumeya, Sarah, Manuela, Olivia, Yael,\
78
 Charlotte, Marine, Sandy, Chloé, Doris, Erika, Marion, Lola, Chavely, Myriam, Elisa, Manuela, Isabelle, Fanny, Amandine, Elisa, Maia, \
79
 Jade, Christel, Barbara, Jade, Maissa, Eva, Julie, Elsa, Melissa, Andrea, Carla, Mariama, Esther, Elise, Loane, Laurie, Anna, Manoa, \
80
 Elena, Léonie, Célia, Chloé, Romane, Salomé, Pauline, Setareh, Aurélia, Marine, Cherrine, Vanessa, Ornella, Charlotte, Christelle, \
8204 bpr 81
 Victoria, Noémie, Laurie, Juliette, Marion, Lena, Laura, Emilie, Anne-Laure, Claire, Imen, Nina, Andrea, Clémentine, Laëtitia, Lory, \
4054 guerimand 82
 Ophélie, Cathy, Paula, Margot, Célia, Estelle, Jade, Melody, Amira, Inès, Inès, Sarah, Kaouthar, Nausica, Jacqueline,Lina, Maeva, Lizie, \
83
 Marissa, Noemie, Alessia, Marie, Luana, Rhita, Marion, Melissa, Kelly, Erika, Océane, Yasmina, Clélia, \
4509 bpr 84
 Noellia, Allison, Amel, Alicia, Maeva, Camille, Alexia, Inès, Christina, Iris, Cynthia, Inès
20 reyssat 85
!endif
86
 
87
!if $slib_lang=nl
88
 
8204 bpr 89
 slib_boy=Jan,Piet,Klaas,Gerard,Jonny,\
90
 Sjonnie,Wim,Henk,Willem,Willem-Jan,\
91
 Koos,Paul,Robin,Bart,Dani,\
92
 Edgar,Jacob,Willem,Mohammed,Ali,\
93
 Joost,Johan,Karel,Martin,Hans,\
94
 Frederik,Bennie,Benno,Freddy,Jelmer,\
95
 Rinus,Marinus,Roderick,Simon,Anton,\
96
 Ton,Tom,Nico
20 reyssat 97
 
8204 bpr 98
 slib_girl=Marlies,Marloes,Anna,Hanna,Johanna,\
99
  Aaltje,Mariska,Roelie,Joke,Ellie,\
100
  Elli,Evelien,Vera,Kristel,Christel,\
101
  Chantal, Loeki,Aafke,Marijke,Petra,\
102
  Olga,Sien,Jo,Karlijn,Katinka,\
103
  Bonnie,Carolien, Anita,Hedwig,Karen,\
104
  Karin,Koosje,Rosa,Lidwina,Astrid,\
105
  Lenie,Lena,Maria,Eva,Marijke,\
106
  Anneke,Alie
20 reyssat 107
!endif
108
 
11575 czzmrn 109
!if $slib_lang=it
110
 slib_boy=Achille, Adriano, Alberto, Alberto, Aldo, Alessandro, Alessio,\
111
Alfonso, Amedeo, Andrea, Angelo, Antonio, Attilio, Beniamino, Biagio,\
112
Boris, Bruno, Carlo, Cesare, Corrado, Cosimo, Daniele, Dario, Davide,\
113
Edoardo, Elio, Emilio, Enrico, Ercole, Ermes, Ettore, Fabio, Fabrizio,\
114
Federico, Felice, Filippo, Flavio, Fortunato, Francesco, Franco,\
115
Fulvio, Furio, Gabriele, Gaetano, Gastone, Gennaro, Giorgio, Giovanni,\
116
Giuliano, Guglielmo, Guido, Ignazio, Isacco, Italo, Leandro, Leonardo,\
117
Livio, Lorenzo, Luca, Luca, Luigi, Marcello, Marco, Marino, Mario,\
118
Martino, Massimo, Matteo, Mauro, Michele, Narciso, Nicola, Norberto,\
119
Orazio, Oreste, Orlando, Oscar, Osvaldo, Otello, Ottavio, Paolo,\
120
Paride, Pasquale, Pietro, Raffaele, Raimondo, Renato, Riccardo,\
121
Roberto, Rocco, Rodolfo, Romano, Rosario, Ruggero, Salvatore, Samuele,\
122
Sebastiano, Sergio, Silvano, Simone, Sisto, Stefano, Telemaco, Teseo,\
123
Tiberio, Tiziano, Tommaso, Tullio, Ugo, Ulderico, Ulisse, Umberto,\
124
Urbano, Valentino, Valerio, Vincenzo, Virginio, Vittorio, Walter,\
125
Zaccaria, Zeno
126
 
127
 slib_girl=Ada, Agnese, Alessandra, Alice, Amelia, Angelica, Antonia, Antonietta,\
128
Arianna, Barbara, Beatrice, Bianca, Carla, Caterina, Cecilia, Chiara,\
129
Clara, Cristina, Diana, Dora, Elena, Eleonora, Eliana, Elisabetta,\
130
Eloisa, Elvira, Emilia, Enrica, Ester, Eva, Fabrizia, Federica,\
131
Flavia, Flora, Franca, Francesca, Fulvia, Gabriella, Gaia, Giada,\
132
Ginevra, Gioia, Giovanna, Giuliana, Grazia, Ida, Ilaria, Ines, Iole,\
133
Irene, Irma, Isabella, Isotta, Laura, Lavinia, Leila, Letizia, Licia,\
134
Lidia, Luana, Luisa, Maddalena, Mara, Marcella, Margherita, Maria,\
135
Marianna, Marina, Marisa, Marta, Marzia, Matilde, Maura, Milena,\
136
Moira, Monica, Nadia, Natalia, Ofelia, Olga, Olimpia, Olivia, Ornella,\
137
Orsola, Ortensia, Pamela, Paola, Patrizia, Rachele, Raffaella,\
138
Rebecca, Regina, Renata, Rita, Roberta, Romina, Rosa, Rossana,\
139
Sabrina, Sara, Serena, Silvana, Simona, Sofia, Stefania, Stella,\
140
Susanna, Tamara, Tania, Tatiana, Tecla, Teresa, Tiziana, Valentina,\
141
Valeria, Veronica, Viola, Virginia, Vittoria, Viviana
142
 
143
!endif
144
 
8204 bpr 145
!default slib_boy=Andrew, Anthony, Bill, Brian, Charles,\
146
 Charlie, Christopher,Daniel, David,  Donald,\
147
 Edward, Edwin, George, Harry, Henry,\
148
 Jack, Jacob, James, Jason, Jeff,\
149
 John, Joseph, Kenneth, Kevin, Mark,\
150
 Michael, Oliver, Oscar, Paul, Peter,\
151
 Richard, Robert, Ronald, Steven, Thomas, William
20 reyssat 152
 
153
 
8204 bpr 154
!default slib_girl=Alice, Amelia, Anna, Ava, Barbara,\
155
 Betty, Carol, Catherine, Deborah, Diana,\
156
 Donna, Dorothy, Elisabeth, Emily, Helen,\
157
 Isla, Isabella, Jane, Jennifer, Jessica,\
158
 Karen, Kimberly, Laura, Linda,  Lisa,\
159
 Margaret, Marguerite, Maria, Marilyn, Mary,\
160
 Mia, Michelle, Nancy, Patricia, Olivia,\
161
 Rose, Ruth, Sarah, Sandra, Sharon,\
162
 Sophie, Susan, Victoria, Virginia
163
 
164
 
4054 guerimand 165
slib_out=$empty
166
!if girl iswordof $slib_genre
167
 slib_out=!append item $slib_girl to $slib_out
20 reyssat 168
!endif
4054 guerimand 169
!if boy iswordof $slib_genre
170
 slib_out=!append item $slib_boy to $slib_out
20 reyssat 171
!endif
4054 guerimand 172
slib_out=!listuniq $slib_out
173
slib_out=!shuffle $slib_out
174
slib_out=!item 1 to $slib_nb of $slib_out
8204 bpr 175