chore: fix translation strings (#2994)

This commit is contained in:
Antonella Sgarlatta
2026-03-06 15:17:55 -03:00
committed by GitHub
parent 00ecfc4951
commit 51f7728c17
5 changed files with 43 additions and 25 deletions

View File

@@ -166,9 +166,22 @@ const ConfirmPassword: FunctionComponent<Props> = ({ setMenuPane, email, passwor
const confirmPasswordForm = ( const confirmPasswordForm = (
<> <>
<div className="mb-3 px-3 text-sm"> <div className="mb-3 px-3 text-sm">
{c('Info').jt`Because your notes are encrypted using your password, ${( {
<span className="text-danger">Standard Notes does not have a password reset option</span> // translator: Full sentence: "Because your notes are encrypted using your password, Standard Notes does not have a password reset option. If you forget your password, you will permanently lose access to your data."
)}. If you forget your password, you will permanently lose access to your data.`} c('Info').t`Because your notes are encrypted using your password,`
}{' '}
{
<span className="text-danger">
{
// translator: Full sentence: "Because your notes are encrypted using your password, Standard Notes does not have a password reset option. If you forget your password, you will permanently lose access to your data."
c('Info').t`Standard Notes does not have a password reset option`
}
</span>
}
{
// translator: Full sentence: "Because your notes are encrypted using your password, Standard Notes does not have a password reset option. If you forget your password, you will permanently lose access to your data."
c('Info').t`. If you forget your password, you will permanently lose access to your data.`
}
</div> </div>
<form onSubmit={handleConfirmFormSubmit} className="mb-1 px-3"> <form onSubmit={handleConfirmFormSubmit} className="mb-1 px-3">
{!isRegistering && ( {!isRegistering && (

View File

@@ -6,12 +6,12 @@ import { FunctionComponent, useEffect, useState } from 'react'
import PreferencesGroup from '@/Components/Preferences/PreferencesComponents/PreferencesGroup' import PreferencesGroup from '@/Components/Preferences/PreferencesComponents/PreferencesGroup'
import PreferencesSegment from '@/Components/Preferences/PreferencesComponents/PreferencesSegment' import PreferencesSegment from '@/Components/Preferences/PreferencesComponents/PreferencesSegment'
import { useApplication } from '@/Components/ApplicationProvider' import { useApplication } from '@/Components/ApplicationProvider'
import { SubscriptionManagerEvent, Subscription } from '@standardnotes/snjs' import { SubscriptionManagerEvent, Subscription as SubscriptionType } from '@standardnotes/snjs'
const Subscription: FunctionComponent = () => { const Subscription: FunctionComponent = () => {
const application = useApplication() const application = useApplication()
const [onlineSubscription, setOnlineSubscription] = useState<Subscription | undefined>( const [onlineSubscription, setOnlineSubscription] = useState<SubscriptionType | undefined>(
application.subscriptionController.onlineSubscription, application.subscriptionController.onlineSubscription,
) )

View File

@@ -198,10 +198,14 @@ const CreateAccount: FunctionComponent<Props> = ({ application }) => {
<DiamondIcon className="absolute -right-2 top-0 -z-[1] h-18 w-18 translate-x-1/2" /> <DiamondIcon className="absolute -right-2 top-0 -z-[1] h-18 w-18 translate-x-1/2" />
<div className="mr-0 lg:mr-12"> <div className="mr-0 lg:mr-12">
// translator: Full sentence: "Create your free account" {
<h1 className="mb-2 mt-0 text-2xl font-bold">{c('Title').t`Create your free account`}</h1> // translator: Full sentence: "Create your free account"
// translator: Full sentence: "Create your free account to continue to Standard Notes." <h1 className="mb-2 mt-0 text-2xl font-bold">{c('Title').t`Create your free account`}</h1>
<div className="mb-4 text-sm font-medium">{c('Info').t`to continue to Standard Notes.`}</div> }
{
// translator: Full sentence: "Create your free account to continue to Standard Notes."
<div className="mb-4 text-sm font-medium">{c('Info').t`to continue to Standard Notes.`}</div>
}
{captchaURL ? captchaIframe : CreateAccountForm} {captchaURL ? captchaIframe : CreateAccountForm}
<div className="flex flex-col-reverse items-start justify-between md:flex-row md:items-center"> <div className="flex flex-col-reverse items-start justify-between md:flex-row md:items-center">
<div className="flex flex-col"> <div className="flex flex-col">
@@ -210,8 +214,10 @@ const CreateAccount: FunctionComponent<Props> = ({ application }) => {
disabled={isCreatingAccount} disabled={isCreatingAccount}
className="mb-2 flex cursor-pointer items-start border-0 bg-default p-0 font-medium text-info hover:underline" className="mb-2 flex cursor-pointer items-start border-0 bg-default p-0 font-medium text-info hover:underline"
> >
// translator: "Instead" here refers to "instead of creating an account" {
{c('Action').t`Sign in instead`} // translator: "Instead" here refers to "instead of creating an account"
c('Action').t`Sign in instead`
}
</button> </button>
{!application.isNativeIOS() && ( {!application.isNativeIOS() && (
<button <button

View File

@@ -168,14 +168,13 @@ const SignIn: FunctionComponent<Props> = ({ application }) => {
<div className="mb-4 text-sm font-medium">{c('Info').t`to continue to Standard Notes.`}</div> <div className="mb-4 text-sm font-medium">{c('Info').t`to continue to Standard Notes.`}</div>
{showCaptcha ? captchaIframe : signInForm} {showCaptcha ? captchaIframe : signInForm}
<div className="text-sm font-medium text-passive-1"> <div className="text-sm font-medium text-passive-1">
{c('Info').jt`Dont have an account yet? ${( {c('Info').t`Dont have an account yet?`}{' '}
<a <a
className={`text-info ${isSigningIn ? 'cursor-not-allowed' : 'cursor-pointer '}`} className={`text-info ${isSigningIn ? 'cursor-not-allowed' : 'cursor-pointer '}`}
onClick={handleCreateAccountInstead} onClick={handleCreateAccountInstead}
> >
{c('Action').t`Create account`} {c('Action').t`Create account`}
</a> </a>
)}`}
</div> </div>
</div> </div>
</div> </div>

View File

@@ -3,7 +3,7 @@ import { KeyboardKey } from '@standardnotes/ui-services'
import { useCallback, useState, useRef } from 'react' import { useCallback, useState, useRef } from 'react'
import { useApplication } from '../ApplicationProvider' import { useApplication } from '../ApplicationProvider'
import Icon from '../Icon/Icon' import Icon from '../Icon/Icon'
import { Table, TableRow } from './CommonTypes' import { Table as TableType, TableRow as TableRowType } from './CommonTypes'
function TableRow<Data>({ function TableRow<Data>({
row, row,
@@ -13,12 +13,12 @@ function TableRow<Data>({
handleRowContextMenu, handleRowContextMenu,
handleActivateRow, handleActivateRow,
}: { }: {
row: TableRow<Data> row: TableRowType<Data>
index: number index: number
canSelectRows: Table<Data>['canSelectRows'] canSelectRows: TableType<Data>['canSelectRows']
handleRowClick: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, id: string) => void handleRowClick: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, id: string) => void
handleRowContextMenu: Table<Data>['handleRowContextMenu'] handleRowContextMenu: TableType<Data>['handleRowContextMenu']
handleActivateRow: Table<Data>['handleActivateRow'] handleActivateRow: TableType<Data>['handleActivateRow']
}) { }) {
const [isHovered, setIsHovered] = useState(false) const [isHovered, setIsHovered] = useState(false)
const [isFocused, setIsFocused] = useState(false) const [isFocused, setIsFocused] = useState(false)
@@ -96,7 +96,7 @@ const MinRowsToDisplay = 20
const PageSize = Math.ceil(document.documentElement.clientHeight / MinTableRowHeight) || MinRowsToDisplay const PageSize = Math.ceil(document.documentElement.clientHeight / MinTableRowHeight) || MinRowsToDisplay
const PageScrollThreshold = 200 const PageScrollThreshold = 200
function Table<Data>({ table }: { table: Table<Data> }) { function Table<Data>({ table }: { table: TableType<Data> }) {
const application = useApplication() const application = useApplication()
const [rowsToDisplay, setRowsToDisplay] = useState<number>(PageSize) const [rowsToDisplay, setRowsToDisplay] = useState<number>(PageSize)