mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
up translation timeout to 15s
This commit is contained in:
parent
50838df8f6
commit
b974351d07
1 changed files with 8 additions and 6 deletions
6
lib/thirdparty/Transifex.class.php
vendored
6
lib/thirdparty/Transifex.class.php
vendored
|
@ -3,7 +3,8 @@
|
|||
|
||||
class Transifex
|
||||
{
|
||||
public static function isConfigured() {
|
||||
public static function isConfigured()
|
||||
{
|
||||
return (boolean)Config::get(Config::TRANSIFEX_API_KEY);
|
||||
}
|
||||
|
||||
|
@ -12,7 +13,8 @@ class Transifex
|
|||
$url = "https://www.transifex.com/api/2/project/$project/resource/$resource/translation/$language?file=1";
|
||||
return json_decode(CurlWithCache::get($url, [], [
|
||||
'password' => 'api:' . Config::get(Config::TRANSIFEX_API_KEY),
|
||||
'cache' => $cache ? 1000 * 60 * 60 * 8 : false
|
||||
'cache' => $cache ? 1000 * 60 * 60 * 8 : false,
|
||||
'timeout' => 5
|
||||
]), true);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue