From dff7a1d01252e83c30085ad206fe4ae1a782cdaa Mon Sep 17 00:00:00 2001 From: axlt2002 Date: Tue, 14 Apr 2020 23:15:15 +0200 Subject: [PATCH] Aggiornato testi / traduzioni --- core/downloader.py | 4 ++-- core/support.py | 2 +- platformcode/download_and_play.py | 8 ++++---- platformcode/launcher.py | 2 +- resources/language/English/strings.po | 16 ++++++---------- resources/language/Italian/strings.po | 26 +++++++++++--------------- service.py | 4 ++-- specials/setting.py | 4 ++-- 8 files changed, 29 insertions(+), 37 deletions(-) diff --git a/core/downloader.py b/core/downloader.py index 1dc652f5..39f60d39 100644 --- a/core/downloader.py +++ b/core/downloader.py @@ -116,7 +116,7 @@ class Downloader(object): self.speed[1], self.speed[2], self.connections[0], self.connections[1]) line3 = config.get_localized_string(60202) % (self.remaining_time) - progreso.update(int(self.progress), line1, line2 + line3) + progreso.update(int(self.progress), line1, line2 + " " + line3) self.__update_json() finally: progreso.close() @@ -266,7 +266,7 @@ class Downloader(object): self.__get_download_info__() try: - logger.info("Descarga inicializada: Partes: %s | Ruta: %s | Archivo: %s | Tamaño: %s" % \ + logger.info("Download started: Parts: %s | Path: %s | File: %s | Size: %s" % \ (str(len(self._download_info["parts"])), self._pathencode('utf-8'), \ self._filenameencode('utf-8'), str(self._download_info["size"]))) except: diff --git a/core/support.py b/core/support.py index fb8715dc..fd7179ac 100755 --- a/core/support.py +++ b/core/support.py @@ -1179,7 +1179,7 @@ def channel_config(item, itemlist): itemlist.append( Item(channel='setting', action="channel_config", - title=typo("Configurazione Canale color kod bold"), + title=typo(config.get_localized_string(60587), 'color kod bold'), config=item.channel, folder=False, thumbnail=get_thumb('setting_0.png')) diff --git a/platformcode/download_and_play.py b/platformcode/download_and_play.py index 33de8da8..c356bc4e 100644 --- a/platformcode/download_and_play.py +++ b/platformcode/download_and_play.py @@ -51,10 +51,10 @@ def download_and_play(url, file_name, download_path): while not cancelled and download_thread.isAlive(): dialog.update(download_thread.get_progress(), config.get_localized_string(60313), - "Velocidad: " + str(int(old_div(download_thread.get_speed(), 1024))) + " KB/s " + str( - download_thread.get_actual_size()) + "MB de " + str( + config.get_localized_string(60314) + str(int(old_div(download_thread.get_speed(), 1024))) + " KB/s " + str( + download_thread.get_actual_size()) + config.get_localized_string(60316) + str( download_thread.get_total_size()) + "MB", - "Tiempo restante: " + str(downloadtools.sec_to_hms(download_thread.get_remaining_time()))) + config.get_localized_string(60202) % (str(downloadtools.sec_to_hms(download_thread.get_remaining_time())))) xbmc.sleep(1000) if dialog.iscanceled(): @@ -296,7 +296,7 @@ class DownloadThread(threading.Thread): logger.info("Detectado fichero force_stop, se interrumpe la descarga") f.close() - xbmc.executebuiltin((u'XBMC.Notification("Cancelado", "Descarga en segundo plano cancelada", 300)')) + xbmc.executebuiltin("XBMC.Notification(%s,%s,300)" % (config.get_localized_string(60319),config.get_localized_string(60320))) return diff --git a/platformcode/launcher.py b/platformcode/launcher.py index 60a657a1..d80b3950 100644 --- a/platformcode/launcher.py +++ b/platformcode/launcher.py @@ -518,7 +518,7 @@ def play_from_library(item): item.show_server = True from specials import videolibrary, autoplay - p_dialog = platformtools.dialog_progress_bg(config.get_localized_string(20000), config.get_localized_string(70004)) + p_dialog = platformtools.dialog_progress_bg(config.get_localized_string(20000), config.get_localized_string(60683)) p_dialog.update(0, '') itemlist = videolibrary.findvideos(item) diff --git a/resources/language/English/strings.po b/resources/language/English/strings.po index df3de7c4..85ed8b45 100644 --- a/resources/language/English/strings.po +++ b/resources/language/English/strings.po @@ -509,17 +509,13 @@ msgid "Path: " msgstr "" msgctxt "#50005" -msgid "Delete This Channel?" +msgid "Delete this channel?" msgstr "" msgctxt "#59970" msgid "Synchronization with Trakt started" msgstr "" -msgctxt "#59971" -msgid "Kodi video library configuration" -msgstr "" - msgctxt "#59972" msgid "Search for: '%s' | Found: %d vídeos | Time: %2.f seconds" msgstr "" @@ -1009,11 +1005,11 @@ msgid "Downloader %s/%s" msgstr "" msgctxt "#60204" -msgid "Speed Meter" +msgid "Speed meter" msgstr "" msgctxt "#60205" -msgid "File Writer" +msgid "File writer" msgstr "" msgctxt "#60206" @@ -1685,7 +1681,7 @@ msgid "Summary:" msgstr "" msgctxt "#60389" -msgid "Video library update..." +msgid "Updating %s [%s]..." msgstr "" msgctxt "#60390" @@ -2449,7 +2445,7 @@ msgid "Restoring movies video library" msgstr "" msgctxt "#60587" -msgid "Video library update...." +msgid "Channel configuration" msgstr "" msgctxt "#60588" @@ -2809,7 +2805,7 @@ msgid "TV show" msgstr "" msgctxt "#60683" -msgid "anime" +msgid "Loading streams..." msgstr "" msgctxt "#70000" diff --git a/resources/language/Italian/strings.po b/resources/language/Italian/strings.po index e9f3ff47..3f188979 100644 --- a/resources/language/Italian/strings.po +++ b/resources/language/Italian/strings.po @@ -508,17 +508,13 @@ msgid "Path: " msgstr "Percorso: " msgctxt "#50005" -msgid "Delete This Channel?" -msgstr "Eliminare Questo Canale?" +msgid "Delete this channel?" +msgstr "Eliminare questo canale?" msgctxt "#59970" msgid "Synchronization with Trakt started" msgstr "Sincronizzazione con Trakt iniziata" -msgctxt "#59971" -msgid "Kodi video library configuration" -msgstr "Configurazione videoteca Kodi" - msgctxt "#59972" msgid "Search for: '%s' | Found: %d vídeos | Time: %2.f seconds" msgstr "Ricerca di: '%s' | Trovati: %d video | Tempo: %2.f secondi" @@ -1008,11 +1004,11 @@ msgid "Downloader %s/%s" msgstr "Downloader %s/%s" msgctxt "#60204" -msgid "Speed Meter" +msgid "Speed meter" msgstr "Misuratore di velocità" msgctxt "#60205" -msgid "File Writer" +msgid "File writer" msgstr "Scrittura File" msgctxt "#60206" @@ -1449,7 +1445,7 @@ msgstr " KB/s " msgctxt "#60316" msgid "MB of " -msgstr "MB de " +msgstr "MB di " msgctxt "#60317" msgid "MB" @@ -1684,8 +1680,8 @@ msgid "Summary:" msgstr "Riassunto:" msgctxt "#60389" -msgid "Video library update..." -msgstr "Aggiornamento videoteca..." +msgid "Updating %s [%s]..." +msgstr "Aggiornamento %s [%s]..." msgctxt "#60390" msgid "AutoPlay configuration" @@ -2448,8 +2444,8 @@ msgid "Restoring movies video library" msgstr "Ripristino videoteca film" msgctxt "#60587" -msgid "Video library update...." -msgstr "Aggiornamento videoteca...." +msgid "Channel configuration" +msgstr "Configurazione canale" msgctxt "#60588" msgid " - Settings created" @@ -2808,8 +2804,8 @@ msgid "TV show" msgstr "Serie TV" msgctxt "#60683" -msgid "anime" -msgstr "anime" +msgid "Loading streams..." +msgstr "Caricamento stream..." msgctxt "#70000" msgid "Options" diff --git a/service.py b/service.py index f916d5f7..667d6058 100644 --- a/service.py +++ b/service.py @@ -52,8 +52,8 @@ def update(path, p_dialog, i, t, serie, overwrite): if channel_enabled: - heading = config.get_localized_string(60389) - p_dialog.update(int(math.ceil((i + 1) * t)), heading, "%s: %s" % (serie.contentSerieName, + heading = config.get_localized_string(20000) + p_dialog.update(int(math.ceil((i + 1) * t)), heading, config.get_localized_string(60389) % (serie.contentSerieName, serie.channel.capitalize())) try: pathchannels = filetools.join(config.get_runtime_path(), "channels", serie.channel + '.py') diff --git a/specials/setting.py b/specials/setting.py index 628bf4c7..ed947e7f 100644 --- a/specials/setting.py +++ b/specials/setting.py @@ -859,9 +859,9 @@ def restore_tools(item): filetools.rmdirtree(path) import math - heading = config.get_localized_string(60587) + heading = config.get_localized_string(20000) - p_dialog2.update(int(math.ceil((i + 1) * t)), heading, "%s: %s" % (movie.contentTitle, + p_dialog2.update(int(math.ceil((i + 1) * t)), heading, config.get_localized_string(60389) % (movie.contentTitle, movie.channel.capitalize())) # ... y la volvemos a añadir videolibrarytools.save_movie(movie)