Skip to content

Commit

Permalink
Update Russian localization dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTsukanov committed Mar 20, 2024
1 parent 8179a81 commit f602ae3
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/analytics-localization/english.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export var englishStrings = {
pdfDownloadCaption: "PDF",
xlsxDownloadCaption: "Excel",
csvDownloadCaption: "CSV",
saveDiagramAsPNG: "Download plot as a png",
saveDiagramAsPNG: "Download plot as a PNG file",
hideEmptyAnswers: "Hide empty answers",
showEmptyAnswers: "Show empty answers",
"topNValueText-1": "All answers",
Expand Down
88 changes: 62 additions & 26 deletions src/analytics-localization/russian.ts
Original file line number Diff line number Diff line change
@@ -1,38 +1,74 @@
import { localization } from "../localizationManager";

export var russianStrings = {
groupButton: "Group By Me",
ungroupButton: "Ungroup By Me",
selectButton: "Select Me",
hideColumn: "Hide column",
showColumn: "Show column",
makePrivateColumn: "Make column private",
makePublicColumn: "Make column public",
moveToDetail: "Move to Detail",
groupButton: "Сгруппировать",
ungroupButton: "Разгруппировать",
selectButton: "Выбрать",
hideColumn: "Скрыть столбец",
showColumn: "Показать столбец",
makePrivateColumn: "Сделать столбец приватным",
makePublicColumn: "Сделать столбец публичным",
moveToDetail: "Спрятать в раскрывающуюся секцию",
filter: "Фильтр",
showAsColumn: "Show as Column",
visualizer_text: "Texts in table",
visualizer_wordcloud: "Wordcloud",
chartType_bar: "Bar",
chartType_stackedbar: "Stacked Bar",
chartType_doughnut: "Doughnut",
chartType_pie: "Pie",
chartType_scatter: "Scatter",
chartType_gauge: "Gauge",
chartType_bullet: "Bullet",
showAsColumn: "Показать как столбец",
visualizer_text: "Таблица",
visualizer_wordcloud: "Облако тэгов",
visualizer_histogram: "Гистограмма",
visualizer_number: "Среднее значение",
visualizer_choices: "Таблица",
visualizer_selectBase: "Диаграмма",
chartType_vbar: "Вертикальная столбчатая диаграмма",
chartType_bar: "Столбчатая диаграмма",
chartType_stackedbar: "Столбчатая диаграмма с накоплением",
chartType_doughnut: "Кольцевая диаграмма",
chartType_pie: "Круговая диаграмма",
chartType_scatter: "Точечная диаграмма",
chartType_gauge: "Измерительная диаграмма",
chartType_bullet: "Маркированная диаграмма",
hideButton: "Скрыть",
showButton: "Показать",
resetFilter: "Очистить фильтр",
changeLocale: "Сменить язык",
clearButton: "Clear",
addElement: "Choose question to show...",
defaultOrder: "Default",
ascOrder: "Ascending",
descOrder: "Descending",
showMinorColumns: "Show minor columns",
clearButton: "Очистить",
addElement: "Выберите вопрос...",
defaultOrder: "Порядок по умолчанию",
ascOrder: "Сортировать по возрастанию",
descOrder: "Сортировать по убыванию",
showMinorColumns: "Показать второстепенные столбцы",
otherCommentTitle: "Другое и комментарии",
noVisualizerForQuestion: "Этот тип вопроса еще не поддерживается аналитикой",
noResults: "Результаты отсутствуют"
noVisualizerForQuestion: "Этот тип вопроса не поддерживается",
noResults: "Результаты отсутствуют",
filterPlaceholder: "Поиск...",
removeRows: "Удалить строки",
showLabel: "Показать",
entriesLabel: "записей",
makePrivateButton: "Сделать приватным",
makePublicButton: "Сделать публичным",
en: "English",
fr: "Français",
ru: "Русский",
de: "Deutsch",
showPercentages: "Показать проценты",
hidePercentages: "Скрыть проценты",
pdfDownloadCaption: "PDF",
xlsxDownloadCaption: "Excel",
csvDownloadCaption: "CSV",
saveDiagramAsPNG: "Скачать диаграмму в формате PNG",
hideEmptyAnswers: "Скрыть пустые ответы",
showEmptyAnswers: "Показать пустые ответы",
"topNValueText-1": "Все ответы",
"topNValueText5": "Первые 5 ответов",
"topNValueText10": "Первые 10 ответов",
"topNValueText20": "Первые 20 ответов",
hideMissingAnswers: "Скрыть отсутствующие ответы",
showMissingAnswers: "Показать отсутствующие ответы",
missingAnswersLabel: "Отсутствующие ответы",
showPerValues: "По значениям",
showPerColumns: "По столбцам",
answer: "Ответ",
correctAnswer: "Правильный ответ: ",
percent: "процентов",
responses: "ответов"
};

localization.locales["ru"] = russianStrings;
Expand Down
2 changes: 1 addition & 1 deletion src/visualizationPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export interface IVisualizationPanelOptions {
* Survey questions to visualize. Call `SurveyModel`'s [`getAllQuestions()`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#getQuestionByName) method to access all survey questions and pass its result as the `questions` parameter.
* - `data`: `Array<any>`\
* Survey results.
* - `options`: [`IVisualizationPanelOptions`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions)\
* - `vizPanelOptions`: [`IVisualizationPanelOptions`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions)\
* Visualization Panel configuration.
*
* [View Demo](https://surveyjs.io/dashboard/examples/interactive-survey-data-dashboard/ (linkStyle))
Expand Down
4 changes: 2 additions & 2 deletions src/visualizerBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class VisualizerBase implements IDataInfo {
}

/**
* Indicates whether users can select series points to cross-filter charts. To allow or disallow selection, set the `allowSelection` property of the `options` object in the constructor.
* Indicates whether users can select series points to cross-filter charts. To allow or disallow selection, set the [`allowSelection`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions#allowSelection) property of the `IVisualizationPanelOptions` object in the [`VisualizationPanel`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel) constructor.
*/
public get supportSelection(): boolean {
return (
Expand Down Expand Up @@ -656,7 +656,7 @@ export class VisualizerBase implements IDataInfo {
/**
* Gets or sets the current locale.
*
* If you want to inherit the locale from a visualized survey, assign a `SurveyModel` instance to the `survey` property of the `options` object in the constructor.
* If you want to inherit the locale from a visualized survey, assign a [`SurveyModel`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model) instance to the [`survey`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions#survey) property of the `IVisualizationPanelOptions` object in the [`VisualizationPanel`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel) constructor.
*
* If the survey is [translated into more than one language](https://surveyjs.io/form-library/examples/survey-localization/), the toolbar displays a language selection drop-down menu.
* @see onLocaleChanged
Expand Down

0 comments on commit f602ae3

Please sign in to comment.