Skip to content

Commit 1411157

Browse files
authored
Merge pull request #4 from DBChoco/master
Added French and Spanish
2 parents 755c3f4 + 09f47dc commit 1411157

File tree

2 files changed

+240
-2
lines changed

2 files changed

+240
-2
lines changed

options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def get_clock_formats(self):
9696
return ['12h', '24h']
9797

9898
def get_languages(self):
99-
return ['English', 'Arabic']#, 'French']
99+
return ['English', 'Arabic', 'French', 'Spanish']
100100

101101
def get_fajr_adhans(self):
102102
dirfiles = os.listdir(os.path.dirname(os.path.realpath(__file__)) + "/audio/Fajr/")

translate.py

Lines changed: 239 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,243 @@ def translate_text(text):
131131
}
132132
frenchTranslations = {
133133
'Silaty': 'Silaty',
134-
# TODO: complete french translation
134+
'Fajr': 'Fajr',
135+
'Shuruk': 'Lever du Soleil',
136+
'Dhuhr': 'Dhuhr',
137+
'Asr': 'Asr',
138+
'Maghrib': 'Maghrib',
139+
'Isha': 'Isha',
140+
'System': 'Système',
141+
'Start Minimized:': "Lancer l'application minimisée",
142+
'Daylight Saving Time:': "Heure d'été:",
143+
'Clock Format:': "Format de l'heure",
144+
'12h': '12 heures',
145+
'24h': '24 heures',
146+
'Adjust Hijri Calendar:': 'Ajuster le calendrier Hijri',
147+
'Language:': 'Langue:',
148+
'English': 'Anglais',
149+
'French': 'Français',
150+
'Arabic': 'Arabe',
151+
'Spanish': 'Espagnol'
152+
'Notifications': 'Notifications',
153+
'Show Time left with Icon:': 'Montrer temps restant avec icone:',
154+
'Enable audio notifications:': 'Activer les notifications audio:',
155+
'Time before notification:': 'Temps avant la notification:',
156+
'Fajr Adhan:': 'Adhan de Fajr:',
157+
'Normal Adhan:': 'Adhan normal:',
158+
'Jurisprudence': 'Jurisprudence',
159+
'Calculation Method:': 'Methode de Calcul:',
160+
'Makkah': 'Makkah',
161+
'Egypt': 'Egypte',
162+
'Karachi': 'Karachi',
163+
'ISNA': 'ISNA (Amérique du Nord)',
164+
'MWL': 'Ligue Musulmane Mondiale',
165+
'Madhab:': 'Madhab:',
166+
'Hanafi': 'Hanafi',
167+
'Default': 'Défaut',
168+
'Location': 'Location',
169+
'City:': 'Ville:',
170+
'Latitude:': 'Latitude:',
171+
'Longitude:': 'Longitude:',
172+
'Time Zone:': 'Fuseau Horaire:',
173+
'Location: %s': 'Location: %s',
174+
'Qibla is %.2f° from True North': 'La Qibla est à %.2f du vrai Nord',
175+
'Fajr\t\t\t\t\t%s': 'Fajr\t\t\t\t\t%s',
176+
'Shuruk\t\t\t%s': 'Lever du Soleil\t\t\t\t%s',
177+
'Dhuhr\t\t\t\t%s': 'Dhurh\t\t\t\t\t%s',
178+
'Asr\t\t\t\t\t%s': 'Asr\t\t\t\t\t%s',
179+
'Maghrib\t\t\t\t%s': 'Maghrib\t\t\t\t\t%s',
180+
'Isha\t\t\t\t%s': 'Isha\t\t\t\t\t%s',
181+
'Next Prayer': 'Prochaine Prière:',
182+
'About': 'À propos',
183+
'Settings': 'Options',
184+
'Quit': 'Quitter',
185+
'%s until %s': '%s avant %s',
186+
'%s in %s': '%s dans %s',
187+
'%s Hours': '%s Heures',
188+
'%s Minutes': '%s Minutes',
189+
'%s Hours and %s Minutes': '%s Heures et %s Minutes',
190+
'%shr': '%sheures',
191+
'%smin': '%smin',
192+
'%shr %smin': '%sheures %smin',
193+
'GitHub Project Page': 'Page GitHub du Projet',
194+
'A neat Prayer Time Reminder App.\n Simple and complete so no prayer is missed': "Une application polie de rappel pour le temps de Prièr.\n Simple et complète pour qu'aucune prière ne soit ratée",
195+
'Copyright © %s Silaty Team': 'Copyright © %s Silaty Team',
196+
'Silaty needs to be restarted, restart now?': "Silaty a besoin d'être redémarrée, redémarrer maintenent ?",
197+
'Hijri:': 'Hijri:',
198+
'Sunday': 'Dimanche',
199+
'Monday': 'Lundi',
200+
'Tuesday': 'Mardi',
201+
'Wednesday': 'Mercredi',
202+
'Thursday': 'Jeudi',
203+
'Friday': 'Vendredi',
204+
'Saturday': 'Saturday',
205+
'SundayShort': 'D',
206+
'MondayShort': 'L',
207+
'TuesdayShort': 'Ma',
208+
'WednesdayShort': 'Me',
209+
'ThursdayShort': 'J',
210+
'FridayShort': 'V',
211+
'SaturdayShort': 'S',
212+
'January': 'Janvier',
213+
'February': 'Février',
214+
'March': 'Mars',
215+
'April': 'Avril',
216+
'May': 'Mai',
217+
'June': 'Juin',
218+
'July': 'Juillet',
219+
'August': 'Aôut',
220+
'September': 'Septembre',
221+
'October': 'Octobre',
222+
'November': 'Novembre',
223+
'December': 'Decembre',
224+
'Muharram': 'Muharram',
225+
'Safar': 'Safar',
226+
'Rabi al Awwal': 'Rabi al Awwal',
227+
'Rabi al Akhira': 'Rabi al Akhira',
228+
'Jumada al Ula': 'Jumada al Ula',
229+
'Jumada al Akhira': 'Jumada al Akhira',
230+
'Rajab': 'Rajab',
231+
'Sha\'ban': 'Sha\'ban',
232+
'Ramadhan': 'Ramadhan',
233+
'Shawwal': 'Shawwal',
234+
'Dhu al Qa\'da': 'Dhu al Qa\'da',
235+
'Dhu al Hijja': 'Dhu al Hijja',
236+
'Qibla direction :': 'Direction de la Qibla :',
237+
'Country : %s': 'Pays : %s',
238+
'City : %s': 'Ville : %s',
239+
'Search:': 'Chercher:',
240+
'Check your location on %s': 'Vérifiez votre location sur %s',
241+
'Get Ready': 'Préparez-vous',
242+
'%s minutes left until the %s prayer.': '%s minutes avant la prière de %s.',
243+
'Prayer time for %s': 'Temps de prière pour %s',
244+
'It\'s time for the %s prayer.': "C'est le temps pour la prière de %s.",
245+
'%s, %s': '%s، %s',
246+
'%s - %s, %s / %s': '%s - %s، %s / %s',
247+
'AM': 'AM', #The correct should be Avant midi and Après midi, but it's too long.
248+
'PM': 'PM',
249+
'Apply': 'Appliquer',
250+
'Cancel': 'Annuler',
251+
}
252+
spanishTranslations = {
253+
'Silaty': 'Silaty',
254+
'Fajr': 'Fajr',
255+
'Shuruk': 'Amanecer',
256+
'Dhuhr': 'Dhuhr',
257+
'Asr': 'Asr',
258+
'Maghrib': 'Maghrib',
259+
'Isha': 'Isha',
260+
'System': 'Systema',
261+
'Start Minimized:': "Inicial Minimizado:",
262+
'Daylight Saving Time:': "Horario de verano:",
263+
'Clock Format:': "Formato de reloj:",
264+
'12h': '12 horas',
265+
'24h': '24 horas',
266+
'Adjust Hijri Calendar:': 'Ajustar el Calendario Hijri:',
267+
'Language:': 'Idioma:',
268+
'English': 'Ingles',
269+
'French': 'Frances',
270+
'Arabic': 'Arabe',
271+
'Spanish': 'Español'
272+
'Notifications': 'Notificaciones',
273+
'Show Time left with Icon:': 'Monstrar tiempo restante con icono:',
274+
'Enable audio notifications:': 'Activar las notificaciones audio:',
275+
'Time before notification:': 'Tiempo antes de la notificacion:',
276+
'Fajr Adhan:': 'Adhan de Fajr:',
277+
'Normal Adhan:': 'Adhan normal:',
278+
'Jurisprudence': 'Jurisprudencia',
279+
'Calculation Method:': 'Método de cálculo:',
280+
'Makkah': 'Meca',
281+
'Egypt': 'Egipto',
282+
'Karachi': 'Karachi',
283+
'ISNA': 'ISNA (Norteamérica)',
284+
'MWL': 'Liga Mundial Musulmana',
285+
'Madhab:': 'Madhab:',
286+
'Hanafi': 'Hanafi',
287+
'Default': 'Defecto',
288+
'Location': 'Locacion',
289+
'City:': 'Ciudad:',
290+
'Latitude:': 'Latitud:',
291+
'Longitude:': 'Longitud:',
292+
'Time Zone:': 'Zona horaria:',
293+
'Location: %s': 'Locacion: %s',
294+
'Qibla is %.2f° from True North': 'La Qibla esta a %.2f del verdadero Norte',
295+
'Fajr\t\t\t\t\t%s': 'Fajr\t\t\t\t\t%s',
296+
'Shuruk\t\t\t%s': 'Amanecer\t\t\t\t%s',
297+
'Dhuhr\t\t\t\t%s': 'Dhurh\t\t\t\t\t%s',
298+
'Asr\t\t\t\t\t%s': 'Asr\t\t\t\t\t%s',
299+
'Maghrib\t\t\t\t%s': 'Maghrib\t\t\t\t\t%s',
300+
'Isha\t\t\t\t%s': 'Isha\t\t\t\t\t%s',
301+
'Next Prayer': 'Proximo rezo:',
302+
'About': 'À propos',
303+
'Settings': 'Acerca de',
304+
'Quit': 'Quitar',
305+
'%s until %s': '%s antes de %s',
306+
'%s in %s': '%s en %s',
307+
'%s Hours': '%s Horas',
308+
'%s Minutes': '%s Minutos',
309+
'%s Hours and %s Minutes': '%s Heros et %s Minutos',
310+
'%shr': '%shoras',
311+
'%smin': '%smin',
312+
'%shr %smin': '%shoras %smin',
313+
'GitHub Project Page': 'Pagina GitHub del Proyecto',
314+
'A neat Prayer Time Reminder App.\n Simple and complete so no prayer is missed': "Una excelente aplicación para los tiempos de oracion.\n Simple y completa para que no se olvide ninguna oración",
315+
'Copyright © %s Silaty Team': 'Copyright © %s Silaty Team',
316+
'Silaty needs to be restarted, restart now?': "Silaty necesita ser reiniciado, ¿reiniciar ahora?",
317+
'Hijri:': 'Hijri:',
318+
'Sunday': 'Domindo',
319+
'Monday': 'Lunes',
320+
'Tuesday': 'Martes',
321+
'Wednesday': 'Miercoles',
322+
'Thursday': 'Jueves',
323+
'Friday': 'Viernes',
324+
'Saturday': 'Sabado',
325+
'SundayShort': 'D',
326+
'MondayShort': 'L',
327+
'TuesdayShort': 'Ma',
328+
'WednesdayShort': 'Mi',
329+
'ThursdayShort': 'J',
330+
'FridayShort': 'V',
331+
'SaturdayShort': 'S',
332+
'January': 'Enero',
333+
'February': 'Febrero',
334+
'March': 'Marzo',
335+
'April': 'April',
336+
'May': 'mayo',
337+
'June': 'Junio',
338+
'July': 'Julio',
339+
'August': 'Agosto',
340+
'September': 'Septiembre',
341+
'October': 'Octubre',
342+
'November': 'Noviembre',
343+
'December': 'Diciembre',
344+
'Muharram': 'Muharram',
345+
'Safar': 'Safar',
346+
'Rabi al Awwal': 'Rabi al Awwal',
347+
'Rabi al Akhira': 'Rabi al Akhira',
348+
'Jumada al Ula': 'Jumada al Ula',
349+
'Jumada al Akhira': 'Jumada al Akhira',
350+
'Rajab': 'Rajab',
351+
'Sha\'ban': 'Sha\'ban',
352+
'Ramadhan': 'Ramadhan',
353+
'Shawwal': 'Shawwal',
354+
'Dhu al Qa\'da': 'Dhu al Qa\'da',
355+
'Dhu al Hijja': 'Dhu al Hijja',
356+
'Qibla direction :': 'Direccion de la Qibla :',
357+
'Country : %s': 'País : %s',
358+
'City : %s': 'Ciudad : %s',
359+
'Search:': 'Burcar:',
360+
'Check your location on %s': 'Consulta tu ubicación sobre %s',
361+
'Get Ready': 'Prepararse',
362+
'%s minutes left until the %s prayer.': '%s minutos antes de la oracion de %s.',
363+
'Prayer time for %s': 'Hora de la oracian para %s',
364+
'It\'s time for the %s prayer.': "Es la hora de la oracion %s.",
365+
'%s, %s': '%s، %s',
366+
'%s - %s, %s / %s': '%s - %s، %s / %s',
367+
'AM': 'AM',
368+
'PM': 'PM',
369+
'Apply': 'Aplicar',
370+
'Cancel': 'Cancelar',
135371
}
136372
englishWeekDays = {
137373
'SundayShort': 'S',
@@ -147,6 +383,8 @@ def translate_text(text):
147383
return arabicTranslations[text]
148384
elif language == 'French' and text in frenchTranslations:
149385
return frenchTranslations[text]
386+
elif language == 'Spanish' and text in spanishTranslations:
387+
return spanishTranslations[text]
150388
elif text in englishWeekDays:
151389
return englishWeekDays[text]
152390
else:

0 commit comments

Comments
 (0)