gridtracker/package.nw/lib/jquery.i18n.emitter.bidi.js

104 wiersze
13 KiB
JavaScript

Squashed commit of the following: commit afb25f406b51a9d52d35e25cebb78547c964884a Author: Christian Bayer <chrbayer84@googlemail.com> Date: Mon Sep 5 21:45:16 2022 -0400 WIP german translation commit 3abbf5cd5fe89fbe474ade395a1ad2d0ddd8c1b0 Author: Christian Bayer <chrbayer84@googlemail.com> Date: Sat Sep 3 15:06:47 2022 -0400 WIP german translation and some programmatic translation from CR commit 4c8fcc656b4085e88151cb5a3ce9f6c5e5bf3a21 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Aug 15 22:14:16 2022 -0500 progress so far, fixed what got broke in CR and fixed being able to close and reopen CR. still need to get i18n figured out commit 78aaaed2ade1094add163d5850bef6ab1b2226fb Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Aug 15 20:19:09 2022 -0500 one step forward, 2 steps backwards commit 903319452bf0c5ed8a2da879281d8b08ef7ff05e Author: Christian Bayer <chrbayer84@googlemail.com> Date: Mon Aug 15 23:23:51 2022 +0200 WIP translating strings in js: roster.js commit 934f619af63a97363dcff19ef2343b3e12e269ee Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Aug 15 00:06:13 2022 -0500 add JA because may have a JA contributor commit 8c7bd091acf83b45a8e0957e4990c4660f3673a2 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sun Aug 14 23:41:29 2022 -0500 all JS files have been passed through, may need another pass through all files though commit 835892b70b7b229fe0d353831271b21fc2fa716a Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sun Aug 14 20:03:18 2022 -0500 Finished gt.js tags commit 404dd1a2477e27b2c665dc3ecaba77dafcc7be20 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sun Aug 14 18:10:34 2022 -0500 progress so far (up to line 9871 in gt.js) commit c59473f8986fab8b2b336f212b0ead9d10617899 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sun Aug 14 12:43:01 2022 -0500 add comment between adif and alerts js files in en.json commit 80cb9d5178a255dcc1a15482b0bcabce1555aa61 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sun Aug 14 12:42:27 2022 -0500 Fix Chinese label to a more proper one commit 08a00eeae86d7d9a97cf17aa6029468024bf6784 Author: Christian Bayer <chrbayer84@googlemail.com> Date: Sun Aug 14 16:54:32 2022 +0200 moved scripts commit 8c9569b1c5f6b4d1b4b92db1ce7806b7246862fe Author: Christian Bayer <chrbayer84@googlemail.com> Date: Sun Aug 14 16:51:10 2022 +0200 started german translation commit b857ecf91e97bed0479ca759eddf234da65c5313 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sun Aug 14 01:37:39 2022 -0500 tags for adif and alerts js files commit 9c328de842bbe773746beddaeec0d2ea81225752 Author: Christian Bayer <chrbayer84@googlemail.com> Date: Sun Aug 14 08:23:51 2022 +0200 fixed cn.json additonal keys commit 7bc459195f8738cf77835329acf962274cd9cc38 Author: Christian Bayer <chrbayer84@googlemail.com> Date: Sun Aug 14 08:20:22 2022 +0200 Revert "fixed CN.json" This reverts commit f2f71c94dbb8f270aff76223a5d30769d8819b1a. commit 236bea23bd13324f25cbcdbd39c3ec008a679f10 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Aug 13 19:02:49 2022 -0500 cleanup and lint commit a78d32ed1bb5457be0d7e227492cdd1c3e77c431 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Aug 13 19:01:47 2022 -0500 THis works! commit edc0d40256b32f81a135f5efc3819c04018774d6 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Aug 13 18:17:15 2022 -0500 more tweaks trying to make it work commit f2f71c94dbb8f270aff76223a5d30769d8819b1a Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Aug 13 17:09:39 2022 -0500 fixed CN.json commit 9b90cf4b142f0c52bd0e4ba7ce926ad145f90ecd Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Aug 13 16:33:09 2022 -0500 language change so far commit dd60fc5012fa8f7a8655dacc9b8e0c0237e33f4e Author: Christian Bayer <chrbayer84@googlemail.com> Date: Sat Aug 13 22:19:25 2022 +0200 added missing keys to cn.json commit fc5e25c81a7541d2fe03ed9b79950c4ddbd71abb Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Aug 13 15:18:54 2022 -0500 Fixed linting` commit 485adc6da114a28f58e2d112f5f83f7541af9843 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Aug 13 14:57:30 2022 -0500 slight cleanup commit dada794ccdf699fe4eaf179b2cfef2a96e6a82fb Author: Christian Bayer <chrbayer84@googlemail.com> Date: Sat Aug 13 21:55:55 2022 +0200 fixed cn json commit 82809c0458e0b99159e87e1d22eba4cde6339015 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Aug 13 14:45:21 2022 -0500 added dropdown for language in settings commit 3159040b514f497a23b7169fb9512b032ee8b942 Author: Christian Bayer <chrbayer84@googlemail.com> Date: Fri Aug 12 22:29:51 2022 +0200 added raw output of the i18n extractor. needs cleanup commit 8f31e9e757f6c6a29678f0c0bddad1c6dc360df4 Author: Christian Bayer <chrbayer84@googlemail.com> Date: Thu Aug 11 22:29:12 2022 +0200 added i18n generator script based off of a patch file commit de81e35754dd2bb4c838aa6c7bf12a2025b1ded1 Author: Christian Bayer <chrbayer84@googlemail.com> Date: Mon Aug 8 22:20:47 2022 +0200 added cascading install for nested package.json commit bf7ecfeb4f44b0c65bbea0c5a43eb0e809652384 Author: Christian Bayer <chrbayer84@googlemail.com> Date: Mon Aug 8 22:11:18 2022 +0200 added pota key commit e14bca8172272d4a4f53eb5282d3d5576e057a2a Merge: f8c7232 91145aa Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sun Aug 7 18:39:40 2022 +0000 Merge branch 'master' into 'cbayer-i18n' Master See merge request gridtracker.org/gridtracker!182 If this is changing anything in the UI or operational behavior, please prepare to update the wiki! commit f8c7232c38ea4194fa8f69fe5721a74689b7ef2a Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sun Aug 7 12:54:04 2022 -0500 add jquery to npm depends commit 734e972d9e3a66ca8d85debbe1a8f75c6f824020 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sun Aug 7 12:53:24 2022 -0500 wip, i18n debugging commit 013d9c8ebfc67f0f4ce8a4df8bea86bf812fd880 Author: Christian Bayer <chrbayer84@googlemail.com> Date: Sun Aug 7 10:34:19 2022 +0200 small fixes commit 8da135bb6db8e15069eefb07397c9ceeee6d8bac Merge: 0183434 c1f7f1b Author: Christian Bayer <chrbayer84@googlemail.com> Date: Sat Aug 6 22:39:24 2022 +0200 Merge branch 'master' into cbayer-i18n commit 0183434bba0d7c6b7652b3b8700bac3630902737 Author: Christian Bayer <chrbayer84@googlemail.com> Date: Sat Aug 6 22:27:35 2022 +0200 removed banana import commit 670001a6db028dc93bc56ddb8b29d2e897974ffa Merge: c120df0 236ff10 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Tue May 17 18:38:11 2022 -0500 Merge branch 'master' into cbayer-i18n commit c120df0e3ba77a985fdbd8c9a76028aee9a8d8d0 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 15:15:21 2021 -0600 the linter lints commit 2243beddb2aaa1a163b1ba142a95fce60774e2e7 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 14:39:00 2021 -0600 mostly finished with gridtracker.html file's i18n commit 33d69c950145dc398d10723f56102dbec77ba0b5 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 14:36:34 2021 -0600 add functions to get acks json off website and overwrite file commit 98170dce4f1313cbf42bd0ae4bf5d1c490a077da Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 15:02:46 2021 -0600 Initial workup for LoTW throttling & diff fetching commit 655c0416635c5cafecaa612f8f6fd9a20db21f58 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 14:31:19 2021 -0600 WIP banana i18n commit 26495c1f1436e5b99c317d8305101dbecd8f2b95 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Wed Dec 15 11:52:08 2021 -0600 update rpm spec 1.21.1212 commit e00269304da44ea6da20362f96714584164ba8b2 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 14:47:50 2021 -0600 Trigger COPR and AUR repos and build .deb commit 2b2e660108ca4f000a6ac31c347f80010e7b11b8 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Wed Dec 15 11:46:41 2021 -0600 updated changelog / release notes commit 0265f75fd85509081d5992db0d729149521254f5 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Dec 13 20:48:27 2021 -0600 update changelog commit cd28c73c8a1dcb569fe3629e03b8d9646c832e5f Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Dec 13 19:04:23 2021 -0600 update changelog commit 058dbea415898134f345653532a3789ee7855ef0 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Dec 13 19:03:46 2021 -0600 Fix #76 commit f50ea44466328d0d632955b8a8725bf780417068 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Dec 13 16:18:51 2021 -0600 update changelog to recent bug fixes commit 3b0c9b5acc8cf3c57a2b0526451edf8250c11b89 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Dec 13 16:18:37 2021 -0600 Fix #91 commit d906ee7d5f18e682ab0b47277474170dd89622de Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Dec 13 15:54:51 2021 -0600 Fixes #107 commit 8252ca3f82843758edf5594d804989c3c4a1d6f0 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Dec 13 12:13:23 2021 -0600 fix hunting commit c1f3ae9e1c7605a31635bad8ed5e793f8a5d39d1 Author: Sebastian Delmont <sd@notso.net> Date: Mon Dec 13 13:09:46 2021 -0500 Really fix roster counts commit 0054993dc8ab1406da8b0b4644382f453f9b4584 Author: Sebastian Delmont <sd@notso.net> Date: Mon Dec 13 11:54:19 2021 -0500 Fix roster counts commit 69e1152e7883369b3a818f516f3302681800c241 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Dec 13 10:09:19 2021 -0600 update check for bad dxcc commit a0b2595e9ea38e0a936fb97e691aaa7a7bb2d31e Author: Sebastian Delmont <sd@notso.net> Date: Mon Dec 13 11:04:53 2021 -0500 Fixed spot sorting in refactored code commit 298e8cfbd7b9ee9b4560cb6c66e642e14abcae87 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sun Dec 12 16:37:52 2021 -0600 update changelog commit eb793d5607721231574a301fe1a4ea577628abf8 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 14:47:21 2021 -0600 Update Copyright for 2022 commit 0eb2fac9a0efa2e1b97389a5a09cba4ba83ccfa1 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 14:46:52 2021 -0600 change vars to lets per Tag's suggestion commit c78ea075b4f948dc88c91447ff66e471b21cc192 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sun Dec 12 15:46:17 2021 -0600 RC build commit 0c5cde472bffa1d2e2fe502449164aca153dd159 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Tue Nov 16 04:11:44 2021 +0000 Update .gitlab-ci.yml file commit 492b791bc058555e49a16616ecb32c3cd9dd4ca4 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Tue Nov 16 04:10:31 2021 +0000 Update .gitlab-ci.yml commit e77b9922ed1eea9c0ecd00860a4755b2523dba5b Author: Matthew Chambers <nr0q@gridtracker.org> Date: Tue Nov 16 03:56:53 2021 +0000 Update .gitlab-ci.yml - include security scanning commit 13c1236f7bf50c60756f1688b061f56d14f3afb9 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 14:46:20 2021 -0600 Fix acknowledgement icons commit 28772768e8253edfb6b14b3a97908bf8102ad239 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 14:45:31 2021 -0600 Add support for Apple Silicon Macs, by hardcoding x64 mode in Phoenix commit 0cec076dbb43d513ec93a63aaf51cf1423a9ebbb Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 14:45:05 2021 -0600 allow package-lock to be uploaded to repo commit 8b23a4ef25d12c417747b663334b046b723d703a Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sun Dec 12 09:11:24 2021 -0600 beta III of call roster testing commit cc476c84ed84cb7e55e68cf6d482bfdd569f78a0 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sun Dec 12 09:09:57 2021 -0600 if dxcc = -1, no roster commit ca5a4db664876a48b7d8a5ffaff28d7b067d99d0 Author: nr0q <nr0q@gridtracker.org> Date: Thu Dec 9 20:59:15 2021 -0600 beta version for testing fix to CR commit 5556bbfee08d0d1480d987dc396130cceed6cf20 Author: nr0q <nr0q@gridtracker.org> Date: Thu Dec 9 14:31:02 2021 -0600 a few of SD's roster tweaks commit 2b65f293a788b5c083efd04cfd4c803796df1b03 Author: nr0q <nr0q@gridtracker.org> Date: Thu Dec 9 13:53:20 2021 -0600 could this cure the free text messages breaking the CR? commit 43ea47a09d1058baa6bee5a109d7454cab6218c8 Author: nr0q <nr0q@gridtracker.org> Date: Mon Oct 25 20:43:48 2021 -0500 roll v for beta build commit f1d9db2e6fd14362a4fbf4d742be9a95ee871f0e Author: nr0q <nr0q@gridtracker.org> Date: Mon Oct 25 15:17:33 2021 -0500 better handling of /MM so that it doesn't tear a hole in space-time commit 9fed1b4aca10997081f32e5e1777b52a3072d3d6 Author: nr0q <nr0q@gridtracker.org> Date: Mon Oct 25 14:00:29 2021 -0500 remove the exception handler for callObj.style because need to fix the root cause commit 7a73c988dac34545da26fd4a736a964215ebc872 Author: nr0q <nr0q@gridtracker.org> Date: Mon Oct 25 13:31:15 2021 -0500 handle undefined callObj.style commit 71a2df7e20e8e424aa0ec90ea5d8d9d3492487ff Author: nr0q <nr0q@gridtracker.org> Date: Mon Oct 25 12:42:58 2021 -0500 handle bug line 114 commit 8d5117b76b6844df4eeced0e9f0e01d1e28be2e2 Author: nr0q <nr0q@gridtracker.org> Date: Sun Oct 24 20:36:10 2021 -0500 inc v for beta 2 commit b199c4c4fad3558843d6d21958761ef6b9996fa7 Author: christian <christian_bay@gmx.de> Date: Sun Oct 24 21:23:40 2021 -0400 fixed linting commit 7830e52978f964c5da015b1bb0928f56028c260b Author: nr0q <nr0q@gridtracker.org> Date: Sun Oct 24 20:15:07 2021 -0500 cleaned up linting commit ac51710ff3fb3d296ddd4edeeff4957e677fb6ec Author: Christian Bayer <christian_bay@gmx.de> Date: Sun Oct 24 20:56:21 2021 -0400 fixed reference error on huntedCount commit 66f7ad87b3d91397cab29bc8c0bcca9e137e682e Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 14:44:39 2021 -0600 fix pack.json and changelog to reflect test V# commit 7a43853533e364cf85e70262b6573afe47542fbc Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 14:44:14 2021 -0600 add settings.json to gitignore commit 4f2ce9d89099b674fed2c5053cc80f7f9866f325 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Oct 21 00:41:12 2021 +0000 Update package.json commit dbc297a00c6405971219ccba4ad27416ef321282 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 14:43:52 2021 -0600 Update package.json commit 6c68a190dbd73b385fbaea9878f513ba0684dc2c Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 14:43:31 2021 -0600 Update changelog commit 3125b01a17f9fa4c44ec139a4a58fcd8effbf3cd Author: christian <christian@t530> Date: Wed Jul 7 15:08:03 2021 -0400 clear call roster on band change: option added commit 6f4c15c157ff956352bebd9e20a06610ef3d3196 Author: christian <christian@t530> Date: Sun Jul 4 23:07:51 2021 -0400 unknown dxxc filter for roster commit a444d163cae7fd3256992571a2f95b6ac5b921a1 Author: christian <christian@t530> Date: Thu Jul 1 21:39:50 2021 -0400 fixed other sorts commit cb73f21a937c95541ca756ee9988d54f8056fd16 Author: christian <christian@t530> Date: Wed Jun 30 20:37:27 2021 -0400 fixed alert script call commit 2226f707bd41ab4f271ca3b2c8c72f8028735894 Author: christian <christian@t530> Date: Wed Jun 30 07:52:36 2021 -0400 fixed dxcc sorting commit d395b8dd0e0df8fcee8d8da9701428803ef0c5af Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jun 28 23:18:43 2021 -0500 tweak for compact mode commit 86fb507d5a45a3418ae7f98d828e91f74f5af9a9 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jun 28 23:08:13 2021 -0500 IT WORKS! commit d55ac551d1c1d923b184c121af69d065ccc3eb70 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jun 28 22:51:52 2021 -0500 fix grid commit 0a85e764931371591899a503609bcafb35babb30 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jun 28 22:50:49 2021 -0500 bunch of stuff moved to the right places commit 68f81c62003e0826f2766b5065f464d008b95db7 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jun 28 22:37:49 2021 -0500 fix some small stuff commit db738a4230fd6d6f79c122643ba48d687da783b7 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jun 28 22:26:40 2021 -0500 lost show bands/modes on render call rows commit 68f7544b1a2e8dfca87bbfc3708aa30aae4b2b31 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jun 28 22:24:32 2021 -0500 fix line 73 commit 95920077bd64eea14a6dee6f4d112f4f65031450 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jun 28 22:21:19 2021 -0500 fix line 34 commit 84059439c1108a083f52aed5b2302adca2bb7ead Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jun 28 22:18:32 2021 -0500 fix broken array commit 817e9c5e18868bee13b7dfa029b4bbc008ded300 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jun 28 22:12:23 2021 -0500 fix sendAlerts undefined object commit 7a0b16d262f77dfbaf56bdeb678637f67f4c45a0 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jun 28 22:08:06 2021 -0500 more broke fixed commit 6a9896ce4112b3b84fb9f1429285885ed5f8085b Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jun 28 22:00:27 2021 -0500 re-added r_sortFunction that somehow wondered off commit 856a49b720f41c68b91cb38ca135b82cb5a36e09 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jun 28 21:58:05 2021 -0500 fix some more broken stuff commit 076a7e5eec824af2db9edf8e083807d0dff4fb8d Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jun 28 20:42:07 2021 -0500 fixed a bunch of broken refs to rosterSettings commit 443409b90253c2e45d7d080819286a9b6dd39e88 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jun 28 19:19:26 2021 -0500 refactor so far commit 1f452992861643d61caf5bcf85739c199a28582b Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jun 28 17:26:44 2021 -0500 big roster refactor - starting Co-authored-by: Sebastian Delmont <sd@notso.net> Matthew Chambers <nr0q@gridtracker.org> commit 4ed8b2c3cbd7e1f850256d4589c7cc6621825eed Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Jun 24 18:46:42 2021 -0500 missing comma line 422 commit b089caf50ad28215280b343eca43e816d0e8aaad Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Jun 24 18:04:46 2021 -0500 add array with exception test function names, need to create functions yet commit 0b27feb3677218b7a3185ecb8c187384572451eb Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Jun 24 11:06:31 2021 -0500 some notes that might aid in refactoring commit 0518d6e40caf7cede1b1a3ecced412d910f3bdeb Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 14:42:44 2021 -0600 add functions to get acks json off website and overwrite file commit 268459833bdd6bfbb84cd8d05df2a649ab34f1cc Author: Matthew Chambers <nr0q@gridtracker.org> Date: Thu Dec 16 14:41:03 2021 -0600 Initial workup for LoTW throttling & diff fetching commit 9330df84f38f9705d8c6f8ff56bd2479cacd108a Author: nr0q <nr0q@gridtracker.org> Date: Sun Oct 24 12:59:29 2021 -0500 save work so far commit 0761163ddd2b851c617ca6d4cc497f32063c2bf6 Author: nr0q <nr0q@gridtracker.org> Date: Tue Oct 19 21:54:26 2021 -0500 adding i18n to other html files, need to call scripts I think to make them "work" commit 3a00b5b3d0bbbdbb494bd90ba8638f9be0434e6a Author: nr0q <nr0q@gridtracker.org> Date: Tue Oct 19 21:16:02 2021 -0500 i18n chat html and format chat.css commit 220fc036b8b6d200ffbe79a5e293770b9a17d88c Author: nr0q <nr0q@gridtracker.org> Date: Tue Oct 19 20:57:05 2021 -0500 refactor chat css into it's own css file, fix linting in gt.js start adding i18n in chat and bandactivity htmls commit fceaaaa4aa8076ae5dbb544bbe63eef812606503 Author: nr0q <nr0q@gridtracker.org> Date: Tue Oct 19 19:39:21 2021 -0500 update all except hover/title elements with i18n in GridTracker.html commit 215bc2c55c770575a5594a48872b1fb28bb160b1 Author: nr0q <nr0q@gridtracker.org> Date: Tue Oct 19 18:28:48 2021 -0500 mostly finished with gridtracker.html file's i18n commit 9a63953b7d407530cebd9c341ddda3dd08346750 Author: nr0q <nr0q@gridtracker.org> Date: Tue Oct 19 17:58:13 2021 -0500 all through Audio Alerts done commit bbe38ea60d0c7ba8359a4a599ecc2d4e8e8537f7 Author: nr0q <nr0q@gridtracker.org> Date: Tue Oct 19 17:05:47 2021 -0500 check in everything up to mid alert settings commit 99d89f68fca24ded7d4080942aa8303898a3d86c Author: nr0q <nr0q@gridtracker.org> Date: Tue Oct 19 13:00:00 2021 -0500 fix badly broken HTML commit 934f097b7019c9d02e220bd26ab4e2dbf96d252c Author: nr0q <nr0q@gridtracker.org> Date: Tue Oct 19 12:39:04 2021 -0500 update through to Lookup tab commit efd03b85aee05e489a558d3d9769bf524340f769 Author: chrbayer84 <christian_bay@gmx.de> Date: Wed Sep 29 18:04:22 2021 +0000 Update README.md commit ac5299cbb516fefce635a5cd99c72048e4bb678d Author: nr0q <nr0q@gridtracker.org> Date: Wed Sep 29 12:26:50 2021 -0500 add Getting GridTracker to readme commit 8f3a7f81ae27b6d7382ac4b75e89f5582c79c4d2 Author: nr0q <nr0q@gridtracker.org> Date: Tue Sep 28 14:58:22 2021 -0500 copy of NWJS's license commit 645b2222b084b575b8b0b4fb8ea61be8c972b010 Author: T Loomis <tag.loomis@gmail.com> Date: Tue Sep 28 19:09:45 2021 +0000 Removed OAMS messaging pop-up reset commit 17035c84a092be7cabeff4648f9827bc87cf445e Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Sep 27 18:04:00 2021 +0000 updated arm to NWJS 0.54.2 with 64 bit capability rolled to v1.21.0928 commit 75421054f92497a4a8f7466eefa4c30684206ac2 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Sep 27 18:00:48 2021 +0000 Treat adif record values as byte length vs string length commit 44d54dd5dfecb3389317f3c6a88793c38c78f7ff Author: Matthew Chambers <NR0Q@gridtracker.org> Date: Thu Sep 16 20:37:04 2021 -0500 updated V-num for beta build commit 50c65ac2c4bdc10da679d495f794e4424981f935 Author: jangliss <jon+gh@netdork.net> Date: Thu Sep 16 20:27:21 2021 -0500 Remove looking at fetched records for last fetch date for LoTW. Use only header commit 421601e36d3bde33c13ae7646f12d4cc1c617eff Author: Matthew Chambers <NR0Q@gridtracker.org> Date: Sun Aug 29 14:39:18 2021 -0500 new donors yay commit 3eb3fa4b21f6ab580ed6f1f8cf348b1e6e1fbe2d Author: Matthew Chambers <NR0Q@gridtracker.org> Date: Sat Aug 28 13:06:48 2021 -0500 acks data update commit cdb524a887cbabfeac288fad2d04f6126665b601 Author: Matthew Chambers <NR0Q@gridtracker.org> Date: Wed Aug 25 14:38:51 2021 -0500 data update commit f91cc0968cdb25164894739693c8bfc15aa7af9d Author: Matthew Chambers <nr0q@gridtracker.org> Date: Mon Jul 5 11:47:16 2021 -0500 acks update 5-july-2021 commit 0ca37bf71eaef8c7423944a478f9b3836d7320c7 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Tue Jun 29 16:41:47 2021 -0500 ack update 29 July 2021 commit 53f6168e2363e26c548d108f735805dcfba8330e Author: Matthew Chambers <nr0q@gridtracker.org> Date: Tue Jun 22 11:49:53 2021 -0500 update acknowledgements.json for 6/22/2021 commit 2b79d75f0989c1fcb35ea90d72266e9238bd285e Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sun Jun 20 13:13:40 2021 -0500 update acknowledgements.json commit c30d004c69824a71d8391129cf38ece5a84dc3a7 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Jun 19 16:19:52 2021 -0500 update acknowledgements.json commit c3bef85eabb56709833ac36fd299cbb90e07aa4f Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Jun 19 20:58:02 2021 +0000 Update acks json commit 260e4bc9bc3d15d02b45e5efe0c955c5beaddd27 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Jun 19 12:01:43 2021 -0500 general updates for new general release commit fc742c95a868269ff691b0579aef3c61d6643591 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Jun 19 14:36:13 2021 -0500 fix line 15581 commit 6a04b9cb7bc2c11f458cae3aad8e9569ae7a0a58 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Jun 19 13:44:44 2021 -0500 more better commit 229efb099a1688b00af4469d9d5f3b15f067d84a Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Jun 19 13:26:06 2021 -0500 better get acks code (Thanks Tag) commit 7b30fb3093212e034ea57f42090f72ec768f6320 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Jun 19 11:43:05 2021 -0500 fix missing " around http line 11141 commit 24e180ffdcb34c8f26dcf183607c83f704168695 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Jun 19 11:33:04 2021 -0500 call checkForNewAcks when checkForNewVersion commit e9d9f8b24a3bf927040bd7f77227edcaafd631e8 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Jun 19 11:17:29 2021 -0500 add functions to get acks json off website and overwrite file commit 56e4d5816918078152fb74ca8a542179d87b6077 Author: jangliss <jon+gh@netdork.net> Date: Fri Jun 18 20:28:25 2021 -0500 Date.parse behavior to local time instead of UTC commit 74db81d764f165d1c45aab54cd24137062e7a204 Author: jangliss <jon+gh@netdork.net> Date: Thu Jun 17 17:56:37 2021 -0500 More LoTW Fixes to do diff fetching commit cedeef59f878ca42e6190b41d8774ee4ce4eb640 Author: jangliss <jon+gh@netdork.net> Date: Tue Jun 15 21:03:15 2021 -0500 Initial workup for LoTW throttling & diff fetching commit 4576c519c85b0445dad7ba655e2d22b387c9a26f Author: Santiago Mejia <santiago.hi8smx@gmail.com> Date: Wed Jun 16 19:59:05 2021 +0000 Upload New File commit f79010707a3fac0e29c63ef1b741a737bcab522c Author: jangliss <jon+gh@netdork.net> Date: Sat Jun 19 15:44:51 2021 -0500 Fix linting warning commit 9b31e8c1a859fe94109f295f6376d4cffd87a1c2 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sat Jun 12 22:13:03 2021 -0500 update changelog etc for v1.21.0613 commit 3706978e8b45855f70e4c5723898d0797e7066b5 Author: Matthew Chambers <nr0q@gridtracker.org> Date: Sun Jun 13 03:27:38 2021 +0000 Update acks json commit bbd17c1e32dc2685a57871a446ee8e3d5bc5b3c9 Author: jangliss <jon+gh@netdork.net> Date: Sat Jun 12 22:20:32 2021 -0500 Linting hates me. Remove space on comment. commit 80466b0edab9b138fd78c45ef270ce8a7b644fc1 Author: jangliss <jon+gh@netdork.net> Date: Sat Jun 12 22:08:47 2021 -0500 Fix npm wanting a space after comment syntax commit 5791ba583e4c04de01058807a61af9fb49599114 Author: jangliss <jon+gh@netdork.net> Date: Sat Jun 12 21:55:50 2021 -0500 Temporarily disable LoTW full downloads on startup commit d5478ee4ab7730af7eac637f839a05348558b517 Author: nr0q <nr0q@gridtracker.org> Date: Mon Oct 18 17:17:41 2021 -0500 small fixes in typos in data-i18n tags commit ec541a5a835eec2233d752a88b809ff0dbc9e78b Author: nr0q <nr0q@gridtracker.org> Date: Mon Oct 18 14:08:50 2021 -0500 it all works and created es file for Santiago to start on commit 6c14637639be2e5ff7535c26c5c4f3db07c5add2 Author: nr0q <nr0q@gridtracker.org> Date: Mon Oct 18 13:51:09 2021 -0500 loading the local file helps, added a statup function to do that commit 635431735822ad0385fd713c8def0ffd094fd2ec Author: nr0q <nr0q@gridtracker.org> Date: Wed Oct 13 16:25:07 2021 -0500 add .vscode to gitignore commit 27cc542b65cf486a25ba93fb06901ff7b0a888d8 Author: nr0q <nr0q@gridtracker.org> Date: Wed Oct 13 10:20:55 2021 -0500 finished i18n tags through map vew filters commit ef4683c8ea3235670509a17b4a2b6108c7d27bab Author: nr0q <nr0q@gridtracker.org> Date: Tue Oct 12 20:23:12 2021 -0500 added data-i18n tags up through mapFilter.mode commit 0aa862afbe239cd062902804de9ccad95e354839 Author: nr0q <nr0q@gridtracker.org> Date: Tue Oct 12 16:49:03 2021 -0500 more data-i18n tags commit bbd39a640fd5b31366b141bb687fad04b27c64fd Author: nr0q <nr0q@gridtracker.org> Date: Tue Oct 12 16:07:39 2021 -0500 adding data-i18n fields to tags commit 603c8c039d6ba6113cd2de62c994d8c5bba42e08 Author: nr0q <nr0q@gridtracker.org> Date: Mon Oct 11 17:37:11 2021 -0500 all HTML files done commit 7e97e9d2af6db22b95205ace9a00887b493a2be8 Author: nr0q <nr0q@gridtracker.org> Date: Mon Oct 11 16:08:52 2021 -0500 i18n up to the about tab commit 0c65ab8f3ae0b54f80be894067547bbc5674f5d5 Author: nr0q <nr0q@gridtracker.org> Date: Mon Oct 11 13:51:09 2021 -0500 i18n en strings through audio settings commit 39152109a5156f08f4984364a0f7488cd617dd18 Author: nr0q <nr0q@gridtracker.org> Date: Mon Oct 11 13:18:35 2021 -0500 cleaner keys commit 59a93e3f30cabdc7529aef005b085c3a9e582ecf Author: nr0q <nr0q@gridtracker.org> Date: Mon Oct 11 11:46:28 2021 -0500 i18n through control panel commit 17be5a28434dda24fff0fb7e198cc89ac0bbfb5c Author: nr0q <nr0q@gridtracker.org> Date: Mon Oct 11 10:43:25 2021 -0500 check in what I have so far commit aa65ad9936c7c37ada7b5d8b7263adddf60dec8f Author: christian <christian@t530> Date: Sun Jun 13 14:21:43 2021 -0400 added jquery.i18n commit 9d31645823b45417f393d68951a18b4d05bb8e93 Author: christian <christian@t530> Date: Wed Jun 9 21:29:23 2021 -0400 i18n hook for main gt.html commit 7e9e5b9cfe1bdbbee391565f1fda282a27f0bb55 Author: christian <christian@t530> Date: Mon May 24 21:08:15 2021 -0400 WIP banana i18n
2022-09-06 01:57:15 +00:00
/* eslint-disable no-tabs */
/*!
* BIDI embedding support for jQuery.i18n
*
* Copyright (C) 2015, David Chan
*
* This code is dual licensed GPLv2 or later and MIT. You don't have to do
* anything special to choose one license or the other and you don't have to
* notify anyone which license you are using. You are free to use this code
* in commercial projects as long as the copyright header is left intact.
* See files GPL-LICENSE and MIT-LICENSE for details.
*
* @licence GNU General Public Licence 2.0 or later
* @licence MIT License
*/
(function ($)
{
"use strict";
var strongDirRegExp;
/**
* Matches the first strong directionality codepoint:
* - in group 1 if it is LTR
* - in group 2 if it is RTL
* Does not match if there is no strong directionality codepoint.
*
* Generated by UnicodeJS (see tools/strongDir) from the UCD; see
* https://phabricator.wikimedia.org/diffusion/GUJS/ .
*/
// eslint-disable-next-line no-misleading-character-class
strongDirRegExp = new RegExp(
"(?:" +
"(" +
"[\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u02bb-\u02c1\u02d0\u02d1\u02e0-\u02e4\u02ee\u0370-\u0373\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0482\u048a-\u052f\u0531-\u0556\u0559-\u055f\u0561-\u0587\u0589\u0903-\u0939\u093b\u093d-\u0940\u0949-\u094c\u094e-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd-\u09c0\u09c7\u09c8\u09cb\u09cc\u09ce\u09d7\u09dc\u09dd\u09df-\u09e1\u09e6-\u09f1\u09f4-\u09fa\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3e-\u0a40\u0a59-\u0a5c\u0a5e\u0a66-\u0a6f\u0a72-\u0a74\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd-\u0ac0\u0ac9\u0acb\u0acc\u0ad0\u0ae0\u0ae1\u0ae6-\u0af0\u0af9\u0b02\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b3e\u0b40\u0b47\u0b48\u0b4b\u0b4c\u0b57\u0b5c\u0b5d\u0b5f-\u0b61\u0b66-\u0b77\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe\u0bbf\u0bc1\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0be6-\u0bf2\u0c01-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c41-\u0c44\u0c58-\u0c5a\u0c60\u0c61\u0c66-\u0c6f\u0c7f\u0c82\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd-\u0cc4\u0cc6-\u0cc8\u0cca\u0ccb\u0cd5\u0cd6\u0cde\u0ce0\u0ce1\u0ce6-\u0cef\u0cf1\u0cf2\u0d02\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d57\u0d5f-\u0d61\u0d66-\u0d75\u0d79-\u0d7f\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd1\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df4\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e4f-\u0e5b\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0ed0-\u0ed9\u0edc-\u0edf\u0f00-\u0f17\u0f1a-\u0f34\u0f36\u0f38\u0f3e-\u0f47\u0f49-\u0f6c\u0f7f\u0f85\u0f88-\u0f8c\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce-\u0fda\u1000-\u102c\u1031\u1038\u103b\u103c\u103f-\u1057\u105a-\u105d\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108c\u108e-\u109c\u109e-\u10c5\u10c7\u10cd\u10d0-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1360-\u137c\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u167f\u1681-\u169a\u16a0-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1735\u1736\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17b6\u17be-\u17c5\u17c7\u17c8\u17d4-\u17da\u17dc\u17e0-\u17e9\u1810-\u1819\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1923-\u1926\u1929-\u192b\u1930\u1931\u1933-\u1938\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a16\u1a19\u1a1a\u1a1e-\u1a55\u1a57\u1a61\u1a63\u1a64\u1a6d-\u1a72\u1a80-\u1a89\u1a90-\u1a99\u1aa0-\u1aad\u1b04-\u1b33\u1b35\u1b3b\u1b3d-\u1b41\u1b43-\u1b4b\u1b50-\u1b6a\u1b74-\u1b7c\u1b82-\u1ba1\u1ba6\u1ba7\u1baa\u1bae-\u1be5\u1be7\u1bea-\u1bec\u1bee\u1bf2\u1bf3\u1bfc-\u1c2b\u1c34\u1c35\u1c3b-\u1c49\u1c4d-\u1c7f\u1cc0-\u1cc7\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u200e\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u214f\u2160-\u2188\u2336-\u237a\u2395\u249c-\u24e9\u26ac\u2800-\u28ff\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d70\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u302e\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\
")|(" +
"[\u0590\u05be\u05c0\u05c3\u05c6\u05c8-\u05ff\u07c0-\u07ea\u07f4\u07f5\u07fa-\u0815\u081a\u0824\u0828\u082e-\u0858\u085c-\u089f\u200f\ufb1d\ufb1f-\ufb28\ufb2a-\ufb4f\u0608\u060b\u060d\u061b-\u064a\u066d-\u066f\u0671-\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u0710\u0712-\u072f\u074b-\u07a5\u07b1-\u07bf\u08a0-\u08e2\ufb50-\ufd3d\ufd40-\ufdcf\ufdf0-\ufdfc\ufdfe\ufdff\ufe70-\ufefe]|\ud802[\udc00-\udd1e]|\ud802[\udd20-\ude00]|\ud802\ude04|\ud802[\ude07-\ude0b]|\ud802[\ude10-\ude37]|\ud802[\ude3b-\ude3e]|\ud802[\ude40-\udee4]|\ud802[\udee7-\udf38]|\ud802[\udf40-\udfff]|\ud803[\udc00-\ude5f]|\ud803[\ude7f-\udfff]|\ud83a[\udc00-\udccf]|\ud83a[\udcd7-\udfff]|\ud83b[\udc00-\uddff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\ude00-\udeef]|\ud83b[\udef2-\udeff]" +
")" +
")"
);
/**
* Gets directionality of the first strongly directional codepoint
*
* This is the rule the BIDI algorithm uses to determine the directionality of
* paragraphs ( http://unicode.org/reports/tr9/#The_Paragraph_Level ) and
* FSI isolates ( http://unicode.org/reports/tr9/#Explicit_Directional_Isolates ).
*
* TODO: Does not handle BIDI control characters inside the text.
* TODO: Does not handle unallocated characters.
*
* @param {string} text The text from which to extract initial directionality.
* @return {string} Directionality (either 'ltr' or 'rtl')
*/
function strongDirFromContent(text)
{
var m = text.match(strongDirRegExp);
if (!m)
{
return null;
}
if (m[2] === undefined)
{
return "ltr";
}
return "rtl";
}
$.extend($.i18n.parser.emitter, {
/**
* Wraps argument with unicode control characters for directionality safety
*
* This solves the problem where directionality-neutral characters at the edge of
* the argument string get interpreted with the wrong directionality from the
* enclosing context, giving renderings that look corrupted like "(Ben_(WMF".
*
* The wrapping is LRE...PDF or RLE...PDF, depending on the detected
* directionality of the argument string, using the BIDI algorithm's own "First
* strong directional codepoint" rule. Essentially, this works round the fact that
* there is no embedding equivalent of U+2068 FSI (isolation with heuristic
* direction inference). The latter is cleaner but still not widely supported.
*
* @param {string[]} nodes The text nodes from which to take the first item.
* @return {string} Wrapped String of content as needed.
*/
bidi: function (nodes)
{
var dir = strongDirFromContent(nodes[0]);
if (dir === "ltr")
{
// Wrap in LEFT-TO-RIGHT EMBEDDING ... POP DIRECTIONAL FORMATTING
return "\u202A" + nodes[0] + "\u202C";
}
if (dir === "rtl")
{
// Wrap in RIGHT-TO-LEFT EMBEDDING ... POP DIRECTIONAL FORMATTING
return "\u202B" + nodes[0] + "\u202C";
}
// No strong directionality: do not wrap
return nodes[0];
}
});
}(jQuery));