Skip to content

Commit

Permalink
Issue #498: Display current locale abbreviation in "Auto detect" item…
Browse files Browse the repository at this point in the history
… of language selector
  • Loading branch information
ansgarbecker committed Mar 14, 2019
1 parent d2a7956 commit 7780904
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions out/locale/en/LC_MESSAGES/default.po
Expand Up @@ -7,15 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: HeidiSQL\n"
"POT-Creation-Date: 2012-11-05 21:40\n"
"PO-Revision-Date: 2019-01-27 18:06+0100\n"
"PO-Revision-Date: 2019-03-14 21:10+0100\n"
"Last-Translator: Ansgar Becker <anse@heidisql.com>\n"
"Language-Team: English (http://www.transifex.com/projects/p/heidisql/language/en/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: en\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.2\n"
"X-Generator: Poedit 2.2.1\n"

#. AboutBox..Caption
#: about.dfm:5
Expand Down Expand Up @@ -2596,8 +2596,8 @@ msgstr "Application language: *"

#. Default in language selector
#: preferences dialog
msgid "Auto detect"
msgstr "Auto detect"
msgid "Auto detect (%s)"
msgstr "Auto detect (%s)"

#. optionsform..pagecontrolMain..tabMisc..chkAutoReconnect..Caption
#: options.dfm:57
Expand Down
2 changes: 1 addition & 1 deletion source/options.pas
Expand Up @@ -1225,7 +1225,7 @@ procedure Toptionsform.InitLanguages;
// Create list with present language code => language name
// List taken from dxgettext/languagecodes.pas
FLanguages := TStringList.Create;
FLanguages.Add('' + FLanguages.NameValueSeparator + _('Auto detect'));
FLanguages.Add('' + FLanguages.NameValueSeparator + f_('Auto detect (%s)', [DefaultInstance.GetCurrentLanguage]));
AvailLangCodes := TStringList.Create;
DefaultInstance.GetListOfLanguages('default', AvailLangCodes);
AddLang('aa', 'Afar');
Expand Down

0 comments on commit 7780904

Please sign in to comment.