Skip to content
Permalink
Browse files

Issue #498: Display current locale abbreviation in "Auto detect" item…

… of language selector
  • Loading branch information...
ansgarbecker committed Mar 14, 2019
1 parent d2a7956 commit 7780904fbd0ee7e330381bca359ca29605755907
Showing with 5 additions and 5 deletions.
  1. +4 −4 out/locale/en/LC_MESSAGES/default.po
  2. +1 −1 source/options.pas
@@ -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
@@ -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
@@ -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');

0 comments on commit 7780904

Please sign in to comment.
You can’t perform that action at this time.