mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-15 08:40:34 +03:00
Update EDSM autoopen translations.
For consistency move it into its own setting.
This commit is contained in:
parent
04cb1d7345
commit
62a786955d
@ -474,7 +474,7 @@ class AppWindow:
|
|||||||
result = self.edsm.result
|
result = self.edsm.result
|
||||||
if result['done']:
|
if result['done']:
|
||||||
self.system['image'] = result['img']
|
self.system['image'] = result['img']
|
||||||
if result['uncharted'] and (config.getint('output') & config.EDSM_AUTOOPEN):
|
if result['uncharted'] and config.getint('edsm_autoopen'):
|
||||||
webbrowser.open(result['url'])
|
webbrowser.open(result['url'])
|
||||||
else:
|
else:
|
||||||
self.w.after(int(EDSM_POLL * 1000), self.edsmpoll)
|
self.w.after(int(EDSM_POLL * 1000), self.edsmpoll)
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
"Automatically make a log entry on entering a system" = "Automatically make a log entry on entering a system";
|
"Automatically make a log entry on entering a system" = "Automatically make a log entry on entering a system";
|
||||||
|
|
||||||
/* [prefs.py] */
|
/* [prefs.py] */
|
||||||
"Automatically open uncharted systems' EDSM pages" = "Automatically open uncharted systems' EDSM pages";
|
"Automatically open uncharted systems’ EDSM pages" = "Automatically open uncharted systems’ EDSM pages";
|
||||||
|
|
||||||
/* Cmdr stats. [stats.py] */
|
/* Cmdr stats. [stats.py] */
|
||||||
"Balance" = "Balance";
|
"Balance" = "Balance";
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
/* Output setting. [prefs.py] */
|
/* Output setting. [prefs.py] */
|
||||||
"Automatically make a log entry on entering a system" = "Crear automáticamente una entrada en el registro al entrar en un sistema";
|
"Automatically make a log entry on entering a system" = "Crear automáticamente una entrada en el registro al entrar en un sistema";
|
||||||
|
|
||||||
|
/* [prefs.py] */
|
||||||
|
"Automatically open uncharted systems’ EDSM pages" = "Abrir automáticamente sistemas no cartografiados en EDSM";
|
||||||
|
|
||||||
/* Cmdr stats. [stats.py] */
|
/* Cmdr stats. [stats.py] */
|
||||||
"Balance" = "Saldo";
|
"Balance" = "Saldo";
|
||||||
|
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
/* Output setting. [prefs.py] */
|
/* Output setting. [prefs.py] */
|
||||||
"Automatically make a log entry on entering a system" = "Ajouter automatiquement une entrée au journal en entrant dans un système";
|
"Automatically make a log entry on entering a system" = "Ajouter automatiquement une entrée au journal en entrant dans un système";
|
||||||
|
|
||||||
|
/* [prefs.py] */
|
||||||
|
"Automatically open uncharted systems’ EDSM pages" = "Ouvrir automatiquement les pages EDSM des systèmes inexplorés";
|
||||||
|
|
||||||
/* Cmdr stats. [stats.py] */
|
/* Cmdr stats. [stats.py] */
|
||||||
"Balance" = "Solde";
|
"Balance" = "Solde";
|
||||||
|
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
/* Output setting. [prefs.py] */
|
/* Output setting. [prefs.py] */
|
||||||
"Automatically make a log entry on entering a system" = "Inserisce automaticamente una log entry entrando in un sistema";
|
"Automatically make a log entry on entering a system" = "Inserisce automaticamente una log entry entrando in un sistema";
|
||||||
|
|
||||||
|
/* [prefs.py] */
|
||||||
|
"Automatically open uncharted systems’ EDSM pages" = "Apre automaticamente una pagina su EDSM dei sistemi non esplorati";
|
||||||
|
|
||||||
/* Cmdr stats. [stats.py] */
|
/* Cmdr stats. [stats.py] */
|
||||||
"Balance" = "Saldo";
|
"Balance" = "Saldo";
|
||||||
|
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
/* Output setting. [prefs.py] */
|
/* Output setting. [prefs.py] */
|
||||||
"Automatically make a log entry on entering a system" = "Automātiski veikt ierakstu ierodoties sistēmā";
|
"Automatically make a log entry on entering a system" = "Automātiski veikt ierakstu ierodoties sistēmā";
|
||||||
|
|
||||||
|
/* [prefs.py] */
|
||||||
|
"Automatically open uncharted systems’ EDSM pages" = "Automātiski atvērt neatklāto sistēmu EDSM lapas";
|
||||||
|
|
||||||
/* Cmdr stats. [stats.py] */
|
/* Cmdr stats. [stats.py] */
|
||||||
"Balance" = "Bilance";
|
"Balance" = "Bilance";
|
||||||
|
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
/* Output setting. [prefs.py] */
|
/* Output setting. [prefs.py] */
|
||||||
"Automatically make a log entry on entering a system" = "Automatisch een log regel aanmaken bij het binnengaan van een stelsel";
|
"Automatically make a log entry on entering a system" = "Automatisch een log regel aanmaken bij het binnengaan van een stelsel";
|
||||||
|
|
||||||
|
/* [prefs.py] */
|
||||||
|
"Automatically open uncharted systems’ EDSM pages" = "Automatisch openen van nog niet in kaart gebrachte systemen op EDSM website";
|
||||||
|
|
||||||
/* Cmdr stats. [stats.py] */
|
/* Cmdr stats. [stats.py] */
|
||||||
"Balance" = "Balans";
|
"Balance" = "Balans";
|
||||||
|
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
/* Output setting. [prefs.py] */
|
/* Output setting. [prefs.py] */
|
||||||
"Automatically make a log entry on entering a system" = "Автоматически заносить в журнал полета каждую посещённую систему";
|
"Automatically make a log entry on entering a system" = "Автоматически заносить в журнал полета каждую посещённую систему";
|
||||||
|
|
||||||
|
/* [prefs.py] */
|
||||||
|
"Automatically open uncharted systems’ EDSM pages" = "Автоматически открывать EDSM для неисследованных систем";
|
||||||
|
|
||||||
/* Cmdr stats. [stats.py] */
|
/* Cmdr stats. [stats.py] */
|
||||||
"Balance" = "Баланс";
|
"Balance" = "Баланс";
|
||||||
|
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
/* Output setting. [prefs.py] */
|
/* Output setting. [prefs.py] */
|
||||||
"Automatically make a log entry on entering a system" = "Автоматично робити запис у журналі на вході в систему";
|
"Automatically make a log entry on entering a system" = "Автоматично робити запис у журналі на вході в систему";
|
||||||
|
|
||||||
|
/* [prefs.py] */
|
||||||
|
"Automatically open uncharted systems’ EDSM pages" = "Автоматично відкривати сторінки EDSM для незвіданих систем";
|
||||||
|
|
||||||
/* Cmdr stats. [stats.py] */
|
/* Cmdr stats. [stats.py] */
|
||||||
"Balance" = "Баланс";
|
"Balance" = "Баланс";
|
||||||
|
|
||||||
|
@ -80,7 +80,6 @@ class Config:
|
|||||||
OUT_SHIP_CORIOLIS = 128
|
OUT_SHIP_CORIOLIS = 128
|
||||||
OUT_LOG_EDSM = 256
|
OUT_LOG_EDSM = 256
|
||||||
OUT_LOG_AUTO = 512
|
OUT_LOG_AUTO = 512
|
||||||
EDSM_AUTOOPEN = 1024
|
|
||||||
|
|
||||||
if platform=='darwin':
|
if platform=='darwin':
|
||||||
|
|
||||||
|
8
prefs.py
8
prefs.py
@ -157,8 +157,8 @@ class PreferencesDialog(tk.Toplevel):
|
|||||||
ttk.Separator(edsmframe, orient=tk.HORIZONTAL).grid(columnspan=2, padx=PADX, pady=PADY, sticky=tk.EW)
|
ttk.Separator(edsmframe, orient=tk.HORIZONTAL).grid(columnspan=2, padx=PADX, pady=PADY, sticky=tk.EW)
|
||||||
self.out_log_edsm = tk.IntVar(value = (output & config.OUT_LOG_EDSM) and 1)
|
self.out_log_edsm = tk.IntVar(value = (output & config.OUT_LOG_EDSM) and 1)
|
||||||
nb.Checkbutton(edsmframe, text=_('Send flight log to Elite Dangerous Star Map'), variable=self.out_log_edsm, command=self.outvarchanged).grid(columnspan=2, padx=BUTTONX, sticky=tk.W)
|
nb.Checkbutton(edsmframe, text=_('Send flight log to Elite Dangerous Star Map'), variable=self.out_log_edsm, command=self.outvarchanged).grid(columnspan=2, padx=BUTTONX, sticky=tk.W)
|
||||||
self.edsm_autoopen = tk.IntVar(value = (output & config.EDSM_AUTOOPEN) and 1)
|
self.edsm_autoopen = tk.BooleanVar(value = config.getint('edsm_autoopen'))
|
||||||
self.edsm_autoopen_button = nb.Checkbutton(edsmframe, text=_("Automatically open uncharted systems' EDSM pages"), variable=self.edsm_autoopen)
|
self.edsm_autoopen_button = nb.Checkbutton(edsmframe, text=_(u"Automatically open uncharted systems’ EDSM pages"), variable=self.edsm_autoopen)
|
||||||
self.edsm_autoopen_button.grid(columnspan=2, padx=BUTTONX, sticky=tk.W)
|
self.edsm_autoopen_button.grid(columnspan=2, padx=BUTTONX, sticky=tk.W)
|
||||||
if monitor.logdir:
|
if monitor.logdir:
|
||||||
self.edsm_log_auto_button = nb.Checkbutton(edsmframe, text=_('Automatically make a log entry on entering a system'), variable=self.out_log_auto, command=self.outvarchanged) # Output setting
|
self.edsm_log_auto_button = nb.Checkbutton(edsmframe, text=_('Automatically make a log entry on entering a system'), variable=self.out_log_auto, command=self.outvarchanged) # Output setting
|
||||||
@ -371,10 +371,10 @@ class PreferencesDialog(tk.Toplevel):
|
|||||||
(self.out_log_file.get() and config.OUT_LOG_FILE) +
|
(self.out_log_file.get() and config.OUT_LOG_FILE) +
|
||||||
(self.out_ship_coriolis.get() and config.OUT_SHIP_CORIOLIS) +
|
(self.out_ship_coriolis.get() and config.OUT_SHIP_CORIOLIS) +
|
||||||
(self.out_log_edsm.get() and config.OUT_LOG_EDSM) +
|
(self.out_log_edsm.get() and config.OUT_LOG_EDSM) +
|
||||||
(self.out_log_auto.get() and config.OUT_LOG_AUTO) +
|
(self.out_log_auto.get() and config.OUT_LOG_AUTO))
|
||||||
(self.edsm_autoopen.get() and config.EDSM_AUTOOPEN))
|
|
||||||
config.set('outdir', self.outdir.get().startswith('~') and join(config.home, self.outdir.get()[2:]) or self.outdir.get())
|
config.set('outdir', self.outdir.get().startswith('~') and join(config.home, self.outdir.get()[2:]) or self.outdir.get())
|
||||||
|
|
||||||
|
config.set('edsm_autoopen', self.edsm_autoopen.get())
|
||||||
config.set('edsm_cmdrname', self.edsm_cmdr.get().strip())
|
config.set('edsm_cmdrname', self.edsm_cmdr.get().strip())
|
||||||
config.set('edsm_apikey', self.edsm_apikey.get().strip())
|
config.set('edsm_apikey', self.edsm_apikey.get().strip())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user