Skip to content

Commit

Permalink
edit img flags and add esperanto flag
Browse files Browse the repository at this point in the history
  • Loading branch information
naginni committed Feb 10, 2016
1 parent a00acb9 commit 3a96d24
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 4 deletions.
8 changes: 4 additions & 4 deletions codes.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class Codes{
'se_NO' => 'no',// revisar
'mt_MT' => 'mt',
'bs_Latn_BA' => 'ba',// revisar
'eo' => 'es', // revisar
'eo' => 'eo', // esperanto this language does not have country
'haz' => 'af',
'ary' => 'ma',
'oci' => 'es',
Expand All @@ -191,9 +191,9 @@ static function languageCode2CountryCode($languageCode) {
if(array_key_exists($languageCode, self::$array_codes)){
return self::$array_codes[$languageCode];
}

return false;
}

}
?>
?>
4 changes: 4 additions & 0 deletions css/flags/flags_16x11.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*
* This style rules for flags were taken from this url https://www.flag-sprites.com/
*/
.flag_16x11 {
width: 16px;
height: 11px;
Expand Down Expand Up @@ -256,3 +259,4 @@
.flag_16x11.flag-zanzibar {background-position: -160px -165px}
.flag_16x11.flag-zm {background-position: -176px -165px}
.flag_16x11.flag-zw {background-position: -192px -165px}
.flag_16x11.flag-eo {background-position: -208px -165px}
4 changes: 4 additions & 0 deletions css/flags/flags_32x32.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*
* This style rules for flags were taken from this url https://www.flag-sprites.com/
*/
.flag_32x32 {
width: 32px;
height: 32px;
Expand Down Expand Up @@ -226,3 +229,4 @@
.flag_32x32.flag-za {background-position: -320px -448px}
.flag_32x32.flag-zm {background-position: -352px -448px}
.flag_32x32.flag-zw {background-position: -384px -448px}
.flag_32x32.flag-eo {background-position: -416px -448px}
Binary file modified images/flags_16x11.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags_32x32.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions uls-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,11 @@ static function sort_translations_callback($a, $b) {
return strnatcasecmp($a['english_name'], $b['english_name']);
}

/*
* this function dowload automaticaly the langue from the https: official page
* this funcion check if the class ZipArchive is available and check the openss available too
* this class needs the last requirements to can download and unzip the language
*/
static function download_language() {
$data = explode(";", $_POST['info_language']);
$remoteFile = $data[1];
Expand Down

0 comments on commit 3a96d24

Please sign in to comment.