[www-doc] [Git][VideoLAN.org/websites][master] i18n: fixed vlcstat html generation
Konstantin Pavlov
gitlab at videolan.org
Tue Apr 14 23:55:50 CEST 2020
Konstantin Pavlov pushed to branch master at VideoLAN organization / websites
Commits:
320086ae by Konstantin Pavlov at 2020-04-15T00:54:50+03:00
i18n: fixed vlcstat html generation
languages needs a newline at the end
don't hardcode the server images path
- - - - -
2 changed files:
- www.videolan.org/developers/i18n/languages
- www.videolan.org/developers/i18n/vlcstat.php
Changes:
=====================================
www.videolan.org/developers/i18n/languages
=====================================
@@ -103,4 +103,5 @@ Uzbek|uz.po|Umidjon Almasov|u.almasov at gmail dot com
Vietnamese|vi.po|Anh Phan|vietnamesel10n at gmail dot com
Walloon|wa.po|Gaƫtan Rousseaux|gaytan at skynet dot be
Welsh|cy.po|Huw Waters|huwwaters at gmail dot com
-Zulu|zu.po|Sipho Sibiya|sipho at translate dot org dot za
\ No newline at end of file
+Zulu|zu.po|Sipho Sibiya|sipho at translate dot org dot za
+
=====================================
www.videolan.org/developers/i18n/vlcstat.php
=====================================
@@ -24,9 +24,8 @@
</tr>
<?php
- $path = "/var/www/local/www.videolan.org/developers/i18n";
- $reffile = "$path/vlc-stats.ref";
- $lgfile = "$path/languages";
+ $reffile = "./vlc-stats.ref";
+ $lgfile = "./languages";
$file_id= fopen($reffile,"r");
$contents = fread ($file_id, filesize($reffile) );
@@ -70,7 +69,7 @@
imagestring( $image, 5, 65, 2 , floor($pc_tr)."%" , $black);
/* Save and destroy the image */
- imagepng($image,"$path/images/image_$pofile.png");
+ imagepng($image,"./images/image_$pofile.png");
imagedestroy($image);
/* Display results */
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/320086aeac8ff50d2fa1272d398a669dcad1dd16
--
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/320086aeac8ff50d2fa1272d398a669dcad1dd16
You're receiving this email because of your account on code.videolan.org.
More information about the www-doc
mailing list