Skip to content

Commit

Permalink
[Translations] Update Translation Template
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixxan committed Dec 6, 2023
1 parent e228572 commit c511b51
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
12 changes: 9 additions & 3 deletions L10n/en.template
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@
/* eddn.py: Status text shown while attempting to send data; In files: eddn.py:2507; */
"Sending data to EDDN..." = "Sending data to EDDN...";

/* edsm.py: Settings>EDSM - Label on checkbox for 'send data'; In files: edsm.py:308; */
"Send flight log and Cmdr status to EDSM" = "Send flight log and Cmdr status to EDSM";
/* edsm.py:Settings>EDSM - Label on checkbox for 'send data'; In files: edsm.py:316; */
"Send flight log and CMDR status to EDSM" = "Send flight log and CMDR status to EDSM";

/* edsm.py: Settings>EDSM - Label on header/URL to EDSM API key page; In files: edsm.py:319; */
"Elite Dangerous Star Map credentials" = "Elite Dangerous Star Map credentials";
Expand Down Expand Up @@ -461,7 +461,7 @@
"Enabled Plugins" = "Enabled Plugins";

/* prefs.py: Plugins - Label for list of 'enabled' plugins that don't work with Python 3.x; In files: prefs.py:954; */
"Plugins Without Python 3.x Support:" = "Plugins Without Python 3.x Support:";
"Plugins Without Python 3.x Support" = "Plugins Without Python 3.x Support:";

/* prefs.py: Plugins - Label on URL to documentation about migrating plugins from Python 2.7; In files: prefs.py:962; */
"Information on migrating plugins" = "Information on migrating plugins";
Expand Down Expand Up @@ -768,3 +768,9 @@

/* stats.py: Status dialog title; In files: stats.py:418; */
"Ships" = "Ships";

/* prefs.py:Label on button used to open a filesystem folder; In files: prefs.py:706; */
"Open Log Folder" = "Open Log Folder";

/* inara.py:Text Inara Show API key; In files: inara.py:305; */
"Show API Key" = "Show API Key";
5 changes: 2 additions & 3 deletions plugins/edsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def plugin_prefs(parent: ttk.Notebook, cmdr: str | None, is_beta: bool) -> tk.Fr
this.log = tk.IntVar(value=config.get_int('edsm_out') and 1)
this.log_button = nb.Checkbutton(
frame,
text=_('Send flight log and CMDR status to EDSM'), # LANG: Send flight log and CMDR Status to EDSM
text=_('Send flight log and CMDR status to EDSM'), # LANG: Settings>EDSM - Label on checkbox for 'send data'
variable=this.log,
command=prefsvarchanged
)
Expand All @@ -335,9 +335,8 @@ def plugin_prefs(parent: ttk.Notebook, cmdr: str | None, is_beta: bool) -> tk.Fr
)
if this.label:
this.label.grid(row=cur_row, columnspan=2, padx=PADX, pady=PADY, sticky=tk.W)
# LANG: Game Commander name label in EDSM settings
cur_row += 1
this.cmdr_label = nb.Label(frame, text=_('Cmdr'))
this.cmdr_label = nb.Label(frame, text=_('Cmdr')) # LANG: Game Commander name label in EDSM settings
this.cmdr_label.grid(row=cur_row, padx=PADX, pady=PADY, sticky=tk.W)
this.cmdr_text = nb.Label(frame)
this.cmdr_text.grid(row=cur_row, column=1, padx=PADX, pady=BOXY, sticky=tk.W)
Expand Down
2 changes: 2 additions & 0 deletions plugins/inara.py
Original file line number Diff line number Diff line change
Expand Up @@ -1611,6 +1611,7 @@ def handle_api_error(data: Mapping[str, Any], status: int, reply: dict[str, Any]
error_message = reply['header'].get('eventStatusText', "")
logger.warning(f'Inara\t{status} {error_message}')
logger.debug(f'JSON data:\n{json.dumps(data, indent=2, separators = (",", ": "))}')
# LANG: INARA API returned some kind of error (error message will be contained in {MSG})
plug.show_error(_('Error: Inara {MSG}').format(MSG=error_message))


Expand Down Expand Up @@ -1643,6 +1644,7 @@ def handle_individual_error(data_event: dict[str, Any], reply_status: int, reply
logger.debug(f'JSON data:\n{json.dumps(data_event)}')

if reply_status // 100 != 2:
# LANG: INARA API returned some kind of error (error message will be contained in {MSG})
plug.show_error(_('Error: Inara {MSG}').format(
MSG=f'{data_event["eventName"]}, {reply_text}'
))
Expand Down

0 comments on commit c511b51

Please sign in to comment.