Skip to content

Commit 578c035

Browse files
committed
fix: localized strings used in image gallery
1 parent 5885bbc commit 578c035

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2087,6 +2087,20 @@ function RemoteFunctions(config = {}) {
20872087
width: 200px !important;
20882088
}
20892089
2090+
.phoenix-ribbon-search input::placeholder {
2091+
color: rgba(255, 255, 255, 0.7) !important;
2092+
opacity: 1 !important;
2093+
}
2094+
2095+
.phoenix-ribbon-search input::-webkit-input-placeholder {
2096+
color: rgba(255, 255, 255, 0.7) !important;
2097+
}
2098+
2099+
.phoenix-ribbon-search input::-moz-placeholder {
2100+
color: rgba(255, 255, 255, 0.7) !important;
2101+
opacity: 1 !important;
2102+
}
2103+
20902104
.phoenix-ribbon-search-btn {
20912105
background: none !important;
20922106
border: none !important;
@@ -2195,11 +2209,11 @@ function RemoteFunctions(config = {}) {
21952209
<div class="phoenix-ribbon-header">
21962210
<div class="phoenix-ribbon-header-left">
21972211
<div class="phoenix-ribbon-search">
2198-
<input type="text" placeholder="Search images..." />
2212+
<input type="text" placeholder="${config.strings.imageGallerySearchPlaceholder}" />
21992213
<button class="phoenix-ribbon-search-btn">Search</button>
22002214
</div>
22012215
<div class="phoenix-ribbon-select">
2202-
<button class="phoenix-select-image-btn" title="Select image from computer">
2216+
<button class="phoenix-select-image-btn" title="${config.strings.imageGallerySelectFromComputer}">
22032217
<svg viewBox="0 0 24 24" fill="currentColor" width="20" height="20">
22042218
<path d="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z"/>
22052219
<path d="M12,12L10.5,13.5L8.5,11.5L6,14H18L15,11L12,12Z"/>

src/LiveDevelopment/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ define(function main(require, exports, module) {
8181
delete: Strings.LIVE_DEV_MORE_OPTIONS_DELETE,
8282
ai: Strings.LIVE_DEV_MORE_OPTIONS_AI,
8383
aiPromptPlaceholder: Strings.LIVE_DEV_AI_PROMPT_PLACEHOLDER,
84-
imageGalleryUseImage: Strings.LIVE_DEV_IMAGE_GALLERY_USE_IMAGE
84+
imageGalleryUseImage: Strings.LIVE_DEV_IMAGE_GALLERY_USE_IMAGE,
85+
imageGallerySelectFromComputer: Strings.LIVE_DEV_IMAGE_GALLERY_SELECT_FROM_COMPUTER,
86+
imageGallerySearchPlaceholder: Strings.LIVE_DEV_IMAGE_GALLERY_SEARCH_PLACEHOLDER
8587
}
8688
};
8789
// Status labels/styles are ordered: error, not connected, progress1, progress2, connected.

src/nls/root/strings.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ define({
190190
"LIVE_DEV_MORE_OPTIONS_DELETE": "Delete",
191191
"LIVE_DEV_MORE_OPTIONS_AI": "Edit with AI",
192192
"LIVE_DEV_IMAGE_GALLERY_USE_IMAGE": "Use this image",
193+
"LIVE_DEV_IMAGE_GALLERY_SELECT_FROM_COMPUTER": "Select image from computer",
194+
"LIVE_DEV_IMAGE_GALLERY_SEARCH_PLACEHOLDER": "Search images...",
193195
"LIVE_DEV_AI_PROMPT_PLACEHOLDER": "Ask Phoenix AI to modify this element...",
194196
"LIVE_PREVIEW_CUSTOM_SERVER_BANNER": "Getting preview from your custom server {0}",
195197
"LIVE_PREVIEW_MODE_PREVIEW": "Preview Mode",

0 commit comments

Comments
 (0)