Changeset 2735800
- Timestamp:
- 06/01/2022 04:12:04 PM (4 years ago)
- Location:
- localizejs
- Files:
-
- 2 edited
- 4 copied
-
tags/v1.2.2 (copied) (copied from localizejs/trunk)
-
tags/v1.2.2/localizejs.js (copied) (copied from localizejs/trunk/localizejs.js)
-
tags/v1.2.2/localizejs.php (copied) (copied from localizejs/trunk/localizejs.php)
-
tags/v1.2.2/readme.txt (copied) (copied from localizejs/trunk/readme.txt)
-
trunk/localizejs.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
localizejs/trunk/localizejs.php
r2727570 r2735800 5 5 * Description: Easily integrate Localize into your WordPress site. 6 6 * Author: Localize 7 * Version: 1.2. 27 * Version: 1.2.3 8 8 * Author URI: https://localizejs.com 9 9 */ … … 70 70 $localizejs_settings_url_options = get_option( 'localizejs_settings_url_options' ); 71 71 72 wp_register_script('localize', ( '//global.localizecdn.com/localize.js' ), false, null, false); 72 wp_register_script('localize', ( 'https://app.lz.dev:8094/client/built/localize.js' ), false, null, false); 73 // wp_register_script('localize', ( '//global.localizecdn.com/localize.js' ), false, null, false); 73 74 wp_register_script('localizeFallback', plugins_url('/localizejs.js',__FILE__) , false, null, false); 74 75 … … 117 118 $localize_api = new Localize_API(); 118 119 $resultObj = $localize_api->getAvailableLangs(); 119 $available_languages = json_encode($resultObj->el);120 $available_languages = $resultObj === null ? '[]' : json_encode($resultObj->el); 120 121 define('AVAILABLE_LANGUAGES', $available_languages); 121 define('SOURCE_LANGUAGE', $resultObj ->source);122 define('SOURCE_LANGUAGE', $resultObj === null ? 'en' : $resultObj->source); 122 123 } 123 124 } -
localizejs/trunk/readme.txt
r2727497 r2735800 2 2 Contributors: dereklocalize, kgblocalize, jonathanpeterwu 3 3 Tags: localize, localize.js, localizejs, translate, translations, localise, localization, localisation, l10n, i18n, language, switcher 4 Requires at least: 3.05 Tested up to: 5.94 Requires at least: 5.0 5 Tested up to: 6.0 6 6 Requires PHP: 7.4 7 7 Stable tag: 1.2.2 … … 75 75 76 76 == Changelog == 77 = 1.2.3 = 78 * Gracefully fail when Localize service is not reachable. 79 77 80 = 1.2.2 = 78 81 * Do not add language subdirectory for wp-content paths.
Note: See TracChangeset
for help on using the changeset viewer.