mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #18178 from overleaf/dp-insert-figure-translations
Add translations for insert figure dropdown GitOrigin-RevId: 6ffbf0229f7ac222619271688517bc50339c10f6
This commit is contained in:
parent
9981be0cc1
commit
0c20c86878
10 changed files with 30 additions and 22 deletions
|
@ -425,7 +425,9 @@
|
||||||
"free_plan_tooltip": "",
|
"free_plan_tooltip": "",
|
||||||
"from_another_project": "",
|
"from_another_project": "",
|
||||||
"from_external_url": "",
|
"from_external_url": "",
|
||||||
|
"from_project_files": "",
|
||||||
"from_provider": "",
|
"from_provider": "",
|
||||||
|
"from_url": "",
|
||||||
"full_doc_history": "",
|
"full_doc_history": "",
|
||||||
"full_width": "",
|
"full_width": "",
|
||||||
"generate_token": "",
|
"generate_token": "",
|
||||||
|
|
|
@ -39,14 +39,16 @@ export const InsertFigureDropdown = memo(function InsertFigureDropdown() {
|
||||||
openFigureModal(FigureModalSource.FILE_UPLOAD, 'file-upload')
|
openFigureModal(FigureModalSource.FILE_UPLOAD, 'file-upload')
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Icon type="upload" fw /> Upload from computer
|
<Icon type="upload" fw />
|
||||||
|
{t('upload_from_computer')}
|
||||||
</ListGroupItem>
|
</ListGroupItem>
|
||||||
<ListGroupItem
|
<ListGroupItem
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
openFigureModal(FigureModalSource.FILE_TREE, 'current-project')
|
openFigureModal(FigureModalSource.FILE_TREE, 'current-project')
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Icon type="archive" fw /> From project files
|
<Icon type="archive" fw />
|
||||||
|
{t('from_project_files')}
|
||||||
</ListGroupItem>
|
</ListGroupItem>
|
||||||
{(hasLinkedProjectFileFeature || hasLinkedProjectOutputFileFeature) && (
|
{(hasLinkedProjectFileFeature || hasLinkedProjectOutputFileFeature) && (
|
||||||
<ListGroupItem
|
<ListGroupItem
|
||||||
|
@ -54,7 +56,8 @@ export const InsertFigureDropdown = memo(function InsertFigureDropdown() {
|
||||||
openFigureModal(FigureModalSource.OTHER_PROJECT, 'other-project')
|
openFigureModal(FigureModalSource.OTHER_PROJECT, 'other-project')
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Icon type="folder-open" fw /> From another project
|
<Icon type="folder-open" fw />
|
||||||
|
{t('from_another_project')}
|
||||||
</ListGroupItem>
|
</ListGroupItem>
|
||||||
)}
|
)}
|
||||||
{hasLinkUrlFeature && (
|
{hasLinkUrlFeature && (
|
||||||
|
@ -63,7 +66,8 @@ export const InsertFigureDropdown = memo(function InsertFigureDropdown() {
|
||||||
openFigureModal(FigureModalSource.FROM_URL, 'from-url')
|
openFigureModal(FigureModalSource.FROM_URL, 'from-url')
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Icon type="globe" fw /> From URL
|
<Icon type="globe" fw />
|
||||||
|
{t('from_url')}
|
||||||
</ListGroupItem>
|
</ListGroupItem>
|
||||||
)}
|
)}
|
||||||
</ToolbarButtonMenu>
|
</ToolbarButtonMenu>
|
||||||
|
|
|
@ -634,9 +634,11 @@
|
||||||
"free_dropbox_and_history": "Free Dropbox and History",
|
"free_dropbox_and_history": "Free Dropbox and History",
|
||||||
"free_plan_label": "You’re on the <b>free plan</b>",
|
"free_plan_label": "You’re on the <b>free plan</b>",
|
||||||
"free_plan_tooltip": "Click to find out how you could benefit from Overleaf premium features.",
|
"free_plan_tooltip": "Click to find out how you could benefit from Overleaf premium features.",
|
||||||
"from_another_project": "From Another Project",
|
"from_another_project": "From another project",
|
||||||
"from_external_url": "From External URL",
|
"from_external_url": "From external URL",
|
||||||
|
"from_project_files": "From project files",
|
||||||
"from_provider": "From __provider__",
|
"from_provider": "From __provider__",
|
||||||
|
"from_url": "From URL",
|
||||||
"full_doc_history": "Full document history",
|
"full_doc_history": "Full document history",
|
||||||
"full_doc_history_info": "Travel back in time to see any version and who made changes. No matter what happens, we’ve got your back.",
|
"full_doc_history_info": "Travel back in time to see any version and who made changes. No matter what happens, we’ve got your back.",
|
||||||
"full_doc_history_info_v2": "You can see all the edits in your project and who made every change. Add labels to quickly access specific versions.",
|
"full_doc_history_info_v2": "You can see all the edits in your project and who made every change. Add labels to quickly access specific versions.",
|
||||||
|
@ -1145,8 +1147,8 @@
|
||||||
"need_to_leave": "Need to leave?",
|
"need_to_leave": "Need to leave?",
|
||||||
"need_to_upgrade_for_more_collabs": "You need to upgrade your account to add more collaborators",
|
"need_to_upgrade_for_more_collabs": "You need to upgrade your account to add more collaborators",
|
||||||
"new_compile_domain_notice": "We’ve recently migrated PDF downloads to a new domain. Something might be blocking your browser from accessing that new domain, <0>__compilesUserContentDomain__</0>. This could be caused by network blocking or a strict browser plugin rule. Please follow our <1>troubleshooting guide</1>.",
|
"new_compile_domain_notice": "We’ve recently migrated PDF downloads to a new domain. Something might be blocking your browser from accessing that new domain, <0>__compilesUserContentDomain__</0>. This could be caused by network blocking or a strict browser plugin rule. Please follow our <1>troubleshooting guide</1>.",
|
||||||
"new_file": "New File",
|
"new_file": "New file",
|
||||||
"new_folder": "New Folder",
|
"new_folder": "New folder",
|
||||||
"new_name": "New Name",
|
"new_name": "New Name",
|
||||||
"new_password": "New Password",
|
"new_password": "New Password",
|
||||||
"new_project": "New Project",
|
"new_project": "New Project",
|
||||||
|
|
|
@ -198,8 +198,8 @@
|
||||||
"need_anything_contact_us_at": "Per qualsiasi bisogno puoi contattarci direttamente al",
|
"need_anything_contact_us_at": "Per qualsiasi bisogno puoi contattarci direttamente al",
|
||||||
"need_to_leave": "Vuoi andare via?",
|
"need_to_leave": "Vuoi andare via?",
|
||||||
"need_to_upgrade_for_more_collabs": "Devi eseguire l’upgrade dell’account per aggiungere più collaboratori",
|
"need_to_upgrade_for_more_collabs": "Devi eseguire l’upgrade dell’account per aggiungere più collaboratori",
|
||||||
"new_file": "Nuovo File",
|
"new_file": "Nuovo file",
|
||||||
"new_folder": "Nuova Cartella",
|
"new_folder": "Nuova cartella",
|
||||||
"new_name": "Nuovo Nome",
|
"new_name": "Nuovo Nome",
|
||||||
"new_password": "Nuova Password",
|
"new_password": "Nuova Password",
|
||||||
"new_project": "Nuovo Progetto",
|
"new_project": "Nuovo Progetto",
|
||||||
|
|
|
@ -320,8 +320,8 @@
|
||||||
"need_anything_contact_us_at": "Als er iets is dat je ooit nodig hebt, neem gerust direct contact met ons op via",
|
"need_anything_contact_us_at": "Als er iets is dat je ooit nodig hebt, neem gerust direct contact met ons op via",
|
||||||
"need_to_leave": "Moet je weg?",
|
"need_to_leave": "Moet je weg?",
|
||||||
"need_to_upgrade_for_more_collabs": "Je dient je account te upgraden om meer bijdragers toe te voegen",
|
"need_to_upgrade_for_more_collabs": "Je dient je account te upgraden om meer bijdragers toe te voegen",
|
||||||
"new_file": "Nieuw Bestand",
|
"new_file": "Nieuw bestand",
|
||||||
"new_folder": "Nieuwe Map",
|
"new_folder": "Nieuwe map",
|
||||||
"new_name": "Nieuwe Naam",
|
"new_name": "Nieuwe Naam",
|
||||||
"new_password": "Nieuwe Wachtwoord",
|
"new_password": "Nieuwe Wachtwoord",
|
||||||
"new_project": "Nieuw Project",
|
"new_project": "Nieuw Project",
|
||||||
|
|
|
@ -203,7 +203,7 @@
|
||||||
"need_anything_contact_us_at": "Dersom det er noe du trenger, ikke nøl med å kontakte oss direkte på",
|
"need_anything_contact_us_at": "Dersom det er noe du trenger, ikke nøl med å kontakte oss direkte på",
|
||||||
"need_to_leave": "Må du dra?",
|
"need_to_leave": "Må du dra?",
|
||||||
"need_to_upgrade_for_more_collabs": "Du må oppgradere kontoen din for å legge til flere samarbeidspartnere",
|
"need_to_upgrade_for_more_collabs": "Du må oppgradere kontoen din for å legge til flere samarbeidspartnere",
|
||||||
"new_file": "Ny Fil",
|
"new_file": "Ny fil",
|
||||||
"new_folder": "Ny mappe",
|
"new_folder": "Ny mappe",
|
||||||
"new_name": "Nytt navn",
|
"new_name": "Nytt navn",
|
||||||
"new_password": "Nytt passord",
|
"new_password": "Nytt passord",
|
||||||
|
|
|
@ -391,8 +391,8 @@
|
||||||
"need_anything_contact_us_at": "Se houver qualquer coisa que você precisar, sinta-se à vontade para entrar em contato conosco por",
|
"need_anything_contact_us_at": "Se houver qualquer coisa que você precisar, sinta-se à vontade para entrar em contato conosco por",
|
||||||
"need_to_leave": "Precisa sair?",
|
"need_to_leave": "Precisa sair?",
|
||||||
"need_to_upgrade_for_more_collabs": "Você precisa aprimorar sua conta para adicionar mais colaboradores.",
|
"need_to_upgrade_for_more_collabs": "Você precisa aprimorar sua conta para adicionar mais colaboradores.",
|
||||||
"new_file": "Novo Arquivo",
|
"new_file": "Novo arquivo",
|
||||||
"new_folder": "Nova Pasta",
|
"new_folder": "Nova pasta",
|
||||||
"new_name": "Novo Nome",
|
"new_name": "Novo Nome",
|
||||||
"new_password": "Nova Senha",
|
"new_password": "Nova Senha",
|
||||||
"new_project": "Novo Projeto",
|
"new_project": "Novo Projeto",
|
||||||
|
|
|
@ -199,8 +199,8 @@
|
||||||
"need_anything_contact_us_at": "Eğer herhangi bir konuda bize ihtiyacınız olursa ve bize ulaşmak isterseniz e-posta adresimiz",
|
"need_anything_contact_us_at": "Eğer herhangi bir konuda bize ihtiyacınız olursa ve bize ulaşmak isterseniz e-posta adresimiz",
|
||||||
"need_to_leave": "Bizden ayrılıyor musunuz?",
|
"need_to_leave": "Bizden ayrılıyor musunuz?",
|
||||||
"need_to_upgrade_for_more_collabs": "Daha fazla iş ortağı ekleyebilmeniz için hesabınızı yükseltmeniz gerekmektedir",
|
"need_to_upgrade_for_more_collabs": "Daha fazla iş ortağı ekleyebilmeniz için hesabınızı yükseltmeniz gerekmektedir",
|
||||||
"new_file": "Yeni Dosya",
|
"new_file": "Yeni dosya",
|
||||||
"new_folder": "Yeni Klasör",
|
"new_folder": "Yeni klasör",
|
||||||
"new_name": "Yeni Ad",
|
"new_name": "Yeni Ad",
|
||||||
"new_password": "Yeni Şifre",
|
"new_password": "Yeni Şifre",
|
||||||
"new_project": "Yeni Proje",
|
"new_project": "Yeni Proje",
|
||||||
|
|
|
@ -12,8 +12,8 @@ describe('<FileTreeToolbar/>', function () {
|
||||||
</EditorProviders>
|
</EditorProviders>
|
||||||
)
|
)
|
||||||
|
|
||||||
cy.findAllByRole('button', { name: 'New File' })
|
cy.findAllByRole('button', { name: 'New file' })
|
||||||
cy.findAllByRole('button', { name: 'New Folder' })
|
cy.findAllByRole('button', { name: 'New folder' })
|
||||||
cy.findAllByRole('button', { name: 'Upload' })
|
cy.findAllByRole('button', { name: 'Upload' })
|
||||||
cy.findAllByRole('button', { name: 'Rename' }).should('not.exist')
|
cy.findAllByRole('button', { name: 'Rename' }).should('not.exist')
|
||||||
cy.findAllByRole('button', { name: 'Delete' }).should('not.exist')
|
cy.findAllByRole('button', { name: 'Delete' }).should('not.exist')
|
||||||
|
@ -50,8 +50,8 @@ describe('<FileTreeToolbar/>', function () {
|
||||||
</EditorProviders>
|
</EditorProviders>
|
||||||
)
|
)
|
||||||
|
|
||||||
cy.findAllByRole('button', { name: 'New File' })
|
cy.findAllByRole('button', { name: 'New file' })
|
||||||
cy.findAllByRole('button', { name: 'New Folder' })
|
cy.findAllByRole('button', { name: 'New folder' })
|
||||||
cy.findAllByRole('button', { name: 'Upload' })
|
cy.findAllByRole('button', { name: 'Upload' })
|
||||||
cy.findAllByRole('button', { name: 'Rename' })
|
cy.findAllByRole('button', { name: 'Rename' })
|
||||||
cy.findAllByRole('button', { name: 'Delete' })
|
cy.findAllByRole('button', { name: 'Delete' })
|
||||||
|
|
|
@ -276,7 +276,7 @@ describe('FileTree Create Folder Flow', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
function createFolder(name: string) {
|
function createFolder(name: string) {
|
||||||
cy.findByRole('button', { name: 'New Folder' }).click()
|
cy.findByRole('button', { name: 'New folder' }).click()
|
||||||
cy.findByRole('textbox').type(name)
|
cy.findByRole('textbox').type(name)
|
||||||
cy.findByRole('button', { name: 'Create' }).click()
|
cy.findByRole('button', { name: 'Create' }).click()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue