array( 'lang' => 'en', 'dir' => 'ltr', 'title' => 'Domain Not Found | uPress', 'heading' => 'Domain Not Found', 'lead' => 'The domain you’re looking for doesn’t exist or isn’t connected to a uPress account.', 'go' => 'Go to uPress', 'guide' => 'Domain connection guide', 'help' => 'Need help?', 'home' => 'https://www.upress.io/', 'home_label' => 'uPress home', 'guide_url' => 'https://support.upress.io/dev/domain-not-found-what-to-do/', 'support' => 'https://support.upress.io/', ), 'he' => array( 'lang' => 'he', 'dir' => 'rtl', 'title' => 'הדומיין לא נמצא | uPress', 'heading' => 'הדומיין לא נמצא', 'lead' => 'הדומיין שחיפשתם לא קיים או לא מחובר לחשבון ב-uPress.', 'go' => 'מעבר ל-uPress', 'guide' => 'מדריך לחיבור דומיין', 'help' => 'צריכים עזרה?', 'home' => 'https://www.upress.co.il/', 'home_label' => 'דף הבית של uPress', 'guide_url' => 'https://support.upress.co.il/dev/domain-not-found/', 'support' => 'https://support.upress.co.il/', ), ); // Hebrew when the browser lists it anywhere in Accept-Language $lang = 'en'; $accept = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']) : array(); foreach ($accept as $item) { if (preg_match('/^\s*he\b/i', $item)) { $lang = 'he'; break; } } $s = $strings[$lang]; ?> <?php echo $s['title']; ?>
uPress