From 823b8c77a5278b6c99c40cf418291a4d4320d6ca Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Fri, 27 Jan 2023 16:18:06 +0100 Subject: [PATCH] QmlEditorWidgets: Tr::tr Change-Id: I507405fa6d162a72136e76727e27234d3b35172a Reviewed-by: hjk --- share/qtcreator/translations/qtcreator_da.ts | 29 ++------------ share/qtcreator/translations/qtcreator_de.ts | 30 +------------- share/qtcreator/translations/qtcreator_fr.ts | 37 ++---------------- share/qtcreator/translations/qtcreator_hr.ts | 30 +------------- share/qtcreator/translations/qtcreator_ja.ts | 37 ++---------------- share/qtcreator/translations/qtcreator_pl.ts | 38 +----------------- share/qtcreator/translations/qtcreator_ru.ts | 29 ++------------ share/qtcreator/translations/qtcreator_sl.ts | 39 ++----------------- share/qtcreator/translations/qtcreator_uk.ts | 37 ++---------------- .../qtcreator/translations/qtcreator_zh_CN.ts | 29 ++------------ .../qtcreator/translations/qtcreator_zh_TW.ts | 37 ++---------------- .../contextpanetextwidget.cpp | 5 ++- .../qmleditorwidgets/contextpanewidget.cpp | 12 +++--- .../contextpanewidgetimage.cpp | 28 ++++++------- .../contextpanewidgetrectangle.cpp | 7 ++-- .../easingpane/easingcontextpane.cpp | 29 +++++++------- src/libs/qmleditorwidgets/filewidget.cpp | 4 +- 17 files changed, 77 insertions(+), 380 deletions(-) diff --git a/share/qtcreator/translations/qtcreator_da.ts b/share/qtcreator/translations/qtcreator_da.ts index aaf5bf35a76..e678169e582 100644 --- a/share/qtcreator/translations/qtcreator_da.ts +++ b/share/qtcreator/translations/qtcreator_da.ts @@ -5498,7 +5498,7 @@ p, li { white-space: pre-wrap; } - ContextPaneTextWidget + ::QmlEditorWidgets Text Tekst @@ -5511,9 +5511,6 @@ p, li { white-space: pre-wrap; } ... ... - - - ContextPaneWidgetBorderImage Stretch vertically. Scales the image to fit to the available area. Stræk lodret. Skalerer billedet så det passer til det tilgængelige område. @@ -5538,9 +5535,6 @@ p, li { white-space: pre-wrap; } 10 x 10 10 x 10 - - - ContextPaneWidgetImage The image is scaled to fit. Billedet er skaleret til at passe. @@ -5565,13 +5559,6 @@ p, li { white-space: pre-wrap; } The image is scaled uniformly to fill, cropping if necessary. Billedet er skaleret ensartet for at fylde, klipning hvis nødvendigt. - - 10 x 10 - 10 x 10 - - - - ContextPaneWidgetRectangle Gradient Gradient @@ -5580,10 +5567,6 @@ p, li { white-space: pre-wrap; } Color Farve - - ... - ... - Border Kant @@ -14093,7 +14076,7 @@ Det hjælper måske at genbygge projektet. - EasingContextPane + ::QmlEditorWidgets Dialog Dialog @@ -28667,7 +28650,7 @@ Dette er uafhængigt af visibility-egenskaben i QML. - QmlEditorWidgets::ContextPaneWidget + ::QmlEditorWidgets Hides this toolbar. Skjuler denne værktøjslinje. @@ -28688,16 +28671,10 @@ Dette er uafhængigt af visibility-egenskaben i QML. Hides this toolbar. This toolbar can be permanently disabled in the options page or in the context menu. Skjuler denne værktøjslinje. Denne værktøjslinje kan deaktiveres permanent på valgmulighedssiden eller i genvejsmenuen. - - - QmlEditorWidgets::ContextPaneWidgetImage Double click for preview. Dobbeltklik for forhåndsvisning. - - - QmlEditorWidgets::FileWidget Open File Åbn fil diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index 66846904ec4..f038c3a8330 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -15318,7 +15318,7 @@ IDs müssen außerdem mit einem Kleinbuchstaben beginnen. - ContextPaneTextWidget + ::QmlEditorWidgets Text Text @@ -15331,9 +15331,6 @@ IDs müssen außerdem mit einem Kleinbuchstaben beginnen. ... ... - - - ContextPaneWidgetBorderImage 10 x 10 10 x 10 @@ -15358,13 +15355,6 @@ IDs müssen außerdem mit einem Kleinbuchstaben beginnen. Stretch horizontally. Scales the image to fit to the available area. Horizontal anpassen. Skaliert das Bild, so dass es die zur Verfügung stehende Fläche ausfüllt. - - - ContextPaneWidgetImage - - 10 x 10 - 10 x 10 - The image is scaled to fit. Das Bild ist skaliert, um die Fläche auszufüllen. @@ -15389,9 +15379,6 @@ IDs müssen außerdem mit einem Kleinbuchstaben beginnen. The image is scaled uniformly to fill, cropping if necessary. Das Bild ist gleichmäßig skaliert, Überstehendes wird abgeschnitten sofern nötig. - - - ContextPaneWidgetRectangle Gradient Gradient @@ -15400,17 +15387,10 @@ IDs müssen außerdem mit einem Kleinbuchstaben beginnen. Color Farbe - - ... - ... - Border Rahmen - - - EasingContextPane Dialog Dialog @@ -15666,7 +15646,7 @@ Möchten Sie sie überschreiben? - QmlEditorWidgets::ContextPaneWidget + ::QmlEditorWidgets Hides this toolbar. Schließt diese Werkzeugleiste. @@ -15687,16 +15667,10 @@ Möchten Sie sie überschreiben? Hides this toolbar. This toolbar can be permanently disabled in the options page or in the context menu. Schließt diese Werkzeugleiste. Sie kann in den Einstellung oder durch das Kontextmenü dauerhaft abgeschaltet werden. - - - QmlEditorWidgets::ContextPaneWidgetImage Double click for preview. Doppelklick zur Vorschau. - - - QmlEditorWidgets::FileWidget Open File Datei öffnen diff --git a/share/qtcreator/translations/qtcreator_fr.ts b/share/qtcreator/translations/qtcreator_fr.ts index 960d7bd0083..a6a86f56b8a 100644 --- a/share/qtcreator/translations/qtcreator_fr.ts +++ b/share/qtcreator/translations/qtcreator_fr.ts @@ -24592,7 +24592,7 @@ Preselects Qt for Simulator and mobile targets if available - ContextPaneTextWidget + ::QmlEditorWidgets Text Texte @@ -24637,7 +24637,7 @@ Preselects Qt for Simulator and mobile targets if available - ContextPaneWidgetBorderImage + ::QmlEditorWidgets Form Formulaire @@ -24663,17 +24663,6 @@ Preselects Qt for Simulator and mobile targets if available Stretch horizontally. Scales the image to fit to the available area. Étirer horizontalement. Redimensionne l'image pour qu'elle occupe l'espace disponible. - - 10 x 10 - 10 x 10 - - - - ContextPaneWidgetImage - - Form - Formulaire - The image is scaled to fit L'image est redimensionnée pour être ajustée @@ -24703,13 +24692,6 @@ Preselects Qt for Simulator and mobile targets if available wtf ? encore ? 10 x 10 - - - ContextPaneWidgetRectangle - - Form - Formulaire - Gradient Dégradé @@ -24718,17 +24700,10 @@ Preselects Qt for Simulator and mobile targets if available Color Couleur - - ... - ... - Border Bordure - - - EasingContextPane Dialog Boîte de dialogue @@ -25092,7 +25067,7 @@ Preselects Qt for Simulator and mobile targets if available - QmlEditorWidgets::ContextPaneWidget + ::QmlEditorWidgets Hides this toolbar. Cache cette barre d'outils. @@ -25113,17 +25088,11 @@ Preselects Qt for Simulator and mobile targets if available Hides this toolbar. This toolbar can be permanently disabled in the options page or in the context menu. Cache cette barre d'outils. Cette barre d'outils peut être désactivée définitivement dans la page des options ou dans le menu contextuel. - - - QmlEditorWidgets::ContextPaneWidgetImage double click for preview double-cliquez plutôt que cliquer deux fois double-cliquez pour la prévisualisation - - - QmlEditorWidgets::FileWidget Open File Ouvrir le fichier diff --git a/share/qtcreator/translations/qtcreator_hr.ts b/share/qtcreator/translations/qtcreator_hr.ts index cbcb0c609cb..712b2e4e0ec 100644 --- a/share/qtcreator/translations/qtcreator_hr.ts +++ b/share/qtcreator/translations/qtcreator_hr.ts @@ -73,7 +73,7 @@ - ContextPaneTextWidget + ::QmlEditorWidgets Text Tekst @@ -86,9 +86,6 @@ ... - - - ContextPaneWidgetBorderImage Stretch vertically. Scales the image to fit to the available area. Rastegni uspravno. Rasteže sliku, kako bi popunila područje. @@ -113,9 +110,6 @@ 10 x 10 10 × 10 - - - ContextPaneWidgetImage The image is scaled to fit. Slika se skalira kako bi popunila područje. @@ -140,13 +134,6 @@ The image is scaled uniformly to fill, cropping if necessary. Slika se skalira proporcionalno kako bi popunila područje i reže se po potrebi. - - 10 x 10 - 10 × 10 - - - - ContextPaneWidgetRectangle Gradient Gradijent @@ -155,17 +142,10 @@ Color Boja - - ... - - Border Rub - - - EasingContextPane Dialog Dijalog @@ -11446,7 +11426,7 @@ will also disable the following plugins: - QmlEditorWidgets::ContextPaneWidget + ::QmlEditorWidgets Hides this toolbar. @@ -11467,16 +11447,10 @@ will also disable the following plugins: Hides this toolbar. This toolbar can be permanently disabled in the options page or in the context menu. - - - QmlEditorWidgets::ContextPaneWidgetImage Double click for preview. - - - QmlEditorWidgets::FileWidget Open File Otvori datoteku diff --git a/share/qtcreator/translations/qtcreator_ja.ts b/share/qtcreator/translations/qtcreator_ja.ts index 8db7b1a5b46..d61674d2276 100644 --- a/share/qtcreator/translations/qtcreator_ja.ts +++ b/share/qtcreator/translations/qtcreator_ja.ts @@ -77,7 +77,7 @@ - ContextPaneTextWidget + ::QmlEditorWidgets Text テキスト @@ -90,9 +90,6 @@ ... ... - - - ContextPaneWidgetBorderImage Form フォーム @@ -121,17 +118,6 @@ 10 x 10 10 x 10 - - - ContextPaneWidgetImage - - Form - フォーム - - - 10 x 10 - 10 x 10 - The image is scaled to fit. 画像は枠の大きさに収まるように拡縮されます。 @@ -156,13 +142,6 @@ The image is scaled uniformly to fill, cropping if necessary. 画像は枠の大きさ一杯になるように必要に応じてトリミングされながら縦横比を維持して拡縮されます。 - - - ContextPaneWidgetRectangle - - Form - フォーム - Gradient グラデーション @@ -171,17 +150,10 @@ Color - - ... - ... - Border 枠線 - - - EasingContextPane Dialog ダイアログ @@ -9156,7 +9128,7 @@ will also disable the following plugins: - QmlEditorWidgets::ContextPaneWidget + ::QmlEditorWidgets Hides this toolbar. ツールバーを隠します。 @@ -9177,9 +9149,6 @@ will also disable the following plugins: Hides this toolbar. This toolbar can be permanently disabled in the options page or in the context menu. ツールバーを隠すと、オプションページや右クリックメニューでも恒久的に使用できなくなります。 - - - QmlEditorWidgets::FileWidget Open File ファイルを開く @@ -31651,7 +31620,7 @@ To do this, you type this shortcut and a space in the Locator entry field, and t - QmlEditorWidgets::ContextPaneWidgetImage + ::QmlEditorWidgets Double click for preview. ダブルクリックでプレビューを表示します。 diff --git a/share/qtcreator/translations/qtcreator_pl.ts b/share/qtcreator/translations/qtcreator_pl.ts index e6c4d88e9e2..3df147e0b55 100644 --- a/share/qtcreator/translations/qtcreator_pl.ts +++ b/share/qtcreator/translations/qtcreator_pl.ts @@ -12088,7 +12088,7 @@ Identyfikatory muszą rozpoczynać się małą literą. - ContextPaneTextWidget + ::QmlEditorWidgets Text Tekst @@ -12101,9 +12101,6 @@ Identyfikatory muszą rozpoczynać się małą literą. ... ... - - - ContextPaneWidgetBorderImage Form Formularz @@ -12132,17 +12129,6 @@ Identyfikatory muszą rozpoczynać się małą literą. Stretch horizontally. Scales the image to fit to the available area. Rozciągnięcie w poziomie. Dopasowuje rozmiar obrazu do dostępnej powierzchni. - - - ContextPaneWidgetImage - - Form - Formularz - - - 10 x 10 - 10 x 10 - The image is scaled to fit. Dopasowuje obraz do dostępnej powierzchni. @@ -12167,13 +12153,6 @@ Identyfikatory muszą rozpoczynać się małą literą. The image is scaled uniformly to fill, cropping if necessary. Obraz jest skalowany jednolicie, może zostać przycięty. - - - ContextPaneWidgetRectangle - - Form - Formularz - Gradient Gradient @@ -12182,17 +12161,10 @@ Identyfikatory muszą rozpoczynać się małą literą. Color Kolor - - ... - ... - Border Brzeg - - - EasingContextPane Dialog Dialog @@ -12395,7 +12367,7 @@ Identyfikatory muszą rozpoczynać się małą literą. - QmlEditorWidgets::ContextPaneWidget + ::QmlEditorWidgets Hides this toolbar. Ukrywa ten pasek narzędzi. @@ -12416,16 +12388,10 @@ Identyfikatory muszą rozpoczynać się małą literą. Hides this toolbar. This toolbar can be permanently disabled in the options page or in the context menu. Ukrywa ten pasek narzędzi. Można go zablokować na stałe, na stronie z opcjami lub z podręcznego menu. - - - QmlEditorWidgets::ContextPaneWidgetImage Double click for preview. Kliknij dwukrotnie aby wyświetlić podgląd. - - - QmlEditorWidgets::FileWidget Open File Otwórz plik diff --git a/share/qtcreator/translations/qtcreator_ru.ts b/share/qtcreator/translations/qtcreator_ru.ts index faab9d46eae..9859d9542e8 100644 --- a/share/qtcreator/translations/qtcreator_ru.ts +++ b/share/qtcreator/translations/qtcreator_ru.ts @@ -8034,7 +8034,7 @@ p, li { white-space: pre-wrap; } - ContextPaneTextWidget + ::QmlEditorWidgets Text Текст @@ -8047,9 +8047,6 @@ p, li { white-space: pre-wrap; } ... - - - ContextPaneWidgetBorderImage 10 x 10 @@ -8074,13 +8071,6 @@ p, li { white-space: pre-wrap; } Stretch horizontally. Scales the image to fit to the available area. Горизонтальное растягивание. Растягивание изображения для заполнения доступного места. - - - ContextPaneWidgetImage - - 10 x 10 - - The image is scaled to fit. Растягивать изображение. @@ -8105,9 +8095,6 @@ p, li { white-space: pre-wrap; } The image is scaled uniformly to fill, cropping if necessary. Увеличить изображение до полного заполнения, возможно, с обрезкой. - - - ContextPaneWidgetRectangle Gradient Градиент @@ -8116,10 +8103,6 @@ p, li { white-space: pre-wrap; } Color Цвет - - ... - - Border Рамка @@ -17669,7 +17652,7 @@ Rebuilding the project might help. - EasingContextPane + ::QmlEditorWidgets Dialog @@ -37366,7 +37349,7 @@ This is independent of the visibility property in QML. - QmlEditorWidgets::ContextPaneWidget + ::QmlEditorWidgets Hides this toolbar. Скрывает эту панель. @@ -37387,16 +37370,10 @@ This is independent of the visibility property in QML. Hides this toolbar. This toolbar can be permanently disabled in the options page or in the context menu. Скрывает эту панель. Она может быть навсегда отключена в настройках или контекстном меню. - - - QmlEditorWidgets::ContextPaneWidgetImage Double click for preview. Двойной щелчок для предпросмотра. - - - QmlEditorWidgets::FileWidget Open File Открытие файла diff --git a/share/qtcreator/translations/qtcreator_sl.ts b/share/qtcreator/translations/qtcreator_sl.ts index f90d80c6a55..3133b08975a 100644 --- a/share/qtcreator/translations/qtcreator_sl.ts +++ b/share/qtcreator/translations/qtcreator_sl.ts @@ -13062,7 +13062,7 @@ Spremembe lahko zapišete na stran ali pa jih zavržete. - ContextPaneTextWidget + ::QmlEditorWidgets Text Besedilo @@ -16970,7 +16970,7 @@ Projekte programov QML izvede pregledovalnik QML in jih ni potrebno zgraditi. - ContextPaneWidgetBorderImage + ::QmlEditorWidgets Form Obrazec @@ -17005,13 +17005,6 @@ Projekte programov QML izvede pregledovalnik QML in jih ni potrebno zgraditi.10 x 10 10 ⨯ 10 - - - ContextPaneWidgetImage - - Form - Obrazec - The image is scaled to fit @@ -17042,18 +17035,6 @@ Projekte programov QML izvede pregledovalnik QML in jih ni potrebno zgraditi.The image is scaled uniformly to fill, cropping if necessary Slika je enakomerno prilagojena z obrezom po potrebi - - - 10 x 10 - 10 ⨯ 10 - - - - ContextPaneWidgetRectangle - - Form - Obrazec - Gradient @@ -17064,19 +17045,11 @@ Projekte programov QML izvede pregledovalnik QML in jih ni potrebno zgraditi.Color Barva - - - ... - ... - Border Rob - - - EasingContextPane Dialog Pogovorno okno @@ -20735,7 +20708,7 @@ S simulacijo predpomnilnika so omogočeni dodatni števci dogodkov: - QmlEditorWidgets::ContextPaneWidget + ::QmlEditorWidgets Hides this toolbar. Skrij to orodjarno. @@ -20756,16 +20729,10 @@ S simulacijo predpomnilnika so omogočeni dodatni števci dogodkov: Hides this toolbar. This toolbar can be permanently disabled in the options page or in the context menu. Skrije to orodjarno. To orodjarno je mogoče trajno onemogočiti na strani z možnostmi ali na priročnem meniju. - - - QmlEditorWidgets::ContextPaneWidgetImage double click for preview Dvokliknite za ogled - - - QmlEditorWidgets::FileWidget Open File Odpri datoteko diff --git a/share/qtcreator/translations/qtcreator_uk.ts b/share/qtcreator/translations/qtcreator_uk.ts index fe98039c1f4..c824d44aefa 100644 --- a/share/qtcreator/translations/qtcreator_uk.ts +++ b/share/qtcreator/translations/qtcreator_uk.ts @@ -1497,7 +1497,7 @@ Local pulls are not applied to the master branch. - ContextPaneTextWidget + ::QmlEditorWidgets Text Текст @@ -1510,9 +1510,6 @@ Local pulls are not applied to the master branch. ... ... - - - ContextPaneWidgetBorderImage Form Форма @@ -1541,13 +1538,6 @@ Local pulls are not applied to the master branch. Stretch horizontally. Scales the image to fit to the available area. Розтягнути горизонтально. Масштабує зображення, щоб відповідати доступній області. - - - ContextPaneWidgetImage - - Form - Форма - The image is scaled to fit Зображення масштабоване, щоб відповідати @@ -1572,10 +1562,6 @@ Local pulls are not applied to the master branch. The image is scaled uniformly to fill, cropping if necessary Зображення рівномірно масштабоване, щоб заповнити; обрізується, якщо необхідно - - 10 x 10 - 10 x 10 - The image is scaled to fit. Зображення масштабоване, щоб відповідати. @@ -1600,13 +1586,6 @@ Local pulls are not applied to the master branch. The image is scaled uniformly to fill, cropping if necessary. Зображення рівномірно масштабоване, щоб заповнити; обрізується, якщо необхідно. - - - ContextPaneWidgetRectangle - - Form - Форма - Gradient Градієнт @@ -1615,10 +1594,6 @@ Local pulls are not applied to the master branch. Color Колір - - ... - ... - Border Границя @@ -7077,7 +7052,7 @@ Rebuilding the project might help. - EasingContextPane + ::QmlEditorWidgets Dialog Діалог @@ -14902,7 +14877,7 @@ This is independent of the visibility property in QML. - QmlEditorWidgets::ContextPaneWidget + ::QmlEditorWidgets Hides this toolbar. Сховати цю панель інструментів. @@ -14923,9 +14898,6 @@ This is independent of the visibility property in QML. Hides this toolbar. This toolbar can be permanently disabled in the options page or in the context menu. Сховати цю панель інструментів. Цю панель інструментів можна вимкнути назавжди в опціях або в контекстному меню. - - - QmlEditorWidgets::ContextPaneWidgetImage double click for preview подвійне клацання для попереднього перегляду @@ -14934,9 +14906,6 @@ This is independent of the visibility property in QML. Double click for preview. Подвійне клацання для попереднього перегляду. - - - QmlEditorWidgets::FileWidget Open File Відкрити файл diff --git a/share/qtcreator/translations/qtcreator_zh_CN.ts b/share/qtcreator/translations/qtcreator_zh_CN.ts index 7573466adcd..8473ba848af 100644 --- a/share/qtcreator/translations/qtcreator_zh_CN.ts +++ b/share/qtcreator/translations/qtcreator_zh_CN.ts @@ -8413,7 +8413,7 @@ Set a valid executable first. - ContextPaneTextWidget + ::QmlEditorWidgets Text 文本 @@ -8426,9 +8426,6 @@ Set a valid executable first. ... ... - - - ContextPaneWidgetBorderImage Stretch vertically. Scales the image to fit to the available area. 竖直拉伸,将图片在竖直方向拉伸以填满可用区域。 @@ -8453,13 +8450,6 @@ Set a valid executable first. 10 x 10 10 x 10 - - - ContextPaneWidgetImage - - 10 x 10 - 10 x 10 - The image is scaled to fit. @@ -8484,9 +8474,6 @@ Set a valid executable first. The image is scaled uniformly to fill, cropping if necessary. - - - ContextPaneWidgetRectangle Gradient 渐变填充 @@ -8495,10 +8482,6 @@ Set a valid executable first. Color 颜色 - - ... - ... - Border 边框 @@ -18287,7 +18270,7 @@ Rebuilding the project might help. - EasingContextPane + ::QmlEditorWidgets Dialog 对话框 @@ -35808,7 +35791,7 @@ Locked components cannot be modified or selected. - QmlEditorWidgets::ContextPaneWidget + ::QmlEditorWidgets Hides this toolbar. 隐藏这个工具条. @@ -35829,16 +35812,10 @@ Locked components cannot be modified or selected. Hides this toolbar. This toolbar can be permanently disabled in the options page or in the context menu. 隐藏这个工具栏。该工具栏可在选项页或上下文菜单中永久禁用。 - - - QmlEditorWidgets::ContextPaneWidgetImage Double click for preview. - - - QmlEditorWidgets::FileWidget Open File 打开文件 diff --git a/share/qtcreator/translations/qtcreator_zh_TW.ts b/share/qtcreator/translations/qtcreator_zh_TW.ts index 5b850bc80dd..33a5f2b999a 100644 --- a/share/qtcreator/translations/qtcreator_zh_TW.ts +++ b/share/qtcreator/translations/qtcreator_zh_TW.ts @@ -14187,7 +14187,7 @@ Ids must begin with a lowercase letter. - ContextPaneTextWidget + ::QmlEditorWidgets Text 文字 @@ -14691,7 +14691,7 @@ Ids must begin with a lowercase letter. - ContextPaneWidgetBorderImage + ::QmlEditorWidgets Form 表單 @@ -14720,13 +14720,6 @@ Ids must begin with a lowercase letter. 10 x 10 10 x 10 - - - ContextPaneWidgetImage - - Form - 表單 - The image is scaled to fit 圖像被縮放到合適大小 @@ -14751,17 +14744,6 @@ Ids must begin with a lowercase letter. The image is scaled uniformly to fill, cropping if necessary 影像被一致地縮放到合適大小,如果需要會被裁剪 - - 10 x 10 - 10 x 10 - - - - ContextPaneWidgetRectangle - - Form - 表單 - Gradient 漸層 @@ -14770,17 +14752,10 @@ Ids must begin with a lowercase letter. Color 顏色 - - ... - ... - Border 邊框 - - - EasingContextPane Dialog 對話框 @@ -15006,7 +14981,7 @@ Ids must begin with a lowercase letter. - QmlEditorWidgets::ContextPaneWidget + ::QmlEditorWidgets Hides this toolbar. 隱藏此工具列。 @@ -15027,16 +15002,10 @@ Ids must begin with a lowercase letter. Hides this toolbar. This toolbar can be permanently disabled in the options page or in the context menu. 隱藏此工具列。該工具列可在選項頁面或內文選單中永久停用。 - - - QmlEditorWidgets::ContextPaneWidgetImage double click for preview 雙擊以預覽 - - - QmlEditorWidgets::FileWidget Open File 開啟檔案 diff --git a/src/libs/qmleditorwidgets/contextpanetextwidget.cpp b/src/libs/qmleditorwidgets/contextpanetextwidget.cpp index 8d4f13f752a..1a7d5272948 100644 --- a/src/libs/qmleditorwidgets/contextpanetextwidget.cpp +++ b/src/libs/qmleditorwidgets/contextpanetextwidget.cpp @@ -7,6 +7,7 @@ #include "contextpanewidget.h" #include "customcolordialog.h" #include "fontsizespinbox.h" +#include "qmleditorwidgetstr.h" #include #include @@ -24,7 +25,7 @@ namespace QmlEditorWidgets { ContextPaneTextWidget::ContextPaneTextWidget(QWidget *parent) : QWidget(parent) { - setWindowTitle(tr("Text")); + setWindowTitle(Tr::tr("Text")); auto iconToolButton = [] (const QString &iconName, const QString &iconFallBack, bool autoExclusive = true) { @@ -64,7 +65,7 @@ ContextPaneTextWidget::ContextPaneTextWidget(QWidget *parent) : m_centerVAlignmentButton = iconToolButton({}, "alignmentmiddle-h-icon"); m_bottomAlignmentButton = iconToolButton({}, "alignmentbottom-h-icon"); - m_styleLabel = new QLabel(tr("Style")); + m_styleLabel = new QLabel(Tr::tr("Style")); m_styleComboBox = new QComboBox; m_styleComboBox->addItems({"Normal", "Outline", "Raised", "Sunken"}); m_textColorButton = colorButton(); diff --git a/src/libs/qmleditorwidgets/contextpanewidget.cpp b/src/libs/qmleditorwidgets/contextpanewidget.cpp index a846a1e529e..688c65ad7b3 100644 --- a/src/libs/qmleditorwidgets/contextpanewidget.cpp +++ b/src/libs/qmleditorwidgets/contextpanewidget.cpp @@ -3,6 +3,8 @@ #include "contextpanewidget.h" +#include "qmleditorwidgetstr.h" + #include #include @@ -143,7 +145,7 @@ ContextPaneWidget::ContextPaneWidget(QWidget *parent) : DragWidget(parent), m_cu m_toolButton->setToolButtonStyle(Qt::ToolButtonIconOnly); m_toolButton->setFixedSize(16, 16); - m_toolButton->setToolTip(tr("Hides this toolbar.")); + m_toolButton->setToolTip(Tr::tr("Hides this toolbar.")); connect(m_toolButton, &QToolButton::clicked, this, &ContextPaneWidget::onTogglePane); layout->addWidget(m_toolButton, 0, 0, 1, 1); colorDialog(); @@ -163,12 +165,12 @@ ContextPaneWidget::ContextPaneWidget(QWidget *parent) : DragWidget(parent), m_cu setAutoFillBackground(true); setContextMenuPolicy(Qt::ActionsContextMenu); - m_resetAction = new QAction(tr("Pin Toolbar"), this); + m_resetAction = new QAction(Tr::tr("Pin Toolbar"), this); m_resetAction->setCheckable(true); addAction(m_resetAction.data()); connect(m_resetAction.data(), &QAction::triggered, this, &ContextPaneWidget::onResetPosition); - m_disableAction = new QAction(tr("Show Always"), this); + m_disableAction = new QAction(Tr::tr("Show Always"), this); addAction(m_disableAction.data()); m_disableAction->setCheckable(true); connect(m_disableAction.data(), &QAction::toggled, this, &ContextPaneWidget::onDisable); @@ -465,7 +467,7 @@ void ContextPaneWidget::setPinButton() m_toolButton->setIcon(QPixmap::fromImage(QImage(pin_xpm))); m_toolButton->setToolButtonStyle(Qt::ToolButtonIconOnly); m_toolButton->setFixedSize(20, 20); - m_toolButton->setToolTip(tr("Unpins the toolbar and moves it to the default position.")); + m_toolButton->setToolTip(Tr::tr("Unpins the toolbar and moves it to the default position.")); emit pinnedChanged(true); if (m_resetAction) { @@ -481,7 +483,7 @@ void ContextPaneWidget::setLineButton() m_toolButton->setIcon(style()->standardIcon(QStyle::SP_DockWidgetCloseButton)); m_toolButton->setToolButtonStyle(Qt::ToolButtonIconOnly); m_toolButton->setFixedSize(20, 20); - m_toolButton->setToolTip(tr("Hides this toolbar. This toolbar can be" + m_toolButton->setToolTip(Tr::tr("Hides this toolbar. This toolbar can be" " permanently disabled in the options page or in the context menu.")); emit pinnedChanged(false); diff --git a/src/libs/qmleditorwidgets/contextpanewidgetimage.cpp b/src/libs/qmleditorwidgets/contextpanewidgetimage.cpp index e73784c6298..f4ba3a6a5c0 100644 --- a/src/libs/qmleditorwidgets/contextpanewidgetimage.cpp +++ b/src/libs/qmleditorwidgets/contextpanewidgetimage.cpp @@ -2,7 +2,9 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include "contextpanewidgetimage.h" + #include "filewidget.h" +#include "qmleditorwidgetstr.h" #include #include @@ -64,7 +66,7 @@ ContextPaneWidgetImage::ContextPaneWidgetImage(QWidget *parent, bool borderImage }; m_previewLabel = new QLabel; - m_previewLabel->setToolTip(tr("Double click for preview.")); + m_previewLabel->setToolTip(Tr::tr("Double click for preview.")); m_previewLabel->setFixedSize(76, 76); m_previewLabel->installEventFilter(labelFilter); @@ -74,22 +76,22 @@ ContextPaneWidgetImage::ContextPaneWidgetImage(QWidget *parent, bool borderImage if (m_isBorderImage) { m_borderImage.horizontalTileRadioButton = radioButton("tile-icon-hor-crop", - tr("Repeat vertically. Tiles the image until there is no more space. May crop the last image.")); + Tr::tr("Repeat vertically. Tiles the image until there is no more space. May crop the last image.")); m_borderImage.horizontalStretchRadioButton = radioButton("horizontal-scale-icon", - tr("Stretch vertically. Scales the image to fit to the available area.")); + Tr::tr("Stretch vertically. Scales the image to fit to the available area.")); m_borderImage.horizontalTileRadioButtonNoCrop = radioButton("tile-icon-hor-scale", - tr("Round. Like Repeat, but scales the images down to ensure that the last image is not cropped.")); + Tr::tr("Round. Like Repeat, but scales the images down to ensure that the last image is not cropped.")); auto hRadioButtons = new QButtonGroup(this); hRadioButtons->addButton(m_borderImage.horizontalTileRadioButton); hRadioButtons->addButton(m_borderImage.horizontalStretchRadioButton); hRadioButtons->addButton(m_borderImage.horizontalTileRadioButtonNoCrop); m_borderImage.verticalTileRadioButton = radioButton("tile-icon-vert-crop", - tr("Repeat horizontally. Tiles the image until there is no more space. May crop the last image.")); + Tr::tr("Repeat horizontally. Tiles the image until there is no more space. May crop the last image.")); m_borderImage.verticalStretchRadioButton = radioButton("vertical-scale-icon", - tr("Stretch horizontally. Scales the image to fit to the available area.")); + Tr::tr("Stretch horizontally. Scales the image to fit to the available area.")); m_borderImage.verticalTileRadioButtonNoCrop = radioButton("tile-icon-vert-scale", - tr("Round. Like Repeat, but scales the images down to ensure that the last image is not cropped.")); + Tr::tr("Round. Like Repeat, but scales the images down to ensure that the last image is not cropped.")); auto vRadioButtons = new QButtonGroup(this); vRadioButtons->addButton(m_borderImage.verticalTileRadioButton); vRadioButtons->addButton(m_borderImage.verticalStretchRadioButton); @@ -131,18 +133,18 @@ ContextPaneWidgetImage::ContextPaneWidgetImage(QWidget *parent, bool borderImage this, &ContextPaneWidgetImage::onBottomMarginsChanged); } else { m_image.stretchRadioButton = radioButton("scale-icon", - tr("The image is scaled to fit.")); + Tr::tr("The image is scaled to fit.")); m_image.horizontalStretchRadioButton = radioButton("horizontal-scale-icon", - tr("The image is stretched horizontally and tiled vertically.")); + Tr::tr("The image is stretched horizontally and tiled vertically.")); m_image.verticalStretchRadioButton = radioButton("vertical-scale-icon", - tr("The image is stretched vertically and tiled horizontally.")); + Tr::tr("The image is stretched vertically and tiled horizontally.")); m_image.tileRadioButton = radioButton("tile-icon", - tr("The image is duplicated horizontally and vertically.")); + Tr::tr("The image is duplicated horizontally and vertically.")); m_image.preserveAspectFitRadioButton = radioButton("aspect-fit-icon", - tr("The image is scaled uniformly to fit without cropping.")); + Tr::tr("The image is scaled uniformly to fit without cropping.")); m_image.cropAspectFitRadioButton = radioButton("aspect-crop-icon", - tr("The image is scaled uniformly to fill, cropping if necessary.")); + Tr::tr("The image is scaled uniformly to fill, cropping if necessary.")); using namespace Utils::Layouting; Row { diff --git a/src/libs/qmleditorwidgets/contextpanewidgetrectangle.cpp b/src/libs/qmleditorwidgets/contextpanewidgetrectangle.cpp index 6382ebf4fff..52afeff187c 100644 --- a/src/libs/qmleditorwidgets/contextpanewidgetrectangle.cpp +++ b/src/libs/qmleditorwidgets/contextpanewidgetrectangle.cpp @@ -7,6 +7,7 @@ #include "contextpanewidget.h" #include "customcolordialog.h" #include "gradientline.h" +#include "qmleditorwidgetstr.h" #include #include @@ -32,7 +33,7 @@ ContextPaneWidgetRectangle::ContextPaneWidgetRectangle(QWidget *parent) return result; }; - m_gradientLabel = new QLabel(tr("Gradient")); + m_gradientLabel = new QLabel(Tr::tr("Gradient")); m_gradientLabel->setAlignment(Qt::AlignBottom); m_gradientLine = new GradientLine; m_gradientLine->setMinimumWidth(240); @@ -58,8 +59,8 @@ ContextPaneWidgetRectangle::ContextPaneWidgetRectangle(QWidget *parent) using namespace Utils::Layouting; Grid { m_gradientLabel, m_gradientLine, br, - tr("Color"), Row { m_colorColorButton, m_colorSolid, m_colorGradient, m_colorNone, st, }, br, - tr("Border"), Row { m_borderColorButton, m_borderSolid, m_borderNone, st, }, br, + Tr::tr("Color"), Row { m_colorColorButton, m_colorSolid, m_colorGradient, m_colorNone, st, }, br, + Tr::tr("Border"), Row { m_borderColorButton, m_borderSolid, m_borderNone, st, }, br, }.attachTo(this); connect(m_colorColorButton, &QmlEditorWidgets::ColorButton::toggled, diff --git a/src/libs/qmleditorwidgets/easingpane/easingcontextpane.cpp b/src/libs/qmleditorwidgets/easingpane/easingcontextpane.cpp index 810cd02ce3d..0169e4c1740 100644 --- a/src/libs/qmleditorwidgets/easingpane/easingcontextpane.cpp +++ b/src/libs/qmleditorwidgets/easingpane/easingcontextpane.cpp @@ -4,6 +4,7 @@ #include "easingcontextpane.h" #include "easinggraph.h" +#include "qmleditorwidgetstr.h" #include #include @@ -110,34 +111,34 @@ EasingContextPane::EasingContextPane(QWidget *parent) m_playButton = new QPushButton; m_playButton->setIcon(Utils::Icons::RUN_SMALL.icon()); m_playButton->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding); - m_playButton->setToolTip(tr("Play simulation.")); + m_playButton->setToolTip(Tr::tr("Play simulation.")); m_easingShapeComboBox = new QComboBox; m_easingShapeComboBox->addItems( {"Linear", "Quad", "Cubic", "Quart", "Quint", "Sine", "Expo", "Circ", "Elastic", "Back", "Bounce"}); - m_easingShapeComboBox->setToolTip(tr("Type of easing curve.")); + m_easingShapeComboBox->setToolTip(Tr::tr("Type of easing curve.")); m_easingExtremesComboBox = new QComboBox; m_easingExtremesComboBox->addItems( {"In", "Out", "InOut", "OutIn"}); - m_easingExtremesComboBox->setToolTip(tr("Acceleration or deceleration of easing curve.")); + m_easingExtremesComboBox->setToolTip(Tr::tr("Acceleration or deceleration of easing curve.")); m_durationSpinBox = new QSpinBox; m_durationSpinBox->setKeyboardTracking(false); m_durationSpinBox->setMaximum(9999999); m_durationSpinBox->setMinimum(-1); m_durationSpinBox->setSingleStep(10); - m_durationSpinBox->setSuffix(tr(" ms")); - m_durationSpinBox->setToolTip(tr("Duration of animation.")); + m_durationSpinBox->setSuffix(Tr::tr(" ms")); + m_durationSpinBox->setToolTip(Tr::tr("Duration of animation.")); m_amplitudeSpinBox = new QDoubleSpinBox; m_amplitudeSpinBox->setSingleStep(0.05); - m_amplitudeSpinBox->setToolTip(tr("Amplitude of elastic and bounce easing curves.")); + m_amplitudeSpinBox->setToolTip(Tr::tr("Amplitude of elastic and bounce easing curves.")); m_periodSpinBox = new QDoubleSpinBox; m_periodSpinBox->setSingleStep(0.01); - m_periodSpinBox->setToolTip(tr("Easing period of an elastic curve.")); + m_periodSpinBox->setToolTip(Tr::tr("Easing period of an elastic curve.")); m_overshootSpinBox = new QDoubleSpinBox; m_overshootSpinBox->setSingleStep(0.05); - m_overshootSpinBox->setToolTip(tr("Easing overshoot for a back curve.")); + m_overshootSpinBox->setToolTip(Tr::tr("Easing overshoot for a back curve.")); for (auto spinBox : {m_amplitudeSpinBox, m_periodSpinBox, m_overshootSpinBox}) { spinBox->setDecimals(3); spinBox->setKeyboardTracking(false); @@ -149,14 +150,14 @@ EasingContextPane::EasingContextPane(QWidget *parent) Row { m_graphicsView, m_playButton, }, Row { Form { - tr("Easing"), m_easingShapeComboBox, br, - tr("Duration"), m_durationSpinBox, br, - tr("Period"), m_periodSpinBox, br, + Tr::tr("Easing"), m_easingShapeComboBox, br, + Tr::tr("Duration"), m_durationSpinBox, br, + Tr::tr("Period"), m_periodSpinBox, br, }, Form { - tr("Subtype"), m_easingExtremesComboBox, br, - tr("Amplitude"), m_amplitudeSpinBox, br, - tr("Overshoot"), m_overshootSpinBox, br, + Tr::tr("Subtype"), m_easingExtremesComboBox, br, + Tr::tr("Amplitude"), m_amplitudeSpinBox, br, + Tr::tr("Overshoot"), m_overshootSpinBox, br, }, }, }.attachTo(this); diff --git a/src/libs/qmleditorwidgets/filewidget.cpp b/src/libs/qmleditorwidgets/filewidget.cpp index 0e475fe02e9..e7f2d002eea 100644 --- a/src/libs/qmleditorwidgets/filewidget.cpp +++ b/src/libs/qmleditorwidgets/filewidget.cpp @@ -3,6 +3,8 @@ #include "filewidget.h" +#include "qmleditorwidgetstr.h" + #include #include #include @@ -67,7 +69,7 @@ void FileWidget::comboBoxChanged() void FileWidget::onButtonReleased() { - QString newFile = QFileDialog::getOpenFileName(this, tr("Open File"), + QString newFile = QFileDialog::getOpenFileName(this, Tr::tr("Open File"), m_path.toLocalFile(), m_filter); if (!newFile.isEmpty()) setFileNameStr(newFile);