|
| 1 | +/* |
| 2 | + * This file is a part of project QuickShop, the name is CrowdinOTA.java |
| 3 | + * Copyright (C) PotatoCraft Studio and contributors |
| 4 | + * |
| 5 | + * This program is free software: you can redistribute it and/or modify it |
| 6 | + * under the terms of the GNU General Public License as published by the |
| 7 | + * Free Software Foundation, either version 3 of the License, or |
| 8 | + * (at your option) any later version. |
| 9 | + * |
| 10 | + * This program is distributed in the hope that it will be useful, but WITHOUT |
| 11 | + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 12 | + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 13 | + * for more details. |
| 14 | + * |
| 15 | + * You should have received a copy of the GNU General Public License |
| 16 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | + * |
| 18 | + */ |
| 19 | + |
1 | 20 | package org.maxgamer.quickshop.localization.text.distributions.crowdin; |
2 | 21 |
|
3 | 22 | import com.google.common.cache.Cache; |
@@ -177,7 +196,8 @@ public String getFile(String fileCrowdinPath, String crowdinLocale, boolean forc |
177 | 196 | // force flush required OR local cache not exists OR outdated |
178 | 197 | if (forceFlush || data == null || localeTimestamp != manifest.getTimestamp()) { |
179 | 198 | String url = CROWDIN_OTA_HOST + "content" + fileCrowdinPath.replace("%locale%", crowdinLocale); |
180 | | - Util.debugLog("Reading data from remote server: " + url); |
| 199 | + //Util.debugLog("Reading data from remote server: " + url); |
| 200 | + plugin.getLogger().info("Downloading translation " + crowdinLocale + " from: " + url); |
181 | 201 | try (Response response = HttpUtil.create().getClient().newCall(new Request.Builder().get().url(url).build()).execute()) { |
182 | 202 | val body = response.body(); |
183 | 203 | if (body == null) { |
|
0 commit comments