Skip to content

Commit a70c445

Browse files
committed
feat: russia and fix some wrong text
1 parent f38e4a5 commit a70c445

14 files changed

Lines changed: 692 additions & 16 deletions

File tree

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class Plugin {
1717
{ value: "id-ID", text: "Bahasa Indonesia" },
1818
{ value: "th-TH", text: "ภาษาไทย" },
1919
{ value: "tl-PH", text: "Tagalog" },
20+
{ value: "ru", text: "русский язык" },
2021
];
2122
this.msgClassMap = {
2223
"no-certificate": {

info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "language",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": {
55
"zh_tw": "TREM-Lite Language Plugin"
66
},

lang/en-US/setting/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ html[lang="en-US"] {
259259
content: "EEW2 (when an estimated intensity is " !important;
260260
}
261261
.special-text:before {
262-
content: "5 lower" !important;
262+
content: "5-" !important;
263263
}
264264
&::after {
265265
content: " or higher)" !important;

lang/id-ID/setting/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ html[lang="id-ID"] {
258258
content: "EEW2 (ketika perkiraan intensitas " !important;
259259
}
260260
.special-text:before {
261-
content: "5 lemah" !important;
261+
content: "5-" !important;
262262
}
263263
&::after {
264264
content: " atau lebih tinggi)" !important;

lang/ko-KR/setting/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ html[lang="ko-KR"] {
257257
content: "EEW2(예상 강도가 " !important;
258258
}
259259
.special-text:before {
260-
content: "5 보다" !important;
260+
content: "5-" !important;
261261
}
262262
&::after {
263263
content: " 낮거나 높은 경우)" !important;

lang/ru/index/index.css

Lines changed: 270 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,270 @@
1+
@import url("./rwd.css");
2+
3+
html[lang="ru"] {
4+
/** Version Check **/
5+
.version-check-text::before {
6+
content: "Новая версия" !important;
7+
}
8+
9+
/** Info Box **/
10+
.info-number {
11+
&:not(:empty)::before {
12+
content: "#" !important;
13+
}
14+
&:not(:empty)::after {
15+
content: "" !important;
16+
}
17+
}
18+
19+
.cancel-title span::before {
20+
content: "Отмена" !important;
21+
}
22+
23+
.cancel-body span::before {
24+
content: "Предупреждение о землетрясении отменено." !important;
25+
}
26+
27+
.no-eew.rts-trigger-low .info-unit::after {
28+
content: "Низко " !important;
29+
}
30+
31+
.no-eew.rts-trigger-middle .info-unit::after {
32+
content: "Earthquake weak response " !important;
33+
}
34+
35+
.no-eew.rts-trigger-high .info-unit::after {
36+
content: "Strong earthquake detection " !important;
37+
}
38+
39+
.eew-cancel .info-unit::before {
40+
content: "Отмена " !important;
41+
}
42+
43+
.eew-warn .info-unit::before {
44+
content: "Предупреждение " !important;
45+
}
46+
47+
.eew-alert .info-unit::before {
48+
content: "Предупреждающее оповещение " !important;
49+
}
50+
51+
.eew-rts .info-unit::before {
52+
content: "Одноточечное обнаружение землетрясений " !important;
53+
}
54+
55+
.info-cancel-last::after {
56+
content: "(Отмена)" !important;
57+
}
58+
59+
.info-number-last::after {
60+
content: "(Финал)" !important;
61+
}
62+
63+
.no-eew .info-unit::after {
64+
content: "Нет предупреждения о землетрясении" !important;
65+
}
66+
67+
.info-intensity::after {
68+
content: "Макс." !important;
69+
}
70+
71+
.info-nsspe span::before {
72+
content: "NSSPE" !important;
73+
}
74+
75+
.info-mag-text::after,
76+
.report-box-item-wrapper:first-child .report-mag-text::after {
77+
content: "величина" !important;
78+
}
79+
80+
.info-depth-text::after,
81+
.report-depth-text::after {
82+
content: "Глубина" !important;
83+
}
84+
85+
.intensity-0:not(
86+
#max-intensity,
87+
#max-pga,
88+
#current-station-intensity,
89+
.rts-intensity
90+
)::after {
91+
content: "?";
92+
}
93+
94+
.info-time::before {
95+
content: "Происходит ";
96+
}
97+
98+
.info-time::after {
99+
content: "";
100+
}
101+
102+
.info-wrapper {
103+
.info-title-wrapper {
104+
.info-intensity {
105+
font-size: 10px;
106+
}
107+
}
108+
}
109+
110+
/** Station Pga Info **/
111+
.station-pga-wrapper {
112+
margin-left: 20px;
113+
}
114+
115+
.current-station-intensity-text::before {
116+
content: "Интенсивность" !important;
117+
}
118+
119+
.current-station-pga-text::before {
120+
content: "PGA" !important;
121+
}
122+
123+
.current-station-intensity-pga {
124+
display: flex !important;
125+
flex-direction: column !important;
126+
}
127+
128+
.max-intensity-text {
129+
display: flex !important;
130+
flex-direction: column !important;
131+
}
132+
133+
.current-station-pga {
134+
display: flex !important;
135+
align-items: center !important;
136+
width: 200px !important;
137+
}
138+
139+
.current-station-info {
140+
width: auto !important;
141+
}
142+
143+
/** Fab Button **/
144+
.intensity-report::before {
145+
content: "Отчет об интенсивности" !important;
146+
}
147+
148+
.source-report::before {
149+
content: "Отчет о гипоцентре землетрясения" !important;
150+
}
151+
152+
.earthquake-report::before {
153+
content: "Отчет о землетрясении" !important;
154+
}
155+
156+
.tsunami-warning::before {
157+
content: "Предупреждение о цунами" !important;
158+
}
159+
160+
.earthquake-warning::before {
161+
content: "Предупреждение о землетрясении" !important;
162+
}
163+
164+
/** Report **/
165+
.report-intensity-text::before {
166+
content: "Макс" !important;
167+
}
168+
169+
.web-detection::before {
170+
content: "Обнаружение" !important;
171+
}
172+
173+
.web-report::before {
174+
content: "Отчет" !important;
175+
}
176+
177+
.report-replay::before {
178+
content: "Повторить" !important;
179+
}
180+
181+
.report-box-items .survey .report-loc:before {
182+
content: "Эпицентр в стадии оценки" !important;
183+
}
184+
185+
.max-intensity-text::before {
186+
content: "Макс" !important;
187+
}
188+
189+
.max-intensity-text::after {
190+
content: "Интенсивность" !important;
191+
}
192+
193+
.max-pga-text::before {
194+
content: "Макс. PGA" !important;
195+
}
196+
197+
.report-wrapper.hidden ~ .rts-intensity-list-wrapper {
198+
transform: translateX(144%);
199+
}
200+
201+
.report-wrapper {
202+
.report-box-item-wrapper:first-child {
203+
.report-intensity-text {
204+
font-size: 12px;
205+
}
206+
.report-info-box {
207+
.report-info-item {
208+
.report-loc {
209+
font-size: 24px;
210+
}
211+
}
212+
}
213+
}
214+
}
215+
216+
/** Intensity List **/
217+
.rts-intenisty-list-text::before {
218+
content: "Рейтинг интенсивности по сейсмичности" !important;
219+
}
220+
221+
/** Warning Message Box **/
222+
.internet-error .title:before {
223+
content: "Ошибка сетевого подключения" !important;
224+
}
225+
226+
.unstable .title:before {
227+
content: "Нестабильный" !important;
228+
}
229+
230+
.unstable .warning-message-text span {
231+
&:nth-child(1)::before {
232+
content: "Пункты наблюдения могут быть" !important;
233+
}
234+
&:nth-child(2)::before {
235+
content: "нестабильны из-за сейсмической активности" !important;
236+
}
237+
}
238+
239+
.internet-error .warning-message-text span {
240+
&:nth-child(1)::before {
241+
content: "Ошибка сетевого подключения" !important;
242+
}
243+
&:nth-child(2)::before {
244+
content: "повторите попытку позже" !important;
245+
}
246+
}
247+
248+
/** Count Down Plugin **/
249+
.current-location-pwave-text:before {
250+
content: "Зубец P" !important;
251+
}
252+
253+
.current-location-swave-text:before {
254+
content: "Зубец S" !important;
255+
}
256+
257+
.current-location-pwave-val.arrive:before,
258+
.current-location-swave-val.arrive:before {
259+
content: "Прибытие" !important;
260+
}
261+
262+
.current-location-pwave-val:not(:empty):after,
263+
.current-location-swave-val:not(:empty):after {
264+
content: "секунд" !important;
265+
}
266+
267+
.current-location-intensity-text:before {
268+
content: "Интенсивность" !important;
269+
}
270+
}

lang/ru/index/rwd.css

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
html[lang="ru"] {
2+
@media (max-width: 980px) {
3+
.info-intensity::after {
4+
content: "Макс." !important;
5+
}
6+
.station-pga-wrapper {
7+
margin-left: 0 !important;
8+
}
9+
.report-box-item-wrapper:first-child {
10+
.report-intensity-text {
11+
font-size: 11px !important;
12+
}
13+
}
14+
.report-intensity-val {
15+
height: 40px !important;
16+
width: 43px !important;
17+
}
18+
.current-station-info {
19+
width: auto !important;
20+
}
21+
.current-station-pga {
22+
width: 180px !important;
23+
align-items: center;
24+
}
25+
.max-intensity {
26+
width: auto;
27+
}
28+
.rts-intensity-list-wrapper {
29+
right: 17rem;
30+
}
31+
.report-wrapper.hidden ~ .rts-intensity-list-wrapper {
32+
transform: translateX(111%) !important;
33+
}
34+
.report-box-item-wrapper.survey:first-child {
35+
.report-loc {
36+
font-size: 19px !important;
37+
}
38+
}
39+
.max-pga {
40+
width: 95px;
41+
}
42+
.max-intensity-pga-wrapper {
43+
top: 13.5rem !important;
44+
}
45+
}
46+
}

lang/ru/plugin_edit/index.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
html[lang="ru"] {
2+
.visual-editor-title:before {
3+
content: "Визуальный редактор" !important;
4+
}
5+
.btn-remove:before {
6+
content: "Удалить" !important;
7+
}
8+
.btn-add:before {
9+
content: "Добавить элемент" !important;
10+
}
11+
.root::before {
12+
content: "Новые поля корневого уровня" !important;
13+
}
14+
.json-error:before {
15+
content: "Ошибка формата JSON" !important;
16+
}
17+
.yaml-transfer-error:before {
18+
content: "Ошибка преобразования YAML" !important;
19+
}
20+
.yaml-extract-error:before {
21+
content: "Ошибка анализа YAML" !important;
22+
}
23+
.auto-save-success:before {
24+
content: "Автосохранение выполнено успешно" !important;
25+
}
26+
.auto-save-error:before {
27+
content: "Ошибка автоматического сохранения" !important;
28+
}
29+
.load-error:before {
30+
content: "Ошибка чтения" !important;
31+
}
32+
}

0 commit comments

Comments
 (0)