Skip to content

Commit

Permalink
[web] Search related translation cleanup (#3158)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnvr authored Sep 7, 2024
2 parents 2f19a21 + 9ab641c commit 88684c9
Show file tree
Hide file tree
Showing 38 changed files with 410 additions and 565 deletions.
4 changes: 2 additions & 2 deletions web/apps/auth/src/pages/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const Page: React.FC = () => {
<TextField
id="search"
name="search"
label={t("SEARCH")}
label={t("search")}
onChange={(e) => setSearchTerm(e.target.value)}
variant="filled"
style={{ width: "350px" }}
Expand Down Expand Up @@ -121,7 +121,7 @@ const Page: React.FC = () => {
}}
>
{searchTerm.length > 0 ? (
<p>{t("NO_RESULTS")}</p>
<p>{t("no_results")}</p>
) : (
<></>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const FileInfo: React.FC<FileInfoProps> = ({
<>
<InfoItem
icon={<LocationOnOutlined />}
title={t("LOCATION")}
title={t("location")}
caption={
!mapEnabled ||
publicCollectionGalleryContext.accessedThroughSharedURL ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const MenuWithPeople = (props) => {
indexStatus &&
(people && people.length > 0 ? (
<Box>
<Legend>{t("PEOPLE")}</Legend>
<Legend>{t("people")}</Legend>
</Box>
) : (
<Box height={6} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default function SearchInput(props: Iprops) {
ref={selectRef}
value={value}
components={components}
placeholder={<span>{t("SEARCH_HINT")}</span>}
placeholder={<span>{t("search_hint")}</span>}
loadOptions={getOptions}
onChange={handleChange}
onFocus={handleOnFocus}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { SearchOption } from "@/new/photos/services/search/types";
import { labelForSuggestionType } from "@/new/photos/services/search/ui";
import {
FreeFlowText,
SpaceBetweenFlex,
Expand All @@ -24,7 +25,7 @@ const LabelWithInfo = ({ data }: { data: SearchOption }) => {
<>
<Box className="main" px={2} py={1}>
<Typography variant="mini" mb={1}>
{t(`SEARCH_TYPE.${data.type}`)}
{labelForSuggestionType(data.type)}
</Typography>
<SpaceBetweenFlex>
<Box mr={1}>
Expand Down
2 changes: 1 addition & 1 deletion web/apps/photos/src/components/Search/SearchResultInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function SearchResultInfo({ searchResultSummary }: Iprops) {
return (
<CollectionInfoBarWrapper>
<Typography color="text.muted" variant="large">
{t("SEARCH_RESULTS")}
{t("search_results")}
</Typography>
<CollectionInfo name={optionName} fileCount={fileCount} />
</CollectionInfoBarWrapper>
Expand Down
30 changes: 12 additions & 18 deletions web/packages/base/locales/ar-SA/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,28 +209,22 @@
"SHARING_DISABLED_FOR_FREE_ACCOUNTS": "المشاركة معطلة للحسابات المجانية",
"DOWNLOAD_COLLECTION": "تنزيل الألبوم",
"CREATE_ALBUM_FAILED": "",
"SEARCH": "بحث",
"SEARCH_RESULTS": "نتائج البحث",
"NO_RESULTS": "لا توجد نتائج",
"SEARCH_HINT": "البحث عن الألبومات، التواريخ، والأوصاف...",
"SEARCH_TYPE": {
"COLLECTION": "ألبوم",
"LOCATION": "الموقع",
"CITY": "الموقع",
"DATE": "تاريخ",
"FILE_NAME": "إسم الملف",
"THING": "المحتوى",
"FILE_CAPTION": "وصف",
"FILE_TYPE": "نوع الملف",
"CLIP": "سحر"
},
"search": "بحث",
"search_results": "نتائج البحث",
"no_results": "لا توجد نتائج",
"search_hint": "البحث عن الألبومات، التواريخ، والأوصاف...",
"album": "ألبوم",
"date": "تاريخ",
"description": "وصف",
"file_type": "نوع الملف",
"magic": "سحر",
"photos_count_zero": "لا توجد ذكريات",
"photos_count_one": "ذكرى واحدة",
"photos_count": "{{count, number}} ذكريات",
"TERMS_AND_CONDITIONS": "أوافق على <a>شروط الخدمة</a> و<b>سياسة الخصوصية</b>",
"ADD_TO_COLLECTION": "إضافة إلى الألبوم",
"SELECTED": "محدد",
"PEOPLE": "",
"people": "",
"indexing_scheduled": "الفهرسة مجدولة...",
"indexing_photos": "",
"indexing_fetching": "",
Expand All @@ -241,9 +235,9 @@
"TEXT": "نص",
"INFO": "معلومات ",
"INFO_OPTION": "معلومات (I)",
"FILE_NAME": "إسم الملف",
"file_name": "إسم الملف",
"CAPTION_PLACEHOLDER": "إضافة وصف",
"LOCATION": "الموقع",
"location": "الموقع",
"SHOW_ON_MAP": "عرض على OpenStreetMap",
"MAP": "خريطة",
"MAP_SETTINGS": "إعدادات الخريطة",
Expand Down
30 changes: 12 additions & 18 deletions web/packages/base/locales/bg-BG/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,28 +209,22 @@
"SHARING_DISABLED_FOR_FREE_ACCOUNTS": "",
"DOWNLOAD_COLLECTION": "",
"CREATE_ALBUM_FAILED": "",
"SEARCH": "",
"SEARCH_RESULTS": "",
"NO_RESULTS": "",
"SEARCH_HINT": "",
"SEARCH_TYPE": {
"COLLECTION": "",
"LOCATION": "",
"CITY": "",
"DATE": "",
"FILE_NAME": "",
"THING": "",
"FILE_CAPTION": "",
"FILE_TYPE": "",
"CLIP": ""
},
"search": "",
"search_results": "",
"no_results": "",
"search_hint": "",
"album": "",
"date": "",
"description": "",
"file_type": "",
"magic": "",
"photos_count_zero": "",
"photos_count_one": "",
"photos_count": "",
"TERMS_AND_CONDITIONS": "",
"ADD_TO_COLLECTION": "",
"SELECTED": "",
"PEOPLE": "",
"people": "",
"indexing_scheduled": "",
"indexing_photos": "",
"indexing_fetching": "",
Expand All @@ -241,9 +235,9 @@
"TEXT": "",
"INFO": "",
"INFO_OPTION": "",
"FILE_NAME": "",
"file_name": "",
"CAPTION_PLACEHOLDER": "",
"LOCATION": "",
"location": "",
"SHOW_ON_MAP": "",
"MAP": "",
"MAP_SETTINGS": "",
Expand Down
30 changes: 12 additions & 18 deletions web/packages/base/locales/ca-ES/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,28 +209,22 @@
"SHARING_DISABLED_FOR_FREE_ACCOUNTS": "",
"DOWNLOAD_COLLECTION": "",
"CREATE_ALBUM_FAILED": "",
"SEARCH": "",
"SEARCH_RESULTS": "",
"NO_RESULTS": "",
"SEARCH_HINT": "",
"SEARCH_TYPE": {
"COLLECTION": "",
"LOCATION": "",
"CITY": "",
"DATE": "",
"FILE_NAME": "",
"THING": "",
"FILE_CAPTION": "",
"FILE_TYPE": "",
"CLIP": ""
},
"search": "",
"search_results": "",
"no_results": "",
"search_hint": "",
"album": "",
"date": "",
"description": "",
"file_type": "",
"magic": "",
"photos_count_zero": "",
"photos_count_one": "",
"photos_count": "",
"TERMS_AND_CONDITIONS": "",
"ADD_TO_COLLECTION": "",
"SELECTED": "",
"PEOPLE": "",
"people": "",
"indexing_scheduled": "",
"indexing_photos": "",
"indexing_fetching": "",
Expand All @@ -241,9 +235,9 @@
"TEXT": "",
"INFO": "",
"INFO_OPTION": "",
"FILE_NAME": "",
"file_name": "",
"CAPTION_PLACEHOLDER": "",
"LOCATION": "",
"location": "",
"SHOW_ON_MAP": "",
"MAP": "",
"MAP_SETTINGS": "",
Expand Down
30 changes: 12 additions & 18 deletions web/packages/base/locales/de-DE/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,28 +209,22 @@
"SHARING_DISABLED_FOR_FREE_ACCOUNTS": "Freigabe ist für kostenlose Konten deaktiviert",
"DOWNLOAD_COLLECTION": "Album herunterladen",
"CREATE_ALBUM_FAILED": "Fehler beim Erstellen des Albums, bitte versuche es erneut",
"SEARCH": "Suchen",
"SEARCH_RESULTS": "Ergebnisse durchsuchen",
"NO_RESULTS": "Keine Ergebnisse gefunden",
"SEARCH_HINT": "Suche nach Alben, Datum, Beschreibungen, ...",
"SEARCH_TYPE": {
"COLLECTION": "Album",
"LOCATION": "Standort",
"CITY": "Ort",
"DATE": "Datum",
"FILE_NAME": "Dateiname",
"THING": "Inhalt",
"FILE_CAPTION": "Beschreibung",
"FILE_TYPE": "Dateityp",
"CLIP": "Magie"
},
"search": "Suchen",
"search_results": "Ergebnisse durchsuchen",
"no_results": "Keine Ergebnisse gefunden",
"search_hint": "Suche nach Alben, Datum, Beschreibungen, ...",
"album": "Album",
"date": "Datum",
"description": "Beschreibung",
"file_type": "Dateityp",
"magic": "Magie",
"photos_count_zero": "Keine Erinnerungen",
"photos_count_one": "Eine Erinnerung",
"photos_count": "{{count, number}} Erinnerungen",
"TERMS_AND_CONDITIONS": "Ich stimme den <a>Bedingungen</a> und <b>Datenschutzrichtlinien</b> zu",
"ADD_TO_COLLECTION": "Zum Album hinzufügen",
"SELECTED": "ausgewählt",
"PEOPLE": "Personen",
"people": "Personen",
"indexing_scheduled": "Indizierung ist geplant...",
"indexing_photos": "Indiziere Fotos ({{nSyncedFiles, number}} / {{nTotalFiles, number}})",
"indexing_fetching": "",
Expand All @@ -241,9 +235,9 @@
"TEXT": "Text",
"INFO": "Info ",
"INFO_OPTION": "Info (I)",
"FILE_NAME": "Dateiname",
"file_name": "Dateiname",
"CAPTION_PLACEHOLDER": "Eine Beschreibung hinzufügen",
"LOCATION": "Standort",
"location": "Standort",
"SHOW_ON_MAP": "In OpenStreetMap öffnen",
"MAP": "Karte",
"MAP_SETTINGS": "Karten\nEinstellungen",
Expand Down
30 changes: 12 additions & 18 deletions web/packages/base/locales/el-GR/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,28 +209,22 @@
"SHARING_DISABLED_FOR_FREE_ACCOUNTS": "Η κοινοποίηση είναι απενεργοποιημένη στους δωρεάν λογαριασμούς",
"DOWNLOAD_COLLECTION": "Λήψη άλμπουμ",
"CREATE_ALBUM_FAILED": "Αποτυχία δημιουργίας άλμπουμ, παρακαλώ προσπαθήστε ξανά",
"SEARCH": "Αναζήτηση",
"SEARCH_RESULTS": "Αποτελέσματα αναζήτησης",
"NO_RESULTS": "Δε βρέθηκαν αποτελέσματα",
"SEARCH_HINT": "",
"SEARCH_TYPE": {
"COLLECTION": "Άλμπουμ",
"LOCATION": "Τοποθεσία",
"CITY": "Τοποθεσία",
"DATE": "Ημερομηνία",
"FILE_NAME": "Όνομα αρχείου",
"THING": "Περιεχόμενο",
"FILE_CAPTION": "Περιγραφή",
"FILE_TYPE": "Τύπος αρχείου",
"CLIP": ""
},
"search": "Αναζήτηση",
"search_results": "Αποτελέσματα αναζήτησης",
"no_results": "Δε βρέθηκαν αποτελέσματα",
"search_hint": "",
"album": "Άλμπουμ",
"date": "Ημερομηνία",
"description": "Περιγραφή",
"file_type": "Τύπος αρχείου",
"magic": "",
"photos_count_zero": "",
"photos_count_one": "1 ανάμνηση",
"photos_count": "{{count, number}} αναμνήσεις",
"TERMS_AND_CONDITIONS": "Συμφωνώ με τους <a>όρους χρήσης</a> και την <b>πολιτική απορρήτου</b>",
"ADD_TO_COLLECTION": "Προσθήκη στο άλμπουμ",
"SELECTED": "",
"PEOPLE": "",
"people": "",
"indexing_scheduled": "",
"indexing_photos": "",
"indexing_fetching": "",
Expand All @@ -241,9 +235,9 @@
"TEXT": "κείμενο",
"INFO": "Πληροφορίες ",
"INFO_OPTION": "Πληροφορίες (I)",
"FILE_NAME": "Όνομα αρχείου",
"file_name": "Όνομα αρχείου",
"CAPTION_PLACEHOLDER": "Προσθήκη περιγραφής",
"LOCATION": "Τοποθεσία",
"location": "Τοποθεσία",
"SHOW_ON_MAP": "Προβολή στο OpenStreetMap",
"MAP": "Χάρτης",
"MAP_SETTINGS": "Ρυθμίσεις Χάρτη",
Expand Down
30 changes: 12 additions & 18 deletions web/packages/base/locales/en-US/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,28 +209,22 @@
"SHARING_DISABLED_FOR_FREE_ACCOUNTS": "Sharing is disabled for free accounts",
"DOWNLOAD_COLLECTION": "Download album",
"CREATE_ALBUM_FAILED": "Failed to create album, please try again",
"SEARCH": "Search",
"SEARCH_RESULTS": "Search results",
"NO_RESULTS": "No results found",
"SEARCH_HINT": "Search for albums, dates, descriptions, ...",
"SEARCH_TYPE": {
"COLLECTION": "Album",
"LOCATION": "Location",
"CITY": "Location",
"DATE": "Date",
"FILE_NAME": "File name",
"THING": "Content",
"FILE_CAPTION": "Description",
"FILE_TYPE": "File type",
"CLIP": "Magic"
},
"search": "search",
"search_results": "Search results",
"no_results": "No results found",
"search_hint": "Search for albums, dates, descriptions, ...",
"album": "Album",
"date": "Date",
"description": "Description",
"file_type": "File type",
"magic": "Magic",
"photos_count_zero": "No memories",
"photos_count_one": "1 memory",
"photos_count": "{{count, number}} memories",
"TERMS_AND_CONDITIONS": "I agree to the <a>terms</a> and <b>privacy policy</b>",
"ADD_TO_COLLECTION": "Add to album",
"SELECTED": "selected",
"PEOPLE": "People",
"people": "People",
"indexing_scheduled": "Indexing is scheduled...",
"indexing_photos": "Indexing photos ({{nSyncedFiles, number}} / {{nTotalFiles, number}})",
"indexing_fetching": "Fetching indexes ({{nSyncedFiles, number}} / {{nTotalFiles, number}})",
Expand All @@ -241,9 +235,9 @@
"TEXT": "text",
"INFO": "Info ",
"INFO_OPTION": "Info (I)",
"FILE_NAME": "File name",
"file_name": "File name",
"CAPTION_PLACEHOLDER": "Add a description",
"LOCATION": "Location",
"location": "Location",
"SHOW_ON_MAP": "View on OpenStreetMap",
"MAP": "Map",
"MAP_SETTINGS": "Map Settings",
Expand Down
Loading

0 comments on commit 88684c9

Please sign in to comment.