diff options
author | Karsten Heimrich <karsten.heimrich@qt.io> | 2022-01-19 14:48:54 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@qt.io> | 2022-01-20 15:06:49 +0000 |
commit | bc5531c6f07d0ecda7f3e67807461a96d4d2b97f (patch) | |
tree | 4579f4430278aaf7e76d182455b9620a49cf6c00 | |
parent | 64e6c7b0d576b2e86ca3d41c36f42d2a2bf8ba44 (diff) |
Remove old translation file related code
Change-Id: Ib31d710a08b65b8b17a8bb61f65c8be1fccf7414
Reviewed-by: Miguel Costa <miguel.costa@qt.io>
-rw-r--r-- | QtVsTools.Core/Filters.cs | 21 | ||||
-rw-r--r-- | QtVsTools.Core/QtProject.cs | 14 | ||||
-rw-r--r-- | QtVsTools.Package/Package/AddTranslationDialog.cs | 213 | ||||
-rw-r--r-- | QtVsTools.Package/Package/AddTranslationDialog.resx | 120 | ||||
-rw-r--r-- | QtVsTools.Package/Package/QtMainMenu.cs | 10 | ||||
-rw-r--r-- | QtVsTools.Package/Package/QtProjectContextMenu.cs | 6 | ||||
-rw-r--r-- | QtVsTools.Package/Package/Translation.cs | 26 | ||||
-rw-r--r-- | QtVsTools.Package/Package/TranslationItem.cs | 73 | ||||
-rw-r--r-- | QtVsTools.Package/QtMenus.vsct_TT | 21 | ||||
-rw-r--r-- | QtVsTools.Package/QtVsTools.Package.csproj | 7 | ||||
-rw-r--r-- | QtVsTools.Package/Resources.resx | 9 |
11 files changed, 1 insertions, 519 deletions
diff --git a/QtVsTools.Core/Filters.cs b/QtVsTools.Core/Filters.cs index 197306b5..a361a0bc 100644 --- a/QtVsTools.Core/Filters.cs +++ b/QtVsTools.Core/Filters.cs @@ -71,17 +71,6 @@ namespace QtVsTools.Core }; } - public static FakeFilter TranslationFiles() - { - return new FakeFilter - { - UniqueIdentifier = "{639EADAA-A684-42e4-A9AD-28FC9BCB8F7C}", - Name = SR.GetString("Resources_TranslationFiles"), - Filter = "ts", - ParseFiles = false - }; - } - public static FakeFilter GeneratedFiles() { return new FakeFilter @@ -91,15 +80,5 @@ namespace QtVsTools.Core Filter = "moc;h;cpp", }; } - - public static FakeFilter OtherFiles() - { - return new FakeFilter - { - UniqueIdentifier = "{B67473BF-9FA1-4674-831E-CB28F72D4791}", - Name = SR.GetString("Resources_OtherFiles"), - Filter = "*", - }; - } } } diff --git a/QtVsTools.Core/QtProject.cs b/QtVsTools.Core/QtProject.cs index 53264389..16bcf080 100644 --- a/QtVsTools.Core/QtProject.cs +++ b/QtVsTools.Core/QtProject.cs @@ -734,7 +734,7 @@ namespace QtVsTools.Core } } if (toolSettings == CustomTool.CustomBuildStep && !uiFileExists) - AddFileInFilter(Filters.GeneratedFiles(), uiFile); + AddFileInFilter(Filters.GeneratedFiles(), uiFile, false); } catch { throw new QtVSException(SR.GetString("QtProject_CannotAddUicStep", file.FullPath)); } @@ -1908,18 +1908,6 @@ namespace QtVsTools.Core return tmpList; } - /// <summary> - /// Adds a file to a filter. If the filter doesn't exist yet, it - /// will be created. (Doesn't check for duplicates) - /// </summary> - /// <param name="filter">fake filter</param> - /// <param name="fileName">relative file name</param> - /// <returns>A VCFile object of the added file.</returns> - public VCFile AddFileInFilter(FakeFilter filter, string fileName) - { - return AddFileInFilter(filter, fileName, false); - } - public void RemoveItem(ProjectItem item) { foreach (ProjectItem tmpFilter in Project.ProjectItems) { diff --git a/QtVsTools.Package/Package/AddTranslationDialog.cs b/QtVsTools.Package/Package/AddTranslationDialog.cs deleted file mode 100644 index be217f4c..00000000 --- a/QtVsTools.Package/Package/AddTranslationDialog.cs +++ /dev/null @@ -1,213 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the Qt VS Tools. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -using System; -using System.Windows.Forms; - -namespace QtVsTools -{ - /// <summary> - /// Summary description for AddTranslationDialog. - /// </summary> - public class AddTranslationDialog : Form - { - private Label langLabel; - private ComboBox langComboBox; - private Label label1; - private Button okButton; - private Button cancelButton; - private TextBox fileTextBox; - private readonly EnvDTE.Project project; - private Panel panel1; - - public AddTranslationDialog(EnvDTE.Project pro) - { - project = pro; - // - // Required for Windows Form Designer support - // - InitializeComponent(); - ShowInTaskbar = false; - - langLabel.Text = SR.GetString("AddTranslationDialog_Language"); - cancelButton.Text = SR.GetString(SR.Cancel); - okButton.Text = SR.GetString(SR.OK); - label1.Text = SR.GetString("AddTranslationDialog_FileName"); - - FormBorderStyle = FormBorderStyle.FixedDialog; - KeyPress += AddTranslationDialog_KeyPress; - Shown += AddTranslationDialog_Shown; - } - - private void AddTranslationDialog_Shown(object sender, EventArgs e) - { - Text = SR.GetString("AddTranslationDialog_Title"); - } - - void AddTranslationDialog_KeyPress(object sender, KeyPressEventArgs e) - { - if (e.KeyChar == 27) { - DialogResult = DialogResult.Cancel; - Close(); - } - } - - public string TranslationFile - { - get { return fileTextBox.Text; } - } - - #region Windows Form Designer generated code - /// <summary> - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// </summary> - private void InitializeComponent() - { - langLabel = new Label(); - langComboBox = new ComboBox(); - cancelButton = new Button(); - okButton = new Button(); - label1 = new Label(); - fileTextBox = new TextBox(); - panel1 = new Panel(); - panel1.SuspendLayout(); - SuspendLayout(); - // - // langLabel - // - langLabel.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left) - | AnchorStyles.Right))); - langLabel.Location = new System.Drawing.Point(8, 8); - langLabel.Name = "langLabel"; - langLabel.Size = new System.Drawing.Size(72, 21); - langLabel.TabIndex = 0; - langLabel.Text = "Language"; - // - // langComboBox - // - langComboBox.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right))); - langComboBox.AutoCompleteMode = AutoCompleteMode.Suggest; - langComboBox.AutoCompleteSource = AutoCompleteSource.ListItems; - langComboBox.DropDownStyle = ComboBoxStyle.DropDownList; - langComboBox.Location = new System.Drawing.Point(80, 8); - langComboBox.Name = "langComboBox"; - langComboBox.Size = new System.Drawing.Size(192, 21); - langComboBox.Sorted = true; - langComboBox.TabIndex = 1; - langComboBox.SelectedIndexChanged += langComboBox_SelectedIndexChanged; - // - // cancelButton - // - cancelButton.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Right))); - cancelButton.DialogResult = DialogResult.Cancel; - cancelButton.Location = new System.Drawing.Point(200, 72); - cancelButton.Name = "cancelButton"; - cancelButton.Size = new System.Drawing.Size(72, 24); - cancelButton.TabIndex = 1; - cancelButton.Text = "Cancel"; - // - // okButton - // - okButton.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Right))); - okButton.DialogResult = DialogResult.OK; - okButton.Location = new System.Drawing.Point(120, 72); - okButton.Name = "okButton"; - okButton.Size = new System.Drawing.Size(72, 24); - okButton.TabIndex = 0; - okButton.Text = "OK"; - // - // label1 - // - label1.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left) - | AnchorStyles.Right))); - label1.Location = new System.Drawing.Point(8, 32); - label1.Name = "label1"; - label1.Size = new System.Drawing.Size(72, 24); - label1.TabIndex = 3; - label1.Text = "Filename"; - // - // fileTextBox - // - fileTextBox.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right))); - fileTextBox.Location = new System.Drawing.Point(80, 32); - fileTextBox.Name = "fileTextBox"; - fileTextBox.Size = new System.Drawing.Size(192, 20); - fileTextBox.TabIndex = 4; - // - // panel1 - // - panel1.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left) - | AnchorStyles.Right))); - panel1.Controls.Add(langLabel); - panel1.Controls.Add(label1); - panel1.Controls.Add(langComboBox); - panel1.Controls.Add(fileTextBox); - panel1.Location = new System.Drawing.Point(0, 0); - panel1.Name = "panel1"; - panel1.Size = new System.Drawing.Size(280, 64); - panel1.TabIndex = 5; - // - // AddTranslationDialog - // - AcceptButton = okButton; - AutoScaleBaseSize = new System.Drawing.Size(5, 13); - CancelButton = cancelButton; - ClientSize = new System.Drawing.Size(282, 104); - Controls.Add(panel1); - Controls.Add(okButton); - Controls.Add(cancelButton); - KeyPreview = true; - MaximizeBox = false; - MinimizeBox = false; - Name = "AddTranslationDialog"; - SizeGripStyle = SizeGripStyle.Hide; - StartPosition = FormStartPosition.CenterParent; - Text = "Add Translation"; - Load += AddTranslationDialog_Load; - panel1.ResumeLayout(false); - panel1.PerformLayout(); - ResumeLayout(false); - - } - #endregion - - private void AddTranslationDialog_Load(object sender, System.EventArgs e) - { - var cultures = TranslationItem.GetTranslationItems(); - langComboBox.Items.AddRange(cultures); - langComboBox.SelectedItem = TranslationItem.SystemLanguage(); - } - - private void langComboBox_SelectedIndexChanged(object sender, System.EventArgs e) - { - var country = ((TranslationItem)langComboBox.SelectedItem).TwoLetterISOLanguageName; - fileTextBox.Text = project.Name.ToLower() + "_" + country + ".ts"; - } - } -} diff --git a/QtVsTools.Package/Package/AddTranslationDialog.resx b/QtVsTools.Package/Package/AddTranslationDialog.resx deleted file mode 100644 index 19dc0dd8..00000000 --- a/QtVsTools.Package/Package/AddTranslationDialog.resx +++ /dev/null @@ -1,120 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<root> - <!-- - Microsoft ResX Schema - - Version 2.0 - - The primary goals of this format is to allow a simple XML format - that is mostly human readable. The generation and parsing of the - various data types are done through the TypeConverter classes - associated with the data types. - - Example: - - ... ado.net/XML headers & schema ... - <resheader name="resmimetype">text/microsoft-resx</resheader> - <resheader name="version">2.0</resheader> - <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> - <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> - <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> - <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> - <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> - <value>[base64 mime encoded serialized .NET Framework object]</value> - </data> - <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> - <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> - <comment>This is a comment</comment> - </data> - - There are any number of "resheader" rows that contain simple - name/value pairs. - - Each data row contains a name, and value. The row also contains a - type or mimetype. Type corresponds to a .NET class that support - text/value conversion through the TypeConverter architecture. - Classes that don't support this are serialized and stored with the - mimetype set. - - The mimetype is used for serialized objects, and tells the - ResXResourceReader how to depersist the object. This is currently not - extensible. For a given mimetype the value must be set accordingly: - - Note - application/x-microsoft.net.object.binary.base64 is the format - that the ResXResourceWriter will generate, however the reader can - read any of the formats listed below. - - mimetype: application/x-microsoft.net.object.binary.base64 - value : The object must be serialized with - : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter - : and then encoded with base64 encoding. - - mimetype: application/x-microsoft.net.object.soap.base64 - value : The object must be serialized with - : System.Runtime.Serialization.Formatters.Soap.SoapFormatter - : and then encoded with base64 encoding. - - mimetype: application/x-microsoft.net.object.bytearray.base64 - value : The object must be serialized into a byte array - : using a System.ComponentModel.TypeConverter - : and then encoded with base64 encoding. - --> - <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> - <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> - <xsd:element name="root" msdata:IsDataSet="true"> - <xsd:complexType> - <xsd:choice maxOccurs="unbounded"> - <xsd:element name="metadata"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="value" type="xsd:string" minOccurs="0" /> - </xsd:sequence> - <xsd:attribute name="name" use="required" type="xsd:string" /> - <xsd:attribute name="type" type="xsd:string" /> - <xsd:attribute name="mimetype" type="xsd:string" /> - <xsd:attribute ref="xml:space" /> - </xsd:complexType> - </xsd:element> - <xsd:element name="assembly"> - <xsd:complexType> - <xsd:attribute name="alias" type="xsd:string" /> - <xsd:attribute name="name" type="xsd:string" /> - </xsd:complexType> - </xsd:element> - <xsd:element name="data"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> - <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> - </xsd:sequence> - <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> - <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> - <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> - <xsd:attribute ref="xml:space" /> - </xsd:complexType> - </xsd:element> - <xsd:element name="resheader"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> - </xsd:sequence> - <xsd:attribute name="name" type="xsd:string" use="required" /> - </xsd:complexType> - </xsd:element> - </xsd:choice> - </xsd:complexType> - </xsd:element> - </xsd:schema> - <resheader name="resmimetype"> - <value>text/microsoft-resx</value> - </resheader> - <resheader name="version"> - <value>2.0</value> - </resheader> - <resheader name="reader"> - <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> - </resheader> - <resheader name="writer"> - <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> - </resheader> -</root>
\ No newline at end of file diff --git a/QtVsTools.Package/Package/QtMainMenu.cs b/QtVsTools.Package/Package/QtMainMenu.cs index 1586f1ba..55fea62c 100644 --- a/QtVsTools.Package/Package/QtMainMenu.cs +++ b/QtVsTools.Package/Package/QtMainMenu.cs @@ -77,7 +77,6 @@ namespace QtVsTools ImportPriFileId = 0x0103, ExportPriFileId = 0x0104, ExportProFileId = 0x0105, - CreateNewTsFileId = 0x0107, ConvertToQtMsBuild = 0x0130, ConvertToQtId = 0x0124, ConvertToQmakeId = 0x0108, @@ -145,10 +144,6 @@ namespace QtVsTools case CommandId.ExportProFileId: ExtLoader.ExportProFile(); break; - case CommandId.CreateNewTsFileId: - Translation.CreateNewTranslationFile(HelperFunctions.GetSelectedQtProject(QtVsToolsPackage - .Instance.Dte)); - break; case CommandId.ConvertToQtId: case CommandId.ConvertToQmakeId: { var caption = SR.GetString("ConvertTitle"); @@ -235,11 +230,6 @@ namespace QtVsTools command.Visible = true; command.Enabled = HelperFunctions.IsQtProject(project); break; - case CommandId.CreateNewTsFileId: - command.Visible = true; - command.Enabled = HelperFunctions.IsQtProject(project) - && Translation.ToolsAvailable(project); - break; // TODO: Fix these functionality and re-enable the menu items case CommandId.ConvertToQtId: case CommandId.ConvertToQmakeId: { diff --git a/QtVsTools.Package/Package/QtProjectContextMenu.cs b/QtVsTools.Package/Package/QtProjectContextMenu.cs index 3fa94683..40c28fb8 100644 --- a/QtVsTools.Package/Package/QtProjectContextMenu.cs +++ b/QtVsTools.Package/Package/QtProjectContextMenu.cs @@ -78,7 +78,6 @@ namespace QtVsTools ImportPriFileProjectId = 0x0114, ExportPriFileProjectId = 0x0115, ExportProFileProjectId = 0x0116, - CreateNewTsFileProjectId = 0x0117, lUpdateOnProjectId = 0x0118, lReleaseOnProjectId = 0x0119, ProjectConvertToQtMsBuild = 0x0130, @@ -135,10 +134,6 @@ namespace QtVsTools case CommandId.ExportProFileProjectId: ExtLoader.ExportProFile(); break; - case CommandId.CreateNewTsFileProjectId: - Translation.CreateNewTranslationFile(HelperFunctions.GetSelectedQtProject(QtVsToolsPackage - .Instance.Dte)); - break; case CommandId.lUpdateOnProjectId: Translation.RunlUpdate(HelperFunctions.GetSelectedQtProject(QtVsToolsPackage.Instance.Dte)); break; @@ -231,7 +226,6 @@ namespace QtVsTools command.Enabled = HelperFunctions.IsQtProject(HelperFunctions .GetSelectedProject(QtVsToolsPackage.Instance.Dte)); break; - case CommandId.CreateNewTsFileProjectId: case CommandId.lUpdateOnProjectId: case CommandId.lReleaseOnProjectId: command.Visible = true; diff --git a/QtVsTools.Package/Package/Translation.cs b/QtVsTools.Package/Package/Translation.cs index 0249595c..bc16cc09 100644 --- a/QtVsTools.Package/Package/Translation.cs +++ b/QtVsTools.Package/Package/Translation.cs @@ -26,19 +26,13 @@ ** ****************************************************************************/ -using Microsoft.VisualStudio; -using Microsoft.VisualStudio.Shell.Interop; using Microsoft.VisualStudio.VCProjectEngine; using QtVsTools.Core; -using QtVsTools.VisualStudio; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; using System.Windows.Forms; namespace QtVsTools @@ -258,26 +252,6 @@ namespace QtVsTools } } - public static void CreateNewTranslationFile(EnvDTE.Project project) - { - if (project == null) - return; - - using (var transDlg = new AddTranslationDialog(project)) { - if (transDlg.ShowDialog() == DialogResult.OK) { - try { - var qtPro = QtProject.Create(project); - qtPro.AddFileInFilter(Filters.TranslationFiles(), - transDlg.TranslationFile, true); - } catch (QtVSException e) { - Messages.DisplayErrorMessage(e.Message); - } catch (System.Exception ex) { - Messages.DisplayErrorMessage(ex.Message); - } - } - } - } - public static bool ToolsAvailable(EnvDTE.Project project) { if (QtProject.GetPropertyValue(project, "ApplicationType") == "Linux") diff --git a/QtVsTools.Package/Package/TranslationItem.cs b/QtVsTools.Package/Package/TranslationItem.cs deleted file mode 100644 index 701af433..00000000 --- a/QtVsTools.Package/Package/TranslationItem.cs +++ /dev/null @@ -1,73 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the Qt VS Tools. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -using System.Collections.Generic; -using System.Globalization; - -namespace QtVsTools -{ - public class TranslationItem : CultureInfo - { - public TranslationItem(int culture) - : base(culture) - { - } - - public override string ToString() - { - if (NativeName != DisplayName) - return DisplayName; - - var culture = GetCultureInfo(QtVsToolsPackage.Instance.Dte.LocaleID); - if (culture.TwoLetterISOLanguageName == TwoLetterISOLanguageName) - return DisplayName; - - return EnglishName; - } - - public static TranslationItem SystemLanguage() - { - return new TranslationItem(CurrentCulture.LCID); - } - - public static TranslationItem[] GetTranslationItems() - { - var cultures = GetCultures(CultureTypes.SpecificCultures - & ~CultureTypes.UserCustomCulture & ~CultureTypes.ReplacementCultures); - var transItems = new List<TranslationItem>(); - for (var i = 0; i < cultures.Length; i++) { - // Locales without a LCID are given LCID 0x1000 (http://msdn.microsoft.com/en-us/library/dn363603.aspx) - // Trying to create a TranslationItem for these will cause an exception to be thrown. - var lcid = cultures[i].LCID; - if (lcid != 0x1000) - transItems.Add(new TranslationItem(lcid)); - } - return transItems.ToArray(); - } - } -} diff --git a/QtVsTools.Package/QtMenus.vsct_TT b/QtVsTools.Package/QtMenus.vsct_TT index 769b9d69..c7bda6d1 100644 --- a/QtVsTools.Package/QtMenus.vsct_TT +++ b/QtVsTools.Package/QtMenus.vsct_TT @@ -278,16 +278,6 @@ </Strings> </Button> - <Button guid="MainMenuGuid" id="CreateNewTsFileId" priority="0x0100" type="Button"> - <Parent guid="MainMenuGuid" id="OthersMenuGroup" /> - <CommandFlag>DefaultDisabled</CommandFlag> - <CommandFlag>DynamicVisibility</CommandFlag> - <CommandFlag>DefaultInvisible</CommandFlag> - <Strings> - <ButtonText>Create New Translation File</ButtonText> - <ToolTipText>Create a new translation file that you can open in Qt Linguist</ToolTipText> - </Strings> - </Button> <Button guid="MainMenuGuid" id="ConvertToQtMsBuild" priority="0x0100" type="Button"> <Parent guid="MainMenuGuid" id="OthersMenuGroup" /> <CommandFlag>DefaultDisabled</CommandFlag> @@ -444,15 +434,6 @@ </Strings> </Button> - <Button guid="ProjectContextMenuGuid" id="CreateNewTsFileProjectId" priority="0x0100" type="Button"> - <Parent guid="ProjectContextMenuGuid" id="ProjectContextTsMenuGroup" /> - <CommandFlag>DefaultDisabled</CommandFlag> - <CommandFlag>DynamicVisibility</CommandFlag> - <Strings> - <ButtonText>Create New Translation File</ButtonText> - <ToolTipText>Create a new translation file that you can open in Qt Linguist</ToolTipText> - </Strings> - </Button> <Button guid="ProjectContextMenuGuid" id="lUpdateOnProjectId" priority="0x0100" type="Button"> <Parent guid="ProjectContextMenuGuid" id="ProjectContextTsMenuGroup" /> <Icon guid="MenuImages" id="LaunchLinguistBitmap" /> @@ -600,7 +581,6 @@ <IDSymbol name="ExportProFileId" value="0x0105" /> <IDSymbol name="OthersMenuGroup" value="0x1023" /> - <IDSymbol name="CreateNewTsFileId" value="0x0107" /> <IDSymbol name="ConvertToQtMsBuild" value="0x0130" /> <IDSymbol name="ConvertToQtId" value="0x0124" /> <IDSymbol name="ConvertToQmakeId" value="0x0108" /> @@ -648,7 +628,6 @@ <IDSymbol name="ExportProFileProjectId" value="0x0116" /> <IDSymbol name="ProjectContextTsMenuGroup" value="0x1028" /> - <IDSymbol name="CreateNewTsFileProjectId" value="0x0117" /> <IDSymbol name="lUpdateOnProjectId" value="0x0118" /> <IDSymbol name="lReleaseOnProjectId" value="0x0119" /> diff --git a/QtVsTools.Package/QtVsTools.Package.csproj b/QtVsTools.Package/QtVsTools.Package.csproj index 016d6b99..3294c149 100644 --- a/QtVsTools.Package/QtVsTools.Package.csproj +++ b/QtVsTools.Package/QtVsTools.Package.csproj @@ -346,9 +346,6 @@ <MergeWithCTO>true</MergeWithCTO> <ManifestResourceName>VSPackage</ManifestResourceName> </EmbeddedResource> - <Compile Include="Package\AddTranslationDialog.cs"> - <SubType>Form</SubType> - </Compile> <Compile Include="Package\ChangeFor.cs" /> <Compile Include="Common\Concurrent.cs" /> <Compile Include="Common\ConcurrentStopwatch.cs" /> @@ -457,7 +454,6 @@ <Compile Include="Package\QtSolutionContextMenu.cs" /> <Compile Include="Package\SR.cs" /> <Compile Include="Package\Translation.cs" /> - <Compile Include="Package\TranslationItem.cs" /> <Compile Include="VisualStudio\InfoBar.cs" /> <Compile Include="Package\InfoBarMessages.cs" /> <Compile Include="VisualStudio\VsShell.cs" /> @@ -531,9 +527,6 @@ <CopyToOutputDirectory>Always</CopyToOutputDirectory> <IncludeInVSIX>true</IncludeInVSIX> </Content> - <EmbeddedResource Include="Package\AddTranslationDialog.resx"> - <DependentUpon>AddTranslationDialog.cs</DependentUpon> - </EmbeddedResource> <EmbeddedResource Include="Package\FormChangeQtVersion.resx"> <DependentUpon>FormChangeQtVersion.cs</DependentUpon> </EmbeddedResource> diff --git a/QtVsTools.Package/Resources.resx b/QtVsTools.Package/Resources.resx index 3caba8ef..d1f060ab 100644 --- a/QtVsTools.Package/Resources.resx +++ b/QtVsTools.Package/Resources.resx @@ -123,15 +123,6 @@ <data name="AddQtVersionDialog_IncorrectMakefileGenerator" xml:space="preserve"> <value>This Qt version uses an unsupported makefile generator (used: {0}, supported: MSVC.NET, MSBUILD)</value> </data> - <data name="AddTranslationDialog_FileName" xml:space="preserve"> - <value>Filename:</value> - </data> - <data name="AddTranslationDialog_Language" xml:space="preserve"> - <value>Language:</value> - </data> - <data name="AddTranslationDialog_Title" xml:space="preserve"> - <value>Add Translation</value> - </data> <data name="Cancel" xml:space="preserve"> <value>&Cancel</value> </data> |