-
Notifications
You must be signed in to change notification settings - Fork 0
/
keypuk-ninavi.user.js
654 lines (619 loc) · 21.5 KB
/
keypuk-ninavi.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
// Keypuk nìNa'vi! v .1
// Translated and edited by Richard Littauer
// No (c) on the translations, whatsoever.
// https://github.com/RichardLitt/keypuk-ninavi
//
// Based on:
// Secwepemc Facebook!
// version 0.1 BETA!
// 2010-08-25
// Copyright (c) 2010, Neskie Manuel
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// --------------------------------------------------------------------
//
// This is a Greasemonkey user script. To install it, you need
// Greasemonkey 0.3 or later: http://greasemonkey.mozdev.org/
// Then restart Firefox and revisit this script.
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.
//
// To uninstall, go to Tools/Manage User Scripts,
// select "Secwepemctsin Facebook", and click Uninstall.
//
// To install on Chrome, just drag it into a window. It'll work.
//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name Nìna'vi Facebook
// @namespace https://github.com/RichardLitt/keypuk-ninavi
// @description script to change the Facebook
// @include http://www.facebook.com/*
// @include https://www.facebook.com/*
// ==/UserScript==
// Array of words to change.
// Section: Unsorted
var es = new Array();
es["Home"] = "Kelutral";
es["No"] = "Kehe";
es["Yes"] = "Srane";
es["Maybe"] = "Kxawm";
es["Friends"] = "Eylan";
es["Like"] = "Sunu";
es["Unlike"] = "Ke sunu";
es["Comment"] = "Plltxe";
es["Books"] = "Fuk";
es["Female"] = "Tuté";
es["Male"] = "Tutan";
es["Say hello."] = "Kaltxì si";
es["Say hi."] = "Kaltxì si";
es["on Friday."] = "Trrpuvemì.";
es["on Saturday."] = "Trrkivemì.";
es["Tomorrow"] = "Trray";
es["Today"] = "Fìtrr";
es["Yesterday"] = "Trram";
es["What are you planning?"] = "Pehemit ngal herawl?";
es["Where?"] = "Peseng?";
es["Phone"] = "Syawyu lefngap";
es["Mobile Phone"] = "Syawyu lefngap";
es["Children:"] = "Eveng:";
es["Birthday:"] = "Ftxozä:";
es["See All"] = "Tse'a Nìwotx";
es["Who's invited?"] = "Pesu ziva'u?";
es["This Month"] = "Fìvospxì";
es["Share"] = "Käsrin fì'ut";
es["Who are you with?"] = "Pesumì nga lu?";
es["Where are you?"] = "Tsengitpe ngal tok?";
es["via Twitter"] = "ìlä Yayotsyìp";
es["Upload photo/video"] = "Fpe' rusikxa relit/relit";
es["Create photo album"] = "Relä pukit ngop";
es["Create event"] = "Tìlenit ngop";
es["Update status"] = "Leykatem tìfkeytokit";
es["Add photo/video"] = "Sung (rusikxa) relit";
es["Ask question"] = "Pawm tìpawmit";
es["SORT"] = "WÌNTXU";
es["Top stories"] = "Txina ayvur";
es["Most Recent"] = "Vur asok frato";
es["Account Settings"] = "Fìpoä Sìfkeytok";
es["Privacy Settings"] = "Le'aw 'awpoä Sìfkeytok";
es["Log out"] = "Hum";
es["Help"] = "Srung";
es["Facebook"] = "Keypuk";
es["Use webcam"] = "Sar rel arusikx stä'nìyuti";
es["English (US)"] = "Na'vi";
es["English (UK)"] = "Na'vi";
es["Privacy"] = "Kxukea Säomum";
es["Terms"] = "Lawa Aylì'u";
es["More"] = "Nì'ul";
es["About"] = "Teri";
es["Advertising"] = "Tìlusawk";
es["Careers"] = "Tintìn";
es["Create a Page"] = "Ngop Rìkti";
es["Developers"] = "Ayngopyu";
es["Add to my page's favourites"] = "Sung fì'uti ayuru a sunu rìkur oeyä frato";
es["Get updates via RSS"] = "Tel fmawnit ìlä RSS";
es["Report Page"] = "Kulat rìkit";
es["like this"] = "fì'u sunu";
es["talking about this"] = "fì'uteri perlltxe";
es["Wall"] = "'Awkx";
es["Info"] = "Säomum";
es["Friend activity"] = "Tìn eylanä";
es["Photos"] = "Ayrel";
es["See all"] = "Tse'a nìwotx";
es["Recommended Pages"] = "Mawnawka ayrìk";
// es["Discover new games"] = "Run mipa ayuvanti";
es["Find friends"] = "Run eylanit";
es["Product/Service"] = "Kìte'e";
es["Life event"] = "Tìlen tìreyä";
es["Place"] = "Tsenge";
es["Photo"] = "Rel";
es["Status"] = "Tìfkeytok";
es["Update info"] = "Leykatem säomumit";
es["Activity log"] = "Sìnä 'ok";
es["Likes"] = "Susunua ayfì'u";
es["Map"] = "Atxkxerel";
es["Born"] = "'Amongokx";
es["Richard Littauer"] = "Taronyu"; // Just for me. :D
es["See friendship"] = "Tse'a tì'eylanti";
// es["Sponsored"] = "Awneyk";
es["Create an advert"] = "Ngop nusewìt";
es["Subscriptions"] = "Tsawne'a";
es["More Recent Activity"] = "Mipa hemti nì'ul";
es["View As..."] = "Tse'a na...";
es["Add a badge to your site"] = "Sung pätsìt ne ngey 'awm";
es["Edit"] = "Latem";
es["Timeline"] = "KrrPayfya";
es["Now"] = "Set";
es["Use Facebook as:"] = "Sar Keypukit na:";
es["Translations"] = "Sìralpeng";
es["Friend requests"] = "Ätxäle sì'eylanä";
es["No new requests"] = "Kea mipa ayätxäle";
es["See all friend requests"] = "Tse'a fraätxäleti";
es["Messages"] = "Upxare";
es["Send a new message"] = "Fpe' mipa 'upxareti";
es["See all messages"] = "Tse'a fra'upxaret";
es["Notifications"] = "Fmawn";
es["See all notifications"] = "Tse'a fmawnit nìwotx";
es["Post"] = "Yem";
es["Cancel"] = "Ftang";
es["Select an image or video file on your computer"] = "Ftxey relit fu relit arusikx mì ngeyä eltu lefngap";
es["Choose file"] = "Ftxey 'uoti";
es["No file chosen"] = "Ke'ut ke ftxoley"
es["Add year"] = "Sung zìsìtit";
es["Change Cover"] = "Leykatem Keyit";
es["Edit Profile Picture"] = "Leykatem Txina Relit";
es["Chat Sounds"] = "Puslltxea Fam";
es["Advanced Settings"] = "Ngäzìka Sìfkeytok";
es["Go offline"] = "Kämakto!";
es["Hide Sidebar"] = "Wan Pa'oä Payfyat";
es["Subscribed"] = "Tsere'a";
es["More stories"] = "Nì'ul ayvul";
es["Edit options"] = "Leykatem sìftxeyt";
es["Find friends"] = "Fwew eylanit";
// es["Basic Information"] = "Ftuea säomum";
es["Website"] = "Kelutral";
es["Founded"] = "Sngä'ikrr";
es["Mission"] = "Tìkan";
es["Email"] = "Ikran lì'u";
es["Add Friends to chat..."] = "Sung eylanit tìpängkxoru";
es["See Full Conversation"] = "Tse'a tìpängkxoti nìwotx";
es["Clear window"] = "Law si nìwotx";
es["Report as spam"] = "Kulat na tìkawng";
es["Unfollow post"] = "Ftang nirvong kìngit";
es["No new requests"] = "Kea mipa ayätxäle.";
es["You like this"] = "Fì'u sunu ngaru.";
es["There are no more posts to show."] = "Ke lu lahea upxare a tsun tsive'a";
es["There are no more posts to show at the moment"] = "Ke lu ayupxare alahe a tsun tse'a set";
es["commented on your"] = "poltxe teri ngeyä";
es["Hidden Activity..."] = "Wawnana Ayhem";
es["Follow post"] = "Nong fì'u";
es["Birthdays"] = "Ayftxozä";
es["See more"] = "Tse'a nì'ul";
es["Add friend"] = "Sung 'eylanit";
es["Add Friend"] = "Sung 'eylanit";
es["Close"] = "Tstu si";
// es["What's on your mind?"] = "Teri pey fperìl ngal?"; breaks input
// es["Go Offline to "] = "Wan ftu "; doesn't work
// es["Search"] = "Fwew";
// es["shared a"] = "käsrin";
// es["via"] = "ìlä";
// es["Lives in"] = "Kelku si mì";
// es["In a relationship with"] = "Muntxa si hi";
// es["mutual friends"] = "Eylan ateng";
// es["minutes ago"] = "ayswawkam";
es["Videos"] = "Rusikxa ayrel";
// es["Add to Interest lists..."] = "";
// es["View full note"] = "";
// es["Notes help"] = "";
// es["Notes about"] = "";
// es["No one has written any notes."] = "";
// es["Subscribe"] = "";
/*/ Section: Sidebar
// es["and"] = "sì";
// es["and"] = "ulte"; Can't be both.
// es["Photos"] = "Ayrel";
// es["Notes"] = "Famreltsyìp";
// es["Questions"] = "Sìpawm";
// es["Links"] = "Ayfya'o";
// es["Apps and Games"] = "Sìkangkemvi sì Ayuvan";
// es["Apps"] = "Tìkangkemvi";
// es["Pages"] = "Ayrìk";
// es["Groups"] = "Fongu";
// es["News Feed"] = "Fmawnä Payfya";
// es["Favourites"] = "Ayu a sunu oeru frato";
// es["MORE"] = "NÌ'UL"; */
// Section: Groups
es["Open Group"] = "Sngä'i Pongut";
es["Chat with group"] = "Pängkxo Ponguhu";
es["Edit Group"] = "Latem Pongut";
es["Write post"] = "Pamrel si";
es["Group Info"] = "Hum pongut";
/* es["Who else should be in this group?"] = "";
es["Report Group"] = "";
es["Provide Feedback"] = "";
es["Leave Group"] = "";
es["On"] = "";
es["Off"] = "";
es["Settings..."] = "";
es["Choose a unique image for your group"] = ""; */
es["Add friends to group"] = "Sung eylanit pongune";
// Section: Months and dates
es["Friday"] = "Trrpuve";
es["Monday"] = "Trrmuve";
es["Tuesday"] = "Trrpxeyve";
es["Wednesday"] = "Trrtsìve";
es["Thursday"] = "Trrmrrve";
es["Saturday"] = "Trrkive";
es["Sunday"] = "Trr'awve";
es["January"] = "'Awvea vospxì";
es["February"] = "Muvea vospxì";
es["March"] = "Pxeyvea vospxì";
es["April"] = "Tsìvea vospxì";
es["May"] = "Mrrvea vospxì";
es["June"] = "Puvea vospxì";
es["July"] = "Kivea vospxì";
es["August"] = "Volvea vospxì";
es["September"] = "Volawvea vospxì";
es["October"] = "Vomuvea vospxì";
es["November"] = "Vopeyvea vospxì";
es["December"] = "Vosìvea vospxì";
es["about an hour ago"] = "teri trrtsyìpkam";
es["2 hours ago"] = "Mune srrtsyìpkam";
es["3 hours ago"] = "Pxey srrtsyìpkam";
es["4 hours ago"] = "Tsìng srrtsyìpkam";
es["5 hours ago"] = "Mrr srrtsyìpkam";
es["6 hours ago"] = "Pukap srrtsyìpkam";
es["7 hours ago"] = "Kinä srrtsyìpkam";
es["8 hours ago"] = "Mevol srrtsyìpkam";
es["9 hours ago"] = "Mevolaw srrtsyìpkam";
es["10 hours ago"] = "Mevomum srrtsyìpkam";
es["11 hours ago"] = "Mevopey srrtsyìpkam";
es["12 hours ago"] = "Mevosìng srrtsyìpkam";
// Section: Photos
es["Add a description"] = "Sung tìsla'tsut";
es["Tag photo"] = "Pesul relit tok?";
es["Add location"] = "Sung tsenget";
es["On your timeline"] = "Mì ngeyä Krrä Payfya";
es["Remove"] = "'Aku";
es["Profile pictures"] = "Txina Ayrel";
es["Change date"] = "Leykatem trrit";
es["Rotate left"] = "Rikx nìftär";
es["Rotate right"] = "Rikx nìskien";
es["Download"] = "Kanom";
es["Make this my Profile picture"] = "Oel new futa oeyä Txìna Ayrel.";
es["Delete this photo"] = "'Aku fìrelit";
es["Press Esc to close"] = "Ftxey esc fte tstu si";
es["Remove tag"] = "'Aku tstxot";
es["Choose from photos..."] = "Ftxey ayrelkip";
es["Upload photo..."] = "Tìng relit";
es["Reposition..."] = "Rikx";
es["Remove..."] = "'Aku";
es["Cover photos"] = "Rel mì fäpa";
// Section: Friend page.
es["Search by name"] = "Fwew fa tstxo";
es["Search by friends of"] = "Fwew fa eylan";
// es["Search by current city"] = "";
es["Search by school"] = "Fwew fa numtseng";
es["Search by workplace"] = "Fwew fa tìkangkemtseng";
es["Search by home town"] = "Fwew fa Kelutral";
// es["Search by interest"] = "";
// Section: Friend profile.
es["Message"] = "'Upxare si";
es["Poke "] = "'Ampi";
es["Suggest friends"] = "Mok eylanit";
es["Unfriend"] = "Ke 'eylan si";
es["Report/Block"] = "Kulat/Fpe' neto";
es["Close friends"] = "Sìltsana eylan";
es["Acquaintences"] = "Súte";
es["Show all lists"] = "Wìntxu nìwotx";
es["How many updates?"] = "Holpxaype lawnatema ayu?";
es["All updates"] = "Lawnatema fra'u";
es["Most updates"] = "Lawnatema ayuä txampì";
es["Only important"] = "Nì'aw letsrantena ayu";
es["What types of updates?"] = "Pefnel lawnatema ayuä?";
es["Life events"] = "Tìreyä sìlen";
es["Status updates"] = "Tìfkeytok alawnatem";
es["Games"] = "Ayuvan";
es["Comments and likes"] = "Aysäplltxevi sì sawnunu ayu";
es["Music and Videos"] = "Pamtseo sì Rusikxa Rel";
es["Other activities"] = "Lahea sìlen";
es["Unsubscribe"] = "Ftang nirvong";
// Section: Map page
es["Place Lived"] = "Tseng a Roley";
// es["Trips"] = "";
// es["Life Event"] = "";
// es["Add Photos to Map"] = "";
// es["Country"] = "";
// es["Edit place details"] = "";
// es["City"] = "";
es["Show comments"] = "Wìntxu aysäplltxevit";
// es["Local business"] = "";
// es["Historical place"] = "";
// es["University"] = "";
// es["Get Directions"] = "";
// Section: About page
// es["Basic info"] = "";
es["Men"] = "Sutan";
es["Women"] = "Suté";
es["Men and women"] = "Sutan sì suté";
// es["Networks"] = "";
// es["Contact info"] = "";
// es["Anniversary"] = "";
// es["Religion"] = "";
es["Description"] = "Tìlusawk";
// es["Political Views"] = "";
// es["What are your religious beliefs?"] = "";
// es["What are your political beliefs?"] = "";
// es["Show my full birthday on my timeline"] = "";
// es["Show only month & day on my timeline"] = "";
// es["Don't show my birthday on my timeline"] = "";
es["I am"] = "Oe lu";
// es["Select a relation:"] = "";
// es["It's complicated"] = "";
es["Na'vi"] = "Ayoengeyä lì'fya";
// es["Single"] = "";
// es["Engaged"] = "";
// es["Married"] = "";
// es["Widowed"] = "";
// es["Divorced"] = "";
// es["In an open relationship"] = "";
es["With"] = "Hu";
// es["Separated"] = "";
// es["Show my sec on my timeline"] = "";
// es["Living"] = "";
es["Birthday"] = "Sngä'itrr";
// es["Interested in"] = "";
// es["Relatinship Status"] = "";
es["Languages"] = "Aylì'fya";
// es["Favourite quotations"] = "";
// es["In a relationship"] = "";
// es["Current location"] = "";
// es["Hometown"] = "";
// es["Secondary school"] = "";
// es["University"] = "";
// es["University (postgraduate)"] = "";
// es["Employers"] = "";
// es["Work and education"] = "";
// es["History by year"] = "";
es["About you"] = "Ngateri";
// es["Public"] = "";
es["Friends"] = "Eylan";
// es["Friends excpet acquaintances"] = "";
es["Only me"] = "Nì'aw oe";
// es["Custom"] = "";
// es["See all lists..."] = "";
// es["Where have you worked?"] = "";
// es["Where did you go to college/university?"] = "";
// es["Add a project"] = "";
// es["Add a class"] = "";
// es["Where did you go to secondary school?"] = "";
es["Save"] = "Zong";
es["Finished editing"] = "Lu hasey";
es["Music"] = "Pamtseo";
es["Movies"] = "Rusikxa ayrel";
// es["Television"] = "";
es["Activities"] = "";
es["Interests"] = "";
es["Gender"] = "";
es["Show other Pages"] = "";
es["No Pages to show."] = "";
// Section: Family
es["Add another family member"] = "Sung lahea túte soaiä";
es["Remove from family"] = "'Aku soaiata";
// es["Show on profile"] = "Wìntxu ";
es["Wife"] = "Muntxate";
es["Husband"] = "Muntxatan";
es["Auntie"] = "Sa'semä tsmuke";
es["Uncle"] = "Sa'semä tsmukan";
es["Aunt"] = "Sa'semä tsmuke";
es["Niece"] = "Tsmukä 'ite";
es["Nephew"] = "Tsmukä 'itan";
es["Cousin (female)"] = "Sa'semä tsmukä 'ita";
es["Cousin (male)"] = "Sa'semä tsmukä 'itan";
/* es["Grandmother"] = "";
es["Grandfather"] = "";
es["Granddaughter"] = "";
es["Grandson"] = "";
es["Stepmother"] = "";
es["Stepfather"] = "";
es["Stepsister"] = "";
es["Stepbrother"] = "";
es["Stepdaughter"] = "";
es["Stepson"] = "";
es["Relationship"] = ""; */
es["Family"] = "Soaia";
es["Brother"] = "Tsmukan";
es["Sister"] = "Tsmuke";
es["Father"] = "Sempul";
es["Mother"] = "Sa'nok";
/* es["Brother (Pending)"] = "";
es["Sister (Pending)"] = "";
es["Sister-in-law"] = "";
es["Brother-in-law"] = "";
es["Father-in-law"] = "";
es["Mother-in-law"] = "";
es["Son-in-law"] = "";
es["Daughter-in-law"] = ""; */
es["Partner (male)"] = "Muntxatu (tutan)";
es["Partner (female)"] = "Muntxatu (tuté)";
// Section: Event page
// es["Event for"] = "Tìlen fpi";
// es["By "] = "Fa ";
es["Going"] = "Kerayä";
// es["Invited"] = "Vawnin";
es["Export"] = "Fpe' käsatseng";
es["Report"] = "Kulat";
// es["Link"] = "Tsaheylu"; // Makes replying impossible.
es["Video"] = "Rusikxa Rel";
// es["until"] = "vaykrr";
es["Events"] = "Sìlen";
es["Not Going"] = "Ke kerayä";
es["Export event"] = "Fpe' käsatseng tìlenit";
es["Share Event"] = "Käsrin tìlenit";
es["Invite friends"] = "Vin eylanti";
es["Invite"] = "Vin";
es["See more suggestions"] = "Tse'a lahea sìmokti";
es["Public event"] = "Tìlen apiak frapofpi ";
// es["All"] = "Frapo";
// es["Hosts"] = "Frrfenyu"; // Not sure about this one
es["Only people who are invited can see and join this event"] = "Nì'aw sute avawnin tsun tsive'a sì 'awstengyem fìtìlenit";
// es["Time"] = "Krr";
// es["When"] = "Pehrr";
// es["Where"] = "Petsenge";
// Section: Events page
// es["You're going."] = "Nga kayä.";
// es["You might go."] = "Nga kxawm kayä.";
es["Later This Week"] = "Fìkintrrmì";
es["Next week"] = "Kintrrmì ahay";
es["Upcoming Events"] = "Kusäa Sìlen";
es["Suggested Events"] = "Vawnina Sìlen";
es["Past events"] = "Sìlen akawnamä";
es["Declined Events"] = "Sìlen akawnä a nga kivä satne";
es["Export Events..."] = "Fpe' käsatseng Sìlenit...";
es["Attach a file"] = "";
es["Take a picture or video"] = "";
es["Quick reply mode: press Enter to send"] = "";
// Section: Message page
es["Reply"] = "Plltxe nì'eyng";
es["Actions"] = "Hem";
es["Mark as unread"] = "Latem fì'ut na kea awninan";
es["Forward..."] = "Fpe' fì'ut tuteone";
es["Open in Chat"] = "Piak si Pängkxoyumì";
es["Archive"] = "Wan";
es["Delete messages..."] = "Ska'a upxaret";
es["Report as spam..."] = "Kulat na tìkawng...";
es["Report conversation..."] = "Kulat tìpängkxot";
es["Move to other"] = "'ärìp ne lapo";
es["Sent from Chat"] = "Fpawne' ftu Pängkxoyu";
// Section: Test
// First %a is a name, second %a is a name or else something like "6 others"
// fuzzy
es["%a and %a like this."] = "%a sì %a sunu si fì'uri.";
es["%a likes this."] = "%a sunu si fì'uri.";
//Basic Tag altering.
function translate_tag(tag) {
var fbelem = document.getElementsByTagName(tag);
for (var i = 0; i < fbelem.length; i++) {
var thisElem = fbelem[i];
if (thisElem.textContent in es) {
thisElem.textContent = es[thisElem.textContent];
}
}
}
//Basic Tag altering.
function translate_class(classname) {
var fbelem = document.getElementsByClassName(classname);
for (var i = 0; i < fbelem.length; i++) {
var thisElem = fbelem[i];
if (thisElem.textContent in es) {
thisElem.textContent = es[thisElem.textContent];
}
}
}
function loadSecwepemc() {
translate_tag('a');
translate_tag('th');
translate_tag('td');
translate_tag('span');
translate_tag('h3');
translate_tag('dt');
translate_class('ego_social_context');
var fbelem = document.getElementsByTagName('input');
for (var i = 0; i < fbelem.length; i++) {
var thisElem = fbelem[i];
if (thisElem.getAttribute('placeholder') in es) {
thisElem.setAttribute('placeholder',es[thisElem.getAttribute('placeholder')]);
}
if (thisElem.getAttribute('value') in es) {
thisElem.setAttribute('value',es[thisElem.getAttribute('value')]);
}
}
var fbelem = document.getElementsByTagName('textarea');
for (var i = 0; i < fbelem.length; i++) {
var thisElem = fbelem[i];
if (thisElem.getAttribute('placeholder') in es) {
thisElem.setAttribute('placeholder',es[thisElem.getAttribute('placeholder')]);
}
if (thisElem.getAttribute('title') in es) {
thisElem.setAttribute('title',es[thisElem.getAttribute('title')]);
}
if (thisElem.textContent in es) {
thisElem.textContent = es[thisElem.textContent];
}
}
// var fbelem = document.getElementsByClassName('UIImageBlock_Content UIImageBlock_ICON_Content');
// for (var i = 0; i < fbelem.length; i++) {
// var thisElem = fbelem[i];
// //finds if one person likes this.
// if (thisElem.textContent.match('likes this.')){
// icon = thisElem.childNodes[0]
// link = thisElem.childNodes[1]
// link.textContent = link.textContent.replace('likes this.', 'r xwexwistes.');
// thisElem.textContent = '';
// thisElem.appendChild(icon);
// thisElem.appendChild(link);
// }
// if (thisElem.textContent.match('like this.')){
// icon = thisElem.childNodes[0]
// link = thisElem.childNodes[1]
// link.textContent = link.textContent.replace('like this.', 'r xwexwistep.');
// thisElem.textContent = '';
// thisElem.appendChild(icon);
// thisElem.appendChild(link);
// }
// }
var fbelem = document.getElementsByTagName('h2');
for (var i = 0; i < fbelem.length; i++) {
var thisElem = fbelem[i];
if (thisElem.textContent in es) {
icon = thisElem.childNodes[0]
thisElem.textContent = es[thisElem.textContent];
thisElem.appendChild(icon);
}
}
}
loadSecwepemc();
function changedNode(e) {
translate_tag('a');
translate_tag('th');
translate_tag('td');
translate_tag('span');
translate_tag('h3');
translate_tag('dt');
translate_class('ego_social_context');
var fbelem = e.target.getElementsByTagName('input');
for (var i = 0; i < fbelem.length; i++) {
var thisElem = fbelem[i];
if (thisElem.getAttribute('placeholder') in es) {
thisElem.setAttribute('placeholder',es[thisElem.getAttribute('placeholder')]);
}
if (thisElem.getAttribute('value') in es) {
thisElem.setAttribute('value',es[thisElem.getAttribute('value')]);
}
}
var fbelem = e.target.getElementsByTagName('textarea');
for (var i = 0; i < fbelem.length; i++) {
var thisElem = fbelem[i];
if (thisElem.getAttribute('placeholder') in es) {
thisElem.setAttribute('placeholder',es[thisElem.getAttribute('placeholder')]);
}
if (thisElem.getAttribute('title') in es) {
thisElem.setAttribute('title',es[thisElem.getAttribute('title')]);
}
if (thisElem.textContent in es) {
thisElem.textContent = es[thisElem.textContent];
}
}
// var fbelem = e.target.getElementsByClassName('UIImageBlock_Content UIImageBlock_ICON_Content');
// for (var i = 0; i < fbelem.length; i++) {
// var thisElem = fbelem[i];
// //finds if one person likes this.
// if (thisElem.textContent.match('likes this.')){
// icon = thisElem.childNodes[0]
// link = thisElem.childNodes[1]
// link.textContent = link.textContent.replace('likes this.', 'r xwexwistes.');
// thisElem.textContent = '';
// thisElem.appendChild(icon);
// thisElem.appendChild(link);
// }
// if (thisElem.textContent.match('like this.')){
// cnodes = thisElem.childNodes;
// for (var j = 0; j < cnodes.length; j++){
// cnode = cnodes[j];
// thisElem.appendChild(cnode);
// }
// }
// }
var fbelem = e.target.getElementsByTagName('h2');
for (var i = 0; i < fbelem.length; i++) {
var thisElem = fbelem[i];
if (thisElem.textContent in es) {
icon = thisElem.childNodes[0]
thisElem.textContent = es[thisElem.textContent];
thisElem.appendChild(icon);
}
}
}
document.addEventListener('DOMNodeInserted', changedNode, false);