Skip to content

Commit

Permalink
Merge pull request 'hotfix/on-request-select-document-insert-text' fr…
Browse files Browse the repository at this point in the history
…om hotfix/on-request-select-document-insert-text into develop

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/onlyoffice-nextcloud/pulls/33
  • Loading branch information
LinneyS committed Feb 12, 2025
2 parents 1ef8ec1 + e924683 commit 5f2a7c6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
4 changes: 3 additions & 1 deletion l10n/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ OC.L10N.register(
"Open file" : "Открыть документ",
"ONLYOFFICE Document Server is unavailable" : "Сервер документов ONLYOFFICE недоступен",
"This is a mail message to notify that the connection with the ONLYOFFICE Document Server has been lost. Please check the connection settings:" : "Это почтовое сообщение, уведомляющее о том, что соединение с сервером документов ONLYOFFICE потеряно. Пожалуйста, проверьте настройки подключения:",
"Go to Settings" : "Перейти в настройки"
"Go to Settings" : "Перейти в настройки",
"Select file to insert text" : "Выбрать файл для вставки текста",
"Select file" : "Выбрать файл"
},
"nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);");
4 changes: 3 additions & 1 deletion l10n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@
"Open file" : "Открыть документ",
"ONLYOFFICE Document Server is unavailable" : "Сервер документов ONLYOFFICE недоступен",
"This is a mail message to notify that the connection with the ONLYOFFICE Document Server has been lost. Please check the connection settings:" : "Это почтовое сообщение, уведомляющее о том, что соединение с сервером документов ONLYOFFICE потеряно. Пожалуйста, проверьте настройки подключения:",
"Go to Settings" : "Перейти в настройки"
"Go to Settings" : "Перейти в настройки",
"Select file to insert text" : "Выбрать файл для вставки текста",
"Select file" : "Выбрать файл"
},"pluralForm" :"nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);"
}
8 changes: 7 additions & 1 deletion src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,14 @@
case 'combine':
title = t(OCA.Onlyoffice.AppName, 'Select file to combine')
break
default:
case 'compare':
title = t(OCA.Onlyoffice.AppName, 'Select file to compare')
break
case 'insert-text':
title = t(OCA.Onlyoffice.AppName, 'Select file to insert text')
break
default:
title = t(OCA.Onlyoffice.AppName, 'Select file')
}
OC.dialogs.filepicker(title,
OCA.Onlyoffice.editorSetRequested.bind({ documentSelectionType: event.data.c }),
Expand Down
8 changes: 7 additions & 1 deletion src/listener.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,14 @@
case 'combine':
title = t(OCA.Onlyoffice.AppName, 'Select file to combine')
break
default:
case 'compare':
title = t(OCA.Onlyoffice.AppName, 'Select file to compare')
break
case 'insert-text':
title = t(OCA.Onlyoffice.AppName, 'Select file to insert text')
break
default:
title = t(OCA.Onlyoffice.AppName, 'Select file')
}
OC.dialogs.filepicker(title,
$(OCA.Onlyoffice.frameSelector)[0].contentWindow.OCA.Onlyoffice.editorSetRequested.bind({ documentSelectionType }),
Expand Down

0 comments on commit 5f2a7c6

Please sign in to comment.