PluginProbe
AliNext – WooCommerce Dropshipping Plugin for AliExpress / trunk
AliNext – WooCommerce Dropshipping Plugin for AliExpress vtrunk
ali2woo-lite / includes / classes / model / Language.php

Language.php in AliNext – WooCommerce Dropshipping Plugin for AliExpress trunk, at includes/classes/model/Language.php

36 lines 1013 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Description of Language
5 *
6 * @author Ali2Woo Team
7 */
8
9 namespace AliNext_Lite;;
10
11 class Language {
12 private $languages = array("en" => "English", "ar" => "Arabic", "de" => "German",
13 "es" => "Spanish", "fr" => "French", "it" => "Italian",
14 "pl" => "Polish", "ja" => "Japanese", "ko" => "Korean",
15 "nl" => "Notherlandish (Dutch)", "pt" => "Portuguese (Brasil)", "ru" => "Russian",
16 "th" => "Thai", "id" => "Indonesian", "he" => "Hebrew",
17 "tr" => "Turkish", "vi" => "Vietnamese");
18
19 public function get_languages() {
20
21 return $this->languages;
22 }
23
24 public function get_language($code) {
25 $languages = $this->get_languages();
26 foreach($languages as $c => $text){
27 if($code === $c){
28 return $text;
29 break;
30 }
31 }
32 return false;
33 }
34
35 }
36